# Abuse reports

> POST /v1/abuse answers an abuse or takedown complaint about a movie or TV show you display. After a review, amodb writes a new overview in all 14 languages, removes the old images and clears its cache. One call can wait up to 300 seconds. Lite gets 3 reports per 7 days, Pro 6 and Pro+ 12.

## Endpoint

`POST /v1/abuse`

```bash
curl -X POST "https://api.amodb.dev/v1/abuse" \
  --max-time 330 \
  -H "Authorization: Bearer $AMODB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"media_type":"movie","tmdb_id":550,"part":"all","reason":"The rights holder sent a takedown notice for the poster and the plot summary."}'
```

Response:

```json
{
  "id": "abr_k3v9x2m7q1w8e5r4t6y0u2i9",
  "status": "done",
  "media_type": "movie",
  "tmdb_id": 550,
  "part": "all",
  "reason": "The rights holder sent a takedown notice for the poster and the plot summary.",
  "created_at": "2026-10-19T09:12:04.512Z",
  "finished_at": "2026-10-19T09:16:41.087Z",
  "already_replaced": false,
  "overview": {
    "status": "done",
    "done": 14,
    "failed": 0,
    "total": 14
  },
  "images": {
    "status": "done",
    "done": 9,
    "failed": 0,
    "total": 9
  },
  "cache": "purged",
  "counted": true,
  "error": null,
  "quota": {
    "limit": 3,
    "used": 1,
    "remaining": 2,
    "reset_seconds": 604523
  }
}
```

## When to send an abuse report

If you show amodb data in an app or on a website, you can sometimes receive an abuse or takedown complaint about it: a rights holder who objects to a poster, or a complaint about a plot summary. For these cases, `POST /v1/abuse` has amodb replace the text and the images of that one title.

- The overview and tagline are written again from public facts about the title, in all 14 languages.
- The posters, backdrops, season posters and episode stills from before are removed from every amodb answer, and img.amodb.dev stops serving those files.
- Every cached answer that shows the title is cleared, so your next request gets the new data.

The change applies to every amodb customer, so one report also protects everyone else who shows the title. That is why amodb reviews each new report before the title is changed. Fetch the title again after the report and replace your own copy, for example the cached page or the image you stored.

A report does not decide who is right about a complaint. It removes the material the complaint is about from amodb answers.

## Send a report

`POST https://api.amodb.dev/v1/abuse` takes your usual key in the `Authorization: Bearer` header and a JSON body that names one title. Send it from your server: the endpoint does not accept a key in the URL and does not answer browser requests from other sites.

```bash
curl -X POST "https://api.amodb.dev/v1/abuse" \
  --max-time 330 \
  -H "Authorization: Bearer $AMODB_KEY" \
  -H "Content-Type: application/json" \
  -d '{"media_type":"tv","tmdb_id":1399,"part":"images","reason":"A photographer says the backdrop is their work."}'
```

### Body fields

| Field        | Type    | Required | Description                                                                |
| ------------ | ------- | -------- | -------------------------------------------------------------------------- |
| `media_type` | string  | yes      | `movie` or `tv`. `person` is accepted but not available yet (422).         |
| `tmdb_id`    | integer | yes      | The TMDB id of the title, for example `550`.                               |
| `part`       | string  | no       | What the complaint is about: `overview`, `images` or `all`. Default `all`. |
| `reason`     | string  | yes      | What the complaint says, 3 to 2000 characters. We keep it with the report. |

The body may be at most 8 KB. `type` works for `media_type` and `id` for `tmdb_id`.

Every report replaces both the text and the images of the title. `part` says which one you need: the report is done as soon as that part is replaced.

### Query parameters

| Parameter | Default | Description                                                                                      |
| --------- | ------- | ------------------------------------------------------------------------------------------------ |
| `wait`    | `300`   | Seconds to wait for the result, 0 to 300. While the report is pending, the call answers at once. |
| `api_key` | none    | Not accepted here. Send the key in the `Authorization: Bearer` header.                           |

## What happens after a report

1. amodb checks the key, your weekly reports and the title. If the title was already replaced in the last 30 days, your report follows that work, is done or running at once and costs nothing.
2. Otherwise the report is `pending` until amodb has reviewed it. The call answers at once with HTTP 202.
3. After the review the work starts. The new English overview comes first, then the 13 other languages. A report about `overview` is done at this point.
4. Each image is replaced, then a last step removes every image from before. A report about `images` is done after this step. A report about `all` waits for both.
5. amodb clears the title from its edge cache each time a part is done, and img.amodb.dev stops serving the old image files within a few minutes after the last step.

The new text comes first. The images take longer, because amodb replaces them one at a time. If a wait ends first, the answer says `running` with the progress so far, and the work goes on. Ask again with the report id.

