Page rendering
When a page is rendered to read its metadata, and what happens if it cannot be read.
Subscribe on RapidAPIMost pages are read with a standard request. When that does not return usable metadata, the API renders the page
once, the way a browser would, and reads the result. You don't need to do anything: this happens automatically
with the default renderJs: "auto".
When a page is rendered
fetch.fallbackReason | When | If rendering does not help |
|---|---|---|
bot_challenge | The site answered with an anti-bot challenge | A partial preview, or BOT_BLOCKED with allowPartial: false |
http_403 / http_429 | The site refused the request | The page's own metadata if it had any, otherwise a partial preview (or BOT_BLOCKED) |
js_shell | The page needs JavaScript to show its content | The standard result is returned |
missing_metadata | No title or description, and the content appears to load dynamically | The standard result is returned |
generic_metadata | Placeholder metadata such as React App | The standard result is returned |
empty_document | A nearly empty page | The standard result is returned |
requested | You sent renderJs: "always" | The standard result is returned |
Pages are never rendered after a 404, 410 or other error, for non-HTML content, or for URLs that are not allowed. Normal pages with little metadata are returned as they are.
No access bypass
Rendering is not a way around CAPTCHAs, logins or other access controls. If a site still blocks access, the API
returns a partial preview with what is already known, or BOT_BLOCKED when you send allowPartial: false.
Controlling rendering
renderJs | Behaviour |
|---|---|
auto (default) | Render only when it is needed to read the page's metadata |
never | Never render; fastest and most predictable |
always | Render first; if rendering fails, the standard result is returned |
Each request renders a page at most once. fetch.method tells you how the page was read (http or browser),
and fetch.browserError explains why rendering failed when it was attempted.