{"openapi":"3.1.0","info":{"title":"Scraper API","version":"0.1.0"},"paths":{"/health":{"get":{"tags":["System"],"summary":"Health check","operationId":"health_check_health_get","responses":{"200":{"description":"Service is healthy","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HealthResponse"}}}}}}},"/v1/extract":{"post":{"tags":["Extraction"],"summary":"Extract content from a URL","description":"Extract clean markdown or HTML from any URL with sync or async mode support","operationId":"extract_v1_extract_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractRequest"}}},"required":true},"responses":{"200":{"description":"Extraction succeeded (sync mode)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractSyncResponse"}}}},"202":{"description":"Job accepted (async mode)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractAsyncResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"No active subscription, insufficient balance or the key's spend cap reached; billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Request throttled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Extraction failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionErrorResponse"}}}},"403":{"description":"Target blocked by the compliance blocklist (TARGET_BLOCKED), or a Google search results page, which Google Search Light serves (GOOGLE_SEARCH_MOVED); not retryable and not charged. Or billing refused, in the flat error body: The key lacks the scope or the account is restricted (FORBIDDEN); billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractionErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/v1/extract/jobs":{"get":{"tags":["Extraction"],"summary":"List extraction jobs","description":"List and filter extraction jobs by full job ID (exact match), status, output format, and date range","operationId":"list_jobs_v1_extract_jobs_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"description":"Filter by full job ID (exact match, UUID)","title":"Job Id"},"description":"Filter by full job ID (exact match, UUID)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"description":"Filter by job status","title":"Status"},"description":"Filter by job status"},{"name":"output","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/OutputFormat"},{"type":"null"}],"description":"Filter by output format","title":"Output"},"description":"Filter by output format"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or after this date","title":"Start Date"},"description":"Filter jobs created on or after this date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or before this date","title":"End Date"},"description":"Filter jobs created on or before this date"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (must be greater than 0)","default":1,"title":"Page"},"description":"Page number (must be greater than 0)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"description":"Number of results per page (max 100)","default":100,"title":"Page Size"},"description":"Number of results per page (max 100)"}],"responses":{"200":{"description":"Job list retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobCollectionResponse"}}}},"400":{"description":"Unsupported filter or invalid job ID","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/extract/{job_id}":{"get":{"tags":["Extraction"],"summary":"Get extraction job result","description":"Poll for job progress and retrieve extraction results (async mode only)","operationId":"get_job_result_v1_extract__job_id__get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Job result details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/JobStatusResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batch":{"post":{"tags":["Batch"],"summary":"Start a batch extraction job","description":"Queue a batch of URLs for asynchronous extraction","operationId":"create_batch_v1_batch_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchAccepted"}}}},"401":{"description":"Unauthorized"},"402":{"description":"No active subscription, insufficient balance or the key's spend cap reached; billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks the scope or the account is restricted (FORBIDDEN); billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error"},"429":{"description":"Rate limited"},"503":{"description":"Service unavailable"}},"security":[{"ApiKeyAuth":[]}]}},"/v1/batch/jobs":{"get":{"tags":["Batch"],"summary":"List batch jobs","description":"List batch jobs for the authenticated user with optional filtering and pagination","operationId":"list_batch_jobs_v1_batch_jobs_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"description":"Filter by job status","title":"Status"},"description":"Filter by job status"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or after this date","title":"Start Date"},"description":"Filter jobs created on or after this date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or before this date","title":"End Date"},"description":"Filter jobs created on or before this date"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Results per page (max 100)","default":10,"title":"Page Size"},"description":"Results per page (max 100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchJobsResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batch/{job_id}":{"get":{"tags":["Batch"],"summary":"Get batch job status","description":"Poll for the current status and partial results of a batch job","operationId":"get_batch_status_v1_batch__job_id__get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page of results","default":1,"title":"Page"},"description":"Page of results"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Results per page (max 50)","default":10,"title":"Page Size"},"description":"Results per page (max 50)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchStatusResponse"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Job not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Batch"],"summary":"Cancel a batch job","description":"Stop scheduling new batch items and let in-flight child extractions drain","operationId":"cancel_batch_v1_batch__job_id__delete","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchCancelled"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Job not found"},"409":{"description":"Job cannot be cancelled in its current state"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/batch/{job_id}/download":{"get":{"tags":["Batch"],"summary":"Download all results of a batch as one zip","description":"A temporary link to a zip of a finished batch: one file per successful URL in the batch's formats and a manifest.json of the URLs without a file. Asking again returns a new link to the same archive. While the zip is still being built the answer is 202 with a Retry-After header. Not charged.","operationId":"download_batch_results_v1_batch__job_id__download_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BatchDownloadResponse"}}}},"202":{"description":"Archive still being built; retry after Retry-After seconds","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Job not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Job is still running","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"410":{"description":"Results are no longer kept","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Archive storage unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/map/jobs":{"get":{"tags":["Map"],"summary":"List map jobs","description":"List map jobs for the authenticated user with optional filtering and pagination","operationId":"list_map_jobs_v1_map_jobs_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"description":"Filter by job status","title":"Status"},"description":"Filter by job status"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or after this date","title":"Start Date"},"description":"Filter jobs created on or after this date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or before this date","title":"End Date"},"description":"Filter jobs created on or before this date"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Results per page (max 100)","default":10,"title":"Page Size"},"description":"Results per page (max 100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapJobsResponse"}}}},"400":{"description":"Unsupported filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/map/{job_id}":{"get":{"tags":["Map"],"summary":"Get map job details","description":"Retrieve the full details and discovered links for a completed map job","operationId":"get_map_job_v1_map__job_id__get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapJobDetailResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Job not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/map":{"post":{"tags":["Map"],"summary":"Discover all URLs under a base URL","description":"Returns the list of URLs found under the given base URL by combining sitemap parsing with HTML link extraction from the seed page. By default discovery is scoped to the exact seed host (a leading `www.` is treated as equivalent) and, when the URL includes a path, to URLs under that path; sibling subdomains and outbound links are excluded. Set `include_subdomains=true` to widen the scope to the whole registrable domain and probe common subdomains (docs, blog, help, support). The optional `search` parameter filters the discovered URLs by case-insensitive substring match — it does NOT query a search engine.","operationId":"map_urls_v1_map_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapRequest"}}},"required":true},"responses":{"200":{"description":"Discovery succeeded","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MapResponse"}}}},"400":{"description":"Invalid request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"No active subscription, insufficient balance or the key's spend cap reached; billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Request throttled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"Request timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Target blocked by the compliance blocklist (TARGET_BLOCKED); not retryable and not charged. Or billing refused: The key lacks the scope or the account is restricted (FORBIDDEN); billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/v1/statistics":{"get":{"tags":["Statistics"],"summary":"Get extraction statistics","description":"Retrieve aggregated extraction statistics for a given date range","operationId":"get_statistics_v1_statistics_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by start date (defaults to 30 days ago). The window covers at most 366 days, counted back from the end of `end_date` (a date-only `end_date` includes its whole day); an older start is moved up","title":"Start Date"},"description":"Filter by start date (defaults to 30 days ago). The window covers at most 366 days, counted back from the end of `end_date` (a date-only `end_date` includes its whole day); an older start is moved up"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter by end date (defaults to now); a later end date is moved back to now","title":"End Date"},"description":"Filter by end date (defaults to now); a later end date is moved back to now"}],"responses":{"200":{"description":"Statistics retrieved successfully","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StatisticsResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crawl":{"post":{"tags":["Crawl"],"summary":"Start a crawl job","description":"Crawl a website starting from a seed URL up to a given depth and page limit","operationId":"create_crawl_v1_crawl_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlRequest"}}},"required":true},"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlAccepted"}}}},"401":{"description":"Unauthorized"},"402":{"description":"No active subscription, insufficient balance or the key's spend cap reached; billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The seed URL is a Google search results page, which Google Search Light serves (GOOGLE_SEARCH_MOVED); not retryable and not charged. Or billing refused: The key lacks the scope or the account is restricted (FORBIDDEN); billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation error"},"429":{"description":"Rate limited"},"503":{"description":"Service unavailable"}},"security":[{"ApiKeyAuth":[]}]}},"/v1/crawl/jobs":{"get":{"tags":["Crawl"],"summary":"List crawl jobs","description":"List crawl jobs for the authenticated user with optional filtering and pagination","operationId":"list_crawl_jobs_v1_crawl_jobs_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"description":"Filter by job status","title":"Status"},"description":"Filter by job status"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or after this date","title":"Start Date"},"description":"Filter jobs created on or after this date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or before this date","title":"End Date"},"description":"Filter jobs created on or before this date"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Results per page (max 100)","default":10,"title":"Page Size"},"description":"Results per page (max 100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlJobsResponse"}}}},"400":{"description":"Unsupported filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/crawl/{job_id}":{"get":{"tags":["Crawl"],"summary":"Get crawl job status","description":"Poll for the current status and results of a crawl job","operationId":"get_crawl_status_v1_crawl__job_id__get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page of results","default":1,"title":"Page"},"description":"Page of results"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":50,"minimum":1,"description":"Results per page (max 50)","default":10,"title":"Page Size"},"description":"Results per page (max 50)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlStatusResponse"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Job not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"delete":{"tags":["Crawl"],"summary":"Cancel a crawl job","description":"Stop scheduling new crawl pages and let in-flight page work drain","operationId":"cancel_crawl_v1_crawl__job_id__delete","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"202":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrawlCancelled"}}}},"401":{"description":"Unauthorized"},"404":{"description":"Job not found"},"409":{"description":"Job cannot be cancelled in its current state"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search/jobs":{"get":{"tags":["Search"],"summary":"List search jobs","description":"List search jobs for the authenticated user with optional filtering and pagination","operationId":"list_search_jobs_v1_search_jobs_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"$ref":"#/components/schemas/JobStatus"},{"type":"null"}],"description":"Filter by job status","title":"Status"},"description":"Filter by job status"},{"name":"start_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or after this date","title":"Start Date"},"description":"Filter jobs created on or after this date"},{"name":"end_date","in":"query","required":false,"schema":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"description":"Filter jobs created on or before this date","title":"End Date"},"description":"Filter jobs created on or before this date"},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number","default":1,"title":"Page"},"description":"Page number"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Results per page (max 100)","default":10,"title":"Page Size"},"description":"Results per page (max 100)"}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJobsResponse"}}}},"400":{"description":"Unsupported filter","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search/{job_id}":{"get":{"tags":["Search"],"summary":"Get search job details","description":"Retrieve the full details and results for a completed search job","operationId":"get_search_job_v1_search__job_id__get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Job Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchJobDetailResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Job not found"},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/search":{"post":{"tags":["Search"],"summary":"Search","operationId":"search_v1_search_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRequest"}}},"required":true},"responses":{"200":{"description":"Search results. `results` is empty when the engine answered and found nothing; such a search is not charged.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"No active subscription, insufficient balance or the key's spend cap reached; billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The key lacks the scope or the account is restricted (FORBIDDEN); billing's code in details.reason","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"Request timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Upstream blocked the query, or it returned no results","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Request throttled"},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/v1/google/search/light":{"post":{"tags":["Google"],"summary":"Google search, light","description":"Organic Google results, in one shape for every request: `{job_id, query, pages_requested, pages_returned, pages_stopped, pages: [...]}`. `pages` asks for pages 1 to N in one request, fetched through one Google session and exit IP and billed per page returned; without it the answer holds one page. `format` chooses what each page carries: the parsed results (json), the page as Google sent it (html), or both. `ai_overview` adds Google's AI Overview on page 1.","operationId":"google_search_light_v1_google_search_light_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSearchLightRequest"}}},"required":true},"responses":{"200":{"description":"The pages, page 1 first. \"html\" and \"both\" come gzip-compressed for a client that accepts it.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleSearchLightResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"No active subscription, or insufficient token balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"Request timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"No page: Google returned no results (`NO_RESULTS`, not retryable: asking again changes nothing), or would not serve the query (`UPSTREAM_BLOCKED`, retryable: the same query often passes on another exit). Neither is billed. A request body the API cannot read is also a 422, with a `detail` list instead of `code`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"},"examples":{"no_results":{"summary":"Google returned no results","value":{"code":"NO_RESULTS","message":"search blocked (empty) after 1 attempts","correlation_id":"6f1d2a9c-3b7e-4c5a-9e21-0d8f4b7a1c33","retryable":false,"details":{"reason":"empty","attempts":1}}},"upstream_blocked":{"summary":"Google would not serve the query","value":{"code":"UPSTREAM_BLOCKED","message":"search blocked (captcha) after 3 attempts","correlation_id":"0b8e7f42-91c3-4d6a-b5e0-2a7c9d13f846","retryable":true,"details":{"reason":"captcha","attempts":3}}}}}}},"429":{"description":"Request throttled"},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Google search is not available on this deployment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/v1/google/shopping/product":{"post":{"tags":["Google"],"summary":"Google Shopping, a product and its sellers","description":"A Google Shopping product by its catalog id, and the stores that sell it with their prices: the stores the product's page shows, and those behind its \"More stores\" button, ten at each of `more_stores` asks. As a US buyer sees it, in English. One request is one product, whatever the number of stores.","operationId":"google_shopping_product_v1_google_shopping_product_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleShoppingProductRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleShoppingProductResponse"}}}},"401":{"description":"Unauthorized"},"402":{"description":"No active subscription, or insufficient balance","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"Request timed out","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Google has no such product, or would not serve it","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Request throttled"},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Upstream unreachable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Google Shopping is not available on this deployment","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"ApiKeyAuth":[]}]}},"/v1/webhooks":{"post":{"tags":["Webhooks"],"summary":"Register a webhook","description":"Create a webhook subscription for a given event type and return its generated signing secret","operationId":"create_webhook_v1_webhooks_post","security":[{"ApiKeyAuth":[]}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreate"}}}},"responses":{"201":{"description":"Webhook registered","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookCreateResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["Webhooks"],"summary":"List webhooks","description":"List webhooks registered for the current user with pagination","operationId":"list_webhooks_v1_webhooks_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (must be greater than 0)","default":1,"title":"Page"},"description":"Page number (must be greater than 0)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"description":"Number of results per page (max 100)","default":100,"title":"Page Size"},"description":"Number of results per page (max 100)"}],"responses":{"200":{"description":"Webhook list retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}":{"get":{"tags":["Webhooks"],"summary":"Get a webhook","description":"Retrieve a single webhook by its identifier","operationId":"get_webhook_v1_webhooks__webhook_id__get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Webhook details","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["Webhooks"],"summary":"Update a webhook","description":"Partially update a webhook's url, description, event type, or active flag","operationId":"update_webhook_v1_webhooks__webhook_id__patch","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookUpdate"}}}},"responses":{"200":{"description":"Webhook updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation failed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Webhooks"],"summary":"Delete a webhook","description":"Permanently remove a webhook subscription","operationId":"delete_webhook_v1_webhooks__webhook_id__delete","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"204":{"description":"Webhook deleted"},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/rotate-secret":{"post":{"tags":["Webhooks"],"summary":"Rotate webhook secret","description":"Generate a new signing secret for the webhook and invalidate the previous one","operationId":"rotate_secret_v1_webhooks__webhook_id__rotate_secret_post","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}}],"responses":{"200":{"description":"Secret rotated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RotateSecretResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/webhooks/{webhook_id}/deliveries":{"get":{"tags":["Webhooks"],"summary":"List delivery history","description":"List webhook delivery attempts with optional status filter and pagination","operationId":"list_deliveries_v1_webhooks__webhook_id__deliveries_get","security":[{"ApiKeyAuth":[]}],"parameters":[{"name":"webhook_id","in":"path","required":true,"schema":{"type":"string","format":"uuid","title":"Webhook Id"}},{"name":"page","in":"query","required":false,"schema":{"type":"integer","minimum":1,"description":"Page number (must be greater than 0)","default":1,"title":"Page"},"description":"Page number (must be greater than 0)"},{"name":"page_size","in":"query","required":false,"schema":{"type":"integer","maximum":100,"description":"Number of results per page (max 100)","default":100,"title":"Page Size"},"description":"Number of results per page (max 100)"},{"name":"status","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Status"}}],"responses":{"200":{"description":"Delivery history retrieved","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeliveryListResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Webhook not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/v1/usage/concurrency":{"get":{"tags":["Usage"],"summary":"Get current work-concurrency usage","description":"Return the caller's live work-concurrency slot usage against their plan limit","operationId":"get_concurrency_usage_v1_usage_concurrency_get","responses":{"200":{"description":"Current concurrency usage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConcurrencyUsageResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service temporarily unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"security":[{"ApiKeyAuth":[]}]}}},"components":{"schemas":{"AiOverviewModel":{"properties":{"text":{"type":"string","title":"Text","description":"The overview's text: a paragraph or heading per line, list items starting with •"},"sources":{"items":{"$ref":"#/components/schemas/AiSourceModel"},"type":"array","title":"Sources","description":"The sources Google cites for it"},"via":{"type":"string","enum":["page","async"],"title":"Via","description":"\"page\": it came in the results page; \"async\": Google loads it after the page, and it was asked for"}},"type":"object","required":["text","via"],"title":"AiOverviewModel"},"AiSourceModel":{"properties":{"title":{"type":"string","title":"Title","description":"The source page's title, as Google's source card shows it"},"url":{"type":"string","title":"Url","description":"Google's redirect link to the source (https://www.google.com/goto?url=…), not the source's own URL"}},"type":"object","required":["title","url"],"title":"AiSourceModel"},"BatchAccepted":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"status":{"$ref":"#/components/schemas/JobStatus","default":"queued"},"status_url":{"type":"string","title":"Status Url","description":"URL to poll for job status"},"accepted_urls":{"type":"integer","title":"Accepted Urls","description":"Number of valid URLs accepted into the batch"},"invalid_urls":{"items":{"type":"string"},"type":"array","title":"Invalid Urls","description":"URLs rejected during batch creation"}},"type":"object","required":["job_id","status_url","accepted_urls"],"title":"BatchAccepted"},"BatchCancelled":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"status":{"$ref":"#/components/schemas/JobStatus","default":"cancelled"},"status_url":{"type":"string","title":"Status Url","description":"URL to poll for job status"},"in_flight_urls":{"type":"integer","title":"In Flight Urls","description":"Number of queued or processing child URLs still draining","default":0}},"type":"object","required":["job_id","status_url"],"title":"BatchCancelled"},"BatchConfig":{"properties":{"render_js":{"type":"boolean","title":"Render Js","description":"Whether every batch item uses headless browser rendering"},"formats":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Formats","description":"Output formats requested for each accepted URL"},"proxy":{"$ref":"#/components/schemas/ProxySettings","description":"Proxy configuration used for batch item extractions"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Custom HTTP headers included in each batch item extraction request, without dropped headers"},"wait_config":{"anyOf":[{"$ref":"#/components/schemas/WaitConfig"},{"type":"null"}],"description":"Caller-owned explicit browser wait policy applied to each batch item. Null when no explicit wait policy was persisted for this batch workflow."}},"type":"object","required":["render_js","formats","proxy"],"title":"BatchConfig"},"BatchDownloadResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"download_url":{"type":"string","title":"Download Url","description":"Temporary link to a zip with one file per successful URL in the batch's formats and a manifest.json of the URLs without a file"},"expires_at":{"type":"string","format":"date-time","title":"Expires At","description":"When the link stops working; ask again for a new one"}},"type":"object","required":["job_id","download_url","expires_at"],"title":"BatchDownloadResponse"},"BatchItemMetadata":{"properties":{"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status","description":"HTTP status code from target site"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Extraction duration in milliseconds"},"tokens_charged":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Charged","description":"Tokens already charged for this child extraction"}},"type":"object","title":"BatchItemMetadata"},"BatchJobsResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/BatchListItemResponse"},"type":"array","title":"Jobs"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["jobs","page","page_size","page_count"],"title":"BatchJobsResponse"},"BatchListItemResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"status":{"$ref":"#/components/schemas/JobStatus"},"accepted_urls":{"type":"integer","title":"Accepted Urls","description":"Total number of URLs in the batch"},"completed_urls":{"type":"integer","title":"Completed Urls","default":0},"failed_urls":{"type":"integer","title":"Failed Urls","default":0},"config":{"$ref":"#/components/schemas/BatchConfig"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["job_id","status","accepted_urls","config","created_at"],"title":"BatchListItemResponse"},"BatchRequest":{"properties":{"urls":{"items":{"type":"string"},"type":"array","maxItems":1000,"minItems":1,"title":"Urls","description":"URLs to extract in one batch"},"ignore_invalid_urls":{"type":"boolean","title":"Ignore Invalid Urls","description":"If true, invalid URLs are skipped and returned in invalid_urls instead of failing the request","default":true},"formats":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Formats","description":"Output formats to return","default":["markdown"]},"render_js":{"type":"boolean","title":"Render Js","description":"If true, uses a headless browser to render the page for every batch item","default":false},"proxy":{"$ref":"#/components/schemas/ProxySettings","description":"Proxy configuration"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Custom HTTP headers to include in extraction requests. `Host` and `:authority` are dropped: the target host always comes from each item's URL"},"wait_config":{"anyOf":[{"$ref":"#/components/schemas/WaitConfig"},{"type":"null"}],"description":"Grouped browser wait policy applied to every batch item. Optional — when omitted or explicitly `null`, each child extraction uses the adaptive default settle policy whenever a browser runs. Send an object to opt every child extraction into caller-owned explicit wait mode, which skips the adaptive default settle phase. Only non-null wait_config values count as provided; null fields inside wait_config behave the same as absence. If render_js is not set explicitly, any non-null wait_config value auto-enables browser rendering for the workflow and the effective render_js value is returned in batch_config. If you explicitly send render_js=false together with non-null wait_config values, the request is rejected as ambiguous."}},"type":"object","required":["urls"],"title":"BatchRequest"},"BatchResultItem":{"properties":{"input_index":{"type":"integer","title":"Input Index"},"url":{"type":"string","title":"Url"},"status":{"type":"string","title":"Status"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Machine-readable error code for failed items"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"Human-readable explanation of the item failure"},"data":{"anyOf":[{"$ref":"#/components/schemas/ExtractionData"},{"type":"null"}]},"metadata":{"anyOf":[{"$ref":"#/components/schemas/BatchItemMetadata"},{"type":"null"}]}},"type":"object","required":["input_index","url","status"],"title":"BatchResultItem"},"BatchStatusResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"status":{"$ref":"#/components/schemas/JobStatus"},"batch_config":{"$ref":"#/components/schemas/BatchConfig"},"token_summary":{"$ref":"#/components/schemas/BatchTokenSummary"},"total_urls":{"type":"integer","title":"Total Urls","description":"Number of accepted URLs in the batch","default":0},"completed_urls":{"type":"integer","title":"Completed Urls","default":0},"failed_urls":{"type":"integer","title":"Failed Urls","default":0},"cancelled_urls":{"type":"integer","title":"Cancelled Urls","default":0},"pending_urls":{"type":"integer","title":"Pending Urls","default":0},"invalid_urls":{"items":{"type":"string"},"type":"array","title":"Invalid Urls"},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/BatchResultItem"},"type":"array"},{"type":"null"}],"title":"Results","description":"Current result slice selected by the page and page_size request parameters"}},"type":"object","required":["job_id","status","batch_config","token_summary"],"title":"BatchStatusResponse"},"BatchTokenSummary":{"properties":{"tokens_charged_total":{"type":"integer","title":"Tokens Charged Total","description":"Sum of charged tokens across all batch items","default":0},"tokens_reserved":{"type":"integer","title":"Tokens Reserved","description":"Sum of tokens still reserved for queued, processing, or settling child jobs","default":0}},"type":"object","title":"BatchTokenSummary"},"ConcurrencyUsageResponse":{"properties":{"work_concurrency_in_use":{"type":"integer","title":"Work Concurrency In Use","description":"Work-concurrency slots currently leased by the caller"},"work_concurrency_limit":{"type":"integer","title":"Work Concurrency Limit","description":"Maximum concurrent work-concurrency slots allowed by the caller's plan"}},"type":"object","required":["work_concurrency_in_use","work_concurrency_limit"],"title":"ConcurrencyUsageResponse"},"CrawlAccepted":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"url":{"type":"string","title":"Url","description":"Seed URL being crawled"},"status":{"$ref":"#/components/schemas/JobStatus","default":"queued"},"status_url":{"type":"string","title":"Status Url","description":"URL to poll for job status"},"estimated_pages":{"type":"integer","title":"Estimated Pages","description":"Maximum number of pages that will be crawled"}},"type":"object","required":["job_id","url","status_url","estimated_pages"],"title":"CrawlAccepted"},"CrawlCancelled":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"status":{"$ref":"#/components/schemas/JobStatus","default":"cancelled"},"status_url":{"type":"string","title":"Status Url","description":"URL to poll for job status"},"in_flight_pages":{"type":"integer","title":"In Flight Pages","description":"Number of queued or processing child pages still draining","default":0}},"type":"object","required":["job_id","status_url"],"title":"CrawlCancelled"},"CrawlConfig":{"properties":{"render_js":{"type":"boolean","title":"Render Js","description":"Whether each crawl page uses headless browser rendering"},"formats":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Formats","description":"Output formats requested for each crawl page"},"same_domain_only":{"type":"boolean","title":"Same Domain Only","description":"Whether crawling is restricted to the seed domain"},"include_subdomains":{"type":"boolean","title":"Include Subdomains","description":"Whether subdomains are included when same_domain_only is true"},"proxy":{"anyOf":[{"$ref":"#/components/schemas/ProxySettings"},{"type":"null"}],"description":"Proxy configuration used for crawl page extractions."},"wait_config":{"anyOf":[{"$ref":"#/components/schemas/WaitConfig"},{"type":"null"}],"description":"Caller-owned explicit browser wait policy applied to each crawl page. Null when no explicit wait policy was persisted for this crawl workflow."}},"type":"object","required":["render_js","formats","same_domain_only","include_subdomains"],"title":"CrawlConfig"},"CrawlJobsResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/CrawlListItemResponse"},"type":"array","title":"Jobs"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["jobs","page","page_size","page_count"],"title":"CrawlJobsResponse"},"CrawlListItemResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"url":{"type":"string","title":"Url","description":"Seed URL for the crawl"},"status":{"$ref":"#/components/schemas/JobStatus"},"total_pages":{"type":"integer","title":"Total Pages","description":"Total crawl pages discovered","default":0},"completed_pages":{"type":"integer","title":"Completed Pages","default":0},"failed_pages":{"type":"integer","title":"Failed Pages","default":0},"config":{"$ref":"#/components/schemas/CrawlConfig"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"}},"type":"object","required":["job_id","url","status","config","created_at"],"title":"CrawlListItemResponse"},"CrawlPageData":{"properties":{"markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html"}},"type":"object","title":"CrawlPageData"},"CrawlPageItem":{"properties":{"url":{"type":"string","title":"Url"},"parent_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Parent Url"},"depth":{"type":"integer","title":"Depth"},"status":{"type":"string","title":"Status"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Machine-readable error code for failed pages"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"Human-readable explanation of the page failure"},"links":{"items":{"type":"string"},"type":"array","title":"Links"},"data":{"anyOf":[{"$ref":"#/components/schemas/CrawlPageData"},{"type":"null"}]},"metadata":{"anyOf":[{"$ref":"#/components/schemas/CrawlPageMetadata"},{"type":"null"}]}},"type":"object","required":["url","depth","status"],"title":"CrawlPageItem"},"CrawlPageMetadata":{"properties":{"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status","description":"HTTP status code from target site"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Extraction duration in milliseconds"},"tokens_charged":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Charged","description":"Tokens already charged for this child extraction"}},"type":"object","title":"CrawlPageMetadata"},"CrawlRequest":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url","description":"Seed URL to start crawling from"},"depth":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Depth","description":"Maximum BFS depth from the seed URL (1 = seed only)","default":2},"limit":{"type":"integer","maximum":10000.0,"minimum":1.0,"title":"Limit","description":"Maximum number of pages to crawl","default":50},"formats":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Formats","description":"Output formats to extract per page","default":["markdown"]},"render_js":{"type":"boolean","title":"Render Js","description":"Use a headless browser to render each page (slower, handles JS-heavy sites)","default":false},"same_domain_only":{"type":"boolean","title":"Same Domain Only","description":"Only follow links that stay on the same domain as the seed URL","default":true},"include_subdomains":{"type":"boolean","title":"Include Subdomains","description":"When same_domain_only is true, also include subdomains of the seed domain","default":false},"proxy":{"anyOf":[{"$ref":"#/components/schemas/ProxySettings"},{"type":"null"}],"description":"Proxy configuration for page requests. Optional — when omitted or explicitly `null`, defaults are applied per page: residential type, country auto-resolved from each page URL (domain/path overrides first, then the TLD; if nothing matches, the upstream proxy provider picks the exit region). Send an object to override either field; individual fields inside the object may also be null (see ProxySettings).","default":{"type":"residential"}},"wait_config":{"anyOf":[{"$ref":"#/components/schemas/WaitConfig"},{"type":"null"}],"description":"Grouped browser wait policy applied to every crawled page extraction. Optional — when omitted or explicitly `null`, each page extraction uses the adaptive default settle policy whenever a browser runs. Send an object to opt every page extraction into caller-owned explicit wait mode, which skips the adaptive default settle phase. Only non-null wait_config values count as provided; null fields inside wait_config behave the same as absence. If render_js is not set explicitly, any non-null wait_config value auto-enables browser rendering for the workflow and the effective render_js value is returned in crawl_config. If you explicitly send render_js=false together with non-null wait_config values, the request is rejected as ambiguous."}},"type":"object","required":["url"],"title":"CrawlRequest"},"CrawlStatusResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"url":{"type":"string","title":"Url"},"status":{"$ref":"#/components/schemas/JobStatus"},"crawl_config":{"$ref":"#/components/schemas/CrawlConfig"},"token_summary":{"$ref":"#/components/schemas/CrawlTokenSummary"},"total_pages":{"type":"integer","title":"Total Pages","description":"Total crawl pages discovered so far, not pagination page count","default":0},"completed_pages":{"type":"integer","title":"Completed Pages","description":"Number of crawl pages completed so far","default":0},"failed_pages":{"type":"integer","title":"Failed Pages","description":"Number of crawl pages that failed","default":0},"cancelled_pages":{"type":"integer","title":"Cancelled Pages","description":"Number of crawl pages that were cancelled","default":0},"created_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/CrawlPageItem"},"type":"array"},{"type":"null"}],"title":"Results","description":"Current result slice selected by the page and page_size request parameters"}},"type":"object","required":["job_id","url","status","crawl_config","token_summary"],"title":"CrawlStatusResponse"},"CrawlTokenSummary":{"properties":{"tokens_charged_total":{"type":"integer","title":"Tokens Charged Total","description":"Sum of charged tokens across all crawl pages","default":0},"tokens_reserved":{"type":"integer","title":"Tokens Reserved","description":"Sum of tokens still reserved for queued, processing, or settling child jobs","default":0}},"type":"object","title":"CrawlTokenSummary"},"DeliveryListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/DeliveryResponse"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["items","page","page_size","page_count"],"title":"DeliveryListResponse"},"DeliveryResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"event_type":{"$ref":"#/components/schemas/WebhookEventType"},"job_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}],"title":"Job Id"},"attempt_number":{"type":"integer","title":"Attempt Number"},"status":{"type":"string","title":"Status"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status"},"delivered_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Delivered At"},"created_at":{"type":"string","format":"date-time","title":"Created At"}},"type":"object","required":["id","event_type","job_id","attempt_number","status","http_status","delivered_at","created_at"],"title":"DeliveryResponse"},"ErrorResponse":{"properties":{"code":{"type":"string","title":"Code","description":"Error code"},"message":{"type":"string","title":"Message","description":"Human-readable error message"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id","description":"Request correlation id"},"retryable":{"type":"boolean","title":"Retryable","description":"Whether the error is transient and may succeed on retry"},"details":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Details","description":"Additional error context"}},"type":"object","required":["code","message","retryable"],"title":"ErrorResponse"},"ExtractAsyncResponse":{"properties":{"job_id":{"type":"string","title":"Job Id","description":"Job ID for polling status"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Initial job status"},"status_url":{"type":"string","title":"Status Url","description":"URL to poll for job status"},"estimated_tokens":{"type":"integer","title":"Estimated Tokens","description":"Estimated tokens reserved for this job"}},"type":"object","required":["job_id","status","status_url","estimated_tokens"],"title":"ExtractAsyncResponse"},"ExtractRequest":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url","description":"URL to extract content from"},"formats":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Formats","description":"Output formats to return","default":["html"]},"render_js":{"type":"boolean","title":"Render Js","description":"If true, uses a headless browser to render the page (slower, more expensive).","default":false},"processing_mode":{"$ref":"#/components/schemas/ProcessingMode","description":"Processing mode: sync (block until done) or async (starts job and return job ID)","default":"sync"},"timeout":{"anyOf":[{"type":"integer","minimum":1000.0},{"type":"null"}],"title":"Timeout","description":"Milliseconds this request may take, counted from when we receive it and including any queue wait. A wait for the per-site rate limit or for a free thread uses the same time: when it does not fit, the request is refused with 429 instead of being held longer. On expiry the escalation chain stops rather than the response merely arriving sooner: no further browser is launched, and the request is not billed. Omit it to keep the system ceiling. Sync requests only: sending it with processing_mode=async is rejected rather than ignored, because an async caller holds a job id and polls at its own pace. Values above the ceiling are clamped to it."},"proxy":{"anyOf":[{"$ref":"#/components/schemas/ProxySettings"},{"type":"null"}],"description":"Proxy configuration. Optional — when omitted or explicitly `null`, defaults are applied: residential type, country auto-resolved from the target URL (domain/path overrides first, then the TLD; if nothing matches, the upstream proxy provider picks the exit region). Send an object to override either field; individual fields inside the object may also be null (see ProxySettings).","default":{"type":"residential"}},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Custom HTTP headers to include in extraction request. `Accept-Language` is the one exception on browser-rendered requests: it is not forwarded verbatim, because it would override the header the browser derives from its locale and leave the wire value contradicting `navigator.language`. The language you ask for is still honoured — it selects the browser locale, paired with the proxy country's region, so `en-US` through a German proxy renders the page as `en-DE`. `Host` and `:authority` are dropped: the target host always comes from `url`."},"wait_config":{"anyOf":[{"$ref":"#/components/schemas/WaitConfig"},{"type":"null"}],"description":"Grouped browser wait policy. Optional: when omitted or null, browser requests use the adaptive default settle policy whenever a browser runs. Send a non-null object to opt into caller-owned explicit wait mode, which skips the adaptive default settle phase. Null fields inside wait_config behave the same as absence. If render_js is not set explicitly, any non-null wait_config auto-enables browser rendering and the effective render_js value is returned in metadata. If render_js=false is sent together with a non-null wait_config, the request is rejected as ambiguous."}},"type":"object","required":["url"],"title":"ExtractRequest"},"ExtractSyncResponse":{"properties":{"data":{"$ref":"#/components/schemas/ExtractionData","description":"Extracted content in requested formats"},"metadata":{"$ref":"#/components/schemas/ExtractionMetadata","description":"Execution metadata"},"tokens_charged":{"type":"integer","title":"Tokens Charged","description":"Number of tokens charged for this extraction"}},"type":"object","required":["data","metadata","tokens_charged"],"title":"ExtractSyncResponse"},"ExtractionData":{"properties":{"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html","description":"Sanitized HTML content"},"markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown","description":"Clean markdown content"}},"type":"object","title":"ExtractionData"},"ExtractionError":{"properties":{"code":{"$ref":"#/components/schemas/ExtractionErrorCode","description":"Error classification code"},"message":{"type":"string","title":"Message","description":"Human-readable error description"},"retryable":{"type":"boolean","title":"Retryable","description":"Whether the error is transient and may succeed on retry"},"details":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Details","description":"Additional error details"},"correlation_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Correlation Id","description":"Correlation id of the failed extraction"}},"type":"object","required":["code","message","retryable"],"title":"ExtractionError"},"ExtractionErrorCode":{"type":"string","enum":["RATE_LIMITED","WORK_CONCURRENCY_LIMITED","WORK_CONCURRENCY_LEASE_EXPIRED","TEMPORARY_BLOCK","NETWORK_ERROR","CAPTCHA_CHALLENGE","PERMANENT_BLOCK","INVALID_URL","INVALID_WAIT_FOR_SELECTOR","WAIT_FOR_SELECTOR_TIMEOUT","UNPROCESSABLE_CONTENT","AUTH_REQUIRED","TIMEOUT","CANCELLED","PAYMENT_REQUIRED","INTERNAL_ERROR","PROXY_ERROR","TARGET_BLOCKED","GOOGLE_SEARCH_MOVED"],"title":"ExtractionErrorCode"},"ExtractionErrorResponse":{"properties":{"error":{"$ref":"#/components/schemas/ExtractionError","description":"Execution metadata"},"tokens_charged":{"type":"integer","title":"Tokens Charged","description":"Number of tokens charged for this extraction"}},"type":"object","required":["error","tokens_charged"],"title":"ExtractionErrorResponse"},"ExtractionMetadata":{"properties":{"url":{"type":"string","title":"Url","description":"URL that was extracted"},"render_js":{"type":"boolean","title":"Render Js","description":"Whether a headless browser was used"},"http_status":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Http Status","description":"HTTP status code from target site"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Extraction duration in milliseconds"},"formats":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Formats","description":"Output formats to return"},"proxy":{"anyOf":[{"$ref":"#/components/schemas/ProxySettings"},{"type":"null"}],"description":"Proxy configuration that was actually used for the extraction. Null when no proxy details were persisted for this job (e.g. legacy records, or a job that failed before proxy selection)."},"processing_mode":{"$ref":"#/components/schemas/ProcessingMode","description":"Processing mode: sync (block until done) or async (starts job and return job ID)"},"headers":{"anyOf":[{"additionalProperties":{"type":"string"},"type":"object"},{"type":"null"}],"title":"Headers","description":"Custom HTTP headers that were forwarded for the extraction, after dropped headers (`Host`, `:authority`) are removed. `Accept-Language` is echoed here as it was sent; on browser-rendered requests the header actually transmitted is derived from the resolved locale instead."},"wait_config":{"anyOf":[{"$ref":"#/components/schemas/WaitConfig"},{"type":"null"}],"description":"Caller-owned explicit browser wait policy applied during extraction. Null when no explicit wait policy was persisted for this job (for example, adaptive default browser settling or legacy records)."}},"type":"object","required":["url","render_js","formats","processing_mode"],"title":"ExtractionMetadata"},"GoogleSearchLightPage":{"properties":{"page":{"type":"integer","title":"Page","description":"Result page"},"attempts":{"type":"integer","title":"Attempts","description":"Number of upstream attempts made for this page"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/SearchHitModel"},"type":"array"},{"type":"null"}],"title":"Results","description":"Organic results, in page order (\"json\" and \"both\")"},"suggestions":{"anyOf":[{"items":{"type":"string"},"type":"array"},{"type":"null"}],"title":"Suggestions","description":"Query suggestions returned by Google (\"json\" and \"both\")"},"spelling_correction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spelling Correction","description":"Spelling correction applied to the query (\"json\" and \"both\")"},"ai_overview":{"anyOf":[{"$ref":"#/components/schemas/AiOverviewModel"},{"type":"null"}],"description":"Google's AI Overview, on page 1 when asked for (`ai_overview`; \"json\" and \"both\")"},"html":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Html","description":"The page as Google sent it, with `ai_overview` its AI Overview written in (\"html\" and \"both\")"}},"type":"object","required":["page","attempts"],"title":"GoogleSearchLightPage","description":"One result page. It carries what the request's `format` names: \"json\" the parsed results, \"html\" the page\nitself, \"both\" all of it."},"GoogleSearchLightRequest":{"properties":{"query":{"type":"string","maxLength":1000,"title":"Query","description":"Search query. Required unless `url` is given, which carries the query itself (`q`).","default":""},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Google results URL","description":"A complete Google results URL to fetch exactly as given, in place of `query`: `https://www.google.com/search?q=...` with whatever of Google's own parameters it carries (`hl`, `gl`, `uule`, `start`, `tbs`, ...). Nothing is added, removed or reordered. Only www.google.com and the full results page (no `tbm`, no `udm`). Not with `query`, `locale`, `page`, `safe`, `time_range` or `uule`, which the URL carries itself; `device`, `format` and `ai_overview` apply as usual.","examples":["https://www.google.com/search?q=coffee+grinder&hl=en&gl=us&start=10"]},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale","description":"Locale tag: a language code ('en'), a language-region tag ('en-US'), or 'all'."},"page":{"type":"integer","maximum":20.0,"minimum":1.0,"title":"Result page","description":"Result page to fetch, 1 to 20. Every page is its own search and is billed as one. Ask for a query's pages in order: the next page is served from the same Google session as the last one.","default":1,"examples":[1,2,5]},"pages":{"type":"integer","maximum":10.0,"minimum":1.0,"title":"Pages","description":"Pages 1 to `pages` (at most 10) in one request, fetched one after another through one Google session and exit IP, each by the previous page's own next-page link, and returned together in `pages`. Billed per page returned: the request stops at the first page that fails or that Google does not have, and answers with the pages before it. From page 1; not with `url`.","default":1,"examples":[1,3,5]},"safe":{"type":"string","enum":["off","moderate","strict"],"title":"Safe-search level","description":"Safe-search filtering level. Accepted values: \"off\", \"moderate\", or \"strict\".","default":"off","examples":["off","moderate","strict"]},"time_range":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}],"title":"Time range","description":"Restrict results to a recency window. Accepted values: \"day\", \"week\", \"month\", or \"year\".","examples":["day","week","month","year"]},"device":{"type":"string","enum":["desktop","mobile","iphone","ipad"],"title":"Device","description":"Whose results page to fetch: \"desktop\"; \"mobile\", Google's results as an Android phone gets them; \"iphone\" and \"ipad\", as Safari on an iPhone or an iPad gets them. Pages 2 and on follow the same device's page 1.","default":"desktop","examples":["desktop","mobile","iphone","ipad"]},"uule":{"anyOf":[{"type":"string","maxLength":512},{"type":"null"}],"title":"Location (UULE)","description":"Search as if from this place: a Google UULE, either a place name (\"w+CAIQICI…\", e.g. a ZIP code, city or state) or coordinates (\"a+…\"). Pages 2 and on follow the same place's page 1.","examples":["w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM"]},"format":{"type":"string","enum":["json","html","both"],"title":"Response format","description":"What each page of the answer carries: \"json\" the parsed results, \"html\" the page as Google sent it (Google's ordinary results page), \"both\" all of it. The answer is JSON whatever the format. With `Accept-Encoding: gzip`, \"html\" and \"both\" come gzip-compressed (`Content-Encoding: gzip`).","default":"json","examples":["json","html","both"]},"ai_overview":{"type":"boolean","title":"AI Overview","description":"Also return Google's AI Overview for the query, when Google gives one: as text and its sources (`ai_overview` in the response) with format \"json\" or \"both\", and written into the page, where Google's own JS would write it, with format \"html\" or \"both\" (its container marked `data-aio-written`). Page 1 only. Where Google loads it after the page, it is asked for too, which can add a few seconds; a search whose overview cannot be had still returns its results.","default":false}},"type":"object","title":"GoogleSearchLightRequest"},"GoogleSearchLightResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier for this request"},"query":{"type":"string","title":"Query","description":"Search query that was submitted"},"pages_requested":{"type":"integer","title":"Pages Requested","description":"Pages asked for (`pages`; 1 without it)"},"pages_returned":{"type":"integer","title":"Pages Returned","description":"Pages returned, and billed"},"pages_stopped":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pages Stopped","description":"Why fewer pages than asked came back: no_results (Google has no further page), blocked, upstream_unreachable, timeout, warming_up, clock or error. Null when all of them did."},"pages":{"items":{"$ref":"#/components/schemas/GoogleSearchLightPage"},"type":"array","title":"Pages","description":"The pages, page 1 first"}},"type":"object","required":["job_id","query","pages_requested","pages_returned","pages"],"title":"GoogleSearchLightResponse","description":"One shape for every request, of one page or several (`pages`)."},"GoogleShoppingProductRequest":{"properties":{"catalog_id":{"anyOf":[{"type":"string","pattern":"^\\d{5,25}$"},{"type":"null"}],"title":"Catalog id","description":"Google's catalog id of the product. Give this or `url`, not both.","examples":["11018290803738983204"]},"url":{"anyOf":[{"type":"string","maxLength":2048},{"type":"null"}],"title":"Product link","description":"A Google Shopping product link that names a catalog id (`…/search?ibp=oshop&prds=catalogid:<id>`), in place of `catalog_id`. Only the id is taken from it: the product is asked for as a US buyer in English.","examples":["https://www.google.com/search?ibp=oshop&q=+&prds=catalogid%3A11018290803738983204"]},"more_stores":{"type":"integer","maximum":15.0,"minimum":0.0,"title":"More stores","description":"How many times to ask for \"More stores\" at most. The product's page shows its first stores (three when there are more); each ask adds up to ten. 0 returns the page's stores only. Asking stops by itself at the end of the list. The price of a request does not depend on it.","default":3,"examples":[0,3,15]}},"type":"object","title":"GoogleShoppingProductRequest"},"GoogleShoppingProductResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id"},"catalog_id":{"type":"string","title":"Catalog Id","description":"The catalog id that was asked for"},"product":{"$ref":"#/components/schemas/ShoppingProductModel"},"sellers":{"items":{"$ref":"#/components/schemas/ShoppingSellerModel"},"type":"array","title":"Sellers","description":"The product's stores, in Google's order"},"sellers_count":{"type":"integer","title":"Sellers Count","description":"How many stores are in `sellers`"},"sellers_total":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Sellers Total","description":"Google's own count of the product's stores, when its page states one. It and the list it comes with disagree by one to three stores on a few products in a hundred."},"more_stores_pages":{"type":"integer","title":"More Stores Pages","description":"How many times \"More stores\" was asked for and answered"},"complete":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Complete","description":"Whether `sellers` is the product's whole list. False when `more_stores`, the request's time or a refusal part of the way ended it first."},"attempts":{"type":"integer","title":"Attempts","description":"How many Google sessions the product was asked through"}},"type":"object","required":["job_id","catalog_id","product","sellers","sellers_count","more_stores_pages","attempts"],"title":"GoogleShoppingProductResponse"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"HealthResponse":{"properties":{"version":{"type":"string","title":"Version"},"service":{"type":"string","title":"Service"},"timestamp":{"type":"string","format":"date-time","title":"Timestamp"},"status":{"$ref":"#/components/schemas/HealthStatus"}},"type":"object","required":["version","service","timestamp","status"],"title":"HealthResponse"},"HealthStatus":{"type":"string","enum":["ok","degraded","unavailable"],"title":"HealthStatus"},"JobCollectionResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/JobListItemResponse"},"type":"array","title":"Jobs","description":"List of jobs"},"page":{"type":"integer","title":"Page","description":"Current page number"},"page_size":{"type":"integer","title":"Page Size","description":"Number of items per page"},"page_count":{"type":"integer","title":"Page Count","description":"Total number of pages"},"is_capped":{"type":"boolean","title":"Is Capped","description":"True if page_count is capped: the account has more matching jobs than page_count reflects, but the exact total isn't computed at this scale","default":false}},"type":"object","required":["jobs","page","page_size","page_count"],"title":"JobCollectionResponse"},"JobListItemResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Job ID"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Current job status"},"url":{"type":"string","title":"Url","description":"URL to extract content from"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"Date when job was created"},"execution_time":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Execution Time","description":"Execution time in milliseconds"},"output":{"items":{"$ref":"#/components/schemas/OutputFormat"},"type":"array","title":"Output","description":"Output formats requested"}},"type":"object","required":["job_id","status","url","created_at"],"title":"JobListItemResponse"},"JobStatus":{"type":"string","enum":["queued","processing","completed","failed","cancelled"],"title":"JobStatus"},"JobStatusResponse":{"properties":{"job_id":{"type":"string","title":"Job Id","description":"Job ID"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Current job status"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When job was created"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When job completed (null if still processing)"},"data":{"anyOf":[{"$ref":"#/components/schemas/ExtractionData"},{"type":"null"}],"description":"Extracted content (only when completed successfully)"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/ExtractionMetadata"},{"type":"null"}],"description":"Execution metadata"},"error":{"anyOf":[{"$ref":"#/components/schemas/ExtractionError"},{"type":"null"}],"description":"Error details if job failed"},"tokens_charged":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Tokens Charged","description":"Tokens charged (only when completed successfully)"}},"type":"object","required":["job_id","status","created_at"],"title":"JobStatusResponse"},"MapJobDetailResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"url":{"type":"string","title":"Url","description":"Base URL that was mapped"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Job status"},"links_count":{"type":"integer","title":"Links Count","description":"Number of URLs discovered","default":0},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Execution time in milliseconds"},"tokens_charged":{"type":"integer","title":"Tokens Charged","description":"Tokens charged for this job","default":0},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Search filter applied during discovery, if any"},"include_subdomains":{"type":"boolean","title":"Include Subdomains","description":"Whether sibling subdomains were probed"},"ignore_query_parameters":{"type":"boolean","title":"Ignore Query Parameters","description":"Whether query parameters were stripped"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Machine-readable error code for failed jobs"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"Human-readable error description"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the map job was created"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the map job finished"},"links":{"anyOf":[{"items":{"$ref":"#/components/schemas/MapLink"},"type":"array"},{"type":"null"}],"title":"Links","description":"Discovered URLs with their discovery source"}},"type":"object","required":["job_id","url","status","include_subdomains","ignore_query_parameters","created_at"],"title":"MapJobDetailResponse"},"MapJobsResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/MapListItemResponse"},"type":"array","title":"Jobs"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["jobs","page","page_size","page_count"],"title":"MapJobsResponse"},"MapLink":{"properties":{"url":{"type":"string","title":"Url","description":"Discovered URL"},"source":{"type":"string","enum":["sitemap","html"],"title":"Source","description":"Discovery source: sitemap or html"}},"type":"object","required":["url","source"],"title":"MapLink"},"MapListItemResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"url":{"type":"string","title":"Url","description":"Base URL that was mapped"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Job status"},"links_count":{"type":"integer","title":"Links Count","description":"Number of URLs discovered","default":0},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Execution time in milliseconds"},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Search filter applied during discovery, if any"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Machine-readable error code for failed jobs"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the map job was created"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the map job finished"}},"type":"object","required":["job_id","url","status","created_at"],"title":"MapListItemResponse"},"MapMetadata":{"properties":{"url":{"type":"string","title":"Url","description":"Base URL that was mapped"},"duration_ms":{"type":"integer","title":"Duration Ms","description":"Total discovery duration in milliseconds"},"links_count":{"type":"integer","title":"Links Count","description":"Number of URLs discovered"}},"type":"object","required":["url","duration_ms","links_count"],"title":"MapMetadata"},"MapRequest":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url","description":"Base URL to discover links from. By default discovery is scoped to this exact host (treating a leading 'www.' as equivalent) and, when the URL has a path, to URLs under that path. Set include_subdomains=true to widen the scope."},"search":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Search","description":"Case-insensitive substring filter applied to discovered URLs. Does not query a search engine; only narrows results found via sitemap/HTML discovery."},"include_subdomains":{"type":"boolean","title":"Include Subdomains","description":"When false (default), discovery is scoped to the exact seed host only. When true, the scope widens to the whole registrable domain: sibling subdomains found in the seed's sitemap/HTML are kept, and common subdomains (docs, blog, help, support) are actively probed for their own sitemaps.","default":false},"ignore_query_parameters":{"type":"boolean","title":"Ignore Query Parameters","description":"Strip query parameters when normalizing discovered URLs","default":true}},"type":"object","required":["url"],"title":"MapRequest"},"MapResponse":{"properties":{"success":{"type":"boolean","title":"Success","description":"Whether the request succeeded"},"links":{"items":{"$ref":"#/components/schemas/MapLink"},"type":"array","title":"Links","description":"Discovered URLs with their discovery source"},"metadata":{"anyOf":[{"$ref":"#/components/schemas/MapMetadata"},{"type":"null"}],"description":"Diagnostic metadata about the discovery run"},"warning":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Warning","description":"Non-fatal advisory message"}},"type":"object","required":["success"],"title":"MapResponse"},"OutputFormat":{"type":"string","enum":["markdown","html"],"title":"OutputFormat"},"ProcessingMode":{"type":"string","enum":["sync","async"],"title":"ProcessingMode"},"ProxySettings":{"properties":{"country":{"anyOf":[{"type":"string","pattern":"^[A-Z]{2}$"},{"type":"null"}],"title":"Country","description":"ISO 3166-1 alpha-2 country code for geo-targeting (e.g., 'US', 'GB'). Codes that are not backed by a geo-targeted proxy pool are rejected rather than silently ignored. If null, the server auto-resolves a country from the target URL (domain/path overrides first, then the TLD). If no country can be inferred, the upstream proxy provider picks the exit region."},"type":{"$ref":"#/components/schemas/ProxyType","description":"Type of proxy to use (datacenter or residential). Defaults to 'residential' when omitted.","default":"residential"}},"type":"object","title":"ProxySettings"},"ProxyType":{"type":"string","enum":["datacenter","residential","mix"],"title":"ProxyType"},"RequestCountResponse":{"properties":{"date":{"type":"string","format":"date-time","title":"Date","description":"Date of the request count"},"success_request_count":{"type":"integer","title":"Success Request Count","description":"Number of successful requests on this date"},"failed_request_count":{"type":"integer","title":"Failed Request Count","description":"Number of failed requests on this date"}},"type":"object","required":["date","success_request_count","failed_request_count"],"title":"RequestCountResponse"},"RotateSecretResponse":{"properties":{"secret":{"type":"string","title":"Secret"}},"type":"object","required":["secret"],"title":"RotateSecretResponse"},"SearchHitModel":{"properties":{"position":{"type":"integer","title":"Position","description":"1-based rank of this result on the page"},"title":{"type":"string","title":"Title","description":"Result title"},"url":{"type":"string","title":"Url","description":"Result target URL"},"snippet":{"type":"string","title":"Snippet","description":"Result preview text","default":""},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail","description":"Thumbnail image URL, if available"},"displayed_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Displayed Url","description":"Human-readable URL as shown by the engine"},"source_host":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source Host","description":"Hostname the result was served from"}},"type":"object","required":["position","title","url"],"title":"SearchHitModel"},"SearchJobDetailResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"query":{"type":"string","title":"Query","description":"Search query that was submitted"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale","description":"BCP-47 locale tag, if requested"},"page":{"type":"integer","title":"Page","description":"Result page that was requested"},"safe":{"type":"string","enum":["off","moderate","strict"],"title":"Safe","description":"Safe-search level that was requested"},"time_range":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}],"title":"Time Range","description":"Time range filter, if requested"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Job status"},"results":{"anyOf":[{"items":{"$ref":"#/components/schemas/SearchHitModel"},"type":"array"},{"type":"null"}],"title":"Results","description":"Search results"},"results_count":{"type":"integer","title":"Results Count","description":"Number of results returned","default":0},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions","description":"Query suggestions returned by the engine"},"spelling_correction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spelling Correction","description":"Spelling correction applied to the query"},"attempts":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Attempts","description":"Number of upstream attempts made"},"final_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Final Url","description":"Final upstream URL that produced the results"},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Execution time in milliseconds"},"tokens_charged":{"type":"integer","title":"Tokens Charged","description":"Tokens charged for this job","default":0},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason","description":"Upstream block classification for failed jobs"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Machine-readable error code for failed jobs"},"error_message":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Message","description":"Human-readable error description"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the search job was created"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the search job finished"}},"type":"object","required":["job_id","query","page","safe","status","created_at"],"title":"SearchJobDetailResponse"},"SearchJobsResponse":{"properties":{"jobs":{"items":{"$ref":"#/components/schemas/SearchListItemResponse"},"type":"array","title":"Jobs","description":"Search jobs on this page"},"page":{"type":"integer","title":"Page","description":"Current page number"},"page_size":{"type":"integer","title":"Page Size","description":"Number of jobs per page"},"page_count":{"type":"integer","title":"Page Count","description":"Total number of pages available"}},"type":"object","required":["jobs","page","page_size","page_count"],"title":"SearchJobsResponse"},"SearchListItemResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier"},"query":{"type":"string","title":"Query","description":"Search query that was submitted"},"status":{"$ref":"#/components/schemas/JobStatus","description":"Job status"},"results_count":{"type":"integer","title":"Results Count","description":"Number of results returned","default":0},"duration_ms":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Duration Ms","description":"Execution time in milliseconds"},"block_reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Block Reason","description":"Upstream block classification for failed jobs"},"error_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Error Code","description":"Machine-readable error code for failed jobs"},"created_at":{"type":"string","format":"date-time","title":"Created At","description":"When the search job was created"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At","description":"When the search job finished"}},"type":"object","required":["job_id","query","status","created_at"],"title":"SearchListItemResponse"},"SearchRequest":{"properties":{"query":{"type":"string","maxLength":1000,"minLength":1,"title":"Query","description":"Search query"},"locale":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Locale","description":"Locale tag: a language code ('en'), a language-region tag ('en-US'), or 'all'. Omit for no preference; duckduckgo is then searched in en-US."},"engine":{"anyOf":[{"type":"string","enum":["duckduckgo","yahoo","naver"]},{"type":"null"}],"title":"Search engine","description":"Pin the search to one engine, with no fallback to any other. Omit to let the service rotate across its engines and fall back on failure, which is what most callers want. Pinning trades reliability for control: a single engine having a bad moment becomes your error instead of being routed around.","examples":["duckduckgo","yahoo","naver"]},"page":{"type":"integer","maximum":9.0,"minimum":1.0,"title":"Result page","description":"Result page to fetch. Without `engine`, 1 to 9. With `engine` set, the pinned engine's own limit applies instead: duckduckgo 5, naver 9, yahoo 9.","default":1,"examples":[1,2,9]},"safe":{"type":"string","enum":["off","moderate","strict"],"title":"Safe-search level","description":"Safe-search filtering level. Accepted values: \"off\", \"moderate\", or \"strict\".","default":"off","examples":["off","moderate","strict"]},"time_range":{"anyOf":[{"type":"string","enum":["day","week","month","year"]},{"type":"null"}],"title":"Time range","description":"Restrict results to a recency window. Accepted values: \"day\", \"week\", \"month\", or \"year\". Some engines honour fewer: yahoo day/month/week. Pinned to one of them, any other value is rejected; without `engine`, that engine is skipped.","examples":["day","week","month","year"]}},"type":"object","required":["query"],"title":"SearchRequest"},"SearchResponse":{"properties":{"job_id":{"type":"string","format":"uuid","title":"Job Id","description":"Unique job identifier for this search"},"engine":{"type":"string","title":"Engine","description":"Engine that actually served these results"},"query":{"type":"string","title":"Query","description":"Search query that was submitted"},"page":{"type":"integer","title":"Page","description":"Result page that was returned"},"attempts":{"type":"integer","title":"Attempts","description":"Number of upstream attempts made"},"results":{"items":{"$ref":"#/components/schemas/SearchHitModel"},"type":"array","title":"Results","description":"Search results"},"suggestions":{"items":{"type":"string"},"type":"array","title":"Suggestions","description":"Query suggestions returned by the engine"},"spelling_correction":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Spelling Correction","description":"Spelling correction applied to the query"}},"type":"object","required":["job_id","engine","query","page","attempts","results","suggestions"],"title":"SearchResponse"},"ShoppingInstallmentModel":{"properties":{"monthly_price":{"type":"number","title":"Monthly Price","description":"What is paid each month"},"months":{"type":"integer","title":"Months","description":"For how many months"},"down_payment":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Down Payment","description":"What is paid at once, when Google says"}},"type":"object","required":["monthly_price","months"],"title":"ShoppingInstallmentModel"},"ShoppingProductModel":{"properties":{"catalog_id":{"type":"string","title":"Catalog Id","description":"Google's catalog id of the product"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title"},"brand":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Brand"},"images":{"items":{"type":"string"},"type":"array","title":"Images","description":"The product's pictures, as Google hosts them"}},"type":"object","required":["catalog_id"],"title":"ShoppingProductModel"},"ShoppingPromotionModel":{"properties":{"title":{"type":"string","title":"Title","description":"What the store offers on top of its price: \"10% off Fall Seasonal Categories\""},"code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Code","description":"The code that claims it, when there is one"},"expires":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Expires","description":"When it ends, as Google words it: \"Expires in 7 days\""}},"type":"object","required":["title"],"title":"ShoppingPromotionModel"},"ShoppingSellerModel":{"properties":{"position":{"type":"integer","title":"Position","description":"1-based place in Google's list of the product's stores"},"shown":{"type":"string","enum":["page","more_stores"],"title":"Shown","description":"\"page\": the product's page shows it at once; \"more_stores\": it is behind the button"},"more_stores_page":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"More Stores Page","description":"For a store behind the button, after which ask of \"More stores\" it came (1 first)"},"name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Name","description":"The store's name as Google gives it"},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain","description":"The store's own domain"},"store_rating":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Store Rating","description":"The store's rating with Google, out of 5"},"store_reviews":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Store Reviews","description":"How many reviews that rating stands on"},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"The store's own title for the product"},"link":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Link","description":"The store's page for the product: its own address"},"condition":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Condition","description":"\"Pre-owned\", \"Refurbished\"; absent on a new one"},"price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Price","description":"The price; absent on an offer paid by the month"},"currency":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Currency","description":"ISO currency of every amount in the row"},"installment":{"anyOf":[{"$ref":"#/components/schemas/ShoppingInstallmentModel"},{"type":"null"}],"description":"The price by the month, on an offer sold that way"},"original_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Original Price","description":"The price before a discount"},"discount":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Discount","description":"The discount as Google words it: \"66% off\""},"delivery_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Delivery Price","description":"What delivery costs: 0 when free, absent when Google does not say"},"total_price":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Total Price","description":"The price with delivery, when both are known"},"tag":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Tag","description":"Google's badge on the row: \"Best price\""},"in_stock":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"In Stock","description":"Whether the store has it, when the row says"},"delivery":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Delivery","description":"\"Free delivery between Oct 13 – 20\""},"returns":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Returns","description":"\"30-day returns\", \"Final sale\""},"promotion":{"anyOf":[{"$ref":"#/components/schemas/ShoppingPromotionModel"},{"type":"null"}]},"details":{"items":{"type":"string"},"type":"array","title":"Details","description":"Whatever else the store's row says"},"payment_methods":{"items":{"type":"string"},"type":"array","title":"Payment Methods","description":"\"PayPal\", \"Google Pay\", \"Affirm\""}},"type":"object","required":["position","shown"],"title":"ShoppingSellerModel"},"StatisticsResponse":{"properties":{"extraction_count":{"type":"integer","title":"Extraction Count","description":"Total number of extractions in the period"},"previous_period_extraction_count":{"type":"integer","title":"Previous Period Extraction Count","description":"Total extractions in the previous period"},"success_rate":{"type":"number","title":"Success Rate","description":"Extraction success rate (0.0 to 1.0)"},"average_extraction_duration":{"type":"integer","title":"Average Extraction Duration","description":"Average extraction duration in milliseconds"},"period_tokens_used":{"type":"integer","title":"Period Tokens Used","description":"Total tokens used in the period"},"requests":{"items":{"$ref":"#/components/schemas/RequestCountResponse"},"type":"array","title":"Requests","description":"Daily request counts"},"tokens_used":{"items":{"$ref":"#/components/schemas/TokensUsageResponse"},"type":"array","title":"Tokens Used","description":"Daily tokens usage"}},"type":"object","required":["extraction_count","previous_period_extraction_count","success_rate","average_extraction_duration","period_tokens_used"],"title":"StatisticsResponse"},"TokensUsageResponse":{"properties":{"date":{"type":"string","format":"date-time","title":"Date","description":"Date of the tokens usage"},"tokens_used":{"type":"integer","title":"Tokens Used","description":"Number of tokens used on this date"}},"type":"object","required":["date","tokens_used"],"title":"TokensUsageResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WaitConfig":{"properties":{"wait_until":{"anyOf":[{"$ref":"#/components/schemas/WaitUntil"},{"type":"null"}],"description":"Playwright page lifecycle event to wait for during navigation, before the selector wait or explicit delay. Accepted values: `commit` — response headers received and navigation committed; `domcontentloaded` — HTML parsed and DOM ready (no sub-resources); `load` — page and all sub-resources (images, scripts) fully loaded; `networkidle` — no network activity for 500 ms. When omitted, defaults to `domcontentloaded`."},"wait_for":{"anyOf":[{"type":"string","maxLength":4096},{"type":"null"}],"title":"Wait For","description":"CSS selector or XPath expression to wait for before extracting the DOM. At least one matching element must become attached to the DOM for the wait to succeed. XPath expressions must start with `//` or `xpath=`; anything else is treated as a CSS selector. Applied after wait_until."},"wait_timeout":{"anyOf":[{"type":"integer","maximum":30000.0,"minimum":0.0},{"type":"null"}],"title":"Wait Timeout","description":"Deliberate pause in milliseconds inserted after wait_for resolves (or immediately after wait_until when wait_for is omitted), before the DOM is captured. Use to allow late-settling JavaScript to finish rendering. Range: 0–30 000 ms."}},"type":"object","title":"WaitConfig","description":"Explicit browser wait policy applied in order: wait_until → wait_for → wait_timeout.\nWhen a non-null WaitConfig is provided, the adaptive default settle phase is skipped\nand the caller owns the full wait sequence. Null fields inside the object are treated\nthe same as absence of that field."},"WaitUntil":{"type":"string","enum":["commit","domcontentloaded","load","networkidle"],"title":"WaitUntil"},"WebhookCreate":{"properties":{"url":{"type":"string","minLength":1,"format":"uri","title":"Url"},"event_type":{"$ref":"#/components/schemas/WebhookEventType"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"}},"type":"object","required":["url","event_type"],"title":"WebhookCreate"},"WebhookCreateResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"event_type":{"$ref":"#/components/schemas/WebhookEventType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"},"secret":{"type":"string","title":"Secret"}},"type":"object","required":["id","url","description","is_active","event_type","created_at","updated_at","secret"],"title":"WebhookCreateResponse"},"WebhookEventType":{"type":"string","enum":["extract_completed","batch_completed","crawl_completed"],"title":"WebhookEventType"},"WebhookListResponse":{"properties":{"items":{"items":{"$ref":"#/components/schemas/WebhookResponse"},"type":"array","title":"Items"},"page":{"type":"integer","title":"Page"},"page_size":{"type":"integer","title":"Page Size"},"page_count":{"type":"integer","title":"Page Count"}},"type":"object","required":["items","page","page_size","page_count"],"title":"WebhookListResponse"},"WebhookResponse":{"properties":{"id":{"type":"string","format":"uuid","title":"Id"},"url":{"type":"string","title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"type":"boolean","title":"Is Active"},"event_type":{"$ref":"#/components/schemas/WebhookEventType"},"created_at":{"type":"string","format":"date-time","title":"Created At"},"updated_at":{"type":"string","format":"date-time","title":"Updated At"}},"type":"object","required":["id","url","description","is_active","event_type","created_at","updated_at"],"title":"WebhookResponse"},"WebhookUpdate":{"properties":{"url":{"anyOf":[{"type":"string","minLength":1,"format":"uri"},{"type":"null"}],"title":"Url"},"description":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Description"},"is_active":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Is Active"},"event_type":{"anyOf":[{"$ref":"#/components/schemas/WebhookEventType"},{"type":"null"}]}},"type":"object","title":"WebhookUpdate"}},"securitySchemes":{"ApiKeyAuth":{"type":"apiKey","in":"header","name":"X-Api-Key"}}}}