# Ukanimalcrueltyfiles — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Access data from ukanimalcrueltyfiles.org.

**Category:** Government & Public Data | **Website:** [ukanimalcrueltyfiles.org/](https://ukanimalcrueltyfiles.org/) | **Docs:** [parse.bot/marketplace/1f706e45-a002-47d8-b467-38b22565c18c/ukanimalcrueltyfiles-org-api](https://parse.bot/marketplace/1f706e45-a002-47d8-b467-38b22565c18c/ukanimalcrueltyfiles-org-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-ukanimalcrueltyfiles-org-api-1f706e45/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### get_post

Get the full details of a single prosecution case by its numeric ID. Returns the complete case content including conviction details, sentencing, and full narrative text.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `post_id` | string | Yes | Numeric post ID from search_posts results (e.g. 49915). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ukanimalcrueltyfiles-org-api-1f706e45/get_post \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"post_id":"<string>"}'
```

### list_categories

List all available prosecution case categories with their IDs, names, slugs, post counts, and parent category relationships. Use category IDs to filter search_posts results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of categories per page, between 1 and 100. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ukanimalcrueltyfiles-org-api-1f706e45/list_categories \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","per_page":"<integer>"}'
```

### list_tags

List available tags used to classify prosecution cases. Tags include ban lengths, year identifiers, locations, and case characteristics. Supports search filtering. Use tag IDs to filter search_posts results.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of tags per page, between 1 and 100. |
| `search` | string | No | Filter tags by name (partial match). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ukanimalcrueltyfiles-org-api-1f706e45/list_tags \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","per_page":"<integer>","search":"<string>"}'
```

### search_posts

Search animal cruelty prosecution cases. Supports full-text search, category filtering, and tag filtering. Results are paginated with total counts. Each result includes the case title, date, excerpt, and linked category/tag IDs.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Category ID to filter by. Obtain IDs from the list_categories endpoint. |
| `page` | integer | No | Page number for pagination. |
| `per_page` | integer | No | Number of results per page, between 1 and 100. |
| `query` | string | No | Free-text search query matching case titles and content. |
| `tag` | string | No | Tag ID to filter by. Obtain IDs from the list_tags endpoint. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-ukanimalcrueltyfiles-org-api-1f706e45/search_posts \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>","page":"<integer>","per_page":"<integer>","query":"<string>","tag":"<string>"}'
```
