Errors and limits
Error codes, HTTP statuses and request limits.
Subscribe on RapidAPI{ "success": false, "error": { "code": "URL_BLOCKED", "message": "The URL is not allowed.", "details": null } }| Code | HTTP | Meaning |
|---|---|---|
INVALID_REQUEST | 400 | The request body is invalid |
INVALID_URL | 400 | The URL cannot be parsed, is too long, or contains credentials |
UNSUPPORTED_PROTOCOL | 400 | Not http or https |
UNAUTHORIZED | 401 | No valid credentials: call the API through your RapidAPI subscription |
URL_BLOCKED | 422 | The URL is not publicly reachable or uses a non-standard port |
UNSUPPORTED_CONTENT | 422 | The URL is not an HTML page |
EXTRACTION_FAILED | 422 | No title could be found; details.partial has what was found |
FETCH_FAILED | 422 | DNS failure, network error, 404/410/5xx, or too many redirects |
BOT_BLOCKED | 422 | The site blocked automated access (only with allowPartial: false; otherwise you get a partial preview) |
RENDER_FAILED | 422 | Rendering the page failed and no usable result exists |
TIMEOUT | 422 | The page took too long |
NOT_FOUND | 404 | Unknown endpoint |
RATE_LIMITED | 429 | Usage limit exceeded. Wait and retry |
INTERNAL_ERROR | 500 | Unexpected error |
A fetch failure (FETCH_FAILED, BOT_BLOCKED, TIMEOUT) means the page could not be retrieved; an extraction
failure (EXTRACTION_FAILED) means it was retrieved but had no usable title.
Problems with the page you asked for (unreachable, blocked, too slow, or without usable metadata) return 422.
A 5xx status only ever means a problem on our side; retry later.
Limits
| Limit | Value |
|---|---|
| Page load time | 8 seconds (rendered pages: 25 seconds) |
| Page size | 2 MB; larger pages are read up to that size |
| Redirects | Up to 5 |
| Ports | Standard ports (80 and 443) |
| Batch size | 10 URLs by default |
| Caching | Successful previews are cached for 1 hour; send options.cache: false for a fresh result |
MCP
Use Link Preview as tools in AI assistants.
Create link previews for several URLs POST
Preview up to 10 URLs in one request, with the same rules and options as a single preview. A failed URL never fails the batch: each entry in `results` has either `data` or `error`, in input order. Duplicate URLs are processed once. Page rendering is limited per batch; beyond that limit the standard result is returned.