Instant Pages
/v1/pages/instant_pagesOn this page
Price
- Live
- $0.00011
- Standard fetch
- $0.00011
- Rendered fetch
- $0.0011
- Protected fetch
- $0.003
usd.live is the Standard-level price. by_level is the price at the level that returned the page.
Description
Send up to 100 tasks, one URL each. Every task fetches its page at the cheapest level that works and returns one item in result[0].items.
Everything is read from the HTML document itself. We don't download images, scripts or stylesheets, so their sizes are 0, and browser timings, layout shift and spell checks are null. onpage_score is our own weighted score of the checks.
Billing. Billed by the fetch level that returned the page: Standard, Rendered or Protected (see the price table). A page that no allowed level could fetch, or that answered 5xx, costs $0 and comes back as 40102 with the reason. Redirect and 4xx answers are delivered pages and are billed.
Accepted and ignored: load_resources, check_spell, validate_micromarkup, custom_user_agent, accept_language, the browser_* fields, ip_pool_for_scan, switch_pool, store_raw_html, disable_cookie_popup, enable_xhr, return_despite_timeout and checks_threshold.
Request
- Endpoint
- POST https://api.dataforgaio.com/v1/pages/instant_pages
- Authentication
- HTTP Basic auth: any login, with your
dg_API key as the password. ABearerheader with the key also works. Create a key. - Body
- JSON array of task objects, up to 100 tasks per requestMode: Live
Fields (per task)
- Absolute http or https URL of the page, up to 2,000 characters.Max
2000Examplehttps://summitrunning.example/trail-shoes - Render the page in a browser before reading it. The fetch starts at the Rendered level, so
max_levelmust berenderedorprotected. Also accepts the string"true".DefaultfalseExamplefalse - Same as
enable_javascript.DefaultfalseExamplefalse - Not supported. A task that sends it fails with 40501 and isn't billed.
- Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it.
falsestops at the Standard level and returns the failure at $0. Also accepts"true","false",1and0.DefaulttrueExampletrue - The highest fetch level Auto-upgrade may use.
renderednever uses the Protected level.DefaultprotectedOne ofstandardrenderedprotectedExamplerendered - The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Levels whose price is above it are skipped; if even the cheapest allowed level costs more, the task fails with 40501 at $0.Min
0Example0.002 - Accept a cached result up to this many seconds old, 0 to 86,400.
0always fetches fresh. Pages are always fetched fresh: this field is accepted and has no effect here.Min0Max86400Example3600
Response
Shape: v3 task envelope. Expand a field to see its children; every field has a link anchor.
- versionstringResponse format version, for example
0.1.20261203.Example0.1.20261203 - status_codeintegerStatus of the request as a whole. 20000 when it was accepted; each task has its own
status_code.Example20000 - status_messagestringPlain-language request status.Example
Ok. - timestringTime the whole request took, for example
1.8410 sec.Example0.4210 sec. - costnumberSum of every task's
cost, in USD.Example0.00011 - tasks_countintegerNumber of tasks in
tasks.Example1 - tasks_errorintegerTasks whose
status_codeis 40000 or higher.Example0 - tasksarray<object>One entry per task you sent, in the order you sent them.
Show 162 child fieldsHide child fields
- idstringTask id (a UUID). For task_post, use it with task_get.Example
8cbb5b5c-8e15-5c82-9959-45f93cdad009 - status_codeintegerOutcome of this task. 20000 means data came back; 20100 means queued. See the status codes table.Example
20000 - status_messagestringPlain-language status. For 40501 it names the field that failed.Example
Ok. - timestringTime this task took on our side, for example
1.8203 sec.Example0.4210 sec. - costnumberWhat this task was charged, in USD. 0 when it returned no data.Example
0.00011 - result_countintegerNumber of entries in
result.Example1 - patharray<string>The route this task ran on, split into segments, starting with
v1.Example["v1","pages","instant_pages"] - dataobjectThe task you sent, echoed back. Utility routes echo their query parameters.Example
{"url":"https://summitrunning.example/trail-shoes","enable_javascript":false} - resultarray<object>|nullThe data for this task. Null when the task returned an error.
Show 148 child fieldsHide child fields
- crawl_progressstringAlways
finished: the page is fetched within the call.Examplefinished - crawl_statusobjectCounters for the one-page crawl.
Show 3 child fieldsHide child fields
- max_crawl_pagesintegerAlways 1.Example
1 - pages_in_queueintegerAlways 0.Example
0 - pages_crawledintegerAlways 1.Example
1
- items_countintegerNumber of entries in
items. Always 1.Example1 - itemsarray<object>The page.
Show 141 child fieldsHide child fields
- resource_typestring
htmlfor a page that answered 2xx. A redirect returnsredirectand a 4xx/5xx pagebroken; those items carry only the fields up torelative_url_lengthplusfetch_timing,checks(status checks only),resource_errorsandlast_modified.One ofhtmlredirectbrokenExamplehtml - status_codeintegerHTTP status the page answered with.Example
200 - locationstring|nullThe
Locationheader, for redirects. - urlstringThe final URL after redirects.Example
https://summitrunning.example/trail-shoes - sizeintegerSize of the HTML in bytes.Example
1734 - encoded_sizeintegerBytes on the wire:
Content-Lengthwhen sent, elsesize.Example1734 - total_transfer_sizeintegerSame as
encoded_size: sub-resources aren't loaded.Example1734 - fetch_timestringWhen we fetched the page,
YYYY-MM-DD HH:MM:SS +00:00.Example2026-12-03 10:42:18 +00:00 - cache_controlobjectWhat the
Cache-Controlheader allows. - content_encodingstring|nullThe
Content-Encodingheader, for examplegzip. - media_typestringMedia type from
Content-Type, for exampletext/html.Exampletext/html - serverstring|nullThe
Serverheader.Examplenginx - is_resourcebooleanAlways false: the item is the page itself.Example
false - url_lengthintegerLength of the final URL in characters.Example
41 - relative_url_lengthintegerLength of the path and query in characters.Example
12 - metaobjectWhat the page declares and contains.
Show 53 child fieldsHide child fields
- titlestring|nullText of the first
<title>.ExampleTrail running shoes: pricing and fit | Summit Running Co. - charsetinteger|nullCode page of the declared charset, for example 65001 for UTF-8.Example
65001 - followbooleanFalse when the robots meta tag or
X-Robots-Tagsaysnofollowornone.Exampletrue - generatorstring|nullThe generator meta tag.
- descriptionstring|nullThe meta description.Example
Trail running shoes from Summit Running Co., with free gait analysis and 60-day returns. - faviconstring|nullAbsolute URL of the declared favicon.Example
https://summitrunning.example/favicon.ico - meta_keywordsstring|nullThe meta keywords.Example
trail running shoes, gait analysis - canonicalstring|nullAbsolute canonical URL.Example
https://summitrunning.example/trail-shoes - internal_links_countintegerLinks to the same site (www ignored).Example
4 - external_links_countintegerLinks to other sites.Example
1 - inbound_links_countintegerAlways 0: one page can't see links to itself.Example
0 - images_countintegerNumber of
<img>tags.Example1 - images_sizeintegerAlways 0: images aren't downloaded.Example
0 - scripts_countintegerNumber of external scripts.Example
1 - scripts_sizeintegerAlways 0: scripts aren't downloaded.Example
0 - stylesheets_countintegerNumber of stylesheet links.Example
1 - stylesheets_sizeintegerAlways 0: stylesheets aren't downloaded.Example
0 - title_lengthintegerTitle length in characters.Example
57 - description_lengthintegerDescription length in characters.Example
88 - Scripts in
<head>without async, defer ortype=module.Example0 - Stylesheets in
<head>for all or screen media.Example1 - Not measured. Always null.
- meta_titlestring|nullThe
<meta name="title">content. - contentobjectText statistics for the visible text.
Show 13 child fieldsHide child fields
- plain_text_sizeintegerVisible text length in characters.Example
349 - plain_text_ratenumberVisible text length divided by HTML size.Example
0.2013 - plain_text_word_countintegerWords in the visible text.Example
61 - automated_readability_indexnumber|nullAutomated Readability Index of the visible text.Example
7.1198 - coleman_liau_readability_indexnumber|nullColeman-Liau index of the visible text.Example
8.3816 - Not computed. Always null.
- flesch_kincaid_readability_indexnumber|nullFlesch reading-ease score of the visible text (higher reads easier).Example
79.0185 - smog_readability_indexnumber|nullSMOG index of the visible text.Example
8.0765 - description_to_content_consistencynumber|nullShare of the description's keywords found in the text, 0 to 1.Example
1 - title_to_content_consistencynumber|nullShare of the title's keywords found in the text, 0 to 1.Example
0.6667 - meta_keywords_to_content_consistencynumber|nullShare of the meta keywords found in the text, 0 to 1.Example
1
- spellnullSpell checks aren't supported. Always null.
- page_timingobjectFetch timing. Browser paint timings aren't measured and are null.
Show 12 child fieldsHide child fields
- Not measured. Always null.
- dom_completenullNot measured. Always null.
- Not measured. Always null.
- Not measured. Always null.
- connection_timenullNot measured. Always null.
- Not measured. Always null.
- Not measured. Always null.
- waiting_timenullNot measured. Always null.
- download_timenullNot measured. Always null.
- duration_timeintegerOur wall-clock fetch time in milliseconds.Example
0 - fetch_startintegerAlways 0.Example
0 - fetch_endintegerEqual to
duration_time.Example0
- onpage_scorenumberOur weighted score of the checks, 0 to 100. Each failed check subtracts its weight (for example 10 for no title, 30 for a 4xx).Example
95 - total_dom_sizeintegerNumber of elements in the document.Example
42 - Custom scripts aren't supported. Always null.
- Always null.
- resource_errorsobjectHTML errors and warnings. Not checked yet, so both lists are empty.
- broken_resourcesnullSub-resources aren't loaded. Always null.
- broken_linksnullLinks aren't followed. Always null.
- duplicate_titlebooleanAlways false: one page has nothing to duplicate.Example
false - duplicate_descriptionbooleanAlways false.Example
false - duplicate_contentbooleanAlways false.Example
false - click_depthintegerAlways 0: the page is the crawl's start.Example
0 - checksobjectPass/fail checks on the page. True means the condition is present.
Show 52 child fieldsHide child fields
- no_content_encodingbooleanThe response wasn't compressed.Example
true - high_loading_timebooleanThe fetch took longer than 3,000 ms.Example
false - is_redirectbooleanThe URL answered with a redirect.Example
false - is_4xx_codebooleanThe URL answered 4xx.Example
false - is_5xx_codebooleanThe URL answered 5xx.Example
false - is_brokenbooleanThe URL answered 4xx or 5xx.Example
false - is_wwwbooleanThe host starts with
www..Examplefalse - is_httpsbooleanThe URL uses https.Example
true - is_httpbooleanThe URL uses plain http.Example
false - high_waiting_timebooleanNot measured. Always false.Example
false - has_micromarkupbooleanThe page has JSON-LD, microdata or RDFa.Example
true - has_micromarkup_errorsbooleanA JSON-LD block didn't parse.Example
false - no_doctypebooleanThe document has no
<!doctype>.Examplefalse - has_html_doctypebooleanThe doctype is
<!doctype html>.Exampletrue - canonicalbooleanThe page declares a canonical URL.Example
true - no_encoding_meta_tagbooleanNo charset is declared in a meta tag.Example
false - no_h1_tagbooleanThe page has no
<h1>.Examplefalse - https_to_http_linksbooleanAn https page links to http URLs.Example
false - size_greater_than_3mbbooleanThe HTML is larger than 3 MB.Example
false - meta_charset_consistencybooleanThe meta charset matches the
Content-Typecharset (true when either is missing).Exampletrue - has_meta_refresh_redirectbooleanThe page has a
<meta http-equiv="refresh">.Examplefalse - The
<head>has scripts without async/defer or screen stylesheets.Exampletrue - low_content_ratebooleanVisible text is under 10% of the HTML size.Example
false - high_content_ratebooleanVisible text is over 90% of the HTML size.Example
false - low_character_countbooleanVisible text is under 1,024 characters.Example
true - high_character_countbooleanVisible text is over 256,000 characters.Example
false - small_page_sizebooleanThe HTML is under 1 KB.Example
false - large_page_sizebooleanThe HTML is over 1 MB.Example
false - low_readability_ratebooleanThe Flesch reading-ease score is under 15.Example
false - irrelevant_descriptionbooleanUnder 20% of the description's keywords appear in the page text.Example
false - irrelevant_titlebooleanUnder 20% of the title's keywords appear in the page text.Example
false - irrelevant_meta_keywordsbooleanUnder 20% of the meta keywords appear in the page text.Example
false - title_too_longbooleanThe title is longer than 65 characters.Example
false - has_meta_titlebooleanThe page has a
<meta name="title">.Examplefalse - title_too_shortbooleanThe title is 1 to 29 characters long.Example
false - duplicate_title_tagbooleanThe page has more than one
<title>.Examplefalse - no_image_altbooleanAn image has no alt text.Example
false - no_image_titlebooleanAn image has no title attribute.Example
true - no_descriptionbooleanThe page has no meta description.Example
false - no_titlebooleanThe page has no title.Example
false - no_faviconbooleanThe page declares no favicon.Example
false - seo_friendly_urlbooleanAll four
seo_friendly_url_*checks pass.Exampletrue - flashbooleanThe page embeds Flash.Example
false - framebooleanThe page uses frames or iframes.Example
false - lorem_ipsumbooleanThe text contains "lorem ipsum".Example
false - has_misspellingnullSpell checks aren't supported. Always null.
- The path uses only lowercase letters, digits and
-_/.~%.Exampletrue - The URL has no query string.Example
true - A title keyword appears in the path (true for the home page).Example
true - The path and query are 120 characters or fewer.Example
true
- last_modifiedobjectLast-modified dates the page declares.
- receipt_idstring|nullId of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks.Example
744695e7-dd8a-5016-bb2b-2d314ea9ef81 - fetch_levelstring|nullThe fetch level that delivered the data:
standard,renderedorprotected. Null when the route doesn't fetch pages or nothing was fetched.One ofstandardrenderedprotectedExamplestandard - upgradedbooleanTrue when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that.Example
false - upgrade_reasonstring|nullWhy the request upgraded, in our level names and HTTP facts, for example
403 at standard; challenge page at rendered. Null when it didn't upgrade. - cache_hitbooleanTrue when the data came from the shared result cache instead of a new fetch.Example
false
Errors
| Code | When |
|---|---|
| 40100 | No credentials were sent (HTTP 401). |
| 40101 | The API key is missing, malformed or revoked (HTTP 401). |
| 40202 | Too many requests for this key (HTTP 429, with Retry-After). |
| 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). |
| 40006 | More than 100 tasks in one POST (HTTP 400). |
| 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). |
| 40501 | A task field failed validation. Returned per task; other tasks still run. |
| 50000 | The task returned no data because of an error on our side or upstream. $0. |
| 40102 | No allowed fetch level got the page, or it answered 5xx. The message names the level and the HTTP facts. $0. |
| 40501 | url isn't an absolute http(s) URL, custom_js was sent, enable_javascript needs a higher max_level, or max_cost is below the cheapest allowed level. |
Migrating
Replaces DataForSEO /v3/on_page/instant_pages. The request body and response envelope match: change the base URL to https://api.dataforgaio.com/v1 and use your dg_ key as the password.