Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.
Submit a page URL and extraction configuration to retrieve structured data from a JavaScript-rendered SPA. You can use custom field definitions, a built-in template, or inspect mode to discover what data is available on a page.
string
Full HTTP(S) URL for the target SPA using port 80 or 443. Required for most templates. For google-trends-explore, prefer the keyword field instead. SimilarWeb requires a full page URL, not a bare domain.
string
Recommended for google-trends-explore. Provide 1 to 5 unique, non-empty comma-separated keywords, each at most 100 Unicode characters (for example, "adspower,playwright"). The server builds the canonical Trends URL automatically. Explicit null, numeric, or empty-string values return INVALID_KEYWORD and never fall back to url.
string
Extraction mode. Defaults to "extract".
Value
Behaviour
"extract"
Runs field or template extraction and returns structured data.
"inspect"
Returns DOM and network candidates discovered on the page along with a suggestedPlan you can copy into a future extract request.
string
Built-in site template ID. When provided, fields are supplied by the template rather than your request. Available template IDs:
"similarweb-overview" — website traffic, engagement, and ranking metrics.
"google-trends-explore" — interest-over-time data and relative averages for up to 5 keywords.
"chrome-web-store-app-info" — extension metadata from the Chrome Web Store (with CRX manifest fallback).
object
Template-specific parameters declared by the selected template. Refer to the template’s input specification from GET /spa-extract/templates.
string
Navigation event to wait for before extraction. Custom extraction defaults to "domcontentloaded". Site templates use the request value first, then the template default, then "domcontentloaded".
Value
Behaviour
"domcontentloaded"
Waits for DOMContentLoaded — recommended for most SPAs.
"load"
Waits for window.load including images and stylesheets.
"networkidle"
Waits until no network connections for 500 ms. May timeout on long-polling sites.
object
Wait for a specific element or text to appear after SPA navigation and actions complete. selector and text may be combined.
Show waitFor fields
string
Wait for the first matching element to become visible.
string
Wait for the first element containing this text to become visible.
number
Timeout in milliseconds. Defaults to 15,000 and never exceeds the remaining task timeout.
array
Optional page interactions executed in array order before extraction. Each step is capped at 30 seconds.
Show action types
object
{ type: "wait", milliseconds: number } — Pause for 0 to 30,000 ms.
object
{ type: "waitForSelector", selector: string, timeoutMs?: number } — Wait for an element to become visible.
object
{ type: "click", selector: string } — Click the first matching element.
object
{ type: "fill", selector: string, value: string } — Clear and fill the first matching input.
object
{ type: "press", selector: string, key: string } — Press a key on the first matching element.
object
{ type: "scroll", selector?: string, x?: number, y?: number } — Scroll an element into view or scroll the page. y defaults to 800.
object
Record of named field definitions for extract mode. Each key becomes a property in the response data object. Use this when you are not using a template.
Show field definition
string
required
"dom" to read from the page HTML, or "network" to read from intercepted JSON responses.
string
CSS selector for a DOM field.
string
DOM read mode: "text" (default), "html", or "attribute".
string
Attribute name, used when value is "attribute".
string
Substring to match against a response URL for a network field.
string
JSON path within the matched network response, for example $.data.metrics[0].value.
boolean
Whether a DOM field should return all matching elements as an array.
string
Coerce the value to "string", "number", "integer", "boolean", or "json".
string
Optional regular expression. When a capture group is present, group 1 is used.
Legacy alias for fields, used only when fields is absent. String values are treated as DOM CSS selectors. Does not validate the response JSON and does not return schemaValid or schemaErrors fields. Prefer fields for all new integrations.
number
Maximum time to wait for the task to complete, in milliseconds. Must be a positive integer no greater than 3,600,000.
object
Viewport dimensions used when rendering the page.
Show viewport fields
number
Viewport width in pixels.
number
Viewport height in pixels.
string
Browser locale, for example "en-US". May follow trusted proxy metadata when omitted.
string
IANA timezone identifier, for example "Asia/Shanghai". May follow trusted proxy metadata when omitted.
object
Geolocation coordinates exposed to the page via the Geolocation API.
Show geolocation fields
number
Latitude in decimal degrees.
number
Longitude in decimal degrees.
object
Custom proxy configuration. Cannot be combined with countryCode.
Show proxy fields
string
Full proxy URL such as http://host:port or socks5://host:port. Cannot be combined with host.
string
"http" or "socks5". Used in the split form.
string
Proxy host. Used in the split form.
number | string
Port from 1 to 65535.
string
Proxy username. Must be supplied together with password.
string
Proxy password. Must be supplied together with username.
string
Managed residential proxy region. Cannot be combined with proxy.
"GLOBAL" — dynamic exit from 15 popular regions.
Two-letter country code — prefers a trusted proxy with dynamic fallback.
Omitted — a random trusted proxy is selected automatically.
string
"random" lets the server pick a User-Agent from its library. Requests without an explicit userAgent default to "random".
string
Operating system used when userAgentMode is "random". Accepted values: "windows" (default) or "macos".
string
Explicit User-Agent string. Overrides the random selection.
object
Browser fingerprint settings. When omitted, every signal defaults to random while keeping OS, GPU, CPU, memory, fonts, and device signals coherent.
Show fingerprint fields
string
"forward", "real", or "disabled".
string
"random" or "real". Controls WebGL vendor and renderer metadata.
string
"random", "real", or "disabled".
string
"random" or "real". Controls WebGL image noise.
string
"random" or "real". Controls canvas noise.
string
"random" or "real". Controls audio fingerprint noise.
string
"random" or "real". Controls layout measurement noise.
string
"random" or "real". Returns an OS-matched speech voice list.
string
"random" or "real". Returns an OS-matched font list.
string
"random" or "real". Generates a coherent CPU thread count and memory pair.
string
"random", "enabled", or "disabled".
array
Cookie list injected into the browser context before navigation.
google-trends-explore ignores omitted, null, or empty-array values. Any non-empty or malformed cookies on a Trends request return 400 INVALID_TRENDS_COOKIES.
Show cookie fields
string
required
Cookie name.
string
required
Cookie value.
string
required
Target domain such as .example.com.
string
Cookie path. Defaults to /.
boolean
Whether the cookie is sent only over HTTPS.
boolean
Whether the cookie is inaccessible to client-side JavaScript.
string
SameSite attribute.
boolean
Set true for a session cookie.
number
Unix expiry timestamp in seconds. Also accepted as expires or expiry.
Response
string
"extract" or "inspect", mirroring the request mode.
object
Page metadata.
Show page fields
string
Final page URL.
string
Page title.
object
Extracted structured data. Keys match your fields definition or the template’s output fields.
array
List of field keys that were not found.
string
"sunbrowser" — result came from a live browser collection. "cache" — result was served from the server cache. Present on Trends responses.
boolean
Whether this response was served from cache.
boolean
Whether the cached result is stale.
string
RFC3339Nano timestamp of when the result was actually collected.
number
Collection attempt count. Cache HIT responses use 0; stale responses use the attempt count at the time the Worker reported them.
object
Present in inspect mode. DOM and network extraction candidates discovered on the page.
object
Present in inspect mode. A plan with fields and schema you can copy into a future extract request.
Code
Meaning
200
Inspection results or extracted structured data.
400
Invalid URL, keyword, proxy, region, User-Agent, or Trends cookies.
401
Missing or invalid x-api-key.
402
Insufficient balance (INSUFFICIENT_CREDITS).
404
Chrome Web Store listing unavailable and CRX fallback could not recover it.
422
Required fields missing, invalid template or field config, or Worker rejected the task.
429
Task rate limited, or Google Trends upstream 429.
502
Proxy or target failure, invalid Trends data, or all candidate identities exhausted.
503
Queue, Worker, or managed resources unavailable; or Trends identity plan expired.
504
Task, navigation, or proxy timeout; or Trends response not observed.
500
Unclassified task execution failure.
One credit is consumed after request validation but before the task is enqueued. Request bodies are limited to 1 MiB.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"AdsCrawl","description":"Connect with Playwright, Puppeteer, or CDP and run jobs in a full browser environment with residential proxy routing—built for dynamic pages, authenticated sessions, and sites that stop basic scrapers.","colors":{"primary":"#0071e3","light":"#7c7c7e","dark":"#070707"},"logo":{"light":"https://media.brand.dev/4640f1e9-6451-460f-a082-f8c2438d4f3b.svg","dark":"https://mintcdn.com/adscrawl/MOJftQlB9dh80Xox/images/AdsCrawl-Mainlogo2.svg?fit=max\u0026auto=format\u0026n=MOJftQlB9dh80Xox\u0026q=85\u0026s=10300c0754e1fe5c5861c09a260e7d28","href":"https://www.adscrawl.net/"},"favicon":{"light":"https://mintcdn.com/adscrawl/En06nz0S4G8hWrQZ/images/AdsCrawl-Dock4.svg?fit=max\u0026auto=format\u0026n=En06nz0S4G8hWrQZ\u0026q=85\u0026s=c26faf96d0aa9e550d718670e196b8e7","dark":"https://mintcdn.com/adscrawl/En06nz0S4G8hWrQZ/images/AdsCrawl-Dock4.svg?fit=max\u0026auto=format\u0026n=En06nz0S4G8hWrQZ\u0026q=85\u0026s=c26faf96d0aa9e550d718670e196b8e7"},"api":{"playground":{"display":"interactive"},"examples":{"languages":["curl","javascript","python","go"]},"mdx":{"auth":{"method":"key","name":"x-api-key"},"server":"https://api.adscrawl.net"}},"navbar":{"primary":{"type":"button","label":"Start for Free","href":"https://app.adscrawl.net/register/"}},"footer":{"socials":{"github":"https://github.com/AdsCrawl","x":"https://x.com/Adscrawl"}},"seo":{"metatags":{"canonical":"https://docs.adscrawl.net"}},"integrations":{"ga4":{"measurementId":"G-F0ZW9VMNR2"}},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","vscode","mcp","cursor"],"display":"header"},"styling":{"latex":false},"navigation":{"languages":[{"language":"en","default":true,"href":"introduction"},{"language":"zh","href":"zh"}]}},"deployment":{"deploymentMetadataValue":{"subdomain":"adscrawl","hasAudioNarration":false,"actualSubdomain":"adscrawl","customDomains":["docs.adscrawl.net"],"gitSource":{"type":"github","owner":"adscrawl","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6aedc312644e5d1cbd4c966e","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"zh","tag":"文档","count":24},{"language":"en","tag":"Documentation","count":23},{"language":"en","tag":"API Reference","count":22},{"language":"zh","tag":"API 参考","count":22},{"language":"zh","tag":"快速上手","count":12},{"language":"en","tag":"Get Started","count":11},{"language":"en","tag":"SDKs \u0026 Integrations","count":8},{"language":"zh","tag":"SDK 与集成","count":8},{"language":"en","tag":"Cloud Browsers","count":6},{"language":"en","tag":"Guides","count":6},{"language":"zh","tag":"云浏览器","count":6},{"language":"zh","tag":"使用指南","count":6},{"language":"en","tag":"Remote CDP","count":5},{"language":"en","tag":"Browser Tasks","count":5},{"language":"zh","tag":"远程 CDP","count":5},{"language":"zh","tag":"浏览器任务","count":5},{"language":"en","tag":"AI Scrapers","count":4},{"language":"en","tag":"Core Concepts","count":4},{"language":"zh","tag":"AI Scrapers","count":4},{"language":"zh","tag":"核心概念","count":4}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"api-reference/spa-extract","slug":"/api-reference/spa-extract","pageMetadata":{"title":"Extract SPA Data","sidebarTitle":"Extract SPA Data","description":"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.","api":"POST /spa-extract","playground":"interactive","href":"/api-reference/spa-extract"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submit a page URL and extraction configuration to retrieve structured data from a JavaScript-rendered SPA. You can use custom field definitions, a built-in template, or `,_jsx(_components.code,{children:`inspect`}),` mode to discover what data is available on a page.`]}),`\n`,_jsx(ParamField,{body:`url`,type:`string`,id:`param-url`,children:_jsxs(_components.p,{children:[`Full HTTP(S) URL for the target SPA using port 80 or 443. Required for most templates. For `,_jsx(_components.code,{children:`google-trends-explore`}),`, prefer the `,_jsx(_components.code,{children:`keyword`}),` field instead. SimilarWeb requires a full page URL, not a bare domain.`]})}),`\n`,_jsx(ParamField,{body:`keyword`,type:`string`,id:`param-keyword`,children:_jsxs(_components.p,{children:[`Recommended for `,_jsx(_components.code,{children:`google-trends-explore`}),`. Provide 1 to 5 unique, non-empty comma-separated keywords, each at most 100 Unicode characters (for example, `,_jsx(_components.code,{children:`\"adspower,playwright\"`}),`). The server builds the canonical Trends URL automatically. Explicit `,_jsx(_components.code,{children:`null`}),`, numeric, or empty-string values return `,_jsx(_components.code,{children:`INVALID_KEYWORD`}),` and never fall back to `,_jsx(_components.code,{children:`url`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`mode`,type:`string`,id:`param-mode`,children:[_jsxs(_components.p,{children:[`Extraction mode. Defaults to `,_jsx(_components.code,{children:`\"extract\"`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behaviour`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"extract\"`})}),_jsxs(_components.td,{children:[`Runs field or template extraction and returns structured `,_jsx(_components.code,{children:`data`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"inspect\"`})}),_jsxs(_components.td,{children:[`Returns DOM and network candidates discovered on the page along with a `,_jsx(_components.code,{children:`suggestedPlan`}),` you can copy into a future extract request.`]})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`template`,type:`string`,id:`param-template`,children:[_jsxs(_components.p,{children:[`Built-in site template ID. When provided, `,_jsx(_components.code,{children:`fields`}),` are supplied by the template rather than your request. Available template IDs:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"similarweb-overview\"`}),` — website traffic, engagement, and ranking metrics.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"google-trends-explore\"`}),` — interest-over-time data and relative averages for up to 5 keywords.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"chrome-web-store-app-info\"`}),` — extension metadata from the Chrome Web Store (with CRX manifest fallback).`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`parameters`,type:`object`,id:`param-parameters`,children:_jsxs(_components.p,{children:[`Template-specific parameters declared by the selected template. Refer to the template’s `,_jsx(_components.code,{children:`input`}),` specification from `,_jsx(_components.code,{children:`GET /spa-extract/templates`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`waitUntil`,type:`string`,id:`param-wait-until`,children:[_jsxs(_components.p,{children:[`Navigation event to wait for before extraction. Custom extraction defaults to `,_jsx(_components.code,{children:`\"domcontentloaded\"`}),`. Site templates use the request value first, then the template default, then `,_jsx(_components.code,{children:`\"domcontentloaded\"`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behaviour`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"domcontentloaded\"`})}),_jsx(_components.td,{children:`Waits for DOMContentLoaded — recommended for most SPAs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"load\"`})}),_jsxs(_components.td,{children:[`Waits for `,_jsx(_components.code,{children:`window.load`}),` including images and stylesheets.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"networkidle\"`})}),_jsx(_components.td,{children:`Waits until no network connections for 500 ms. May timeout on long-polling sites.`})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`waitFor`,type:`object`,id:`param-wait-for`,children:[_jsxs(_components.p,{children:[`Wait for a specific element or text to appear after SPA navigation and actions complete. `,_jsx(_components.code,{children:`selector`}),` and `,_jsx(_components.code,{children:`text`}),` may be combined.`]}),_jsxs(Expandable,{title:`waitFor fields`,children:[_jsx(ParamField,{body:`selector`,type:`string`,id:`param-selector`,children:`Wait for the first matching element to become visible.`}),_jsx(ParamField,{body:`text`,type:`string`,id:`param-text`,children:`Wait for the first element containing this text to become visible.`}),_jsx(ParamField,{body:`timeoutMs`,type:`number`,id:`param-timeout-ms`,children:`Timeout in milliseconds. Defaults to 15,000 and never exceeds the remaining task timeout.`})]})]}),`\n`,_jsxs(ParamField,{body:`actions`,type:`array`,id:`param-actions`,children:[_jsx(_components.p,{children:`Optional page interactions executed in array order before extraction. Each step is capped at 30 seconds.`}),_jsxs(Expandable,{title:`action types`,children:[_jsxs(ParamField,{body:`wait`,type:`object`,id:`param-wait`,children:[_jsx(_components.code,{children:`{ type: \"wait\", milliseconds: number }`}),` — Pause for 0 to 30,000 ms.`]}),_jsxs(ParamField,{body:`waitForSelector`,type:`object`,id:`param-wait-for-selector`,children:[_jsx(_components.code,{children:`{ type: \"waitForSelector\", selector: string, timeoutMs?: number }`}),` — Wait for an element to become visible.`]}),_jsxs(ParamField,{body:`click`,type:`object`,id:`param-click`,children:[_jsx(_components.code,{children:`{ type: \"click\", selector: string }`}),` — Click the first matching element.`]}),_jsxs(ParamField,{body:`fill`,type:`object`,id:`param-fill`,children:[_jsx(_components.code,{children:`{ type: \"fill\", selector: string, value: string }`}),` — Clear and fill the first matching input.`]}),_jsxs(ParamField,{body:`press`,type:`object`,id:`param-press`,children:[_jsx(_components.code,{children:`{ type: \"press\", selector: string, key: string }`}),` — Press a key on the first matching element.`]}),_jsxs(ParamField,{body:`scroll`,type:`object`,id:`param-scroll`,children:[_jsx(_components.code,{children:`{ type: \"scroll\", selector?: string, x?: number, y?: number }`}),` — Scroll an element into view or scroll the page. `,_jsx(_components.code,{children:`y`}),` defaults to 800.`]})]})]}),`\n`,_jsxs(ParamField,{body:`fields`,type:`object`,id:`param-fields`,children:[_jsxs(_components.p,{children:[`Record of named field definitions for `,_jsx(_components.code,{children:`extract`}),` mode. Each key becomes a property in the response `,_jsx(_components.code,{children:`data`}),` object. Use this when you are not using a template.`]}),_jsxs(Expandable,{title:`field definition`,children:[_jsxs(ParamField,{body:`source`,type:`string`,required:true,id:`param-source`,children:[_jsx(_components.code,{children:`\"dom\"`}),` to read from the page HTML, or `,_jsx(_components.code,{children:`\"network\"`}),` to read from intercepted JSON responses.`]}),_jsx(ParamField,{body:`selector`,type:`string`,id:`param-selector-1`,children:`CSS selector for a DOM field.`}),_jsxs(ParamField,{body:`value`,type:`string`,id:`param-value`,children:[`DOM read mode: `,_jsx(_components.code,{children:`\"text\"`}),` (default), `,_jsx(_components.code,{children:`\"html\"`}),`, or `,_jsx(_components.code,{children:`\"attribute\"`}),`.`]}),_jsxs(ParamField,{body:`attribute`,type:`string`,id:`param-attribute`,children:[`Attribute name, used when `,_jsx(_components.code,{children:`value`}),` is `,_jsx(_components.code,{children:`\"attribute\"`}),`.`]}),_jsx(ParamField,{body:`urlIncludes`,type:`string`,id:`param-url-includes`,children:`Substring to match against a response URL for a network field.`}),_jsxs(ParamField,{body:`path`,type:`string`,id:`param-path`,children:[`JSON path within the matched network response, for example `,_jsx(_components.code,{children:`$.data.metrics[0].value`}),`.`]}),_jsx(ParamField,{body:`multiple`,type:`boolean`,id:`param-multiple`,children:`Whether a DOM field should return all matching elements as an array.`}),_jsxs(ParamField,{body:`parse`,type:`string`,id:`param-parse`,children:[`Coerce the value to `,_jsx(_components.code,{children:`\"string\"`}),`, `,_jsx(_components.code,{children:`\"number\"`}),`, `,_jsx(_components.code,{children:`\"integer\"`}),`, `,_jsx(_components.code,{children:`\"boolean\"`}),`, or `,_jsx(_components.code,{children:`\"json\"`}),`.`]}),_jsx(ParamField,{body:`regex`,type:`string`,id:`param-regex`,children:`Optional regular expression. When a capture group is present, group 1 is used.`}),_jsxs(ParamField,{body:`required`,type:`boolean`,id:`param-required`,children:[`Missing required fields return `,_jsx(_components.code,{children:`422 SPA_REQUIRED_FIELDS_MISSING`}),`.`]})]})]}),`\n`,_jsx(ParamField,{body:`schema`,type:`object`,id:`param-schema`,children:_jsxs(_components.p,{children:[`Legacy alias for `,_jsx(_components.code,{children:`fields`}),`, used only when `,_jsx(_components.code,{children:`fields`}),` is absent. String values are treated as DOM CSS selectors. Does not validate the response JSON and does not return `,_jsx(_components.code,{children:`schemaValid`}),` or `,_jsx(_components.code,{children:`schemaErrors`}),` fields. Prefer `,_jsx(_components.code,{children:`fields`}),` for all new integrations.`]})}),`\n`,_jsx(ParamField,{body:`timeoutMs`,type:`number`,id:`param-timeout-ms-1`,children:_jsxs(_components.p,{children:[`Maximum time to wait for the task to complete, in milliseconds. Must be a positive integer no greater than `,_jsx(_components.code,{children:`3,600,000`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`viewport`,type:`object`,id:`param-viewport`,children:[_jsx(_components.p,{children:`Viewport dimensions used when rendering the page.`}),_jsxs(Expandable,{title:`viewport fields`,children:[_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:`Viewport width in pixels.`}),_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:`Viewport height in pixels.`})]})]}),`\n`,_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:_jsxs(_components.p,{children:[`Browser locale, for example `,_jsx(_components.code,{children:`\"en-US\"`}),`. May follow trusted proxy metadata when omitted.`]})}),`\n`,_jsx(ParamField,{body:`timezoneId`,type:`string`,id:`param-timezone-id`,children:_jsxs(_components.p,{children:[`IANA timezone identifier, for example `,_jsx(_components.code,{children:`\"Asia/Shanghai\"`}),`. May follow trusted proxy metadata when omitted.`]})}),`\n`,_jsxs(ParamField,{body:`geolocation`,type:`object`,id:`param-geolocation`,children:[_jsx(_components.p,{children:`Geolocation coordinates exposed to the page via the Geolocation API.`}),_jsxs(Expandable,{title:`geolocation fields`,children:[_jsx(ParamField,{body:`latitude`,type:`number`,id:`param-latitude`,children:`Latitude in decimal degrees.`}),_jsx(ParamField,{body:`longitude`,type:`number`,id:`param-longitude`,children:`Longitude in decimal degrees.`})]})]}),`\n`,_jsxs(ParamField,{body:`proxy`,type:`object`,id:`param-proxy`,children:[_jsxs(_components.p,{children:[`Custom proxy configuration. Cannot be combined with `,_jsx(_components.code,{children:`countryCode`}),`.`]}),_jsxs(Expandable,{title:`proxy fields`,children:[_jsxs(ParamField,{body:`server`,type:`string`,id:`param-server`,children:[`Full proxy URL such as `,_jsx(_components.code,{children:`http://host:port`}),` or `,_jsx(_components.code,{children:`socks5://host:port`}),`. Cannot be combined with `,_jsx(_components.code,{children:`host`}),`.`]}),_jsxs(ParamField,{body:`protocol`,type:`string`,id:`param-protocol`,children:[_jsx(_components.code,{children:`\"http\"`}),` or `,_jsx(_components.code,{children:`\"socks5\"`}),`. Used in the split form.`]}),_jsx(ParamField,{body:`host`,type:`string`,id:`param-host`,children:`Proxy host. Used in the split form.`}),_jsx(ParamField,{body:`port`,type:`number | string`,id:`param-port`,children:`Port from 1 to 65535.`}),_jsxs(ParamField,{body:`username`,type:`string`,id:`param-username`,children:[`Proxy username. Must be supplied together with `,_jsx(_components.code,{children:`password`}),`.`]}),_jsxs(ParamField,{body:`password`,type:`string`,id:`param-password`,children:[`Proxy password. Must be supplied together with `,_jsx(_components.code,{children:`username`}),`.`]})]})]}),`\n`,_jsxs(ParamField,{body:`countryCode`,type:`string`,id:`param-country-code`,children:[_jsxs(_components.p,{children:[`Managed residential proxy region. Cannot be combined with `,_jsx(_components.code,{children:`proxy`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"GLOBAL\"`}),` — dynamic exit from 15 popular regions.`]}),`\n`,_jsx(_components.li,{children:`Two-letter country code — prefers a trusted proxy with dynamic fallback.`}),`\n`,_jsx(_components.li,{children:`Omitted — a random trusted proxy is selected automatically.`}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`userAgentMode`,type:`string`,id:`param-user-agent-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"random\"`}),` lets the server pick a User-Agent from its library. Requests without an explicit `,_jsx(_components.code,{children:`userAgent`}),` default to `,_jsx(_components.code,{children:`\"random\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`userAgentOs`,type:`string`,id:`param-user-agent-os`,children:_jsxs(_components.p,{children:[`Operating system used when `,_jsx(_components.code,{children:`userAgentMode`}),` is `,_jsx(_components.code,{children:`\"random\"`}),`. Accepted values: `,_jsx(_components.code,{children:`\"windows\"`}),` (default) or `,_jsx(_components.code,{children:`\"macos\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`userAgent`,type:`string`,id:`param-user-agent`,children:_jsx(_components.p,{children:`Explicit User-Agent string. Overrides the random selection.`})}),`\n`,_jsxs(ParamField,{body:`fingerprint`,type:`object`,id:`param-fingerprint`,children:[_jsx(_components.p,{children:`Browser fingerprint settings. When omitted, every signal defaults to random while keeping OS, GPU, CPU, memory, fonts, and device signals coherent.`}),_jsxs(Expandable,{title:`fingerprint fields`,children:[_jsxs(ParamField,{body:`webRtc`,type:`string`,id:`param-web-rtc`,children:[_jsx(_components.code,{children:`\"forward\"`}),`, `,_jsx(_components.code,{children:`\"real\"`}),`, or `,_jsx(_components.code,{children:`\"disabled\"`}),`.`]}),_jsxs(ParamField,{body:`webGl`,type:`string`,id:`param-web-gl`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls WebGL vendor and renderer metadata.`]}),_jsxs(ParamField,{body:`webGpu`,type:`string`,id:`param-web-gpu`,children:[_jsx(_components.code,{children:`\"random\"`}),`, `,_jsx(_components.code,{children:`\"real\"`}),`, or `,_jsx(_components.code,{children:`\"disabled\"`}),`.`]}),_jsxs(ParamField,{body:`webGlImage`,type:`string`,id:`param-web-gl-image`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls WebGL image noise.`]}),_jsxs(ParamField,{body:`canvas`,type:`string`,id:`param-canvas`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls canvas noise.`]}),_jsxs(ParamField,{body:`audioContext`,type:`string`,id:`param-audio-context`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls audio fingerprint noise.`]}),_jsxs(ParamField,{body:`clientRects`,type:`string`,id:`param-client-rects`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls layout measurement noise.`]}),_jsxs(ParamField,{body:`speechVoices`,type:`string`,id:`param-speech-voices`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Returns an OS-matched speech voice list.`]}),_jsxs(ParamField,{body:`fonts`,type:`string`,id:`param-fonts`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Returns an OS-matched font list.`]}),_jsxs(ParamField,{body:`hardware`,type:`string`,id:`param-hardware`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Generates a coherent CPU thread count and memory pair.`]}),_jsxs(ParamField,{body:`doNotTrack`,type:`string`,id:`param-do-not-track`,children:[_jsx(_components.code,{children:`\"random\"`}),`, `,_jsx(_components.code,{children:`\"enabled\"`}),`, or `,_jsx(_components.code,{children:`\"disabled\"`}),`.`]})]})]}),`\n`,_jsxs(ParamField,{body:`cookies`,type:`array`,id:`param-cookies`,children:[_jsx(_components.p,{children:`Cookie list injected into the browser context before navigation.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`google-trends-explore`}),` ignores omitted, `,_jsx(_components.code,{children:`null`}),`, or empty-array values. Any non-empty or malformed cookies on a Trends request return `,_jsx(_components.code,{children:`400 INVALID_TRENDS_COOKIES`}),`.`]})}),_jsxs(Expandable,{title:`cookie fields`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:`Cookie name.`}),_jsx(ParamField,{body:`value`,type:`string`,required:true,id:`param-value-1`,children:`Cookie value.`}),_jsxs(ParamField,{body:`domain`,type:`string`,required:true,id:`param-domain`,children:[`Target domain such as `,_jsx(_components.code,{children:`.example.com`}),`.`]}),_jsxs(ParamField,{body:`path`,type:`string`,id:`param-path-1`,children:[`Cookie path. Defaults to `,_jsx(_components.code,{children:`/`}),`.`]}),_jsx(ParamField,{body:`secure`,type:`boolean`,id:`param-secure`,children:`Whether the cookie is sent only over HTTPS.`}),_jsx(ParamField,{body:`httpOnly`,type:`boolean`,id:`param-http-only`,children:`Whether the cookie is inaccessible to client-side JavaScript.`}),_jsx(ParamField,{body:`sameSite`,type:`string`,id:`param-same-site`,children:`SameSite attribute.`}),_jsxs(ParamField,{body:`session`,type:`boolean`,id:`param-session`,children:[`Set `,_jsx(_components.code,{children:`true`}),` for a session cookie.`]}),_jsxs(ParamField,{body:`expirationDate`,type:`number`,id:`param-expiration-date`,children:[`Unix expiry timestamp in seconds. Also accepted as `,_jsx(_components.code,{children:`expires`}),` or `,_jsx(_components.code,{children:`expiry`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`mode`,type:`string`,id:`param-mode-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"extract\"`}),` or `,_jsx(_components.code,{children:`\"inspect\"`}),`, mirroring the request mode.`]})}),`\n`,_jsxs(ResponseField,{name:`page`,type:`object`,id:`param-page`,children:[_jsx(_components.p,{children:`Page metadata.`}),_jsxs(Expandable,{title:`page fields`,children:[_jsx(ResponseField,{name:`url`,type:`string`,id:`param-url-1`,children:_jsx(_components.p,{children:`Final page URL.`})}),_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Page title.`})})]})]}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(_components.p,{children:[`Extracted structured data. Keys match your `,_jsx(_components.code,{children:`fields`}),` definition or the template’s output fields.`]})}),`\n`,_jsx(ResponseField,{name:`missingFields`,type:`array`,id:`param-missing-fields`,children:_jsx(_components.p,{children:`List of field keys that were not found.`})}),`\n`,_jsx(ResponseField,{name:`source`,type:`string`,id:`param-source-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"sunbrowser\"`}),` — result came from a live browser collection. `,_jsx(_components.code,{children:`\"cache\"`}),` — result was served from the server cache. Present on Trends responses.`]})}),`\n`,_jsx(ResponseField,{name:`cached`,type:`boolean`,id:`param-cached`,children:_jsx(_components.p,{children:`Whether this response was served from cache.`})}),`\n`,_jsx(ResponseField,{name:`stale`,type:`boolean`,id:`param-stale`,children:_jsx(_components.p,{children:`Whether the cached result is stale.`})}),`\n`,_jsx(ResponseField,{name:`collectedAt`,type:`string`,id:`param-collected-at`,children:_jsx(_components.p,{children:`RFC3339Nano timestamp of when the result was actually collected.`})}),`\n`,_jsx(ResponseField,{name:`attempts`,type:`number`,id:`param-attempts`,children:_jsxs(_components.p,{children:[`Collection attempt count. Cache HIT responses use `,_jsx(_components.code,{children:`0`}),`; stale responses use the attempt count at the time the Worker reported them.`]})}),`\n`,_jsx(ResponseField,{name:`candidates`,type:`object`,id:`param-candidates`,children:_jsxs(_components.p,{children:[`Present in `,_jsx(_components.code,{children:`inspect`}),` mode. DOM and network extraction candidates discovered on the page.`]})}),`\n`,_jsx(ResponseField,{name:`suggestedPlan`,type:`object`,id:`param-suggested-plan`,children:_jsxs(_components.p,{children:[`Present in `,_jsx(_components.code,{children:`inspect`}),` mode. A plan with `,_jsx(_components.code,{children:`fields`}),` and `,_jsx(_components.code,{children:`schema`}),` you can copy into a future `,_jsx(_components.code,{children:`extract`}),` request.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`Inspection results or extracted structured data.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Invalid URL, keyword, proxy, region, User-Agent, or Trends cookies.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsxs(_components.td,{children:[`Missing or invalid `,_jsx(_components.code,{children:`x-api-key`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsxs(_components.td,{children:[`Insufficient balance (`,_jsx(_components.code,{children:`INSUFFICIENT_CREDITS`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Chrome Web Store listing unavailable and CRX fallback could not recover it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Required fields missing, invalid template or field config, or Worker rejected the task.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Task rate limited, or Google Trends upstream 429.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:`Proxy or target failure, invalid Trends data, or all candidate identities exhausted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:`Queue, Worker, or managed resources unavailable; or Trends identity plan expired.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`504`}),_jsx(_components.td,{children:`Task, navigation, or proxy timeout; or Trends response not observed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Unclassified task execution failure.`})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`One credit is consumed after request validation but before the task is enqueued. Request bodies are limited to 1 MiB.`})}),`\n`,_jsx(Heading,{level:`2`,id:`more-examples`,children:`More examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Custom fields`,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/dashboard\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"extract\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitUntil\": \"domcontentloaded\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitFor\": { \"selector\": \"h1\", \"timeoutMs\": 15000 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fields\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": { \"source\": \"dom\", \"selector\": \"h1\", \"parse\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subtitle\": { \"source\": \"dom\", \"selector\": \"p.subtitle\", \"parse\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"count\": { \"source\": \"dom\", \"selector\": \".metric-value\", \"parse\": \"number\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"countryCode\": \"GLOBAL\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userAgentMode\": \"random\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`SimilarWeb template`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template\": \"similarweb-overview\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://www.similarweb.com/website/dolphin-anty.com/#overview\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"countryCode\": \"GLOBAL\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Google Trends`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template\": \"google-trends-explore\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"keyword\": \"adspower,playwright\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Inspect mode`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/dashboard\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"inspect\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Extract SPA Data","sidebarTitle":"Extract SPA Data","description":"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.","api":"POST /spa-extract","playground":"interactive","href":"/api-reference/spa-extract"}}},"mdxSourceWithNoJs":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,CodeGroup,Expandable,Heading,Note,ParamField,RequestExample,ResponseExample,ResponseField,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!CodeGroup)_missingMdxReference(`CodeGroup`,true);if(!Expandable)_missingMdxReference(`Expandable`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!ParamField)_missingMdxReference(`ParamField`,true);if(!RequestExample)_missingMdxReference(`RequestExample`,true);if(!ResponseExample)_missingMdxReference(`ResponseExample`,true);if(!ResponseField)_missingMdxReference(`ResponseField`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsxs(_components.p,{children:[`Submit a page URL and extraction configuration to retrieve structured data from a JavaScript-rendered SPA. You can use custom field definitions, a built-in template, or `,_jsx(_components.code,{children:`inspect`}),` mode to discover what data is available on a page.`]}),`\n`,_jsx(ParamField,{body:`url`,type:`string`,id:`param-url`,children:_jsxs(_components.p,{children:[`Full HTTP(S) URL for the target SPA using port 80 or 443. Required for most templates. For `,_jsx(_components.code,{children:`google-trends-explore`}),`, prefer the `,_jsx(_components.code,{children:`keyword`}),` field instead. SimilarWeb requires a full page URL, not a bare domain.`]})}),`\n`,_jsx(ParamField,{body:`keyword`,type:`string`,id:`param-keyword`,children:_jsxs(_components.p,{children:[`Recommended for `,_jsx(_components.code,{children:`google-trends-explore`}),`. Provide 1 to 5 unique, non-empty comma-separated keywords, each at most 100 Unicode characters (for example, `,_jsx(_components.code,{children:`\"adspower,playwright\"`}),`). The server builds the canonical Trends URL automatically. Explicit `,_jsx(_components.code,{children:`null`}),`, numeric, or empty-string values return `,_jsx(_components.code,{children:`INVALID_KEYWORD`}),` and never fall back to `,_jsx(_components.code,{children:`url`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`mode`,type:`string`,id:`param-mode`,children:[_jsxs(_components.p,{children:[`Extraction mode. Defaults to `,_jsx(_components.code,{children:`\"extract\"`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behaviour`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"extract\"`})}),_jsxs(_components.td,{children:[`Runs field or template extraction and returns structured `,_jsx(_components.code,{children:`data`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"inspect\"`})}),_jsxs(_components.td,{children:[`Returns DOM and network candidates discovered on the page along with a `,_jsx(_components.code,{children:`suggestedPlan`}),` you can copy into a future extract request.`]})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`template`,type:`string`,id:`param-template`,children:[_jsxs(_components.p,{children:[`Built-in site template ID. When provided, `,_jsx(_components.code,{children:`fields`}),` are supplied by the template rather than your request. Available template IDs:`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"similarweb-overview\"`}),` — website traffic, engagement, and ranking metrics.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"google-trends-explore\"`}),` — interest-over-time data and relative averages for up to 5 keywords.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"chrome-web-store-app-info\"`}),` — extension metadata from the Chrome Web Store (with CRX manifest fallback).`]}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`parameters`,type:`object`,id:`param-parameters`,children:_jsxs(_components.p,{children:[`Template-specific parameters declared by the selected template. Refer to the template’s `,_jsx(_components.code,{children:`input`}),` specification from `,_jsx(_components.code,{children:`GET /spa-extract/templates`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`waitUntil`,type:`string`,id:`param-wait-until`,children:[_jsxs(_components.p,{children:[`Navigation event to wait for before extraction. Custom extraction defaults to `,_jsx(_components.code,{children:`\"domcontentloaded\"`}),`. Site templates use the request value first, then the template default, then `,_jsx(_components.code,{children:`\"domcontentloaded\"`}),`.`]}),_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Value`}),_jsx(_components.th,{children:`Behaviour`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"domcontentloaded\"`})}),_jsx(_components.td,{children:`Waits for DOMContentLoaded — recommended for most SPAs.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"load\"`})}),_jsxs(_components.td,{children:[`Waits for `,_jsx(_components.code,{children:`window.load`}),` including images and stylesheets.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.code,{children:`\"networkidle\"`})}),_jsx(_components.td,{children:`Waits until no network connections for 500 ms. May timeout on long-polling sites.`})]})]})]})]}),`\n`,_jsxs(ParamField,{body:`waitFor`,type:`object`,id:`param-wait-for`,children:[_jsxs(_components.p,{children:[`Wait for a specific element or text to appear after SPA navigation and actions complete. `,_jsx(_components.code,{children:`selector`}),` and `,_jsx(_components.code,{children:`text`}),` may be combined.`]}),_jsxs(Expandable,{title:`waitFor fields`,children:[_jsx(ParamField,{body:`selector`,type:`string`,id:`param-selector`,children:`Wait for the first matching element to become visible.`}),_jsx(ParamField,{body:`text`,type:`string`,id:`param-text`,children:`Wait for the first element containing this text to become visible.`}),_jsx(ParamField,{body:`timeoutMs`,type:`number`,id:`param-timeout-ms`,children:`Timeout in milliseconds. Defaults to 15,000 and never exceeds the remaining task timeout.`})]})]}),`\n`,_jsxs(ParamField,{body:`actions`,type:`array`,id:`param-actions`,children:[_jsx(_components.p,{children:`Optional page interactions executed in array order before extraction. Each step is capped at 30 seconds.`}),_jsxs(Expandable,{title:`action types`,children:[_jsxs(ParamField,{body:`wait`,type:`object`,id:`param-wait`,children:[_jsx(_components.code,{children:`{ type: \"wait\", milliseconds: number }`}),` — Pause for 0 to 30,000 ms.`]}),_jsxs(ParamField,{body:`waitForSelector`,type:`object`,id:`param-wait-for-selector`,children:[_jsx(_components.code,{children:`{ type: \"waitForSelector\", selector: string, timeoutMs?: number }`}),` — Wait for an element to become visible.`]}),_jsxs(ParamField,{body:`click`,type:`object`,id:`param-click`,children:[_jsx(_components.code,{children:`{ type: \"click\", selector: string }`}),` — Click the first matching element.`]}),_jsxs(ParamField,{body:`fill`,type:`object`,id:`param-fill`,children:[_jsx(_components.code,{children:`{ type: \"fill\", selector: string, value: string }`}),` — Clear and fill the first matching input.`]}),_jsxs(ParamField,{body:`press`,type:`object`,id:`param-press`,children:[_jsx(_components.code,{children:`{ type: \"press\", selector: string, key: string }`}),` — Press a key on the first matching element.`]}),_jsxs(ParamField,{body:`scroll`,type:`object`,id:`param-scroll`,children:[_jsx(_components.code,{children:`{ type: \"scroll\", selector?: string, x?: number, y?: number }`}),` — Scroll an element into view or scroll the page. `,_jsx(_components.code,{children:`y`}),` defaults to 800.`]})]})]}),`\n`,_jsxs(ParamField,{body:`fields`,type:`object`,id:`param-fields`,children:[_jsxs(_components.p,{children:[`Record of named field definitions for `,_jsx(_components.code,{children:`extract`}),` mode. Each key becomes a property in the response `,_jsx(_components.code,{children:`data`}),` object. Use this when you are not using a template.`]}),_jsxs(Expandable,{title:`field definition`,children:[_jsxs(ParamField,{body:`source`,type:`string`,required:true,id:`param-source`,children:[_jsx(_components.code,{children:`\"dom\"`}),` to read from the page HTML, or `,_jsx(_components.code,{children:`\"network\"`}),` to read from intercepted JSON responses.`]}),_jsx(ParamField,{body:`selector`,type:`string`,id:`param-selector-1`,children:`CSS selector for a DOM field.`}),_jsxs(ParamField,{body:`value`,type:`string`,id:`param-value`,children:[`DOM read mode: `,_jsx(_components.code,{children:`\"text\"`}),` (default), `,_jsx(_components.code,{children:`\"html\"`}),`, or `,_jsx(_components.code,{children:`\"attribute\"`}),`.`]}),_jsxs(ParamField,{body:`attribute`,type:`string`,id:`param-attribute`,children:[`Attribute name, used when `,_jsx(_components.code,{children:`value`}),` is `,_jsx(_components.code,{children:`\"attribute\"`}),`.`]}),_jsx(ParamField,{body:`urlIncludes`,type:`string`,id:`param-url-includes`,children:`Substring to match against a response URL for a network field.`}),_jsxs(ParamField,{body:`path`,type:`string`,id:`param-path`,children:[`JSON path within the matched network response, for example `,_jsx(_components.code,{children:`$.data.metrics[0].value`}),`.`]}),_jsx(ParamField,{body:`multiple`,type:`boolean`,id:`param-multiple`,children:`Whether a DOM field should return all matching elements as an array.`}),_jsxs(ParamField,{body:`parse`,type:`string`,id:`param-parse`,children:[`Coerce the value to `,_jsx(_components.code,{children:`\"string\"`}),`, `,_jsx(_components.code,{children:`\"number\"`}),`, `,_jsx(_components.code,{children:`\"integer\"`}),`, `,_jsx(_components.code,{children:`\"boolean\"`}),`, or `,_jsx(_components.code,{children:`\"json\"`}),`.`]}),_jsx(ParamField,{body:`regex`,type:`string`,id:`param-regex`,children:`Optional regular expression. When a capture group is present, group 1 is used.`}),_jsxs(ParamField,{body:`required`,type:`boolean`,id:`param-required`,children:[`Missing required fields return `,_jsx(_components.code,{children:`422 SPA_REQUIRED_FIELDS_MISSING`}),`.`]})]})]}),`\n`,_jsx(ParamField,{body:`schema`,type:`object`,id:`param-schema`,children:_jsxs(_components.p,{children:[`Legacy alias for `,_jsx(_components.code,{children:`fields`}),`, used only when `,_jsx(_components.code,{children:`fields`}),` is absent. String values are treated as DOM CSS selectors. Does not validate the response JSON and does not return `,_jsx(_components.code,{children:`schemaValid`}),` or `,_jsx(_components.code,{children:`schemaErrors`}),` fields. Prefer `,_jsx(_components.code,{children:`fields`}),` for all new integrations.`]})}),`\n`,_jsx(ParamField,{body:`timeoutMs`,type:`number`,id:`param-timeout-ms-1`,children:_jsxs(_components.p,{children:[`Maximum time to wait for the task to complete, in milliseconds. Must be a positive integer no greater than `,_jsx(_components.code,{children:`3,600,000`}),`.`]})}),`\n`,_jsxs(ParamField,{body:`viewport`,type:`object`,id:`param-viewport`,children:[_jsx(_components.p,{children:`Viewport dimensions used when rendering the page.`}),_jsxs(Expandable,{title:`viewport fields`,children:[_jsx(ParamField,{body:`width`,type:`number`,id:`param-width`,children:`Viewport width in pixels.`}),_jsx(ParamField,{body:`height`,type:`number`,id:`param-height`,children:`Viewport height in pixels.`})]})]}),`\n`,_jsx(ParamField,{body:`locale`,type:`string`,id:`param-locale`,children:_jsxs(_components.p,{children:[`Browser locale, for example `,_jsx(_components.code,{children:`\"en-US\"`}),`. May follow trusted proxy metadata when omitted.`]})}),`\n`,_jsx(ParamField,{body:`timezoneId`,type:`string`,id:`param-timezone-id`,children:_jsxs(_components.p,{children:[`IANA timezone identifier, for example `,_jsx(_components.code,{children:`\"Asia/Shanghai\"`}),`. May follow trusted proxy metadata when omitted.`]})}),`\n`,_jsxs(ParamField,{body:`geolocation`,type:`object`,id:`param-geolocation`,children:[_jsx(_components.p,{children:`Geolocation coordinates exposed to the page via the Geolocation API.`}),_jsxs(Expandable,{title:`geolocation fields`,children:[_jsx(ParamField,{body:`latitude`,type:`number`,id:`param-latitude`,children:`Latitude in decimal degrees.`}),_jsx(ParamField,{body:`longitude`,type:`number`,id:`param-longitude`,children:`Longitude in decimal degrees.`})]})]}),`\n`,_jsxs(ParamField,{body:`proxy`,type:`object`,id:`param-proxy`,children:[_jsxs(_components.p,{children:[`Custom proxy configuration. Cannot be combined with `,_jsx(_components.code,{children:`countryCode`}),`.`]}),_jsxs(Expandable,{title:`proxy fields`,children:[_jsxs(ParamField,{body:`server`,type:`string`,id:`param-server`,children:[`Full proxy URL such as `,_jsx(_components.code,{children:`http://host:port`}),` or `,_jsx(_components.code,{children:`socks5://host:port`}),`. Cannot be combined with `,_jsx(_components.code,{children:`host`}),`.`]}),_jsxs(ParamField,{body:`protocol`,type:`string`,id:`param-protocol`,children:[_jsx(_components.code,{children:`\"http\"`}),` or `,_jsx(_components.code,{children:`\"socks5\"`}),`. Used in the split form.`]}),_jsx(ParamField,{body:`host`,type:`string`,id:`param-host`,children:`Proxy host. Used in the split form.`}),_jsx(ParamField,{body:`port`,type:`number | string`,id:`param-port`,children:`Port from 1 to 65535.`}),_jsxs(ParamField,{body:`username`,type:`string`,id:`param-username`,children:[`Proxy username. Must be supplied together with `,_jsx(_components.code,{children:`password`}),`.`]}),_jsxs(ParamField,{body:`password`,type:`string`,id:`param-password`,children:[`Proxy password. Must be supplied together with `,_jsx(_components.code,{children:`username`}),`.`]})]})]}),`\n`,_jsxs(ParamField,{body:`countryCode`,type:`string`,id:`param-country-code`,children:[_jsxs(_components.p,{children:[`Managed residential proxy region. Cannot be combined with `,_jsx(_components.code,{children:`proxy`}),`.`]}),_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.code,{children:`\"GLOBAL\"`}),` — dynamic exit from 15 popular regions.`]}),`\n`,_jsx(_components.li,{children:`Two-letter country code — prefers a trusted proxy with dynamic fallback.`}),`\n`,_jsx(_components.li,{children:`Omitted — a random trusted proxy is selected automatically.`}),`\n`]})]}),`\n`,_jsx(ParamField,{body:`userAgentMode`,type:`string`,id:`param-user-agent-mode`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"random\"`}),` lets the server pick a User-Agent from its library. Requests without an explicit `,_jsx(_components.code,{children:`userAgent`}),` default to `,_jsx(_components.code,{children:`\"random\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`userAgentOs`,type:`string`,id:`param-user-agent-os`,children:_jsxs(_components.p,{children:[`Operating system used when `,_jsx(_components.code,{children:`userAgentMode`}),` is `,_jsx(_components.code,{children:`\"random\"`}),`. Accepted values: `,_jsx(_components.code,{children:`\"windows\"`}),` (default) or `,_jsx(_components.code,{children:`\"macos\"`}),`.`]})}),`\n`,_jsx(ParamField,{body:`userAgent`,type:`string`,id:`param-user-agent`,children:_jsx(_components.p,{children:`Explicit User-Agent string. Overrides the random selection.`})}),`\n`,_jsxs(ParamField,{body:`fingerprint`,type:`object`,id:`param-fingerprint`,children:[_jsx(_components.p,{children:`Browser fingerprint settings. When omitted, every signal defaults to random while keeping OS, GPU, CPU, memory, fonts, and device signals coherent.`}),_jsxs(Expandable,{title:`fingerprint fields`,children:[_jsxs(ParamField,{body:`webRtc`,type:`string`,id:`param-web-rtc`,children:[_jsx(_components.code,{children:`\"forward\"`}),`, `,_jsx(_components.code,{children:`\"real\"`}),`, or `,_jsx(_components.code,{children:`\"disabled\"`}),`.`]}),_jsxs(ParamField,{body:`webGl`,type:`string`,id:`param-web-gl`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls WebGL vendor and renderer metadata.`]}),_jsxs(ParamField,{body:`webGpu`,type:`string`,id:`param-web-gpu`,children:[_jsx(_components.code,{children:`\"random\"`}),`, `,_jsx(_components.code,{children:`\"real\"`}),`, or `,_jsx(_components.code,{children:`\"disabled\"`}),`.`]}),_jsxs(ParamField,{body:`webGlImage`,type:`string`,id:`param-web-gl-image`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls WebGL image noise.`]}),_jsxs(ParamField,{body:`canvas`,type:`string`,id:`param-canvas`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls canvas noise.`]}),_jsxs(ParamField,{body:`audioContext`,type:`string`,id:`param-audio-context`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls audio fingerprint noise.`]}),_jsxs(ParamField,{body:`clientRects`,type:`string`,id:`param-client-rects`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Controls layout measurement noise.`]}),_jsxs(ParamField,{body:`speechVoices`,type:`string`,id:`param-speech-voices`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Returns an OS-matched speech voice list.`]}),_jsxs(ParamField,{body:`fonts`,type:`string`,id:`param-fonts`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Returns an OS-matched font list.`]}),_jsxs(ParamField,{body:`hardware`,type:`string`,id:`param-hardware`,children:[_jsx(_components.code,{children:`\"random\"`}),` or `,_jsx(_components.code,{children:`\"real\"`}),`. Generates a coherent CPU thread count and memory pair.`]}),_jsxs(ParamField,{body:`doNotTrack`,type:`string`,id:`param-do-not-track`,children:[_jsx(_components.code,{children:`\"random\"`}),`, `,_jsx(_components.code,{children:`\"enabled\"`}),`, or `,_jsx(_components.code,{children:`\"disabled\"`}),`.`]})]})]}),`\n`,_jsxs(ParamField,{body:`cookies`,type:`array`,id:`param-cookies`,children:[_jsx(_components.p,{children:`Cookie list injected into the browser context before navigation.`}),_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`google-trends-explore`}),` ignores omitted, `,_jsx(_components.code,{children:`null`}),`, or empty-array values. Any non-empty or malformed cookies on a Trends request return `,_jsx(_components.code,{children:`400 INVALID_TRENDS_COOKIES`}),`.`]})}),_jsxs(Expandable,{title:`cookie fields`,children:[_jsx(ParamField,{body:`name`,type:`string`,required:true,id:`param-name`,children:`Cookie name.`}),_jsx(ParamField,{body:`value`,type:`string`,required:true,id:`param-value-1`,children:`Cookie value.`}),_jsxs(ParamField,{body:`domain`,type:`string`,required:true,id:`param-domain`,children:[`Target domain such as `,_jsx(_components.code,{children:`.example.com`}),`.`]}),_jsxs(ParamField,{body:`path`,type:`string`,id:`param-path-1`,children:[`Cookie path. Defaults to `,_jsx(_components.code,{children:`/`}),`.`]}),_jsx(ParamField,{body:`secure`,type:`boolean`,id:`param-secure`,children:`Whether the cookie is sent only over HTTPS.`}),_jsx(ParamField,{body:`httpOnly`,type:`boolean`,id:`param-http-only`,children:`Whether the cookie is inaccessible to client-side JavaScript.`}),_jsx(ParamField,{body:`sameSite`,type:`string`,id:`param-same-site`,children:`SameSite attribute.`}),_jsxs(ParamField,{body:`session`,type:`boolean`,id:`param-session`,children:[`Set `,_jsx(_components.code,{children:`true`}),` for a session cookie.`]}),_jsxs(ParamField,{body:`expirationDate`,type:`number`,id:`param-expiration-date`,children:[`Unix expiry timestamp in seconds. Also accepted as `,_jsx(_components.code,{children:`expires`}),` or `,_jsx(_components.code,{children:`expiry`}),`.`]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`response`,children:`Response`}),`\n`,_jsx(ResponseField,{name:`mode`,type:`string`,id:`param-mode-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"extract\"`}),` or `,_jsx(_components.code,{children:`\"inspect\"`}),`, mirroring the request mode.`]})}),`\n`,_jsxs(ResponseField,{name:`page`,type:`object`,id:`param-page`,children:[_jsx(_components.p,{children:`Page metadata.`}),_jsxs(Expandable,{title:`page fields`,children:[_jsx(ResponseField,{name:`url`,type:`string`,id:`param-url-1`,children:_jsx(_components.p,{children:`Final page URL.`})}),_jsx(ResponseField,{name:`title`,type:`string`,id:`param-title`,children:_jsx(_components.p,{children:`Page title.`})})]})]}),`\n`,_jsx(ResponseField,{name:`data`,type:`object`,id:`param-data`,children:_jsxs(_components.p,{children:[`Extracted structured data. Keys match your `,_jsx(_components.code,{children:`fields`}),` definition or the template’s output fields.`]})}),`\n`,_jsx(ResponseField,{name:`missingFields`,type:`array`,id:`param-missing-fields`,children:_jsx(_components.p,{children:`List of field keys that were not found.`})}),`\n`,_jsx(ResponseField,{name:`source`,type:`string`,id:`param-source-1`,children:_jsxs(_components.p,{children:[_jsx(_components.code,{children:`\"sunbrowser\"`}),` — result came from a live browser collection. `,_jsx(_components.code,{children:`\"cache\"`}),` — result was served from the server cache. Present on Trends responses.`]})}),`\n`,_jsx(ResponseField,{name:`cached`,type:`boolean`,id:`param-cached`,children:_jsx(_components.p,{children:`Whether this response was served from cache.`})}),`\n`,_jsx(ResponseField,{name:`stale`,type:`boolean`,id:`param-stale`,children:_jsx(_components.p,{children:`Whether the cached result is stale.`})}),`\n`,_jsx(ResponseField,{name:`collectedAt`,type:`string`,id:`param-collected-at`,children:_jsx(_components.p,{children:`RFC3339Nano timestamp of when the result was actually collected.`})}),`\n`,_jsx(ResponseField,{name:`attempts`,type:`number`,id:`param-attempts`,children:_jsxs(_components.p,{children:[`Collection attempt count. Cache HIT responses use `,_jsx(_components.code,{children:`0`}),`; stale responses use the attempt count at the time the Worker reported them.`]})}),`\n`,_jsx(ResponseField,{name:`candidates`,type:`object`,id:`param-candidates`,children:_jsxs(_components.p,{children:[`Present in `,_jsx(_components.code,{children:`inspect`}),` mode. DOM and network extraction candidates discovered on the page.`]})}),`\n`,_jsx(ResponseField,{name:`suggestedPlan`,type:`object`,id:`param-suggested-plan`,children:_jsxs(_components.p,{children:[`Present in `,_jsx(_components.code,{children:`inspect`}),` mode. A plan with `,_jsx(_components.code,{children:`fields`}),` and `,_jsx(_components.code,{children:`schema`}),` you can copy into a future `,_jsx(_components.code,{children:`extract`}),` request.`]})}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Code`}),_jsx(_components.th,{children:`Meaning`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`200`}),_jsx(_components.td,{children:`Inspection results or extracted structured data.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`400`}),_jsx(_components.td,{children:`Invalid URL, keyword, proxy, region, User-Agent, or Trends cookies.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`401`}),_jsxs(_components.td,{children:[`Missing or invalid `,_jsx(_components.code,{children:`x-api-key`}),`.`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`402`}),_jsxs(_components.td,{children:[`Insufficient balance (`,_jsx(_components.code,{children:`INSUFFICIENT_CREDITS`}),`).`]})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`404`}),_jsx(_components.td,{children:`Chrome Web Store listing unavailable and CRX fallback could not recover it.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`422`}),_jsx(_components.td,{children:`Required fields missing, invalid template or field config, or Worker rejected the task.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`429`}),_jsx(_components.td,{children:`Task rate limited, or Google Trends upstream 429.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`502`}),_jsx(_components.td,{children:`Proxy or target failure, invalid Trends data, or all candidate identities exhausted.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`503`}),_jsx(_components.td,{children:`Queue, Worker, or managed resources unavailable; or Trends identity plan expired.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`504`}),_jsx(_components.td,{children:`Task, navigation, or proxy timeout; or Trends response not observed.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{\"data-numeric\":`true`,children:`500`}),_jsx(_components.td,{children:`Unclassified task execution failure.`})]})]})]}),`\n`,_jsx(Note,{children:_jsx(_components.p,{children:`One credit is consumed after request validation but before the task is enqueued. Request bodies are limited to 1 MiB.`})}),`\n`,_jsx(Heading,{level:`2`,id:`more-examples`,children:`More examples`}),`\n`,_jsxs(CodeGroup,{children:[_jsx(CodeBlock,{filename:`Custom fields`,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/dashboard\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"extract\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitUntil\": \"domcontentloaded\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitFor\": { \"selector\": \"h1\", \"timeoutMs\": 15000 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fields\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": { \"source\": \"dom\", \"selector\": \"h1\", \"parse\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subtitle\": { \"source\": \"dom\", \"selector\": \"p.subtitle\", \"parse\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"count\": { \"source\": \"dom\", \"selector\": \".metric-value\", \"parse\": \"number\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"countryCode\": \"GLOBAL\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userAgentMode\": \"random\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`SimilarWeb template`,numberOfLines:`8`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`8`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template\": \"similarweb-overview\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://www.similarweb.com/website/dolphin-anty.com/#overview\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"countryCode\": \"GLOBAL\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Google Trends`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"template\": \"google-trends-explore\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"keyword\": \"adspower,playwright\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`Inspect mode`,numberOfLines:`7`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`7`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/dashboard\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"inspect\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})})]}),`\n`,_jsxs(RequestExample,{children:[_jsx(CodeBlock,{filename:`cURL`,numberOfLines:`16`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`16`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`curl`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -sS`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -X`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` POST`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type: application/json\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -H`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key: YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D7BA7D`},children:` \\\\`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -d`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` '{`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\": \"https://example.com/dashboard\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\": \"extract\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitUntil\": \"domcontentloaded\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitFor\": { \"selector\": \"h1\", \"timeoutMs\": 15000 },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fields\": {`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\": { \"source\": \"dom\", \"selector\": \"h1\", \"parse\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subtitle\": { \"source\": \"dom\", \"selector\": \"p.subtitle\", \"parse\": \"string\" },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"count\": { \"source\": \"dom\", \"selector\": \".metric-value\", \"parse\": \"number\" }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"countryCode\": \"GLOBAL\",`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userAgentMode\": \"random\"`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` }'`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`JavaScript`,numberOfLines:`23`,language:`javascript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`javascript`,children:_jsxs(_components.code,{language:`javascript`,numberOfLines:`23`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` response`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:` fetch`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` method:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"POST\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` headers:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` body:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` JSON`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`stringify`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`({`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` url:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://example.com/dashboard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` mode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` waitUntil:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"domcontentloaded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` waitFor:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`selector:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"h1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`timeoutMs:`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:` 15000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` fields:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` title:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`source:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`selector:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"h1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parse:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` subtitle:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`source:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`selector:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"p.subtitle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parse:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` count:`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`source:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`selector:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \".metric-value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`parse:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` countryCode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"GLOBAL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` userAgentMode:`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"random\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }),`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`});`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#569CD6`},children:`const`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#4FC1FF`},children:` result`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:` =`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:` await`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:` response`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`json`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`();`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`console`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#8250DF`,\"--shiki-dark\":`#DCDCAA`},children:`log`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`result`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`.`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#9CDCFE`},children:`data`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`);`})]}),`\n`]})})}),_jsx(CodeBlock,{filename:`Python`,numberOfLines:`25`,language:`python`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`python`,children:_jsxs(_components.code,{language:`python`,numberOfLines:`25`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#C586C0`},children:`import`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` httpx`})]}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response `}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` httpx.post(`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"https://api.adscrawl.net/spa-extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` headers`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"content-type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"application/json\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"x-api-key\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"YOUR_API_KEY\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#9CDCFE`},children:` json`}),_jsx(_components.span,{style:{color:`#CF222E`,\"--shiki-dark\":`#D4D4D4`},children:`=`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/dashboard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitUntil\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"domcontentloaded\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"waitFor\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"selector\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"h1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"timeoutMs\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`15000`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"selector\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"h1\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"subtitle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"selector\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"p.subtitle\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"string\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"count\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"selector\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\".metric-value\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"parse\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"number\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`},`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"countryCode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"GLOBAL\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` \"userAgentMode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"random\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`)`})}),`\n`,_jsx(_components.span,{className:`line`}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`response.raise_for_status()`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`print`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`(response.json()[`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`])`})]}),`\n`]})})})]}),`\n`,_jsxs(ResponseExample,{children:[_jsx(CodeBlock,{filename:`200 Extract mode`,numberOfLines:`11`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`11`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/dashboard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Dashboard\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Dashboard\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`200 Inspect mode`,numberOfLines:`19`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`19`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"inspect\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://example.com/dashboard\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Example Dashboard\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"candidates\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"dom\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"metrics\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [], `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"tables\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [] },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"network\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"suggestedPlan\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"fields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"schema\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"type\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"object\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"properties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {},`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"additionalProperties\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`200 Google Trends`,numberOfLines:`20`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`20`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"mode\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"extract\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"page\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"url\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"https://trends.google.com/trends/explore?q=adspower%2Cplaywright\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"title\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"Google Trends\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"data\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: {`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"averages\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"adspower\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"extractedValue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`42`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` { `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"query\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"playwright\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`, `}),_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:`\"extractedValue\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`71`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` }`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` ],`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"interestOverTime\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: []`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:` },`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"missingFields\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: [],`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"source\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"sunbrowser\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"cached\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"stale\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:`false`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"collectedAt\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"2026-08-03T02:04:05.123456789Z\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`,`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"attempts\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#B5CEA8`},children:`2`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`402 Payment required`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"INSUFFICIENT_CREDITS\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})}),_jsx(CodeBlock,{filename:`422 Required fields missing`,numberOfLines:`3`,language:`json`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`json`,children:_jsxs(_components.code,{language:`json`,numberOfLines:`3`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`{`})}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#116329`,\"--shiki-dark\":`#9CDCFE`},children:` \"code\"`}),_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`: `}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:`\"SPA_REQUIRED_FIELDS_MISSING\"`})]}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{style:{color:`#1F2328`,\"--shiki-dark\":`#D4D4D4`},children:`}`})}),`\n`]})})})]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Extract SPA Data","sidebarTitle":"Extract SPA Data","description":"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.","api":"POST /spa-extract","playground":"interactive","href":"/api-reference/spa-extract"}}}},"mdxExtracts":{"tableOfContents":[{"title":"Response","slug":"response","depth":2,"children":[]},{"title":"More examples","slug":"more-examples","depth":2,"children":[]}],"codeExamples":{"request":{"type":"RequestExample","children":[{"filename":"cURL","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"shellscript\">\u003ccode language=\"shellscript\" numberOfLines=\"16\">\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#DCDCAA\">curl\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -sS\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -X\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> POST\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.adscrawl.net/spa-extract\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"content-type: application/json\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -H\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"x-api-key: YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D7BA7D\"> \\\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\"> -d\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> '{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"url\": \"https://example.com/dashboard\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"mode\": \"extract\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"waitUntil\": \"domcontentloaded\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"waitFor\": { \"selector\": \"h1\", \"timeoutMs\": 15000 },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fields\": {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"title\": { \"source\": \"dom\", \"selector\": \"h1\", \"parse\": \"string\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subtitle\": { \"source\": \"dom\", \"selector\": \"p.subtitle\", \"parse\": \"string\" },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"count\": { \"source\": \"dom\", \"selector\": \".metric-value\", \"parse\": \"number\" }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"countryCode\": \"GLOBAL\",\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"userAgentMode\": \"random\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> }'\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"JavaScript","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"javascript\">\u003ccode language=\"javascript\" numberOfLines=\"23\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> response\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\"> fetch\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://api.adscrawl.net/spa-extract\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> method:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"POST\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> headers:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"content-type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"x-api-key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> body:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> JSON\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">stringify\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">({\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> url:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://example.com/dashboard\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> mode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"extract\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> waitUntil:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"domcontentloaded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> waitFor:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">selector:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"h1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">timeoutMs:\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\"> 15000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> fields:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> title:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">source:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">selector:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"h1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">parse:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"string\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> subtitle:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">source:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">selector:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"p.subtitle\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">parse:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"string\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> count:\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">source:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">selector:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \".metric-value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">parse:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> countryCode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"GLOBAL\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> userAgentMode:\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"random\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }),\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">});\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#569CD6\">const\u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#4FC1FF\"> result\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\"> =\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\"> await\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\"> response\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">json\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">();\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">console\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#8250DF;--shiki-dark:#DCDCAA\">log\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">result\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">.\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#9CDCFE\">data\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">);\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"Python","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"python\">\u003ccode language=\"python\" numberOfLines=\"25\">\u003cspan class=\"line\">\u003cspan style=\"color:#CF222E;--shiki-dark:#C586C0\">import\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> httpx\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response \u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> httpx.post(\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"https://api.adscrawl.net/spa-extract\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> headers\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"content-type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"application/json\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"x-api-key\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"YOUR_API_KEY\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#953800;--shiki-dark:#9CDCFE\"> json\u003c/span>\u003cspan style=\"color:#CF222E;--shiki-dark:#D4D4D4\">=\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/dashboard\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"extract\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"waitUntil\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"domcontentloaded\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"waitFor\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"selector\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"h1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"timeoutMs\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">15000\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"fields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"selector\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"h1\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"parse\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"string\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"subtitle\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"selector\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"p.subtitle\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"parse\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"string\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"count\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"selector\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\".metric-value\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"parse\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"number\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"countryCode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"GLOBAL\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\"> \"userAgentMode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"random\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">)\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">response.raise_for_status()\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#0550AE;--shiki-dark:#DCDCAA\">print\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">(response.json()[\u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">])\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]},"response":{"type":"ResponseExample","children":[{"filename":"200 Extract mode","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"11\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"extract\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/dashboard\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Dashboard\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Dashboard\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"missingFields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"200 Inspect mode","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"19\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"inspect\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://example.com/dashboard\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Example Dashboard\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"candidates\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"dom\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"metrics\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [], \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"tables\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [] },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"network\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"suggestedPlan\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"fields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"schema\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"type\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"object\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"properties\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {},\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"additionalProperties\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"200 Google Trends","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"20\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"mode\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"extract\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"page\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"url\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"https://trends.google.com/trends/explore?q=adspower%2Cplaywright\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"title\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"Google Trends\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"data\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: {\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"averages\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"query\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"adspower\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"extractedValue\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">42\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> { \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"query\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"playwright\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">, \u003c/span>\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\">\"extractedValue\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">71\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> }\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> ],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"interestOverTime\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: []\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\"> },\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"missingFields\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: [],\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"source\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"sunbrowser\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"cached\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"stale\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#569CD6\">false\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"collectedAt\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"2026-08-03T02:04:05.123456789Z\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">,\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"attempts\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0550AE;--shiki-dark:#B5CEA8\">2\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"402 Payment required","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"INSUFFICIENT_CREDITS\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"},{"filename":"422 Required fields missing","html":"\u003cpre class=\"shiki shiki-themes github-light-default dark-plus\" style=\"background-color:#ffffff;--shiki-dark-bg:#0B0C0E;color:#1f2328;--shiki-dark:#D4D4D4\" language=\"json\">\u003ccode language=\"json\" numberOfLines=\"3\">\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">{\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#116329;--shiki-dark:#9CDCFE\"> \"code\"\u003c/span>\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">: \u003c/span>\u003cspan style=\"color:#0A3069;--shiki-dark:#CE9178\">\"SPA_REQUIRED_FIELDS_MISSING\"\u003c/span>\u003c/span>\n\u003cspan class=\"line\">\u003cspan style=\"color:#1F2328;--shiki-dark:#D4D4D4\">}\u003c/span>\u003c/span>\n\u003c/code>\u003c/pre>"}],"attributes":[]}},"endpoint":{"title":"Extract SPA Data","path":"/spa-extract","servers":[{"url":"https://api.adscrawl.net"}],"method":"post","request":{"security":[{"title":"API Key Auth","parameters":{"header":{"x-api-key":{"type":"apiKey"}},"query":{},"cookie":{}}}],"parameters":{"query":{},"header":{},"cookie":{},"path":{}},"body":{"application/json":{"schemaArray":[{"type":"object","properties":{"url":[{"type":"string","description":"Full HTTP(S) URL for the target SPA using port 80 or 443. Required for most templates. For `google-trends-explore` , prefer the `keyword` field instead. SimilarWeb requires a full page URL, not a bare domain."}],"keyword":[{"type":"string","description":"Recommended for `google-trends-explore` . Provide 1 to 5 unique, non-empty comma-separated keywords, each at most 100 Unicode characters (for example, `\"adspower,playwright\"` ). The server builds the canonical Trends URL automatically. Explicit `null` , numeric, or empty-string values return `INVALID_KEYWORD` and never fall back to `url` ."}],"mode":[{"type":"string","description":"Extraction mode. Defaults to `\"extract\"` . Value Behaviour `\"extract\"` Runs field or template extraction and returns structured `data` . `\"inspect\"` Returns DOM and network candidates discovered on the page along with a `suggestedPlan` you can copy into a future extract request."}],"template":[{"type":"string","description":"Built-in site template ID. When provided, `fields` are supplied by the template rather than your request. Available template IDs: `\"similarweb-overview\"` — website traffic, engagement, and ranking metrics. `\"google-trends-explore\"` — interest-over-time data and relative averages for up to 5 keywords. `\"chrome-web-store-app-info\"` — extension metadata from the Chrome Web Store (with CRX manifest fallback)."}],"parameters":[{"type":"object","properties":{},"description":"Template-specific parameters declared by the selected template. Refer to the template’s `input` specification from `GET /spa-extract/templates` ."}],"waitUntil":[{"type":"string","description":"Navigation event to wait for before extraction. Custom extraction defaults to `\"domcontentloaded\"` . Site templates use the request value first, then the template default, then `\"domcontentloaded\"` . Value Behaviour `\"domcontentloaded\"` Waits for DOMContentLoaded — recommended for most SPAs. `\"load\"` Waits for `window.load` including images and stylesheets. `\"networkidle\"` Waits until no network connections for 500 ms. May timeout on long-polling sites."}],"waitFor":[{"type":"object","properties":{"selector":[{"type":"string","description":"Wait for the first matching element to become visible."}],"text":[{"type":"string","description":"Wait for the first element containing this text to become visible."}],"timeoutMs":[{"type":"number","description":"Timeout in milliseconds. Defaults to 15,000 and never exceeds the remaining task timeout."}]},"description":"Wait for a specific element or text to appear after SPA navigation and actions complete. `selector` and `text` may be combined."}],"actions":[{"type":"array","items":[{"type":"object","properties":{"wait":[{"type":"object","properties":{},"description":"`{ type: \"wait\", milliseconds: number }` — Pause for 0 to 30,000 ms."}],"waitForSelector":[{"type":"object","properties":{},"description":"`{ type: \"waitForSelector\", selector: string, timeoutMs?: number }` — Wait for an element to become visible."}],"click":[{"type":"object","properties":{},"description":"`{ type: \"click\", selector: string }` — Click the first matching element."}],"fill":[{"type":"object","properties":{},"description":"`{ type: \"fill\", selector: string, value: string }` — Clear and fill the first matching input."}],"press":[{"type":"object","properties":{},"description":"`{ type: \"press\", selector: string, key: string }` — Press a key on the first matching element."}],"scroll":[{"type":"object","properties":{},"description":"`{ type: \"scroll\", selector?: string, x?: number, y?: number }` — Scroll an element into view or scroll the page. `y` defaults to 800."}]}}],"description":"Optional page interactions executed in array order before extraction. Each step is capped at 30 seconds."}],"fields":[{"type":"object","properties":{"source":[{"type":"string","description":"`\"dom\"` to read from the page HTML, or `\"network\"` to read from intercepted JSON responses.","required":true}],"selector":[{"type":"string","description":"CSS selector for a DOM field."}],"value":[{"type":"string","description":"DOM read mode: `\"text\"` (default), `\"html\"` , or `\"attribute\"` ."}],"attribute":[{"type":"string","description":"Attribute name, used when `value` is `\"attribute\"` ."}],"urlIncludes":[{"type":"string","description":"Substring to match against a response URL for a network field."}],"path":[{"type":"string","description":"JSON path within the matched network response, for example `$.data.metrics[0].value` ."}],"multiple":[{"type":"boolean","description":"Whether a DOM field should return all matching elements as an array."}],"parse":[{"type":"string","description":"Coerce the value to `\"string\"` , `\"number\"` , `\"integer\"` , `\"boolean\"` , or `\"json\"` ."}],"regex":[{"type":"string","description":"Optional regular expression. When a capture group is present, group 1 is used."}],"required":[{"type":"boolean","description":"Missing required fields return `422 SPA_REQUIRED_FIELDS_MISSING` ."}]},"description":"Record of named field definitions for `extract` mode. Each key becomes a property in the response `data` object. Use this when you are not using a template."}],"schema":[{"type":"object","properties":{},"description":"Legacy alias for `fields` , used only when `fields` is absent. String values are treated as DOM CSS selectors. Does not validate the response JSON and does not return `schemaValid` or `schemaErrors` fields. Prefer `fields` for all new integrations."}],"timeoutMs":[{"type":"number","description":"Maximum time to wait for the task to complete, in milliseconds. Must be a positive integer no greater than `3,600,000` ."}],"viewport":[{"type":"object","properties":{"width":[{"type":"number","description":"Viewport width in pixels."}],"height":[{"type":"number","description":"Viewport height in pixels."}]},"description":"Viewport dimensions used when rendering the page."}],"locale":[{"type":"string","description":"Browser locale, for example `\"en-US\"` . May follow trusted proxy metadata when omitted."}],"timezoneId":[{"type":"string","description":"IANA timezone identifier, for example `\"Asia/Shanghai\"` . May follow trusted proxy metadata when omitted."}],"geolocation":[{"type":"object","properties":{"latitude":[{"type":"number","description":"Latitude in decimal degrees."}],"longitude":[{"type":"number","description":"Longitude in decimal degrees."}]},"description":"Geolocation coordinates exposed to the page via the Geolocation API."}],"proxy":[{"type":"object","properties":{"server":[{"type":"string","description":"Full proxy URL such as `http://host:port` or `socks5://host:port` . Cannot be combined with `host` ."}],"protocol":[{"type":"string","description":"`\"http\"` or `\"socks5\"` . Used in the split form."}],"host":[{"type":"string","description":"Proxy host. Used in the split form."}],"port":[{"type":"object","properties":{},"description":"Port from 1 to 65535."}],"username":[{"type":"string","description":"Proxy username. Must be supplied together with `password` ."}],"password":[{"type":"string","description":"Proxy password. Must be supplied together with `username` ."}]},"description":"Custom proxy configuration. Cannot be combined with `countryCode` ."}],"countryCode":[{"type":"string","description":"Managed residential proxy region. Cannot be combined with `proxy` . `\"GLOBAL\"` — dynamic exit from 15 popular regions. Two-letter country code — prefers a trusted proxy with dynamic fallback. Omitted — a random trusted proxy is selected automatically."}],"userAgentMode":[{"type":"string","description":"`\"random\"` lets the server pick a User-Agent from its library. Requests without an explicit `userAgent` default to `\"random\"` ."}],"userAgentOs":[{"type":"string","description":"Operating system used when `userAgentMode` is `\"random\"` . Accepted values: `\"windows\"` (default) or `\"macos\"` ."}],"userAgent":[{"type":"string","description":"Explicit User-Agent string. Overrides the random selection."}],"fingerprint":[{"type":"object","properties":{"webRtc":[{"type":"string","description":"`\"forward\"` , `\"real\"` , or `\"disabled\"` ."}],"webGl":[{"type":"string","description":"`\"random\"` or `\"real\"` . Controls WebGL vendor and renderer metadata."}],"webGpu":[{"type":"string","description":"`\"random\"` , `\"real\"` , or `\"disabled\"` ."}],"webGlImage":[{"type":"string","description":"`\"random\"` or `\"real\"` . Controls WebGL image noise."}],"canvas":[{"type":"string","description":"`\"random\"` or `\"real\"` . Controls canvas noise."}],"audioContext":[{"type":"string","description":"`\"random\"` or `\"real\"` . Controls audio fingerprint noise."}],"clientRects":[{"type":"string","description":"`\"random\"` or `\"real\"` . Controls layout measurement noise."}],"speechVoices":[{"type":"string","description":"`\"random\"` or `\"real\"` . Returns an OS-matched speech voice list."}],"fonts":[{"type":"string","description":"`\"random\"` or `\"real\"` . Returns an OS-matched font list."}],"hardware":[{"type":"string","description":"`\"random\"` or `\"real\"` . Generates a coherent CPU thread count and memory pair."}],"doNotTrack":[{"type":"string","description":"`\"random\"` , `\"enabled\"` , or `\"disabled\"` ."}]},"description":"Browser fingerprint settings. When omitted, every signal defaults to random while keeping OS, GPU, CPU, memory, fonts, and device signals coherent."}],"cookies":[{"type":"array","items":[{"type":"object","properties":{"name":[{"type":"string","description":"Cookie name.","required":true}],"value":[{"type":"string","description":"Cookie value.","required":true}],"domain":[{"type":"string","description":"Target domain such as `.example.com` .","required":true}],"path":[{"type":"string","description":"Cookie path. Defaults to `/` ."}],"secure":[{"type":"boolean","description":"Whether the cookie is sent only over HTTPS."}],"httpOnly":[{"type":"boolean","description":"Whether the cookie is inaccessible to client-side JavaScript."}],"sameSite":[{"type":"string","description":"SameSite attribute."}],"session":[{"type":"boolean","description":"Set `true` for a session cookie."}],"expirationDate":[{"type":"number","description":"Unix expiry timestamp in seconds. Also accepted as `expires` or `expiry` ."}]}}],"description":"Cookie list injected into the browser context before navigation."}]}}],"examples":{"example":{"value":{"url":"\u003cstring>","keyword":"\u003cstring>","mode":"\u003cstring>","template":"\u003cstring>","parameters":{},"waitUntil":"\u003cstring>","waitFor":{"selector":"\u003cstring>","text":"\u003cstring>","timeoutMs":123},"actions":[{"wait":{},"waitForSelector":{},"click":{},"fill":{},"press":{},"scroll":{}}],"fields":{"source":"\u003cstring>","selector":"\u003cstring>","value":"\u003cstring>","attribute":"\u003cstring>","urlIncludes":"\u003cstring>","path":"\u003cstring>","multiple":true,"parse":"\u003cstring>","regex":"\u003cstring>","required":true},"schema":{},"timeoutMs":123,"viewport":{"width":123,"height":123},"locale":"\u003cstring>","timezoneId":"\u003cstring>","geolocation":{"latitude":123,"longitude":123},"proxy":{"server":"\u003cstring>","protocol":"\u003cstring>","host":"\u003cstring>","port":{},"username":"\u003cstring>","password":"\u003cstring>"},"countryCode":"\u003cstring>","userAgentMode":"\u003cstring>","userAgentOs":"\u003cstring>","userAgent":"\u003cstring>","fingerprint":{"webRtc":"\u003cstring>","webGl":"\u003cstring>","webGpu":"\u003cstring>","webGlImage":"\u003cstring>","canvas":"\u003cstring>","audioContext":"\u003cstring>","clientRects":"\u003cstring>","speechVoices":"\u003cstring>","fonts":"\u003cstring>","hardware":"\u003cstring>","doNotTrack":"\u003cstring>"},"cookies":[{"name":"\u003cstring>","value":"\u003cstring>","domain":"\u003cstring>","path":"\u003cstring>","secure":true,"httpOnly":true,"sameSite":"\u003cstring>","session":true,"expirationDate":123}]}}}}}},"response":{"200":{"application/json":{"schemaArray":[{"type":"object","properties":{"mode":[{"type":"string","description":"`\"extract\"` or `\"inspect\"` , mirroring the request mode."}],"page":[{"type":"object","properties":{"url":[{"type":"string","description":"Final page URL."}],"title":[{"type":"string","description":"Page title."}]},"description":"Page metadata."}],"data":[{"type":"object","properties":{},"description":"Extracted structured data. Keys match your `fields` definition or the template’s output fields."}],"missingFields":[{"type":"array","items":[{"type":"object","properties":{}}],"description":"List of field keys that were not found."}],"source":[{"type":"string","description":"`\"sunbrowser\"` — result came from a live browser collection. `\"cache\"` — result was served from the server cache. Present on Trends responses."}],"cached":[{"type":"boolean","description":"Whether this response was served from cache."}],"stale":[{"type":"boolean","description":"Whether the cached result is stale."}],"collectedAt":[{"type":"string","description":"RFC3339Nano timestamp of when the result was actually collected."}],"attempts":[{"type":"number","description":"Collection attempt count. Cache HIT responses use `0` ; stale responses use the attempt count at the time the Worker reported them."}],"candidates":[{"type":"object","properties":{},"description":"Present in `inspect` mode. DOM and network extraction candidates discovered on the page."}],"suggestedPlan":[{"type":"object","properties":{},"description":"Present in `inspect` mode. A plan with `fields` and `schema` you can copy into a future `extract` request."}]}}],"examples":{"example":{"value":{"mode":"\u003cstring>","page":{"url":"\u003cstring>","title":"\u003cstring>"},"data":{},"missingFields":[{}],"source":"\u003cstring>","cached":true,"stale":true,"collectedAt":"\u003cstring>","attempts":123,"candidates":{},"suggestedPlan":{}}}}}}},"deprecated":false}},"jsLinks":["/_mintlify/custom/adscrawl/06c522f789ce028e/salesmartly.js"],"subdomain":"adscrawl","siteName":"AdsCrawl","title":"Extract SPA Data - AdsCrawl","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{"en":{"href":"/api-reference/spa-extract","matchLevel":0},"zh":{"href":"/zh/api-reference/spa-extract","matchLevel":1}}},"lastModified":"2026-09-29T03:36:15.482Z","originalFileLocation":"api-reference/spa-extract.mdx","locale":"en"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.\">\u003cmeta data-mint-head name=\"application-name\" content=\"AdsCrawl\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Extract SPA Data - AdsCrawl\">\u003cmeta data-mint-head property=\"og:description\" content=\"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"AdsCrawl\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.adscrawl.net/api-reference/spa-extract\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://adscrawl.mintlify.site/_mintlify/api/og/v2?division=Browser+Tasks\u0026amp;title=Extract+SPA+Data\u0026amp;description=Extract+structured+data+from+JavaScript-heavy+SPAs+using+custom+CSS+or+network+fields%2C+built-in+templates%2C+or+inspect+mode+to+discover+extraction+candidates.\u0026amp;theme=77f75d39b9b0c121a2092b55\u0026amp;signature=4091e809fecd77188a5b1c0a45d5a96cff0f85ca3486950e412ef110005c53d9\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Extract SPA Data - AdsCrawl\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://adscrawl.mintlify.site/_mintlify/api/og/v2?division=Browser+Tasks\u0026amp;title=Extract+SPA+Data\u0026amp;description=Extract+structured+data+from+JavaScript-heavy+SPAs+using+custom+CSS+or+network+fields%2C+built-in+templates%2C+or+inspect+mode+to+discover+extraction+candidates.\u0026amp;theme=77f75d39b9b0c121a2092b55\u0026amp;signature=4091e809fecd77188a5b1c0a45d5a96cff0f85ca3486950e412ef110005c53d9\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/adscrawl/K83IBBeEnE6-2SmN/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"AdsCrawl\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#0071e3\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.adscrawl.net/api-reference/spa-extract\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/api-reference/spa-extract.md\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"en\" href=\"https://docs.adscrawl.net/api-reference/spa-extract\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"zh\" href=\"https://docs.adscrawl.net/zh/api-reference/spa-extract\">\u003clink data-mint-head rel=\"alternate\" hreflang=\"x-default\" href=\"https://docs.adscrawl.net/api-reference/spa-extract\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.adscrawl.net/#organization\",\"name\":\"AdsCrawl\",\"url\":\"https://docs.adscrawl.net\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://media.brand.dev/4640f1e9-6451-460f-a082-f8c2438d4f3b.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.adscrawl.net#website\",\"name\":\"AdsCrawl\",\"url\":\"https://docs.adscrawl.net\",\"publisher\":{\"@id\":\"https://docs.adscrawl.net/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.adscrawl.net/api-reference/spa-extract#webpage\",\"url\":\"https://docs.adscrawl.net/api-reference/spa-extract\",\"name\":\"Extract SPA Data\",\"description\":\"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.\",\"dateModified\":\"2026-09-29T03:36:15.482Z\",\"isPartOf\":{\"@id\":\"https://docs.adscrawl.net#website\"},\"breadcrumb\":{\"@id\":\"https://docs.adscrawl.net/api-reference/spa-extract#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.adscrawl.net/api-reference/spa-extract#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Browser Tasks\",\"item\":\"https://docs.adscrawl.net/api-reference/html\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Extract SPA Data\",\"item\":\"https://docs.adscrawl.net/api-reference/spa-extract\"}]},{\"@type\":[\"TechArticle\",\"APIReference\"],\"@id\":\"https://docs.adscrawl.net/api-reference/spa-extract#apireference\",\"headline\":\"Extract SPA Data\",\"name\":\"Extract SPA Data\",\"description\":\"Extract structured data from JavaScript-heavy SPAs using custom CSS or network fields, built-in templates, or inspect mode to discover extraction candidates.\",\"url\":\"https://docs.adscrawl.net/api-reference/spa-extract\",\"mainEntityOfPage\":{\"@id\":\"https://docs.adscrawl.net/api-reference/spa-extract#webpage\"},\"dateModified\":\"2026-09-29T03:36:15.482Z\",\"publisher\":{\"@id\":\"https://docs.adscrawl.net/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.adscrawl.net#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"AdsCrawl\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"AdsCrawl\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/api-reference/spa-extract.md","siteName":"AdsCrawl","nav":{"global":null,"languages":[{"language":"en","default":true,"tabs":[{"tab":"Documentation","pages":[{"title":"Documentation","href":"/introduction"}]},{"tab":"API Reference","groups":[{"group":"Overview","pages":[{"title":"AdsCrawl REST API Introduction","sidebarTitle":"Introduction","href":"/api-reference/introduction"},{"title":"API Schema Reference — Shared Types for All Endpoints","sidebarTitle":"Schemas","href":"/api-reference/schemas"}]},{"group":"Browser Tasks","pages":[{"title":"Render HTML, Markdown, or Article JSON","sidebarTitle":"Render HTML","api":"POST /html","playground":"interactive","href":"/api-reference/html"},{"title":"Capture Screenshot","sidebarTitle":"Screenshot","description":"Render any URL in a real browser and return a full-page or element-scoped PNG screenshot, routed through residential proxies.","api":"POST /screenshot","playground":"interactive","href":"/api-reference/screenshot"},{"title":"Extract SPA Data","sidebarTitle":"Extract SPA Data","api":"POST /spa-extract","playground":"interactive","href":"/api-reference/spa-extract"},{"title":"List Templates","sidebarTitle":"List Templates","description":"Retrieve the list of available built-in extraction templates with their input types, example URLs, expected output fields, and metadata.","api":"GET /spa-extract/templates","playground":"interactive","href":"/api-reference/spa-extract-templates"},{"title":"Similar websites API","sidebarTitle":"Similar websites","api":"POST https://api.adscrawl.net/similar-sites","playground":"simple","href":"/api-reference/similar-sites"}]},{"group":"Remote CDP","pages":[{"title":"Create CDP Session","sidebarTitle":"Create Session","api":"POST /cdp/sessions","playground":"interactive","href":"/api-reference/cdp-sessions"},{"title":"List CDP Sessions","sidebarTitle":"List Sessions","api":"GET /cdp/sessions","playground":"interactive","href":"/api-reference/cdp-sessions-list"},{"title":"Delete CDP Session","sidebarTitle":"Delete Session","api":"DELETE /cdp/sessions/{sessionId}","playground":"interactive","href":"/api-reference/cdp-sessions-delete"},{"title":"Discover CDP Endpoint","sidebarTitle":"Discover Endpoint","api":"GET /cdp/sessions/{sessionId}/json/version","playground":"interactive","href":"/api-reference/cdp-sessions-version"},{"title":"Issue Live Control Token","sidebarTitle":"Live Control Token","api":"POST /cdp/live-token","playground":"interactive","href":"/api-reference/cdp-live-token"}]},{"group":"Cloud Browsers","pages":[{"title":"List Cloud Browser Profiles","sidebarTitle":"List Browsers","api":"GET /cloud-browsers","playground":"interactive","href":"/api-reference/cloud-browsers-list"},{"title":"Get Cloud Browser Profile","sidebarTitle":"Get Browser","api":"GET /cloud-browsers/{id}","playground":"interactive","href":"/api-reference/cloud-browsers-get"},{"title":"Create Browser Profile","sidebarTitle":"Create Profile","api":"POST /cloud-browsers","playground":"interactive","href":"/api-reference/cloud-browsers-create"},{"title":"Create and Launch Browser","sidebarTitle":"Launch Browser","api":"POST /cloud-browsers/launch","playground":"interactive","href":"/api-reference/cloud-browsers-launch"},{"title":"Start Cloud Browser","sidebarTitle":"Start Browser","api":"POST /cloud-browsers/{id}/start","playground":"interactive","href":"/api-reference/cloud-browsers-start"},{"title":"Stop Cloud Browser","sidebarTitle":"Stop Browser","api":"POST /cloud-browsers/{id}/stop","playground":"interactive","href":"/api-reference/cloud-browsers-stop"}]},{"group":"AI Scrapers","pages":[{"title":"ChatGPT scraper API","sidebarTitle":"ChatGPT Scraper","api":"POST https://api.adscrawl.net/ai-search","playground":"simple","href":"/api-reference/ai-search"},{"title":"Gemini scraper API","sidebarTitle":"Gemini Scraper","api":"POST https://api.adscrawl.net/ai-search","playground":"simple","href":"/api-reference/gemini-scraper"},{"title":"Google AI Mode scraper API","sidebarTitle":"Google AI Mode Scraper","api":"POST https://api.adscrawl.net/ai-search","playground":"simple","href":"/api-reference/google-ai-mode-scraper"},{"title":"Google AI Overview scraper API","sidebarTitle":"Google AI Overview Scraper","api":"POST https://api.adscrawl.net/ai-search","playground":"simple","href":"/api-reference/google-ai-overview-scraper"}]}]}]},{"language":"zh","pages":[{"title":"zh","href":"/zh/api-reference/spa-extract"}]}]},"basePath":"","title":"Extract SPA Data - AdsCrawl","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":["c2aa737661","2b790eda92","b0f84f53ff"],"chunks":["OpenApiReferenceProvider-DdEMm2kG.js","utils-BMo572L7.js","cloneDeep-izs3Hzxb.js","_Uint8Array-BVIqJ90l.js","isObjectLike-C8vmzPEN.js","isArray-Dcu1dQ5t.js","utils-C-4m9KAx.js","toString-BX-iyh8G.js","isSymbol-CSH9U2Gm.js","addUniqueKeysToSchema-DPLK2Oq9.js","snippetPresets-BKjfJMC9.js","style-to-object-BY3JEAdk.js","v4-DIgz8zy6.js","conditional-requirements-CFM0id0Q.js","ApiExamples-DTsgtCEj.js","isEqual-BfaiBbcl.js","usePlaygroundInputsStore-C8vmhyQM.js","shallow-r9w8LQGS.js","getApiPlaygroundDisplay-DjPI64HQ.js","CodeSnippet-C8Bvhl16.js","CodeSnippets-BtWUwcMy.js","Page-BIYvYBgk.js","getPastedJson-Dcm_3Pgl.js","icon-BXwrTpjc.js","MethodPill-CcjfVmmy.js","DuplicateIcon-BuKIbXAQ.js","createIcon-DaL9yXsO.js","DynamicMarkdown-Co5nikxh.js","SectionHeading-P4UNTsMZ.js","axios-vUo_bRtp.js"]}