Fetch levels and Auto-upgrade
On this page
Some pages and searches come back on the first plain fetch. Others need a browser render, or more. Auto-upgrade moves a request up only when the level below didn't get the data, bills the level that worked, and tells you why.
The three fetch levels
| Level | What it is | Page price |
|---|---|---|
standard | A plain HTTP fetch. Included in every endpoint's list price. | $0.00011 |
rendered | The page loaded and run in a headless browser, for JavaScript-heavy pages. | $0.0011 (the standard price plus a $0.00099 rendering add-on) |
protected | Our highest level, for pages that block the levels below. | $0.003 |
Page prices apply to /v1/pages/instant_pages, /v1/pages/content_parsing/live and Crawl API pages. Other endpoints use the levels with their own prices:
| Endpoint | Standard | Rendered | Protected |
|---|---|---|---|
my_business_info (per profile) | $0.00135 | $0.00234 | $0.003 |
instant_pages, content_parsing, Crawl API (per page) | $0.00011 | $0.0011 | $0.003 |
| Products, photos, Meta ads, Yelp ads | Flat price per unit at every level | ||
| Google organic and Google Maps SERP | No levels. See SERP upgrades. |
If no level gets the data, the request costs $0.
How Auto-upgrade decides
- The request starts at the lowest level it allows. If the same site needed a higher level recently, it may start there, so you don't pay again for steps that failed before. You're billed only the level that delivered.
- If the response is a block (an HTTP 403 or 429, a challenge page, a captcha, an access-denied screen), an empty or garbled body, or the fetch fails, the request moves up, as long as
auto_upgrade,max_levelandmax_costallow it. A JavaScript app shell on a plain fetch goes straight to Rendered. A 404, a 410, a login wall or a plain 5xx is the site's real answer and isn't upgraded. - The first level that returns the page is the one we bill. Failed attempts below it aren't billed.
- If every allowed level fails, the task fails at $0 and the error message says what happened at each level.
What the response tells you
Every task reports how it was fetched:
| Field | Example | Meaning |
|---|---|---|
fetch_level | "rendered" | The level that delivered the data. null when the endpoint has no levels (Google SERP) or nothing was delivered. |
upgraded | true | The task cost more than the included price because it needed a higher level (or the live SERP source). |
upgrade_reason | "403 at standard; challenge page at standard" | What happened at each lower level, in our level names and HTTP facts only. |
cost | 0.0011 | What the task cost. |
Crawl API receipts add cost_breakdown: {"base": 0.00011, "upgrade": 0.00099}.
Controlling it
| Control | Default | Effect |
|---|---|---|
auto_upgrade | true | false stops at the included level. A block there is returned as an error at $0. |
max_level | protected | The ceiling. rendered never uses Protected; standard never renders. |
max_cost | none | The most one task may cost, in USD. Levels priced above it are skipped. If even the included level costs more, the task fails with 40501 before anything is fetched. |
[
{
"url": "https://example.com/pricing",
"auto_upgrade": true,
"max_level": "rendered",
"max_cost": 0.002
}
]This task may be fetched at Standard ($0.00011) or Rendered ($0.0011), never Protected.
Notes per endpoint:
- Pages:
enable_javascript: true(orenable_browser_rendering: true) starts at Rendered, so it needsmax_levelofrenderedorprotected. - Crawl API:
"engine": "rendered"(or"render_js": true) starts at Rendered. - Photos, Meta ads, Yelp ads:
max_costcaps the number of units returned.max_cost: 0.009on photos returns at most 10 images. max_coston SERP: an upgrade to the live price is allowed only if the live price for the requested depth fits withinmax_cost.
SERP upgrades
Google organic and Google Maps results come from several sources per mode. If our included sources for the standard or priority queue fail, Google organic falls back to our live source. That counts as an upgrade: upgraded: true, an upgrade_reason such as "HTTP 503 at the included level; served at the live level", and the task is billed at the live price ($0.0018 per 10 results). With auto_upgrade: false, we retry the included source once instead and a failure costs $0.
Google Maps has no live fallback yet, so a Maps task that every source fails costs $0. Bing organic is fetched through the page levels above; when a Bing page needed a level above Standard, the task is billed at the live price.
Wallet reservation
Before a request runs, we add up the most each task could cost: its max_cost if you set one, otherwise the price at max_level (or the live price for a queued SERP task that could fall back). If your balance doesn't cover that total, the request returns 40210 and nothing runs. The charge itself settles at the level that delivered. Setting max_cost or max_level lowers the reservation, which helps when your balance is low.