Errors
Over REST an error is {"error": {…}} with the HTTP status below; over MCP it is a normal tool result with isError: true, a header line that says it was not charged, and the same JSON. The body says what to do next.
POST /v1/list_posts with {"url":"x:@nasa","limit":99}, HTTP 400, captured from the API on 2026-12-03 (one line on the wire, indented here){
"error": {
"code": "invalid_input",
"charged": false,
"message": "Check the limit argument. No credits charged. Fix the named field; when a hint is present, call the hinted tool with the hinted arguments.",
"field": "limit",
"allowed": "integer 1–25"
}
} isError: trueerror · invalid_input · not charged
{"error":{"code":"invalid_input","charged":false,"message":"Check the limit argument. No credits charged. Fix the named field; when a hint is present, call the hinted tool with the hinted arguments.","field":"limit","allowed":"integer 1–25"}} | Code | HTTP | When | What the agent should do |
|---|---|---|---|
invalid_input | 400 | Arguments fail the schema, a URL fits another tool, or a value is out of range. | Check the tool arguments. |
unsupported_url | 400 | The host is outside the 7 supported platforms, or the URL kind is not readable in v1 (stories, playlists, job pages, TikTok transcripts). | Follow the message. Two examples: a host outside the supported platforms gets the list of supported ones (example.com is not supported. Supported: linkedin.com, x.com, instagram.com, reddit.com, youtube.com, tiktok.com, Google Maps.); a LinkedIn job page gets what to use instead (LinkedIn job pages are not read by URL in v1; use search_jobs with the company and location.). |
not_found | 404 | The platform says the account, post or video does not exist (deleted, renamed, never existed). | Check the URL or handle; do not retry the same input. |
private | 403 | The object exists but is not public (private account, members-only video, login wall). | Only public data can be read; do not retry. |
upstream_failed | 502 | The data provider failed or returned unusable data, and no fallback succeeded. | Retry once after a minute; if it fails again, try later. |
insufficient_credits | 402 | The balance (reason balance), the key's or connection's daily cap (daily_cap), the Free plan's daily limit (free_daily_limit) or, with free credits, the free reads pause (free_paused) does not cover the most this call can cost. | The message ends with what applies to its reason: lower limit to max_affordable_limit; top up at topup_url (balance, free_paused; free_daily_limit: a plan or a pack lifts it); raise the cap on the account page (daily_cap); call again after resumes_at (daily_cap, free_daily_limit, free_paused). |
rate_limited | 429 | Too many concurrent calls for this account, no upstream slot freed within 10 s, or today's limit of runs that ended without a charge. | Wait retry_after_s seconds, then call again. |
unauthorized | 401 | Missing, unknown, revoked or expired API key or access token. | Sign in again (MCP clients re-run OAuth) or use a valid API key. |
account_frozen | 403 | A payment of this account was refunded beyond its balance or disputed. | The human must contact support; no call can succeed until then. |
service_paused | 503 | The service reached its spending limit with the data provider for today or this month; answers from the cache still work. | Call again after resumes_at; nothing was charged. |
internal_error | 500 | A bug on our side. | Retry once; report the request id to support if it repeats. |
An invalid_input error may name the argument in field and what it accepts in allowed, for example "field": "limit" and "allowed": "integer 1–25", so the agent can correct the call without guessing.
A search that returns no items is not an error, so it is charged by the pricing rule like any other answer: a fresh one costs the base price plus the per-item price for every item it read, including items a date filter left out; with nothing read that is the base price alone (0 for some jobs). An answer from the cache costs 1 credit and a replay costs nothing.
Running is not an error
A read that needs longer than 40 s answers running · call again with the same arguments in 20 s · not charged yet. The identical call returns the result and is charged once.
Cache windows
A repeat read inside its window comes from the cache and costs 1 credit; max_age (seconds) can only shorten the window, and 0 forces a fresh read.
| Kind of read | Window |
|---|---|
| profile | 6 hours |
| posts | 15 minutes |
| post | 15 minutes |
| search | 15 minutes |
| transcript | 30 days |
| jobs | 1 hour |
The social web is one tool call away.
Fetch https://trawlmcp.com/setup.md and follow it to set me up with Trawl.