{"openapi":"3.1.0","info":{"title":"ScrapeLLM Global API","description":"Central API gateway for LLM scraper services. Validates and routes inbound scrape requests to the appropriate downstream scraper machine.","version":"1.0.0"},"paths":{"/scrapers/chatgpt":{"get":{"tags":["ChatGPT Scraper"],"summary":"Submit a ChatGPT scrape job","description":"Send a prompt to ChatGPT via a pool of real browsers and get the full response.\n\nBlocks until ChatGPT responds or `timeout` is reached.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"scrape_chatgpt_scrapers_chatgpt_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to ChatGPT.","examples":["Best movie from 1981?"],"title":"Prompt"},"description":"The prompt to send to ChatGPT."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code to target (e.g. 'US', 'GB').","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code to target (e.g. 'US', 'GB')."},{"name":"markdown_json","in":"query","required":false,"schema":{"type":"boolean","description":"Include the full markdown-it token tree in the response.","default":false,"title":"Markdown Json"},"description":"Include the full markdown-it token tree in the response."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ChatGPTScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"ChatGPT did not respond within the timeout.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or scraper queue full.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Max retries exhausted on the scraper side.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/chatgpt/jobs":{"post":{"tags":["ChatGPT Scraper"],"summary":"Submit an async ChatGPT scrape job","description":"Submit a ChatGPT scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_chatgpt_job_scrapers_chatgpt_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to ChatGPT.","examples":["Best movie from 1981?"],"title":"Prompt"},"description":"The prompt to send to ChatGPT."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code."},{"name":"markdown_json","in":"query","required":false,"schema":{"type":"boolean","description":"Include the full markdown-it token tree in the result.","default":false,"title":"Markdown Json"},"description":"Include the full markdown-it token tree in the result."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Chatgpt Job Scrapers Chatgpt Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/perplexity":{"get":{"tags":["Perplexity Scraper"],"summary":"Submit a Perplexity scrape job","description":"Send a prompt to Perplexity AI via a real browser and get a structured response including\nthe answer, cited web sources, and suggested follow-up questions.\n\nBlocks until Perplexity responds or `timeout` is reached.\n\n**Authentication** — include your API key in the `X-API-Key` header.","operationId":"scrape_perplexity_scrapers_perplexity_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Perplexity.","examples":["Best movie from 1981?"],"title":"Prompt"},"description":"The prompt to send to Perplexity."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code."},{"name":"web_search","in":"query","required":false,"schema":{"type":"boolean","description":"Enable live web search in Perplexity's response.","default":true,"title":"Web Search"},"description":"Enable live web search in Perplexity's response."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PerplexityScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"408":{"description":"Perplexity did not respond within the timeout.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or scraper queue full.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Scraper returned an empty result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/perplexity/jobs":{"post":{"tags":["Perplexity Scraper"],"summary":"Submit an async Perplexity scrape job","description":"Submit a Perplexity scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_perplexity_job_scrapers_perplexity_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Perplexity.","examples":["Best movie from 1981?"],"title":"Prompt"},"description":"The prompt to send to Perplexity."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code."},{"name":"web_search","in":"query","required":false,"schema":{"type":"boolean","description":"Enable live web search in Perplexity's response.","default":true,"title":"Web Search"},"description":"Enable live web search in Perplexity's response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Perplexity Job Scrapers Perplexity Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/grok":{"get":{"tags":["Grok Scraper"],"summary":"Submit a Grok scrape job","description":"Send a prompt to Grok (xAI) via a real browser and get a structured response.\n\nGrok uniquely returns both web search results and X (Twitter) posts relevant to the query,\nalongside its main answer and follow-up suggestions.\n\nBlocks until Grok responds or `timeout` is reached.\n\n**Authentication** — include your API key in the `X-API-Key` header.","operationId":"scrape_grok_scrapers_grok_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Grok.","examples":["What is the latest news on AI?"],"title":"Prompt"},"description":"The prompt to send to Grok."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"mode","in":"query","required":false,"schema":{"enum":["MODEL_MODE_FAST","MODEL_MODE_EXPERT","MODEL_MODE_AUTO"],"type":"string","description":"Grok reasoning mode.","default":"MODEL_MODE_AUTO","title":"Mode"},"description":"Grok reasoning mode."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GrokScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or scraper queue full.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Scraper returned an empty result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Grok execution failed on the upstream scraper.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/grok/jobs":{"post":{"tags":["Grok Scraper"],"summary":"Submit an async Grok scrape job","description":"Submit a Grok scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_grok_job_scrapers_grok_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Grok.","examples":["What is the latest news on AI?"],"title":"Prompt"},"description":"The prompt to send to Grok."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"mode","in":"query","required":false,"schema":{"enum":["MODEL_MODE_FAST","MODEL_MODE_EXPERT","MODEL_MODE_AUTO"],"type":"string","description":"Grok reasoning mode.","default":"MODEL_MODE_AUTO","title":"Mode"},"description":"Grok reasoning mode."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Grok Job Scrapers Grok Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/copilot":{"get":{"tags":["Copilot Scraper"],"summary":"Submit a Copilot scrape job","description":"Send a prompt to Microsoft Copilot via a real browser and get a structured response.\n\nModes:\n- **search** — web-grounded answer (default)\n- **smart** — balanced search + reasoning\n- **chat** — quick direct reply\n- **reasoning** — think deeper (slower)\n- **study** — structured study guide\n\nBlocks until Copilot responds or `timeout` is reached.\n\n**Authentication** — include your API key in the `X-API-Key` header.","operationId":"scrape_copilot_scrapers_copilot_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Copilot.","examples":["Best coffee shops in London?"],"title":"Prompt"},"description":"The prompt to send to Copilot."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"mode","in":"query","required":false,"schema":{"enum":["search","smart","chat","reasoning","study"],"type":"string","description":"Copilot response mode.","default":"search","title":"Mode"},"description":"Copilot response mode."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CopilotScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Scraper returned an empty result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Copilot execution failed on the upstream scraper.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/copilot/jobs":{"post":{"tags":["Copilot Scraper"],"summary":"Submit an async Copilot scrape job","description":"Submit a Copilot scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_copilot_job_scrapers_copilot_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Copilot.","examples":["Best coffee shops in London?"],"title":"Prompt"},"description":"The prompt to send to Copilot."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"mode","in":"query","required":false,"schema":{"enum":["search","smart","chat","reasoning","study"],"type":"string","description":"Copilot response mode.","default":"search","title":"Mode"},"description":"Copilot response mode."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Copilot Job Scrapers Copilot Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/gemini":{"get":{"tags":["Gemini Scraper"],"summary":"Submit a Gemini scrape job","description":"Send a prompt to Google Gemini via a real browser and get a structured response,\nincluding the full Markdown answer and all citation metadata.\n\nBlocks until Gemini responds or `timeout` is reached.\n\n**Authentication** — include your API key in the `X-API-Key` header.","operationId":"scrape_gemini_scrapers_gemini_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Gemini.","examples":["Explain quantum entanglement simply."],"title":"Prompt"},"description":"The prompt to send to Gemini."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GeminiScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Scraper returned an empty result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Gemini execution failed on the upstream scraper.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/gemini/jobs":{"post":{"tags":["Gemini Scraper"],"summary":"Submit an async Gemini scrape job","description":"Submit a Gemini scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_gemini_job_scrapers_gemini_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Gemini.","examples":["Explain quantum entanglement simply."],"title":"Prompt"},"description":"The prompt to send to Gemini."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Gemini Job Scrapers Gemini Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/google_ai_mode":{"get":{"tags":["Google AI Mode Scraper"],"summary":"Submit a Google AI Mode scrape job","description":"Send a prompt to Google AI Mode via a real browser and get a structured response,\nincluding the Markdown answer, citations, and supporting search results.\n\n**Note**: JP and TW country codes are not supported by this scraper.\n\nBlocks until Google AI Mode responds or `timeout` is reached.\n\n**Authentication** — include your API key in the `X-API-Key` header.","operationId":"scrape_google_ai_mode_scrapers_google_ai_mode_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Google AI Mode.","examples":["Best running shoes 2026"],"title":"Prompt"},"description":"The prompt to send to Google AI Mode."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/GoogleAIModeScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Scraper returned an empty result.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"502":{"description":"Google AI Mode execution failed on the upstream scraper.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/google_ai_mode/jobs":{"post":{"tags":["Google AI Mode Scraper"],"summary":"Submit an async Google AI Mode scrape job","description":"Submit a Google AI Mode scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_google_ai_mode_job_scrapers_google_ai_mode_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The prompt to send to Google AI Mode.","examples":["Best running shoes 2026"],"title":"Prompt"},"description":"The prompt to send to Google AI Mode."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code. JP and TW are not supported."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Google Ai Mode Job Scrapers Google Ai Mode Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/amazon_rufus":{"get":{"tags":["Amazon Rufus Scraper"],"summary":"Submit an Amazon Rufus scrape job","description":"Send a shopping query to Amazon Rufus via a real authenticated Amazon session\nand get a structured response — including curated product recommendations,\nrelated follow-up questions, and interim loading messages.\n\nBlocks until Rufus responds or `timeout` is reached.\n\n**Authentication** — include your API key in the `X-API-Key` header.","operationId":"scrape_amazon_rufus_scrapers_amazon_rufus_get","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The shopping query to send to Amazon Rufus.","examples":["best wireless headphones under $100"],"title":"Prompt"},"description":"The shopping query to send to Amazon Rufus."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code for the Amazon marketplace.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code for the Amazon marketplace."},{"name":"bypass_cache","in":"query","required":false,"schema":{"type":"boolean","description":"Skip the cache and always fetch a fresh response.","default":false,"title":"Bypass Cache"},"description":"Skip the cache and always fetch a fresh response."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"200":{"description":"Scrape completed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AmazonRufusScrapeResponse"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Rufus returned an empty result or unexpected error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Scraper pool still warming up — retry in a few seconds.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"504":{"description":"Network timeout reaching the scraper machine.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/scrapers/amazon_rufus/jobs":{"post":{"tags":["Amazon Rufus Scraper"],"summary":"Submit an async Amazon Rufus scrape job","description":"Submit an Amazon Rufus scrape job and get a `job_id` back immediately (HTTP 202).\n\nPoll `GET /jobs/{job_id}` to check status and retrieve the result when done.\nCredits are deducted at submit time and restored automatically if the scrape fails.\n\n**Authentication** — pass your API key via the `X-API-Key` header or as `?api_key=` in the URL.","operationId":"submit_amazon_rufus_job_scrapers_amazon_rufus_jobs_post","security":[{"APIKeyHeader":[]},{"APIKeyQuery":[]}],"parameters":[{"name":"prompt","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":4000,"description":"The shopping query to send to Amazon Rufus.","examples":["best wireless headphones under $100"],"title":"Prompt"},"description":"The shopping query to send to Amazon Rufus."},{"name":"country","in":"query","required":false,"schema":{"type":"string","minLength":2,"maxLength":2,"description":"ISO 3166-1 alpha-2 country code for the Amazon marketplace.","examples":["US"],"default":"US","title":"Country"},"description":"ISO 3166-1 alpha-2 country code for the Amazon marketplace."},{"name":"timeout","in":"query","required":false,"schema":{"type":"number","maximum":600,"minimum":10,"description":"Max seconds to wait for a response.","default":300,"title":"Timeout"},"description":"Max seconds to wait for a response."}],"responses":{"202":{"description":"Job accepted.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Submit Amazon Rufus Job Scrapers Amazon Rufus Jobs Post"}}}},"401":{"description":"Missing or invalid API key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"Credit limit reached or rate limit exceeded.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/jobs/{job_id}":{"get":{"tags":["Jobs"],"summary":"Get async job status","description":"Poll the status of an async scrape job submitted via `POST /scrapers/{scraper}/jobs`.\n\nReturns the full scrape result once the job is complete.\n\n**Status values**\n- `pending` — job is queued, the scrape has not completed yet\n- `done` — scrape succeeded; `result` contains the full response object\n- `failed` — scrape failed; `error` contains the reason","operationId":"get_job_jobs__job_id__get","parameters":[{"name":"job_id","in":"path","required":true,"schema":{"type":"string","title":"Job Id"}}],"responses":{"200":{"description":"Job found — check `status` field.","content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Response Get Job Jobs  Job Id  Get"}}}},"404":{"description":"Job not found or expired.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}}},"components":{"schemas":{"AmazonRufusProduct":{"properties":{"asin":{"type":"string","title":"Asin","description":"Amazon Standard Identification Number — unique product identifier.","examples":["B08N5TLVQ2"]},"title":{"type":"string","title":"Title","description":"Product title as shown in Rufus.","examples":["Apple MacBook Air 13-inch M3"]},"rating":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Rating","description":"Customer rating as a string (e.g. '4.8').","examples":["4.8"]},"reviews":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reviews","description":"Number of customer reviews as a string (may include comma formatting).","examples":["2,045"]},"image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Url","description":"URL of the product image.","examples":["https://m.media-amazon.com/images/I/abc.jpg"]},"image_alt":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Image Alt","description":"Alt text for the product image."},"category":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Category","description":"Product category label as returned by Rufus.","examples":["Laptop"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"Absolute URL to the product listing on Amazon.","examples":["https://www.amazon.com/dp/B08N5TLVQ2"]},"footer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Footer","description":"Rufus editorial tag shown under the product card (e.g. 'Best overall').","examples":["Best overall"]}},"type":"object","required":["asin","title"],"title":"AmazonRufusProduct","description":"A product recommended by Amazon Rufus in response to the query.\n\nRufus typically returns 3–6 curated products per query."},"AmazonRufusScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"amazon_rufus","examples":["amazon_rufus"]},"status":{"type":"string","title":"Status","description":"Job lifecycle status. Always `'done'` on a 200 response.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"UUID assigned by the gateway for this scrape job.","examples":["3fa85f64-5717-4562-b3fc-2c963f66afa6"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the shopping query that was submitted.","examples":["best wireless headphones under $100"]},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code targeted for this scrape.","examples":["US"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Rufus's prose answer. Present for informational queries (e.g. 'is this healthy?') and often alongside product cards."},"products":{"items":{"$ref":"#/components/schemas/AmazonRufusProduct"},"type":"array","title":"Products","description":"Rufus's curated product list for the query. Typically 3–6 items. Empty list if Rufus answered in text only."},"related_questions":{"items":{"type":"string"},"type":"array","title":"Related Questions","description":"Follow-up questions Rufus generated — usable for query expansion, SEO keyword research, or chained Rufus calls.","examples":[["What headphones have the best noise cancellation?","Sony vs Bose headphones comparison"]]},"interim_messages":{"items":{"type":"string"},"type":"array","title":"Interim Messages","description":"Loading-state messages localised to the marketplace (e.g. 'Checking reviews…', 'Gathering data…')."},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"ISO 8601 UTC timestamp when the gateway processed this response.","examples":["2026-03-18T12:00:00+00:00"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[8341.2]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where a markdown summary of this response is hosted. Valid for 24 hours.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country"],"title":"AmazonRufusScrapeResponse","description":"Successful response from GET /scrapers/amazon_rufus (HTTP 200).\n\nShopping queries typically return `products` plus follow-up\n`related_questions`. Informational queries may return only `result`\n(Rufus's prose) with an empty product list."},"ChatGPTScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"chatgpt","examples":["chatgpt"]},"status":{"type":"string","title":"Status","description":"Job lifecycle status. Always `'done'` on a 200 response.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"Opaque identifier for this scrape job, assigned by the scraper.","examples":["job_abc123"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the prompt that was submitted.","examples":["Best movie from 1981?"]},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code that was targeted for this scrape.","examples":["US"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Full text of ChatGPT's response. `null` if the job timed out.","examples":["Magnesium glycinate, melatonin, and L-theanine are commonly cited…"]},"result_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Markdown","description":"ChatGPT's response rendered as a Markdown string.","examples":["**Magnesium glycinate** is commonly cited…"]},"result_markdown_json":{"anyOf":[{"items":{"$ref":"#/components/schemas/MarkdownToken"},"type":"array"},{"type":"null"}],"title":"Result Markdown Json","description":"ChatGPT's response as a parsed markdown-it token tree. Only present when the request included `markdown_json=true`."},"links":{"items":{"$ref":"#/components/schemas/LinkItem"},"type":"array","title":"Links","description":"Hyperlinks extracted from ChatGPT's response."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"URL of the ChatGPT conversation page that was scraped.","examples":["https://chatgpt.com/c/abc123"]},"llm_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Model","description":"ChatGPT model variant used for this request, if reported by the browser.","examples":["gpt-4o"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"ISO 8601 timestamp when the scraper job was created.","examples":["2026-03-18T12:00:00Z"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[4823.5]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where this response's markdown is hosted as a `.md` file. Valid for 24 hours. Null if no markdown content was returned.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country"],"title":"ChatGPTScrapeResponse","description":"Successful response from GET /scrapers/chatgpt (HTTP 200).\n\nThe gateway builds this from the downstream scraper's ScrapeResult,\nvalidated against this schema before returning to the caller."},"CopilotCitation":{"properties":{"title":{"type":"string","title":"Title","description":"Title of the cited source.","examples":["BBC News - London Coffee"]},"url":{"type":"string","title":"Url","description":"URL of the cited source.","examples":["https://bbc.co.uk/..."]}},"type":"object","required":["title","url"],"title":"CopilotCitation"},"CopilotScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"copilot","examples":["copilot"]},"status":{"type":"string","title":"Status","description":"Always `'done'` on HTTP 200.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"UUID assigned by the gateway.","examples":["3fa85f64-5717-4562-b3fc-2c963f66afa6"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the submitted prompt."},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code.","examples":["US"]},"mode":{"type":"string","enum":["search","smart","chat","reasoning","study"],"title":"Mode","description":"Copilot mode used.","examples":["search"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Plain text answer, markdown stripped."},"result_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Markdown","description":"Full Copilot answer in Markdown."},"citations":{"items":{"$ref":"#/components/schemas/CopilotCitation"},"type":"array","title":"Citations","description":"Sources cited by Copilot."},"links":{"items":{"type":"string"},"type":"array","title":"Links","description":"All outbound URLs returned by Copilot."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","examples":["https://copilot.microsoft.com"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","examples":["2026-03-18T12:00:00+00:00"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[4823.5]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where this response's markdown is hosted as a `.md` file. Valid for 24 hours. Null if no markdown content was returned.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country","mode"],"title":"CopilotScrapeResponse"},"ErrorDetail":{"properties":{"field":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Field"},"message":{"type":"string","title":"Message"}},"type":"object","required":["message"],"title":"ErrorDetail"},"ErrorResponse":{"properties":{"error":{"type":"string","title":"Error"},"details":{"anyOf":[{"items":{"$ref":"#/components/schemas/ErrorDetail"},"type":"array"},{"type":"null"}],"title":"Details"}},"type":"object","required":["error"],"title":"ErrorResponse"},"GeminiCitation":{"properties":{"title":{"type":"string","title":"Title","description":"Title of the cited page.","examples":["Quantum Entanglement - Wikipedia"]},"url":{"type":"string","title":"Url","description":"URL of the cited page."},"snippet":{"type":"string","title":"Snippet","description":"Excerpt from the cited page.","default":""},"highlights":{"items":{"type":"string"},"type":"array","title":"Highlights","description":"Highlighted snippets Gemini pulled from the source."},"website_name":{"type":"string","title":"Website Name","description":"Human-readable site name.","default":"","examples":["Wikipedia"]},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon","description":"Favicon URL for the cited domain."}},"type":"object","required":["title","url"],"title":"GeminiCitation"},"GeminiScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"gemini","examples":["gemini"]},"status":{"type":"string","title":"Status","description":"Always `'done'` on HTTP 200.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"UUID assigned by the gateway.","examples":["3fa85f64-5717-4562-b3fc-2c963f66afa6"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the submitted prompt."},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code.","examples":["US"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Plain text answer, markdown stripped."},"result_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Markdown","description":"Full Gemini answer in Markdown with inline citation markers."},"citations":{"items":{"$ref":"#/components/schemas/GeminiCitation"},"type":"array","title":"Citations","description":"Sources cited by Gemini."},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","examples":["https://gemini.google.com"]},"llm_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Model","description":"Gemini model variant used, if reported.","examples":["gemini-2.0-flash"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","examples":["2026-03-18T12:00:00+00:00"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[4823.5]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where this response's markdown is hosted as a `.md` file. Valid for 24 hours. Null if no markdown content was returned.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country"],"title":"GeminiScrapeResponse"},"GoogleAIModeCitation":{"properties":{"title":{"type":"string","title":"Title","description":"Title of the cited page.","examples":["Best Running Shoes - Runner's World"]},"url":{"type":"string","title":"Url","description":"URL of the cited page."},"snippet":{"type":"string","title":"Snippet","description":"Excerpt from the cited page.","default":""},"website_name":{"type":"string","title":"Website Name","description":"Human-readable site name.","default":"","examples":["Runner's World"]},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail","description":"Cover image URL for the citation."},"favicon":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Favicon","description":"Favicon URL for the cited domain."}},"type":"object","required":["title","url"],"title":"GoogleAIModeCitation"},"GoogleAIModeScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"google_ai_mode","examples":["google_ai_mode"]},"status":{"type":"string","title":"Status","description":"Always `'done'` on HTTP 200.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"UUID assigned by the gateway.","examples":["3fa85f64-5717-4562-b3fc-2c963f66afa6"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the submitted prompt."},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code.","examples":["US"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Plain text answer, markdown stripped."},"result_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Markdown","description":"Google AI Mode answer in Markdown."},"citations":{"items":{"$ref":"#/components/schemas/GoogleAIModeCitation"},"type":"array","title":"Citations","description":"Sources cited in the AI Mode answer."},"search_results":{"items":{"$ref":"#/components/schemas/GoogleAIModeSearchResult"},"type":"array","title":"Search Results","description":"Additional web search results referenced by Google AI Mode."},"raw_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Raw Url","description":"Original Google AI Mode URL that was scraped.","examples":["https://www.google.com/search?q=..."]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","examples":["https://www.google.com"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","examples":["2026-03-18T12:00:00+00:00"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[4823.5]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where this response's markdown is hosted as a `.md` file. Valid for 24 hours. Null if no markdown content was returned.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country"],"title":"GoogleAIModeScrapeResponse"},"GoogleAIModeSearchResult":{"properties":{"title":{"type":"string","title":"Title","description":"Search result title."},"url":{"type":"string","title":"Url","description":"Search result URL."},"snippet":{"type":"string","title":"Snippet","description":"Search result snippet.","default":""},"website_name":{"type":"string","title":"Website Name","description":"Website name.","default":""},"thumbnail":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Thumbnail","description":"Search result cover image."}},"type":"object","required":["title","url"],"title":"GoogleAIModeSearchResult"},"GrokConversation":{"properties":{"conversation_id":{"type":"string","title":"Conversation Id","description":"Unique ID of the Grok conversation.","examples":["conv_abc123"]},"title":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Title","description":"Auto-generated title for the conversation.","examples":["AI Latest News Discussion"]},"temporary":{"type":"boolean","title":"Temporary","description":"Whether the conversation is temporary (not saved to Grok history).","default":true},"create_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Create Time"},"modify_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Modify Time"}},"type":"object","required":["conversation_id"],"title":"GrokConversation","description":"Metadata about the Grok conversation session."},"GrokScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"grok","examples":["grok"]},"status":{"type":"string","title":"Status","description":"Job lifecycle status. Always `'done'` on a 200 response.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"UUID assigned by the gateway for this scrape job.","examples":["3fa85f64-5717-4562-b3fc-2c963f66afa6"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the prompt that was submitted.","examples":["What is the latest news on AI?"]},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code targeted for this scrape.","examples":["US"]},"mode":{"type":"string","enum":["MODEL_MODE_FAST","MODEL_MODE_EXPERT","MODEL_MODE_AUTO"],"title":"Mode","description":"Grok reasoning mode used for this request.","examples":["MODEL_MODE_AUTO"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Grok's answer as clean plain text — no markdown symbols. Null if the job failed or timed out."},"result_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Markdown","description":"Grok's answer as a Markdown string."},"web_sources":{"items":{"$ref":"#/components/schemas/GrokWebSource"},"type":"array","title":"Web Sources","description":"Web pages cited by Grok in its response."},"x_results":{"items":{"$ref":"#/components/schemas/GrokXResult"},"type":"array","title":"X Results","description":"X (Twitter) posts surfaced by Grok's X search integration."},"related_questions":{"items":{"type":"string"},"type":"array","title":"Related Questions","description":"Follow-up questions suggested by Grok."},"conversation":{"anyOf":[{"$ref":"#/components/schemas/GrokConversation"},{"type":"null"}],"description":"Metadata about the underlying Grok conversation session."},"llm_model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Llm Model","description":"Grok model variant used for this request.","examples":["grok-3"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"URL of the Grok interface that was scraped.","examples":["https://x.com/i/grok"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"ISO 8601 UTC timestamp when the gateway processed this response.","examples":["2026-03-18T12:00:00+00:00"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[4823.5]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where this response's markdown is hosted as a `.md` file. Valid for 24 hours. Null if no markdown content was returned.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country","mode"],"title":"GrokScrapeResponse","description":"Successful response from GET /scrapers/grok (HTTP 200).\n\nGrok's response uniquely includes X/Twitter search results alongside\nstandard web sources, reflecting its deep integration with the X platform."},"GrokWebSource":{"properties":{"title":{"type":"string","title":"Title","description":"Page title.","examples":["OpenAI Blog - Latest AI Research"]},"preview":{"type":"string","title":"Preview","description":"Short excerpt or preview from the source page.","default":"","examples":["OpenAI has released GPT-5, a new large language model…"]},"url":{"type":"string","title":"Url","description":"Absolute URL of the source.","examples":["https://openai.com/blog"]}},"type":"object","required":["title","url"],"title":"GrokWebSource","description":"A web page cited by Grok in its response."},"GrokXResult":{"properties":{"post_id":{"type":"string","title":"Post Id","description":"X post ID.","examples":["1234567890123456789"]},"user_name":{"type":"string","title":"User Name","description":"X username (handle without @).","examples":["elonmusk"]},"name":{"type":"string","title":"Name","description":"Display name of the X user.","examples":["Elon Musk"]},"text":{"type":"string","title":"Text","description":"Full text content of the post.","examples":["Grok 3 is now available to all X Premium users."]},"view_count":{"type":"integer","title":"View Count","description":"Number of views on the post.","default":0,"examples":[1200000]},"profile_image_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Profile Image Url","description":"URL of the user's profile image."},"create_time":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Create Time","description":"ISO 8601 creation timestamp of the post."}},"type":"object","required":["post_id","user_name","name","text"],"title":"GrokXResult","description":"An X (Twitter) post surfaced by Grok's X search."},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LinkItem":{"properties":{"text":{"type":"string","title":"Text","description":"Anchor text of the link.","examples":["Learn more"]},"url":{"type":"string","title":"Url","description":"Absolute URL of the link.","examples":["https://example.com"]}},"type":"object","required":["text","url"],"title":"LinkItem","description":"A hyperlink extracted from ChatGPT's response."},"MarkdownToken":{"properties":{"type":{"type":"string","title":"Type"},"tag":{"type":"string","title":"Tag"},"nesting":{"type":"integer","title":"Nesting"},"attrs":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Attrs"},"map":{"anyOf":[{"items":{"type":"integer"},"type":"array"},{"type":"null"}],"title":"Map"},"level":{"type":"integer","title":"Level"},"children":{"anyOf":[{"items":{},"type":"array"},{"type":"null"}],"title":"Children"},"content":{"type":"string","title":"Content"},"markup":{"type":"string","title":"Markup"},"info":{"type":"string","title":"Info"},"meta":{"anyOf":[{},{"type":"null"}],"title":"Meta"},"block":{"type":"boolean","title":"Block"},"hidden":{"type":"boolean","title":"Hidden"}},"type":"object","required":["type","tag","nesting","attrs","map","level","children","content","markup","info","meta","block","hidden"],"title":"MarkdownToken","description":"A single token from the markdown-it parse tree of ChatGPT's response.\n\nMirrors the upstream ScrapeResult.result_markdown_json shape exactly."},"PerplexityScrapeResponse":{"properties":{"api_version":{"type":"string","title":"Api Version","description":"API version that produced this response.","default":"1.0.0","examples":["1.0.0"]},"scraper":{"type":"string","title":"Scraper","description":"Identifier of the scraper that produced this response.","default":"perplexity","examples":["perplexity"]},"status":{"type":"string","title":"Status","description":"Job lifecycle status. Always `'done'` on a 200 response.","examples":["done"]},"job_id":{"type":"string","title":"Job Id","description":"UUID assigned by the gateway for this scrape job.","examples":["3fa85f64-5717-4562-b3fc-2c963f66afa6"]},"prompt":{"type":"string","title":"Prompt","description":"Echo of the prompt that was submitted.","examples":["What are the best treatments for insomnia?"]},"country":{"type":"string","title":"Country","description":"ISO 3166-1 alpha-2 country code targeted for this scrape.","examples":["US"]},"result":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result","description":"Perplexity's answer as clean plain text — no markdown symbols, no citation markers. Null if the job failed or timed out.","examples":["Cognitive behavioural therapy (CBT-I) is considered the…"]},"result_markdown":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Result Markdown","description":"Perplexity's answer as a Markdown string. Inline citation markers such as [1] reference entries in `sources`.","examples":["**Cognitive behavioural therapy** (CBT-I) is considered the…"]},"sources":{"items":{"$ref":"#/components/schemas/PerplexitySource"},"type":"array","title":"Sources","description":"Ordered list of web sources cited by Perplexity. Index 0 corresponds to citation [1] in `result_markdown`."},"related_questions":{"items":{"type":"string"},"type":"array","title":"Related Questions","description":"Follow-up questions suggested by Perplexity based on the prompt.","examples":[["What causes chronic insomnia?","Is melatonin effective for sleep?"]]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","description":"URL of the Perplexity page that was scraped.","examples":["https://www.perplexity.ai"]},"created_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Created At","description":"ISO 8601 UTC timestamp when the gateway processed this response.","examples":["2026-03-18T12:00:00+00:00"]},"credits_used":{"type":"integer","title":"Credits Used","description":"Number of credits charged for this request.","default":0,"examples":[3]},"elapsed_ms":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Elapsed Ms","description":"Wall-clock milliseconds from request receipt to response, including any cache lookup.","examples":[4823.5]},"cached":{"type":"boolean","title":"Cached","description":"Whether this response was served from the cache rather than a live scrape.","default":false,"examples":[false]},"markdown_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Markdown Url","description":"Public URL where this response's markdown is hosted as a `.md` file. Valid for 24 hours. Null if no markdown content was returned.","examples":["https://scrapellm.com/md/job_abc123.md"]},"cached_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Cached At","description":"ISO 8601 UTC timestamp of when this response was originally cached. Only present when `cached` is `true`.","examples":["2026-03-18T12:00:00+00:00"]}},"type":"object","required":["status","job_id","prompt","country"],"title":"PerplexityScrapeResponse","description":"Successful response from GET /scrapers/perplexity (HTTP 200).\n\nFields are populated by the gateway — callers must not assume any field\nother than `result` and `sources` will always be non-null."},"PerplexitySource":{"properties":{"title":{"type":"string","title":"Title","description":"Page title of the cited source.","examples":["Insomnia - Mayo Clinic"]},"snippet":{"type":"string","title":"Snippet","description":"Short excerpt from the source page shown by Perplexity.","default":"","examples":["Cognitive behavioural therapy for insomnia (CBT-I) is…"]},"url":{"type":"string","title":"Url","description":"Absolute URL of the cited source.","examples":["https://www.mayoclinic.org/diseases-conditions/insomnia/"]}},"type":"object","required":["title","url"],"title":"PerplexitySource","description":"A web source cited by Perplexity in its answer.\n\nPerplexity always provides numbered citations ([1], [2], …) in its\nresponse text that map to entries in this list."},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"}},"securitySchemes":{"APIKeyHeader":{"type":"apiKey","in":"header","name":"X-API-Key"},"APIKeyQuery":{"type":"apiKey","in":"query","name":"api_key"}}},"tags":[{"name":"ChatGPT Scraper","description":"Submit prompts to ChatGPT and receive structured, parsed responses."},{"name":"Perplexity Scraper","description":"Submit prompts to Perplexity AI and receive structured responses with cited web sources."},{"name":"Grok Scraper","description":"Submit prompts to Grok (xAI) and receive structured responses including web sources and X (Twitter) posts."},{"name":"Copilot Scraper","description":"Submit prompts to Microsoft Copilot and receive structured responses with cited sources."},{"name":"Gemini Scraper","description":"Submit prompts to Google Gemini and receive structured responses with citation metadata."},{"name":"Google AI Mode Scraper","description":"Submit prompts to Google AI Mode and receive structured responses with citations and search results."},{"name":"Jobs","description":"Poll async scrape jobs submitted via `POST /scrapers/{scraper}/jobs`."}]}