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.

Updated View as Markdown

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.

curl
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

  • media_typestringrequired
    movie or tv. person is accepted but not available yet (422).
  • tmdb_idintegerrequired
    The TMDB id of the title, for example 550.
  • partstring
    What the complaint is about: overview, images or all. Default all.
  • reasonstringrequired
    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

ParameterDefaultDescription
wait300Seconds to wait for the result, 0 to 300. While the report is pending, the call answers at once.
api_keynoneNot 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:

JavaScript
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

FieldTypeNotes
idstringReport id, abr_ and 24 characters. Use it with GET /v1/abuse/{id}.
statusstringpending, running, done or failed, for the part you named.
already_replacedbooleanThe title was replaced by an earlier report. Such a report costs nothing.
overviewobjectstatus plus the text steps: done, failed and total, one step per language.
imagesobjectstatus plus the image steps, the last step included.
cachestringpurged once the title was cleared from the edge cache, else pending.
countedbooleanWhether the report uses one of your weekly reports.
errorobject or nullcode and message when status is failed, for example rejected after the review.
quotaobjectYour 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.

PlanRequests per minuteReports per 7 days
Lite203
Pro406
Pro+12012

Every answer carries your weekly reports in headers:

HeaderMeaning
X-Abuse-LimitReports per 7 days on your plan.
X-Abuse-RemainingReports left now.
X-Abuse-ResetSeconds 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 applies to every call as usual.

Check a report later

RequestReturns
GET /v1/abuse/{id}One report of your account, at once.
GET /v1/abuse/{id}?wait=60The 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/abuseresults 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.

HTTPstatus_codeWhen
40022The body or wait is not valid, or the key was sent in the URL. The message names the problem.
4017The key is missing or wrong.
40236The plan period has ended.
40434The title is not in the catalog, or the report id is unknown.
41322The body is larger than 8 KB.
42222Reports about people are not available yet.
42925All weekly reports are used. Retry-After says when the next one frees. Over the per minute rate gives 429 too.
50346Reports are busy or paused right now. Nothing was counted. Wait for Retry-After and try again.

See 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 and TV series.