## Waiting up to 300 seconds

While you wait on a report, the answer is HTTP 200 and starts at once. amodb writes a space every 10 seconds to keep the connection open, then the report JSON when the work is done or the wait ends. Spaces before JSON are valid, so the usual JSON readers work. Set your client timeout above 300 seconds, for example 330.

At most 2 calls of your account can wait at the same time; a third call answers at once. Some platforms close requests after 10 or 60 seconds, for example serverless functions. There, send `wait=0` and ask for the report again with a shorter wait:

```js
const headers = { Authorization: `Bearer ${process.env.AMODB_KEY}`, 'Content-Type': 'application/json' };

let res = await fetch('https://api.amodb.dev/v1/abuse?wait=0', {
  method: 'POST',
  headers,
  body: JSON.stringify({ media_type: 'movie', tmdb_id: 550, part: 'overview', reason: 'Complaint about the plot summary.' }),
});
let report = await res.json();
while (report.status === 'pending' || report.status === 'running') {
  res = await fetch(`https://api.amodb.dev/v1/abuse/${report.id}?wait=50`, { headers });
  report = await res.json();
}
console.log(report.status, report.overview, report.images);
```

## Example response

```json
{
  "id": "abr_k3v9x2m7q1w8e5r4t6y0u2i9",
  "status": "done",
  "media_type": "movie",
  "tmdb_id": 550,
  "part": "all",
  "reason": "The rights holder sent a takedown notice for the poster and the plot summary.",
  "created_at": "2026-10-19T09:12:04.512Z",
  "finished_at": "2026-10-19T09:16:41.087Z",
  "already_replaced": false,
  "overview": { "status": "done", "done": 14, "failed": 0, "total": 14 },
  "images": { "status": "done", "done": 9, "failed": 0, "total": 9 },
  "cache": "purged",
  "counted": true,
  "error": null,
  "quota": { "limit": 3, "used": 1, "remaining": 2, "reset_seconds": 604523 }
}
```

### Response fields

| Field              | Type           | Notes                                                                                          |
| ------------------ | -------------- | ---------------------------------------------------------------------------------------------- |
| `id`               | string         | Report id, `abr_` and 24 characters. Use it with `GET /v1/abuse/{id}`.                         |
| `status`           | string         | `pending`, `running`, `done` or `failed`, for the part you named.                              |
| `already_replaced` | boolean        | The title was replaced by an earlier report. Such a report costs nothing.                      |
| `overview`         | object         | `status` plus the text steps: `done`, `failed` and `total`, one step per language.             |
| `images`           | object         | `status` plus the image steps, the last step included.                                         |
| `cache`            | string         | `purged` once the title was cleared from the edge cache, else `pending`.                       |
| `counted`          | boolean        | Whether the report uses one of your weekly reports.                                            |
| `error`            | object or null | `code` and `message` when `status` is `failed`, for example `rejected` after the review.       |
| `quota`            | object         | Your weekly reports: `limit`, `used`, `remaining`, and `reset_seconds` until a used one frees. |

## Reports per plan

Each account gets a number of reports in any 7 days. The window rolls: a report counts for 7 days from the moment you sent it. All keys of an account share the same reports, and a pending report counts too.

| Plan | Requests per minute | Reports per 7 days |
| ---- | ------------------- | ------------------ |
| Lite | 20                  | 3                  |
| Pro  | 40                  | 6                  |
| Pro+ | 120                 | 12                 |

Every answer carries your weekly reports in headers:

| Header              | Meaning                                                 |
| ------------------- | ------------------------------------------------------- |
| `X-Abuse-Limit`     | Reports per 7 days on your plan.                        |
| `X-Abuse-Remaining` | Reports left now.                                       |
| `X-Abuse-Reset`     | Seconds until a used report frees, 0 when none is used. |

A waiting answer sends these headers when it starts. The `quota` object in the body is the current one.

These reports are not counted: a title the catalog does not hold, a person, a report refused because too many run at the same moment, a title replaced in the last 30 days, a report not accepted in the review or not reviewed within 7 days, and a regeneration that failed. A second report for the same title and part while the first one is open returns the first report and costs nothing. The per minute [rate limit](https://amodb.dev/rate-limits/) applies to every call as usual.

## Check a report later

| Request                      | Returns                                                                                                            |
| ---------------------------- | ------------------------------------------------------------------------------------------------------------------ |
| `GET /v1/abuse/{id}`         | One report of your account, at once.                                                                               |
| `GET /v1/abuse/{id}?wait=60` | The same, after waiting up to 60 seconds for it to change. Any wait from 0 to 300 works, also while it is pending. |
| `GET /v1/abuse`              | `results` with your reports of the last 7 days, and `quota`.                                                       |

A report id of another account answers 404, the same as an id that does not exist.

## Errors

Errors use the TMDB error body, with `success` false and a `status_code`.

| HTTP | status_code | When                                                                                                             |
| ---- | ----------- | ---------------------------------------------------------------------------------------------------------------- |
| 400  | 22          | The body or `wait` is not valid, or the key was sent in the URL. The message names the problem.                  |
| 401  | 7           | The key is missing or wrong.                                                                                     |
| 402  | 36          | The plan period has ended.                                                                                       |
| 404  | 34          | The title is not in the catalog, or the report id is unknown.                                                    |
| 413  | 22          | The body is larger than 8 KB.                                                                                    |
| 422  | 22          | Reports about people are not available yet.                                                                      |
| 429  | 25          | All weekly reports are used. `Retry-After` says when the next one frees. Over the per minute rate gives 429 too. |
| 503  | 46          | Reports are busy or paused right now. Nothing was counted. Wait for `Retry-After` and try again.                 |

See [errors](https://amodb.dev/errors/) for the other codes.

## Practical notes

- Send one report per title. Two reports for the same title and part while it is open return the same report.
- After a report, read the title again and update what you keep on your side: cached pages, stored text and downloaded images.
- Lists, search results, recommendations and collections that show the title are cleared from the edge cache together with the title.
- Keep the report id with your answer to the complaint. `GET /v1/abuse/{id}` shows when the title was replaced.
- Use reports for complaints, not to refresh data. Details already follow the catalog, see [movies](https://amodb.dev/movies/) and [TV series](https://amodb.dev/tv-series/).

## Questions and answers

### When should I send an abuse report?

When someone complains about the text or an image of a title that you show from amodb, for example a rights holder who sends a takedown notice for a poster. Send one report per title. The report replaces that material for every amodb customer, not only for you.

### Why is my report pending?

amodb checks every new report before the title is changed, because the change applies to all customers. The report waits with status pending until then. Ask for it again with GET /v1/abuse/{id}, or wait on it with the wait parameter.

### What does the new text look like?

A new overview and tagline written from public facts about the title, such as its name, year, genres and runtime. It does not reuse the sentences of the old text. It is made in all 14 languages, the English one first.

### What happens to the images?

Every poster, backdrop, season poster and episode still from before is removed from amodb answers, and img.amodb.dev stops serving those files. amodb then shows only images under a free licence, from Wikimedia Commons or TVmaze, when the catalog has one. Otherwise poster_path and backdrop_path are null.

### Does a report always use one of my weekly reports?

No. Reports that start nothing are not counted: a title outside the catalog, a person, a busy moment on our side, a title that was replaced earlier, a report that was not accepted in the review, or a regeneration that failed. The counted field of the report tells you.

### Can I report a person?

Not yet. A report about a person answers HTTP 422 and is not counted. Reports about movies and TV shows work today.

### Why does the answer start with spaces?

While you wait on a report, amodb sends a space every 10 seconds so the connection stays open, then the JSON. Spaces before JSON are valid, so res.json() in JavaScript and r.json() in Python read it as usual.

## Related pages

- [TMDB API error codes and fixes](https://amodb.dev/errors/): TMDB API error codes on amodb: 10 HTTP and status_code pairs with messages and fixes, retry rules, the OMDb error shape and a checklist for a key not working.
- [TMDB API rate limit and amodb rate limits](https://amodb.dev/rate-limits/): The TMDB API rate limit is about 40 requests per second per IP and may change. amodb caps each account at 20, 40 or 120 a minute, with headers and Retry-After.
- [TMDB image sizes and the image base URL](https://amodb.dev/images/): TMDB image sizes on img.amodb.dev: w92 to original with widths, heights and best uses. One /t/p/ URL pattern, no key, 30 day cache, 0 requests counted.
- [Movie details API: get a movie by id](https://amodb.dev/movies/): Movie details API at GET /3/movie/{movie_id}: TMDB v3 JSON in 14 languages. Add up to 20 append_to_response values, ratings included, in one request.
- [TMDB TV API: get a TV series by id](https://amodb.dev/tv-series/): TMDB TV API on amodb: GET /3/tv/{series_id} returns names, status, seasons, networks and next episode in TMDB v3 JSON. Merge up to 20 sub-resources per call.
- [amodb acceptable use policy](https://amodb.dev/acceptable-use/): The amodb acceptable use policy: apps, bots and caching, no amodb logo but third party credits, no extra charge for commercial use, no key sharing or resale.

Updated: 2026-10-19. Source: https://amodb.dev/abuse-reports/
