# DataForGAIO > Data APIs for SEO and AI search: SERP, Pages, AI answers, Business and Ads, plus a Crawl API that returns Markdown with a receipt for every page. Each task reports its fetch level (standard, rendered or protected), any Auto-upgrade and its reason, and the amount billed. Base URL: https://api.dataforgaio.com/v1. Auth: HTTP Basic, any login, your dg_ API key as the password. Every docs page is available as Markdown by adding .md to its URL. ## Get started - [Introduction](https://dataforgaio.com/docs/introduction.md): What the DataForGAIO API covers, how its endpoint families are organized, and how billing works. - [Quickstart](https://dataforgaio.com/docs/quickstart.md): Create an API key, send your first Google SERP request with cURL, Python or Node, and read the response. - [Authentication](https://dataforgaio.com/docs/authentication.md): Authenticate with your dg_ API key using Basic auth, a Bearer token or the X-API-Key header, and keep the key safe. - [Base URLs and the v3 alias](https://dataforgaio.com/docs/base-urls.md): The /v1 base URL, how mirrored paths map to it, and the /v1/v3 alias for DataForSEO SDKs. - [Making requests](https://dataforgaio.com/docs/making-requests.md): Send JSON arrays of up to 100 tasks, set per-task controls, and understand request-level and task-level limits. ## Concepts - [Live and queued tasks](https://dataforgaio.com/docs/task-modes.md): The live, standard queue and priority queue modes, the task_post, tasks_ready and task_get flow, pingback and postback callbacks, and how long results are kept. - [Fetch levels and Auto-upgrade](https://dataforgaio.com/docs/fetch-levels-and-auto-upgrade.md): The Standard, Rendered and Protected fetch levels, how Auto-upgrade moves a blocked request between them, what each level costs, and how auto_upgrade, max_level and max_cost cap it. - [Caching and max_age](https://dataforgaio.com/docs/caching-and-max-age.md): The shared result cache, its default window per data type, how max_age overrides it, and how to tell a cached result from a fresh one. - [Pricing and billing](https://dataforgaio.com/docs/pricing-and-billing.md): Published unit prices for every served endpoint, the cost fields on each response, when a request costs $0, the wallet, billing history and receipts. - [Status codes and errors](https://dataforgaio.com/docs/errors.md): Every status code the API returns, whether it was billed, and how to handle each one, including retries with backoff. - [Rate limits and concurrency](https://dataforgaio.com/docs/rate-limits.md): The per-key request rate, the per-organization limit on inline Crawl API requests, and how to stay under both. - [Locations and languages](https://dataforgaio.com/docs/locations-and-languages.md): Country location codes, city targeting with location_name, map coordinates, language codes, and the free lists that enumerate them. - [Receipts and fetch facts](https://dataforgaio.com/docs/receipts.md): What the receipt_id and fetch facts on every task record, and the full provenance receipt on Crawl API pages, including robots.txt and AI-use signals. - [Data retention](https://dataforgaio.com/docs/data-retention.md): How long we keep queued task results, raw HTML, cached results, billing records and AI answers. ## Guides - [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md): Receive pingback, postback and Crawl API batch webhooks, verify them by reading the result back with your key, and handle missed deliveries. - [Retrying safely](https://dataforgaio.com/docs/retrying-safely.md): Which errors to retry, how to back off, and how to avoid paying twice for a request that timed out on your side. - [Working with large batches](https://dataforgaio.com/docs/large-batches.md): Run thousands of SERP, profile or page tasks with task arrays, queues and callbacks while staying inside rate limits and your wallet. - [Choosing a mode for cost vs speed](https://dataforgaio.com/docs/choosing-a-mode.md): When to use the standard queue, the priority queue or live, with worked costs for common workloads. ## Migrate - [Migrate from DataForSEO](https://dataforgaio.com/docs/migrate-from-dataforseo.md): Move a DataForSEO v3 client to DataForGAIO by swapping the base URL and password, with the path mapping per family, what's served today, and the known differences. - [Migrate from Scale SERP (place_products)](https://dataforgaio.com/docs/migrate-from-scale-serp.md): Move Scale SERP search_type=place_products calls to /v1/business/google/products, with parameter and response mapping. - [Migrate from Outscraper (photos)](https://dataforgaio.com/docs/migrate-from-outscraper.md): Move Outscraper Google Maps Photos calls, including owner photos with tag=by_owner, to /v1/business/google/photos. - [Migrate from Apify (Meta and Yelp ads actors)](https://dataforgaio.com/docs/migrate-from-apify.md): Move Apify Facebook Ads Library and Yelp actor runs to /v1/ads/meta and /v1/ads/yelp, with input and output field mapping. ## Recipes - [Daily rank tracking with the standard queue](https://dataforgaio.com/docs/recipe-daily-rank-tracking.md): Track a domain's Google positions for a keyword list every day at the standard queue price, collecting results with tasks_ready and storing them in SQLite. - [Local rank grid with Google Maps](https://dataforgaio.com/docs/recipe-local-rank-grid.md): Measure a business's Google Maps position across a grid of map points around its location, using location_coordinate and the standard queue. - [LLM brand-mention tracking with llm_responses](https://dataforgaio.com/docs/recipe-llm-brand-mentions.md): Ask ChatGPT, Claude and Perplexity models the prompts your buyers ask, then measure how often your brand is mentioned and which sources are cited. - [Monitoring competitor ads (Meta and Yelp)](https://dataforgaio.com/docs/recipe-competitor-ads.md): Pull competitors' active Meta Ad Library ads and Yelp sponsored placements on a schedule, and report what's new since the last run. - [Crawling a site to Markdown for RAG](https://dataforgaio.com/docs/recipe-site-to-markdown.md): List a site's pages with /v1/map, crawl them to Markdown with /v1/crawls/batch, and save each page with its receipt for a retrieval index. - [Google Business Profile audit](https://dataforgaio.com/docs/recipe-gbp-audit.md): Audit a Google Business Profile in three calls, combining my_business_info, owner photos and place products into one report. ## AI agents - [Using the docs as an agent](https://dataforgaio.com/docs/docs-for-agents.md): Machine-readable versions of these docs for AI agents and coding assistants, including llms.txt, Markdown pages, the OpenAPI spec and the reference JSON. - [MCP server](https://dataforgaio.com/docs/mcp-server.md): Connect Claude, LiteLLM or any MCP client to the hosted DataForGAIO MCP server, with its tools, connection settings, costs and limits. - [SDKs](https://dataforgaio.com/docs/sdks.md): What the Python and TypeScript SDKs cover today (the Crawl API, POST /v1/serp and usage), how to install them, and how to call the compatible endpoints over HTTP. - [Tool-calling tips](https://dataforgaio.com/docs/tool-calling-tips.md): How to give an AI agent DataForGAIO tools safely, with the cost controls it should always set, which mode to use, and how to handle errors and results. ## API reference: SERP API - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. - [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md): Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format. - [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md): Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Maps SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-maps-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Maps SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-maps-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google SERP: Languages](https://dataforgaio.com/docs/api/serp-google-languages.md): The `language_code` values Google SERP tasks accept. - [Google SERP: Locations](https://dataforgaio.com/docs/api/serp-google-locations.md): The country `location_code` values Google SERP tasks accept. - [Bing SERP: Languages](https://dataforgaio.com/docs/api/serp-bing-languages.md): The `language_code` values Bing SERP tasks accept. - [Bing SERP: Locations](https://dataforgaio.com/docs/api/serp-bing-locations.md): The country `location_code` values Bing SERP tasks accept. ## API reference: Pages API - [Instant Pages](https://dataforgaio.com/docs/api/pages-instant-pages.md): On-page data for one URL: status, meta tags, headings, links, structured data, text statistics, about 50 checks and an on-page score. - [Content Parsing: Live](https://dataforgaio.com/docs/api/pages-content-parsing-live.md): The readable content of one URL: header, main topics by heading, sidebar, footer, tables, ratings, offers and contacts, with optional Markdown. ## API reference: AI answers API - [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md): One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [ChatGPT LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-post.md): Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. - [ChatGPT LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [ChatGPT LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [ChatGPT LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-get.md): Read one queued answer. - [ChatGPT LLM Responses: Models](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-models.md): The ChatGPT model ids you can send as `model_name`. - [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md): One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Claude LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-post.md): Queue prompts for a Claude model at the lower queued base fee, then collect the answers. - [Claude LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Claude LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [Claude LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-get.md): Read one queued answer. - [Claude LLM Responses: Models](https://dataforgaio.com/docs/api/ai-claude-llm-responses-models.md): The Claude model ids you can send as `model_name`. - [Perplexity LLM Responses: Live](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-live.md): One answer from a Perplexity model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Perplexity LLM Responses: Models](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-models.md): The Perplexity model ids you can send as `model_name`. ## API reference: Business API - [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md): A Google business profile: name, categories, address, phone, website, rating and review counts, hours, coordinates and Google ids. - [Google Business Profile: Task Post](https://dataforgaio.com/docs/api/business-google-my-business-info-task-post.md): Queue business profile lookups and collect them with tasks_ready and task_get. - [Google Business Profile: Tasks Fixed](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Business Profile: Tasks Ready](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-ready.md): List finished profile lookups you haven't collected yet. - [Google Business Profile: Task Get](https://dataforgaio.com/docs/api/business-google-my-business-info-task-get.md): Read one queued profile lookup. - [Google Business Products](https://dataforgaio.com/docs/api/business-google-products.md): The products a Google business profile lists, with name, price, image and link, in the Scale SERP `place_products` request and response shape. - [Google Business Photos](https://dataforgaio.com/docs/api/business-google-photos.md): Photo URLs for a place, filterable to owner uploads with `tag=by_owner`, in the Outscraper photos request and response shape. ## API reference: Ads API - [Meta Ad Library](https://dataforgaio.com/docs/api/ads-meta.md): Ads from the Meta ad library by keyword, page or URL: page, dates, platforms, creative, and spend and impressions where disclosed, as Apify-style dataset items. - [Yelp Search Ads](https://dataforgaio.com/docs/api/ads-yelp.md): Yelp search results with sponsored rows flagged (`isAd`), plus name, rating, reviews, price range, categories and position, as Apify-style dataset items. ## API reference: Crawl API - [Crawl a batch](https://dataforgaio.com/docs/api/crawls-batch.md): Queue up to 100 URLs in one request; poll the job or get it at your webhook. - [Crawl a page](https://dataforgaio.com/docs/api/crawls-create.md): Fetch one page now and get its content with a receipt: where and when it was fetched, what robots.txt and the site's AI-use signals said, a content hash and the cost. - [Get a crawl](https://dataforgaio.com/docs/api/crawls-get.md): A batch job and its tasks, or one task, with content and receipts. - [Get crawl receipts](https://dataforgaio.com/docs/api/crawls-receipt.md): Just the receipts for a job or task, one per page. - [Map a site](https://dataforgaio.com/docs/api/map.md): The URLs a site lists in its sitemaps and on its start page, each marked with whether robots.txt lets our crawler fetch it, so you can choose what to crawl. - [Search results](https://dataforgaio.com/docs/api/serp.md): The top 10 organic results for one search, with a receipt recording the search URL, fetch time and a hash of the results. - [Usage](https://dataforgaio.com/docs/api/usage.md): Your organization's spend and request counts across every product. ## API reference: AI visibility - [List visibility trackers](https://dataforgaio.com/docs/api/visibility-trackers.md): Your organization's AI visibility trackers, each with its latest run. - [Visibility tracker summary](https://dataforgaio.com/docs/api/visibility-tracker-summary.md): How often AI answers mention and cite your brand, share of voice against competitors, sentiment, and the prompts where you're missing. ## API reference: Account - [Errors](https://dataforgaio.com/docs/api/account-errors.md): Tasks that failed in the last 7 days, newest first. - [Receipt](https://dataforgaio.com/docs/api/account-receipts.md): Look up the receipt behind any response's `receipt_id`. - [Status](https://dataforgaio.com/docs/api/account-status.md): A health check that also confirms your key. - [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md): Every route we mirror, whether it's supported yet, and its list price. - [User Data](https://dataforgaio.com/docs/api/account-user-data.md): Your login, organization, rate limit, wallet balance and the price list. - [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md): Send a finished task's pingback and postback again. ## Optional - [Full documentation in one file](https://dataforgaio.com/llms-full.txt): every guide and the full reference - [OpenAPI 3.1 spec](https://dataforgaio.com/openapi.json) - [Reference JSON](https://dataforgaio.com/docs/api-reference.json): every endpoint, field, price and status code - [Status codes](https://dataforgaio.com/docs/api/status-codes.md) - [Support matrix](https://dataforgaio.com/docs/api/support-matrix.md) --- # Introduction > What the DataForGAIO API covers, how its endpoint families are organized, and how billing works. DataForGAIO is an SEO and AI-search data API. One key gets you search results, page data, AI answers, business profiles and ad libraries, in request and response shapes many teams already use, at published prices. Every endpoint lives under one base URL: ```text https://api.dataforgaio.com/v1 ``` ## Endpoint families | Family | Paths | What it returns | Shape | |---|---|---|---| | SERP API | `/v1/serp/...` | Google organic, Google Maps and Bing organic results | DataForSEO v3 task arrays | | Pages API | `/v1/pages/...` | On-page checks and parsed content for one URL | DataForSEO v3 task arrays | | AI answers API | `/v1/ai/...` | Answers, citations and fan-out queries from ChatGPT, Claude and Perplexity models | DataForSEO v3 task arrays | | Business API | `/v1/business/...` | Google Business Profile data, place products and owner photos | DataForSEO, Scale SERP and Outscraper shapes | | Ads API | `/v1/ads/...` | Meta Ad Library ads and Yelp sponsored results | Apify actor input and dataset items | | Crawl API | `/v1/crawls`, `/v1/map`, `/v1/serp` | Pages as Markdown, HTML or JSON with a full receipt, and a site's URL list | Our own task envelope | | Account | `/v1/account/...`, `/v1/usage` | Balance, price table, failed tasks, support matrix and spend | DataForSEO v3 and our own envelope | | AI visibility | `/v1/visibility/...` | Read-only summaries of your AI answer visibility trackers | Our own envelope | The compatible families (SERP, Pages, AI answers, Business, Ads) copy the paths, bodies and responses of the product they mirror under our own slugs. Moving an existing client over is usually a base-URL and key swap. See [Migrate from DataForSEO](https://dataforgaio.com/docs/migrate-from-dataforseo.md). Not every path in a mirrored tree returns data yet. Routes we don't serve answer `40402` at $0. `GET /v1/account/support_matrix` lists every route, whether it's served, and its price. ## How billing works Your organization has one prepaid USD wallet. Each endpoint has a published price per unit (a SERP page of up to 10 results, a page, a profile, an image, an ad), and each task reports what it cost in its `cost` field. Before a request runs, we check that the wallet covers the most it could cost; if it doesn't, you get `40210` (HTTP 402) and aren't billed. When a page needs more than a plain fetch, Auto-upgrade moves it to the Rendered or Protected fetch level, bills that level's published price, and says why in `upgrade_reason`. A request where no level gets the data costs $0. Read [Pricing and billing](https://dataforgaio.com/docs/pricing-and-billing.md) for the details. ## Where to go next - [Quickstart](https://dataforgaio.com/docs/quickstart.md): your first request in a few minutes. - [Authentication](https://dataforgaio.com/docs/authentication.md): Basic, Bearer and `X-API-Key`. - [Live and queued tasks](https://dataforgaio.com/docs/task-modes.md): when to pay for live and when to queue. - [Fetch levels and Auto-upgrade](https://dataforgaio.com/docs/fetch-levels-and-auto-upgrade.md): what `fetch_level`, `upgraded` and `max_cost` mean. - [API reference](https://dataforgaio.com/docs/api.md): every endpoint, field and price. --- # Quickstart > Create an API key, send your first Google SERP request with cURL, Python or Node, and read the response. This page takes you from no key to a parsed Google results page in a few minutes. ## 1. Create an API key 1. Sign in and open **Dashboard → Developers**. You need a verified email address to create keys. 2. Create a key. It starts with `dg_` and is shown once, so copy it now. We store only a SHA-256 hash of it. 3. Put it in an environment variable so it stays out of your code: ```bash export DATAFORGAIO_API_KEY="dg_..." ``` Your organization's wallet needs a balance for paid requests. Top it up under **Dashboard → Billing**. A request the wallet can't cover returns `40210` and costs nothing. ## 2. Send a request This asks for the top 10 Google results for one keyword in the United States, in English, and returns them in the same response (the live mode). ```bash title="cURL" curl -X POST "https://api.dataforgaio.com/v1/serp/google/organic/live/advanced" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[{ "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 }]' ``` ```python title="Python" import os import requests res = requests.post( "https://api.dataforgaio.com/v1/serp/google/organic/live/advanced", auth=("api", os.environ["DATAFORGAIO_API_KEY"]), # any login, your key as the password json=[{ "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10, }], timeout=120, ) body = res.json() task = body["tasks"][0] print(task["status_code"], task["status_message"], task["cost"]) if task["status_code"] == 20000: for item in task["result"][0]["items"]: print(item["rank_absolute"], item["domain"], item["url"]) ``` ```js title="Node" const auth = Buffer.from(`api:${process.env.DATAFORGAIO_API_KEY}`).toString("base64"); const res = await fetch("https://api.dataforgaio.com/v1/serp/google/organic/live/advanced", { method: "POST", headers: { Authorization: `Basic ${auth}`, "Content-Type": "application/json" }, body: JSON.stringify([ { keyword: "trail running shoes", location_code: 2840, language_code: "en", depth: 10 }, ]), }); const body = await res.json(); const task = body.tasks[0]; console.log(task.status_code, task.status_message, task.cost); if (task.status_code === 20000) { for (const item of task.result[0].items) console.log(item.rank_absolute, item.domain, item.url); } ``` `location_code` 2840 is the United States. Country codes are 2000 plus the ISO 3166-1 numeric code; see [Locations and languages](https://dataforgaio.com/docs/locations-and-languages.md). ## 3. Read the response Every compatible endpoint returns the same envelope: request-level fields, then one entry in `tasks` per task you sent. Trimmed: ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "1.8412 sec.", "cost": 0.0018, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "a275cdb0-8d25-40eb-b309-367a10f0bd5a", "status_code": 20000, "status_message": "Ok.", "time": "1.8398 sec.", "cost": 0.0018, "result_count": 1, "path": ["v1", "serp", "google", "organic", "live", "advanced"], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "google.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.google.com/search?q=trail+running+shoes&num=10&hl=en&gl=US", "datetime": "2026-12-03 09:00:00 +00:00", "item_types": ["organic"], "se_results_count": 1234000, "pages_count": 1, "items_count": 10, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "domain": "example.com", "title": "Trail running shoes", "url": "https://example.com/trail", "description": "..." } ], "fetched_at": "2026-12-03T09:00:00Z" } ], "receipt_id": "e572ab4c-3591-4e05-823f-86fb9d563688", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` What to check, in order: 1. **`tasks[].status_code`.** `20000` means the task returned data. Anything from `40000` up is an error for that task, and it cost $0. The top-level `status_code` only describes the request as a whole, so a request can be `20000` while one of its tasks failed. `tasks_error` counts those. 2. **`tasks[].result`.** The data, in the mirrored product's schema. Organic results are in `result[0].items`. 3. **`tasks[].cost`.** What this task cost in USD. The top-level `cost` is the sum. 4. **The last five task fields are ours.** `receipt_id`, `fetch_level`, `upgraded`, `upgrade_reason` and `cache_hit` explain how the data was fetched and billed. Clients that don't know them ignore them. See [Receipts and fetch facts](https://dataforgaio.com/docs/receipts.md). ## Next steps - Send up to 100 tasks per request: [Making requests](https://dataforgaio.com/docs/making-requests.md). - Pay less for scheduled work with the standard queue: [Live and queued tasks](https://dataforgaio.com/docs/task-modes.md). - Set a ceiling on what one task may cost: [Fetch levels and Auto-upgrade](https://dataforgaio.com/docs/fetch-levels-and-auto-upgrade.md). - Look up every field of this endpoint: [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md). --- # Authentication > Authenticate with your dg_ API key using Basic auth, a Bearer token or the X-API-Key header, and keep the key safe. Every request carries one API key. Keys start with `dg_`, belong to a person, and bill that person's organization wallet. ## Ways to send the key | Method | Header | Accepted on | |---|---|---| | Basic auth | `Authorization: Basic base64(any-login:dg_key)` | Compatible routes (`/v1/serp/...`, `/v1/pages/...`, `/v1/ai/...`, `/v1/business/...`, `/v1/ads/...`, `/v1/account/...`) | | Bearer token | `Authorization: Bearer dg_...` | Every `/v1` route | | API key header | `X-API-Key: dg_...` | Every `/v1` route | | Query parameter | `?api_key=dg_...` | `/v1/business/google/products` only, for clients built for Scale SERP | With Basic auth we ignore the login and authenticate the password as an API key. That's what lets a DataForSEO client switch over by changing only its password. The Crawl API routes (`/v1/crawls`, `/v1/map`, `POST /v1/serp`, `/v1/usage`) and `/v1/visibility/...` take Bearer or `X-API-Key`, not Basic. ```bash title="Basic" curl "https://api.dataforgaio.com/v1/account/user_data" -u "api:$DATAFORGAIO_API_KEY" ``` ```bash title="Bearer" curl "https://api.dataforgaio.com/v1/account/user_data" \ -H "Authorization: Bearer $DATAFORGAIO_API_KEY" ``` ```bash title="X-API-Key" curl "https://api.dataforgaio.com/v1/account/user_data" \ -H "X-API-Key: $DATAFORGAIO_API_KEY" ``` ## Authentication errors Compatible routes answer in the DataForSEO envelope with a `WWW-Authenticate: Basic realm="api"` header: | Code | HTTP | When | |---|---|---| | `40100` | 401 | No credentials were sent. | | `40101` | 401 | The key is malformed, unknown or revoked, or the Basic password doesn't start with `dg_`. | | `40101` | 403 | The key is valid but its owner is no longer an active member of an organization. | Crawl API routes answer with our error body, for example: ```json { "status": "error", "error": { "http_status": 401, "code": "unauthorized", "message": "Missing, malformed, or revoked API key." } } ``` Neither costs anything. ## Keeping keys safe - **Shown once.** The full key appears only in the response that creates it. We store a SHA-256 hash, so we can't show it to you again. Lost keys are replaced, not recovered. - **Keep keys server-side.** Don't ship a key in a browser bundle, a mobile app or a public repository. Anyone holding it can spend your wallet. - **Use environment variables or a secret manager.** The examples in these docs read `DATAFORGAIO_API_KEY`. - **One key per system.** Separate keys for production, staging and each integration let you revoke one without touching the others. Rate limits are counted per key. - **Revoke from the dashboard.** Deleting a key under **Dashboard → Developers** stops it on the next request. - **Prefer headers to `?api_key=`.** The query parameter exists only for Scale SERP compatibility. Our request logs record the path, never the query string, but proxies and browser history on your side may keep it. - **Set spending controls.** For automated callers, including AI agents, send `max_cost` on each task so a single request can't cost more than you expect. See [Tool-calling tips](https://dataforgaio.com/docs/tool-calling-tips.md). --- # Base URLs and the v3 alias > The /v1 base URL, how mirrored paths map to it, and the /v1/v3 alias for DataForSEO SDKs. ## The base URL ```text https://api.dataforgaio.com/v1 ``` Every path in these docs is relative to that host and starts with `/v1`. Paths accept a trailing slash or none, so `POST /v1/crawls` and `POST /v1/crawls/` are the same route. ## How mirrored paths map The compatible families keep the path layout of the product they mirror, under our own slug. The part after the slug is unchanged: | Source path | Our path | |---|---| | `/v3/serp/google/organic/live/advanced` | `/v1/serp/google/organic/live/advanced` | | `/v3/on_page/instant_pages` | `/v1/pages/instant_pages` | | `/v3/on_page/content_parsing/live` | `/v1/pages/content_parsing/live` | | `/v3/ai_optimization/chat_gpt/llm_responses/live` | `/v1/ai/chat_gpt/llm_responses/live` | | `/v3/business_data/google/my_business_info/live` | `/v1/business/google/my_business_info/live` | | `/v3/appendix/user_data` | `/v1/account/user_data` | Scale SERP's `place_products`, Outscraper's Google Maps Photos and the Apify ad actors each have one route: `/v1/business/google/products`, `/v1/business/google/photos`, `/v1/ads/meta` and `/v1/ads/yelp`. ## The /v1/v3 alias for DataForSEO SDKs DataForSEO's SDKs and many hand-written clients put `/v3/` in front of every path. So we also accept `/v1/v3/...` and resolve it to the same route, translating the family name on the way: | You send | Resolves to | |---|---| | `/v1/v3/serp/google/organic/task_post` | `/v1/serp/google/organic/task_post` | | `/v1/v3/on_page/instant_pages` | `/v1/pages/instant_pages` | | `/v1/v3/ai_optimization/claude/llm_responses/live` | `/v1/ai/claude/llm_responses/live` | | `/v1/v3/business_data/google/my_business_info/task_post` | `/v1/business/google/my_business_info/task_post` | | `/v1/v3/appendix/user_data` | `/v1/account/user_data` | In an SDK, set the host to `https://api.dataforgaio.com/v1` and keep the SDK's own `/v3` paths. Use the plain `/v1//...` form in new code. > **Note:** Families we route but don't serve yet (`keywords_data`, `dataforseo_labs`, `backlinks`, `domain_analytics`, `content_analysis`, `merchant`, `app_data`) keep their DataForSEO names under `/v1` and answer `40402` at $0. The [support matrix](https://dataforgaio.com/docs/api.md) lists what each family serves today. ## Other hosts | Host | What | |---|---| | `https://api.dataforgaio.com/v1` | The REST API | | `https://mcp.dataforgaio.com/mcp` | The hosted MCP server. See [MCP server](https://dataforgaio.com/docs/mcp-server.md). | | `https://dataforgaio.com/openapi.json` | The OpenAPI 3.1 spec | | `https://dataforgaio.com/llms.txt` | An index of these docs for AI agents. See [Using the docs as an agent](https://dataforgaio.com/docs/docs-for-agents.md). | --- # Making requests > Send JSON arrays of up to 100 tasks, set per-task controls, and understand request-level and task-level limits. ## Task arrays DataForSEO-shaped routes (SERP, Pages, AI answers, `my_business_info`) take a `POST` with a JSON array of task objects. Each task is independent: it's validated, run, billed and reported on its own. ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/organic/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "tag": "kw-1" }, { "keyword": "waterproof hiking boots", "location_code": 2826, "language_code": "en", "tag": "kw-2" } ]' ``` - **Up to 100 tasks per request.** More returns `40006` (HTTP 400) and nothing runs. - **A single object works too.** We treat `{...}` as `[{...}]`. - **`tasks` comes back in the order you sent.** Each entry echoes your task in `data`, so you can match them without relying on order. - **One bad task doesn't sink the rest.** A task with an invalid field comes back with `40501` and `cost: 0`; the others run. - **`live` and `task_post` routes need `POST`.** A `GET` on them returns `40503` with HTTP 405. ## Request controls Every task on a compatible route accepts four optional fields on top of the endpoint's own: | Field | Type | Default | What it does | |---|---|---|---| | `auto_upgrade` | boolean | `true` | Lets a blocked request move to a higher fetch level, billed at that level's price. `false` stays at the included level. | | `max_level` | `standard` \| `rendered` \| `protected` | `protected` | The highest fetch level the task may use. | | `max_cost` | number (USD) | none | The most this task may cost. We never upgrade past it. | | `max_age` | integer (seconds, 0 to 86400) | the endpoint's cache window | How old a cached result may be. `0` always fetches fresh. | A bad value (for example `"max_level": "turbo"`) fails that task with `40501` and an exact message. These are explained in [Fetch levels and Auto-upgrade](https://dataforgaio.com/docs/fetch-levels-and-auto-upgrade.md) and [Caching and max_age](https://dataforgaio.com/docs/caching-and-max-age.md). On the Scale SERP, Outscraper and Apify routes, send the same four fields as query parameters or in the JSON body. On the Crawl API, `auto_upgrade`, `max_level` and `max_cost` go in the request body; `max_age` doesn't apply. ## Other request shapes | Route | Method | Body | |---|---|---| | `/v1/business/google/products` | `GET` | Scale SERP query parameters (`data_cid`, `hl`) | | `/v1/business/google/photos` | `GET` | Outscraper query parameters (`query`, `photosLimit`, `tag`, `language`, `region`) | | `/v1/ads/meta`, `/v1/ads/yelp` | `POST` | One Apify actor input object | | `/v1/crawls`, `/v1/crawls/batch`, `/v1/map`, `/v1/serp` | `POST` | One JSON object | | `tasks_ready`, `task_get`, `/v1/account/...`, `locations`, `languages`, `models` | `GET` | None, or query parameters | ## Encoding - Send `Content-Type: application/json` and UTF-8 JSON. A body that isn't valid JSON returns `40503` ("POST Data Is Invalid"). - Request bodies are limited to 20 MB. - Keywords are plain text up to 700 characters on SERP routes. Don't URL-encode them inside JSON. - URLs (`url` on Pages and Crawl API routes) must be absolute `http` or `https` URLs, at most 2,000 characters, on a public host. - Money fields in responses are JSON numbers in USD (`"cost": 0.00054`). Receipts on the Crawl API use numbers too. - Timestamps: compatible routes use DataForSEO's `"2026-12-03 09:00:00 +00:00"` in `datetime`, plus an ISO 8601 `fetched_at` (`"2026-12-03T09:00:00Z"`). Crawl API routes use ISO 8601 throughout. ## Limits at a glance | Limit | Value | Where it's set | |---|---|---| | Tasks per `POST` on compatible routes | 100 | [Making requests](#task-arrays) | | Targets per Crawl API batch | 100 | [Working with large batches](https://dataforgaio.com/docs/large-batches.md) | | Requests per minute | 120 per API key | [Rate limits and concurrency](https://dataforgaio.com/docs/rate-limits.md) | | Inline Crawl API requests in flight | 10 per organization | [Rate limits and concurrency](https://dataforgaio.com/docs/rate-limits.md) | | `max_age` | 0 to 86,400 seconds | [Caching and max_age](https://dataforgaio.com/docs/caching-and-max-age.md) | | Organic SERP `depth` | 1 to 200 | [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md) | | Stored task results | 30 days | [Data retention](https://dataforgaio.com/docs/data-retention.md) | > **Tip:** Live requests run every task before responding, one after another. A live request with 100 SERP tasks can take minutes. For more than a handful of tasks, use `task_post` and collect results as they finish. See [Choosing a mode](https://dataforgaio.com/docs/choosing-a-mode.md). --- # Live and queued tasks > The live, standard queue and priority queue modes, the task_post, tasks_ready and task_get flow, pingback and postback callbacks, and how long results are kept. Most compatible endpoints run in three modes. They return the same data; they differ in when you get it, how fresh a cached copy may be, and price. | Mode | How you call it | When the result arrives | Google SERP price per 10 results | |---|---|---|---| | Standard queue | `POST .../task_post` with `"priority": 1` (the default) | When a worker finishes it | $0.00054 | | Priority queue | `POST .../task_post` with `"priority": 2` | When a worker finishes it, from our fastest sources | $0.00108 | | Live | `POST .../live/...` | In the same response | $0.0018 | Queued tasks run on our workers as soon as one is free; there's no fixed wait. The two queues share workers. Priority tasks use our fastest sources and a 1-hour cache window, where the standard queue prefers the lowest-cost sources and a 6-hour window (see [Caching and max_age](https://dataforgaio.com/docs/caching-and-max-age.md)). Which modes an endpoint serves: | Endpoint | Live | Standard and priority queue | |---|---|---| | Google organic, Bing organic, Google Maps SERP | Yes | Yes | | `llm_responses` for `chat_gpt` and `claude` | Yes | Yes (Beta) | | `llm_responses` for `perplexity` | Yes | No | | `my_business_info` | Yes | Yes, same price in every mode | | `instant_pages`, `content_parsing` | Yes | No | | Products, photos, Meta ads, Yelp ads | Yes (one call per request) | No | ## The queued flow ### 1. Post tasks ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/organic/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[{ "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "priority": 1, "tag": "rank-check-2026-12-03", "postback_url": "https://your-app.example/hooks/serp?id=$id&tag=$tag", "postback_data": "advanced" }]' ``` Each task comes back at once with an `id`, `status_code` `20100` ("Task Created.") and `cost: 0`. Keep the `id`. A task is billed when it finishes, at the price of the mode it ran in; a task that finds no data costs $0. | Field | Notes | |---|---| | `priority` | `1` standard queue (default) or `2` priority queue. Anything else fails the task with `40501`. | | `tag` | Your own label, up to 255 characters. Returned in `tasks_ready` and on the task. | | `pingback_url` | We send a `GET` here when the task finishes. Must be `http` or `https`, up to 2,000 characters. | | `postback_url` | We `POST` the finished task here, in the `task_get` envelope. Same URL rules. | | `postback_data` | `regular`, `advanced` (default) or `html`: the result format sent to `postback_url`. | `$id` and `$tag` anywhere in either URL are replaced with the task id and your tag, URL-encoded. ### 2. Find finished tasks ```bash curl "https://api.dataforgaio.com/v1/serp/google/organic/tasks_ready" -u "api:$DATAFORGAIO_API_KEY" ``` `tasks_ready` lists up to 1,000 completed tasks for that endpoint that you haven't collected yet, oldest first, with ready-made paths: ```json { "id": "6f1c2a7e-3b0d-4c55-9a51-0e2f8d7b1c44", "se": "google", "se_type": "organic", "date_posted": "2026-12-03 09:00:00 +00:00", "tag": "rank-check-2026-12-03", "endpoint_regular": "/v1/serp/google/organic/task_get/regular/6f1c2a7e-3b0d-4c55-9a51-0e2f8d7b1c44", "endpoint_advanced": "/v1/serp/google/organic/task_get/advanced/6f1c2a7e-3b0d-4c55-9a51-0e2f8d7b1c44", "endpoint_html": "/v1/serp/google/organic/task_get/html/6f1c2a7e-3b0d-4c55-9a51-0e2f8d7b1c44" } ``` `tasks_fixed` returns the same list. Both are free. Failed tasks don't appear here; find them with `task_get` by id or with `POST /v1/account/errors`. If you use callbacks, you can skip this step. ### 3. Get the result ```bash curl "https://api.dataforgaio.com/v1/serp/google/organic/task_get/advanced/6f1c2a7e-3b0d-4c55-9a51-0e2f8d7b1c44" \ -u "api:$DATAFORGAIO_API_KEY" ``` `task_get` is free and can be called again for as long as the result is kept. The first successful read marks the task collected, so it drops out of `tasks_ready`. | Task `status_code` | Meaning | |---|---| | `20000` | Finished with data. `result` holds it; `cost` is what it cost. | | `40602` | Still in the queue. Try again later. | | `40601` | A worker is running it now. | | `40102` | Finished with no results. $0. | | `40401` | No task with that id in your organization. | | other `4xxxx` / `50000` | Finished with an error. $0. | Formats: `regular` keeps the core organic fields only, `advanced` is the full item schema. Google Maps serves `advanced` only. `task_get/html` isn't served yet (`40402`). `my_business_info` and `llm_responses` have one format, at `.../task_get/{id}`. ## Callbacks When a task finishes (with data or with an error), we make one attempt at each callback you set: - **Pingback:** a `GET` to `pingback_url`. - **Postback:** a `POST` to `postback_url` with `Content-Type: application/json` and the same envelope `task_get` returns, in the `postback_data` format. Both carry `User-Agent: DataForGAIO-Webhook/1.0` and `X-DataForGAIO-Task-Id: `. We time out after 10 seconds, don't follow redirects, and only call hosts that resolve to public IP addresses. A failed delivery isn't retried automatically; re-send it with `POST /v1/account/webhook_resend` and `{"id": ""}`. Read [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md) before you build a receiver. ## How long results are kept - Task results are kept for **30 days** after the task finishes, then cleared. The task record and its `cost` remain. - Raw HTML results, where an endpoint stores them, are kept for **7 days**. - Failed tasks from the last **7 days** are listed by `POST /v1/account/errors`. See [Data retention](https://dataforgaio.com/docs/data-retention.md). ## Live requests Live routes run each task inline and return results in the response, with the same task envelope. They skip the queue and cost the live price. Live SERP tasks don't read the cache unless you send `max_age`; business and ads routes keep their usual windows. Every task in a live request runs before we respond, so keep live arrays short and set a client timeout of at least 120 seconds. --- # Fetch levels and Auto-upgrade > The Standard, Rendered and Protected fetch levels, how Auto-upgrade moves a blocked request between them, what each level costs, and how auto_upgrade, max_level and max_cost cap it. Some pages and searches come back on the first plain fetch. Others need a browser render, or more. Auto-upgrade moves a request up only when the level below didn't get the data, bills the level that worked, and tells you why. ## The three fetch levels | Level | What it is | Page price | |---|---|---| | `standard` | A plain HTTP fetch. Included in every endpoint's list price. | $0.00011 | | `rendered` | The page loaded and run in a headless browser, for JavaScript-heavy pages. | $0.0011 (the standard price plus a $0.00099 rendering add-on) | | `protected` | Our highest level, for pages that block the levels below. | $0.003 | Page prices apply to `/v1/pages/instant_pages`, `/v1/pages/content_parsing/live` and Crawl API pages. Other endpoints use the levels with their own prices: | Endpoint | Standard | Rendered | Protected | |---|---|---|---| | `my_business_info` (per profile) | $0.00135 | $0.00234 | $0.003 | | `instant_pages`, `content_parsing`, Crawl API (per page) | $0.00011 | $0.0011 | $0.003 | | Products, photos, Meta ads, Yelp ads | Flat price per unit at every level | | | | Google organic and Google Maps SERP | No levels. See [SERP upgrades](#serp-upgrades). | | | If no level gets the data, the request costs $0. ## How Auto-upgrade decides 1. The request starts at the lowest level it allows. If the same site needed a higher level recently, it may start there, so you don't pay again for steps that failed before. You're billed only the level that delivered. 2. If the response is a block (an HTTP 403 or 429, a challenge page, a captcha, an access-denied screen), an empty or garbled body, or the fetch fails, the request moves up, as long as `auto_upgrade`, `max_level` and `max_cost` allow it. A JavaScript app shell on a plain fetch goes straight to Rendered. A 404, a 410, a login wall or a plain 5xx is the site's real answer and isn't upgraded. 3. The first level that returns the page is the one we bill. Failed attempts below it aren't billed. 4. If every allowed level fails, the task fails at $0 and the error message says what happened at each level. ## What the response tells you Every task reports how it was fetched: | Field | Example | Meaning | |---|---|---| | `fetch_level` | `"rendered"` | The level that delivered the data. `null` when the endpoint has no levels (Google SERP) or nothing was delivered. | | `upgraded` | `true` | The task cost more than the included price because it needed a higher level (or the live SERP source). | | `upgrade_reason` | `"403 at standard; challenge page at standard"` | What happened at each lower level, in our level names and HTTP facts only. | | `cost` | `0.0011` | What the task cost. | Crawl API receipts add `cost_breakdown: {"base": 0.00011, "upgrade": 0.00099}`. ## Controlling it | Control | Default | Effect | |---|---|---| | `auto_upgrade` | `true` | `false` stops at the included level. A block there is returned as an error at $0. | | `max_level` | `protected` | The ceiling. `rendered` never uses Protected; `standard` never renders. | | `max_cost` | none | The most one task may cost, in USD. Levels priced above it are skipped. If even the included level costs more, the task fails with `40501` before anything is fetched. | ```json [ { "url": "https://example.com/pricing", "auto_upgrade": true, "max_level": "rendered", "max_cost": 0.002 } ] ``` This task may be fetched at Standard ($0.00011) or Rendered ($0.0011), never Protected. Notes per endpoint: - **Pages:** `enable_javascript: true` (or `enable_browser_rendering: true`) starts at Rendered, so it needs `max_level` of `rendered` or `protected`. - **Crawl API:** `"engine": "rendered"` (or `"render_js": true`) starts at Rendered. - **Photos, Meta ads, Yelp ads:** `max_cost` caps the number of units returned. `max_cost: 0.009` on photos returns at most 10 images. - **`max_cost` on SERP:** an upgrade to the live price is allowed only if the live price for the requested depth fits within `max_cost`. ## SERP upgrades Google organic and Google Maps results come from several sources per mode. If our included sources for the standard or priority queue fail, Google organic falls back to our live source. That counts as an upgrade: `upgraded: true`, an `upgrade_reason` such as `"HTTP 503 at the included level; served at the live level"`, and the task is billed at the live price ($0.0018 per 10 results). With `auto_upgrade: false`, we retry the included source once instead and a failure costs $0. Google Maps has no live fallback yet, so a Maps task that every source fails costs $0. Bing organic is fetched through the page levels above; when a Bing page needed a level above Standard, the task is billed at the live price. ## Wallet reservation Before a request runs, we add up the most each task could cost: its `max_cost` if you set one, otherwise the price at `max_level` (or the live price for a queued SERP task that could fall back). If your balance doesn't cover that total, the request returns `40210` and nothing runs. The charge itself settles at the level that delivered. Setting `max_cost` or `max_level` lowers the reservation, which helps when your balance is low. --- # Caching and max_age > The shared result cache, its default window per data type, how max_age overrides it, and how to tell a cached result from a fresh one. When a request matches one we fetched recently, we can answer from a shared cache instead of fetching again. Every response says when its data was fetched, so a cached answer is never presented as a fresh one. ## Default windows | Data | Default window | Why | |---|---|---| | Google and Bing organic SERP, standard queue | 6 hours | Daily rank tracking at scattered hours still gets a same-day ranking. | | Google and Bing organic SERP, priority queue | 1 hour | Priority pays for freshness. | | Google and Bing organic SERP, live | none | Live means fresh. | | Google Maps SERP | Same as organic for each mode: 6 hours, 1 hour, none | | | `my_business_info`, products, photos | 24 hours, in every mode | Profiles change rarely. | | Meta ads, Yelp ads | 6 hours | Ad sets change slowly within a day. | | `instant_pages`, `content_parsing`, Crawl API pages | none | You usually check a page right after changing it. | | `llm_responses` | none | Each answer is a sample; tracking needs fresh draws. | ## What counts as the same request The cache key is built from the normalized query only, and holds no customer data, so it's shared across customers: - **SERP:** engine, search type, keyword, location, language, device, OS and depth (rounded to a whole results page). - **Business profile:** the place identifier or keyword, language, country and `location_name`. - **Products:** the place CID and `hl`. - **Photos:** each query, `tag`, `language` and `region`. - **Ads:** the search terms, page ids, countries, ad type, active status and how many results you asked for. ## max_age Send `max_age` (whole seconds, 0 to 86,400) on any task to replace the default window for that task: ```json [{ "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "max_age": 0 }] ``` - `max_age: 0` always fetches fresh. - `max_age: 3600` accepts a result up to 1 hour old, even on a live request. - Values outside 0 to 86,400, or not a whole number, fail the task with `40501`. `max_age` doesn't apply to endpoints that don't cache (Pages, Crawl API, `llm_responses`). ## Telling cached from fresh | Field | Where | Meaning | |---|---|---| | `cache_hit` | Every task, and `request_info` / the envelope on other shapes | `true` when the result came from the cache. | | `fetched_at` | In `result`, ISO 8601 | When the data was actually fetched. On a cache hit, that's the original fetch time. | | `datetime` | In `result`, DataForSEO format | Also the original fetch time on SERP results. | ## Billing A cached result is billed at the endpoint's normal list price for the mode you called, the same as a fresh one. A cached result that holds no data (for example a place with no products) costs $0. > **Tip:** For scheduled rank tracking, the standard queue with its 6-hour window is usually what you want. Use `max_age: 0` only where same-hour freshness changes a decision. --- # Pricing and billing > Published unit prices for every served endpoint, the cost fields on each response, when a request costs $0, the wallet, billing history and receipts. Every endpoint has a published price per unit, per mode and, where it applies, per fetch level. Each task reports what it cost, and a request where no level gets the data costs $0. ## Prices All prices are in USD. ### SERP API Per SERP page of up to 10 organic results (Google Maps: per SERP of up to 100 results). | Endpoint | Standard queue | Priority queue | Live | |---|---|---|---| | Google organic | $0.00054 | $0.00108 | $0.0018 | | Bing organic | $0.00054 | $0.00108 | $0.0018 | | Google Maps | $0.00054 | $0.00108 | $0.0018 | | Locations and languages | Free | Free | Free | An organic task is billed for the pages of 10 it actually returned: 37 results is 4 units. A queued Google organic task that falls back to the live source is billed at the live price ([why](/docs/fetch-levels-and-auto-upgrade#serp-upgrades)). ### Pages API Per page, live only, by the fetch level that delivered it. | Endpoint | Standard | Rendered | Protected | |---|---|---|---| | `instant_pages` | $0.00011 | $0.0011 | $0.003 | | `content_parsing/live` | $0.00011 | $0.0011 | $0.003 | ### AI answers API `llm_responses` costs a base fee per answer plus the model's tokens and web searches at the model provider's published list price. The token part is reported as `money_spent` in the result. | Engine | Standard queue | Priority queue | Live | |---|---|---|---| | `chat_gpt`, `claude` | $0.00018 + tokens | $0.00054 + tokens | $0.00054 + tokens | | `perplexity` | | | $0.00054 + tokens | `GET /v1/ai//llm_responses/models` (free) lists the models each engine serves. A failed or empty answer costs $0. ### Business API | Endpoint | Unit | Price | |---|---|---| | `my_business_info` (live or queued) | per profile | $0.00135 Standard, $0.00234 Rendered, $0.003 Protected | | `products` | per place | $0.0015 | | `photos` | per image returned | $0.0009 ($0.90 per 1,000) | ### Ads API | Endpoint | Unit | Price | |---|---|---| | `ads/meta` | per ad returned | $0.00018 ($0.18 per 1,000) | | `ads/yelp` | per result returned | $0.00045 ($0.45 per 1,000) | ### Crawl API | Endpoint | Unit | Price | |---|---|---| | `POST /v1/crawls`, `/v1/crawls/batch` | per page with real content | $0.00011 Standard, $0.0011 Rendered, $0.003 Protected | | `POST /v1/map` | per fetch that returned real content, at most 12 per request | Page price of the level used | | `POST /v1/serp` | per search that returned results | $0.00054 | ### Free `tasks_ready`, `tasks_fixed`, `task_get`, everything under `/v1/account/...`, `/v1/usage`, `/v1/crawls/{id}`, `/v1/crawls/{id}/receipt` and `/v1/visibility/...`. The live price list is also returned by `GET /v1/account/user_data` (`price`) and per route by `GET /v1/account/support_matrix` (`price_usd`). ## When a request costs $0 - A task that fails validation (`40501`) or any other `4xxxx` / `50000` error. - A search with no results (`40102`). - A page that no allowed fetch level could get. - A Crawl API page whose content check isn't `substantive`: a challenge page, login wall, error page or empty shell. - A place with no products, a photos query that found nothing, an ads search with no ads. - A request refused before it ran: auth errors, `40210`, `40006`, rate limits. ## Cost fields | Where | Field | Meaning | |---|---|---| | Each task | `cost` | What this task cost, in USD. | | Envelope | `cost` | The sum of its tasks. | | `llm_responses` result | `money_spent` | The token and search part of `cost`. | | Scale SERP shape | `request_info.cost`, `request_info.credits_used` | Cost in USD; `credits_used` is `1` when the call succeeded. | | Outscraper shape | `cost` | Cost in USD. | | Apify shape | none in the body | Look up `receipt_id` (on each item and in `X-Receipt-Id`) in billing history. | | Crawl API | `cost`, `receipt.billed_usd`, `receipt.cost_breakdown` | Cost, plus the base and upgrade parts. | A task's `cost` is its list price at the level and mode that delivered it. In rare cases where our own cost to deliver a request is above the list price, the charge is set to 1.1 times that cost; `cost` always shows the amount actually billed. ## The wallet Your organization has one prepaid USD wallet shared by every key and project. - **Top up** under **Dashboard → Billing**. - **Check the balance** with `GET /v1/account/user_data` (`money.balance`). - **Before a request runs,** we compare the balance with the most the request could cost (each task's `max_cost`, or its price at `max_level`, plus a token reservation for `llm_responses`). If it doesn't cover that, the request returns `40210` (HTTP 402) on compatible routes, or `402 balance_required` on Crawl API routes. You aren't billed. - **Each task settles once,** when it finishes, at its actual cost. ## Billing history and receipts **Dashboard → Billing** shows wallet transactions (top-ups, credits, refunds) and every charge with its product, mode, fetch level, `upgraded`, `upgrade_reason`, cache hit and amount. Each charge's id is the `receipt_id` returned on the task, so you can trace any line back to the request that caused it. `GET /v1/usage` returns all-time spend and unit counts for the Crawl API and `POST /v1/serp`. It doesn't include the compatible endpoints yet; use each task's `cost` and the billing history for those. See [Receipts and fetch facts](https://dataforgaio.com/docs/receipts.md) for what each receipt records. --- # Status codes and errors > Every status code the API returns, whether it was billed, and how to handle each one, including retries with backoff. Errors come at two levels. A **request-level** error means nothing ran. A **task-level** error affects one task in an otherwise successful request. No error is billed. ## Compatible routes (DataForSEO envelope) The top-level `status_code` and the HTTP status describe the request. Each `tasks[].status_code` describes its task. A request with a failed task still returns HTTP 200 and top-level `20000`; count failures with `tasks_error`. | Code | Message | Level | HTTP | Billed | What to do | |---|---|---|---|---|---| | `20000` | Ok. | request, task | 200 | Task: yes | Read `result`. | | `20100` | Task Created. | task | 200 | No | Queued. Collect it later with `task_get`. | | `40006` | You can send up to 100 tasks in one request. | request | 400 | No | Split the array. | | `40100` | Authentication required. | request | 401 | No | Send your key. See [Authentication](https://dataforgaio.com/docs/authentication.md). | | `40101` | Authentication failed. | request | 401 or 403 | No | Check the key; create a new one if it was revoked. 403 means the key's owner left the organization. | | `40102` | No Search Results. | task | 200 | No | The search or page returned nothing. Don't retry right away. | | `40202` | Too many requests. Retry after N s. | request | 429 | No | Wait for `Retry-After` seconds, then retry. | | `40210` | Insufficient funds. | request | 402 | No | Top up, or lower `max_cost` / `max_level` to lower the reservation. | | `40400` | Not Found. | request | 404 | No | Check the path. | | `40401` | Task Not Found. | task | 200 | No | Wrong id, or another organization's task. | | `40402` | This endpoint isn't available yet. | request, task | 404 / 200 | No | The route isn't served yet. Check `GET /v1/account/support_matrix`. | | `40501` | Invalid Field: ... | task | 200 | No | Fix the field named in the message. Don't retry unchanged. | | `40503` | POST Data Is Invalid. | request | 400 (405 for a `GET` on a `POST` route) | No | Send a JSON array of task objects. | | `40601` | Task Handed. | task | 200 | No | A worker is running it. Check again shortly. | | `40602` | Task In Queue. | task | 200 | No | Waiting for a worker. Check again later. | | `50000` | Internal Error. You weren't billed. | request, task | 500 / 200 | No | Retry with backoff. | Request-level errors return the envelope with an empty `tasks` array: ```json { "version": "0.1.20261203", "status_code": 40210, "status_message": "Insufficient funds. Your wallet balance is $0.00 and this request can cost up to $0.001800. Top up and retry. You weren't billed.", "time": "0.0025 sec.", "cost": 0.0, "tasks_count": 0, "tasks_error": 0, "tasks": [] } ``` `GET /v1/account/errors` is DataForSEO's errors list for your account: the failed queued tasks of the last 7 days, newest first (`limit` up to 1,000, `offset`). ## Scale SERP, Outscraper and Apify shapes These routes return their source product's error body with an HTTP status mapped from the code above: | Code | HTTP | Scale SERP | Outscraper | Apify `error.type` | |---|---|---|---|---| | `40100`, `40101` | 401 | `request_info.success: false` | `status: "Error"` | `user-or-token-not-found` | | `40210` | 402 | | | `not-enough-usage-to-run-paid-actor` | | `40400`, `40402` | 404 | | | `record-not-found` | | `40202` | 429 | | | `rate-limit-exceeded` | | `50000` | 500 | | | `internal-error` | | anything else, including `40501` and `40102` | 400 | | | `invalid-input` | The message is in `request_info.message` (Scale SERP), `errorMessage` (Outscraper) or `error.message` (Apify). An Apify-shaped search that finds no ads therefore returns HTTP 400 with `invalid-input` and the message "No ads found for the input." ## Crawl API routes Request-level errors use one body: ```json { "status": "error", "error": { "http_status": 402, "code": "balance_required", "message": "Your wallet balance is $0.00 and this request can cost up to $0.003000. Top up and retry. You weren't billed." } } ``` | HTTP | `code` | When | What to do | |---|---|---|---| | 400 | `invalid_request` | The body isn't valid; `details` names the fields. Also more than 100 batch targets. | Fix and resend. | | 401 | `unauthorized` | Missing, malformed or revoked key. | Check the key. | | 402 | `balance_required` | The wallet can't cover the worst case. | Top up. | | 403 | `forbidden` | The key's owner isn't an active organization member. | Use another key. | | 404 | `not_found` | No job, task or tracker with that id in your organization. | Check the id. | | 405 | `method_not_allowed` | Wrong HTTP method. | | | 415 | `unsupported_media_type` | The body isn't JSON. | Send `application/json`. | | 422 | `invalid_target` | A URL isn't absolute `http(s)`, is too long, or points to a private host. | Fix the URL. | | 422 | `max_cost_exceeded` | `max_cost` is below the price of a Standard fetch. | Raise `max_cost`. | | 429 | `rate_limited` | Over the per-key rate or the per-organization inline limit. | Wait for `Retry-After`. | | 502 | `upstream_error` | The site or search couldn't be fetched. | Retry later with backoff. | | 503 | `not_configured` | The feature isn't available on this server yet. | | A single-URL `POST /v1/crawls` mirrors its task in the HTTP status: 200 completed (including pages billed $0 because they weren't real content), 502 `upstream_error`, 422 `invalid_target` or `max_cost_exceeded`, 503 `level_unavailable`. The body is still the full envelope with a receipt. HTTP 451 `blocked_by_policy` appears only when robots.txt enforcement is turned on for the deployment; it's off by default, and the receipt records what robots.txt said either way. ## Retrying safely Retry only what can succeed on a second try: | Retry | Don't retry unchanged | |---|---| | `40202` / 429, after `Retry-After` | `40501`, `40503`, `40006`, 400, 415, 422 | | `50000` / 500, 502 | `40100`, `40101`, 401, 403 | | Network errors and timeouts on `GET` | `40210` / 402, until you've topped up | | `40601`, `40602` on `task_get`, after a pause | `40402`, `40400`, `40401` | Use exponential backoff with jitter: wait about 1 s, then 2 s, 4 s, 8 s, up to a cap of around 60 s, with a random fraction added to each wait. Stop after a handful of attempts. A `POST` that timed out on your side may have run and been billed. We don't support idempotency keys yet. Before retrying a live `POST`, read the result back where you can (`task_get`, `GET /v1/crawls/{id}`), or prefer `task_post` so you hold the task id before anything runs. [Retrying safely](https://dataforgaio.com/docs/retrying-safely.md) has worked examples. --- # Rate limits and concurrency > The per-key request rate, the per-organization limit on inline Crawl API requests, and how to stay under both. ## Request rate: 120 per minute per key Every `/v1` route counts against one budget of **120 requests per minute per API key**. The count is per key, not per IP address, so traffic from a shared egress IP (a corporate NAT, a CI fleet, the hosted MCP server) doesn't share a budget between customers. A request counts once however many tasks it carries. 100 tasks in one `task_post` is one request, so batching is the simplest way to go faster. Over the limit, you get HTTP 429 with a `Retry-After` header in seconds: - Compatible routes: envelope `status_code` `40202`, "Too many requests. Retry after N s." - Crawl API routes: `{"status": "error", "error": {"http_status": 429, "code": "rate_limited", ...}}`. - Scale SERP, Outscraper and Apify shapes: their own error body with HTTP 429. Nothing is billed. ## Inline Crawl API requests: 10 in flight per organization `POST /v1/crawls` with a single URL, `POST /v1/serp` and `POST /v1/map` fetch while you wait. Your organization can have **10** of these in flight at once. The 11th returns 429 `rate_limited` with `Retry-After: 5`. Batches (`POST /v1/crawls/batch`) and queued compatible tasks don't count toward this limit. ## Staying under the limits - **Batch.** Send up to 100 tasks per compatible `POST` and up to 100 targets per Crawl API batch. - **Queue instead of polling hard.** Use `task_post` with a `postback_url` or `pingback_url`, or poll `tasks_ready` every 30 to 60 seconds rather than calling `task_get` for each task in a loop. - **Honor `Retry-After`.** Wait that many seconds before the next request on that key. - **Spread work across keys only for separate systems.** Separate keys for separate services keep one busy job from starving another. They all share your organization's wallet and the inline limit. - **Limit your own concurrency.** A client-side pool of a few workers per key keeps you well inside 120 per minute. ```python import time import requests def post_with_backoff(url, json, auth, attempts=5): for attempt in range(attempts): res = requests.post(url, json=json, auth=auth, timeout=120) if res.status_code != 429: return res time.sleep(int(res.headers.get("Retry-After", "5"))) return res ``` --- # Locations and languages > Country location codes, city targeting with location_name, map coordinates, language codes, and the free lists that enumerate them. SERP tasks need a location and a language. You can name both by code or by name, as in DataForSEO. ## Locations | Field | Example | Notes | |---|---|---| | `location_code` | `2840` | Country-level codes: 2000 plus the ISO 3166-1 numeric code. 2840 is the United States, 2826 the United Kingdom, 2276 Germany. | | `location_name` | `"United States"` | A country name targets the whole country. | | `location_name` | `"Austin,Texas,United States"` | Comma-separated, ending in the country, targets a city or region within it. | | `location_coordinate` | `"30.2672,-97.7431,14z"` | Latitude, longitude and an optional zoom, for Google Maps. Without a zoom we use `14z`. | City and region `location_code` values aren't served yet. A `location_code` that isn't a country returns `40501` ("Use a country-level location_code or a location_name."). Use `location_name` for cities. ## Languages | Field | Example | |---|---| | `language_code` | `"en"`, `"de"`, `"pt"` | | `language_name` | `"English"`, `"German"` | One of the two is required on SERP tasks. Missing or unknown, the task fails with `40501`. ## The lists Free, `GET`, same envelope as any compatible route: | Route | Returns | |---|---| | `GET /v1/serp/google/locations` | Every country: `location_code`, `location_name`, `country_iso_code`, `location_type: "Country"` | | `GET /v1/serp/google/locations/us` | The one country matching an ISO alpha-2 code | | `GET /v1/serp/google/languages` | Every language: `language_name`, `language_code` | | `GET /v1/serp/bing/locations`, `/v1/serp/bing/languages` | The same lists for Bing | ```bash curl "https://api.dataforgaio.com/v1/serp/google/locations/gb" -u "api:$DATAFORGAIO_API_KEY" ``` ```json [{ "location_code": 2826, "location_name": "United Kingdom", "location_code_parent": null, "country_iso_code": "GB", "location_type": "Country" }] ``` (That's `tasks[0].result`.) ## Other endpoints | Endpoint | How location and language work | |---|---| | `my_business_info` | `keyword` is the business name (plus city, if you like), `cid:` or `place_id:`. `location_name` is added to a name search. `language_code` or `language_name` sets the language. `location_code` is echoed but doesn't target. | | `products` | `hl` sets the language. | | `photos` | `language` (default `en`) and `region` (default `us`, a 2-letter country). | | `llm_responses` | `web_search_country_iso_code` (2 letters) and `web_search_city` steer web search. Perplexity doesn't take `web_search_city`. | | Meta ads | `country` (ISO-2 or `ALL`), or the `country` in an Ad Library URL. | | Yelp ads | `locations`, as you'd type them into Yelp: `"Austin, TX"`. | | `POST /v1/serp` (Crawl API) | `country` (2 letters) and `language` (`en`, `pt-BR`). | --- # Receipts and fetch facts > What the receipt_id and fetch facts on every task record, and the full provenance receipt on Crawl API pages, including robots.txt and AI-use signals. Every billed request leaves a receipt: what was fetched, how, when, and what it cost. How much the receipt holds depends on the route. ## Fetch facts on every compatible task The last five fields of every task in the DataForSEO envelope are ours: | Field | Type | Meaning | |---|---|---| | `receipt_id` | string | The id of this task's charge. It matches a line in **Dashboard → Billing**. | | `fetch_level` | `standard` \| `rendered` \| `protected` \| null | The level that delivered the data. `null` where an endpoint has no levels (Google SERP) or nothing was delivered. | | `upgraded` | boolean | The task cost more than the included price because it needed a higher level or the live SERP source. | | `upgrade_reason` | string \| null | Why, in our level names and HTTP facts: `"403 at standard; challenge page at standard"`. | | `cache_hit` | boolean | The result came from the shared cache. `result.fetched_at` gives the original fetch time. | The Scale SERP shape carries the same fields in `request_info`, the Outscraper shape at the top level, and the Apify shape on every item (`receipt_id`) and in the `X-Receipt-Id` response header. ## The full receipt on Crawl API pages `POST /v1/crawls`, `/v1/crawls/batch` and `GET /v1/crawls/{id}` attach a provenance receipt to each page. Read receipts alone with `GET /v1/crawls/{id}/receipt`. ```json { "receipt_id": "rc_1f0c6b2e9d8a4c51b2a7e3f40c9d1e22", "source_url": "https://example.com/pricing", "fetched_at": "2026-12-03T09:00:00Z", "http_status": 200, "content_sha256": "9f2b5c...", "content_check": "substantive", "content_check_reasons": ["visible_text_chars:3120"], "robots_txt": "allowed", "ai_use_signal": "none_declared", "ai_use_details": {}, "engine": "standard", "fetch_level": "rendered", "fetch_method": "rendered", "upgraded": true, "upgrade_reason": "403 at standard", "unit_cost_usd": 0.0011, "billed_usd": 0.0011, "billed_pages": 1, "cost_breakdown": { "base": 0.00011, "upgrade": 0.00099 }, "currency": "USD" } ``` | Field | Values | Meaning | |---|---|---| | `source_url` | URL | What you asked for. | | `fetched_at` | ISO 8601 | When we fetched it. `null` if it was never fetched. | | `http_status` | integer | The status the site returned. | | `content_sha256` | hex | SHA-256 of the fetched content, so you can show the text hasn't changed since. | | `content_check` | `substantive`, `blocked`, `login_wall`, `error_page`, `empty_shell` | Whether the page is real content. A page that isn't `substantive` costs $0. | | `content_check_reasons` | list | The signals behind the verdict. | | `robots_txt` | `allowed`, `disallowed`, `not_found`, `unchecked` | What the site's robots.txt says about this path. Recorded, not enforced: the page is fetched either way. | | `ai_use_signal` | `none_declared`, `reserved`, `partially_reserved`, `unknown`, `unavailable`, `not_checked` | The site's declared position on AI use. | | `ai_use_details` | object | The robots.txt rules for AI bots (such as `GPTBot`, `ClaudeBot`, `PerplexityBot`), TDM reservations and `ai.txt` behind the signal. | | `engine` | `standard`, `rendered` | The level you requested. | | `fetch_level` / `fetch_method` | `standard`, `rendered`, `protected` | The level that delivered the page. | | `billed_usd`, `cost_breakdown` | numbers | What you paid, split into the base price and the upgrade. | `POST /v1/serp` returns a receipt with the same provenance and cost fields, `fetch_method: "serp_api"`, and `null` for the page-only fields (`content_check`, `robots_txt`, `ai_use_signal`). ## Using receipts - **Audit a charge.** Every line in billing history has the `receipt_id`, product, mode, fetch level, upgrade reason and amount. - **Keep provenance with your data.** Store `source_url`, `fetched_at`, `content_sha256` and `ai_use_signal` next to each document in your index. The Python SDK's LangChain and LlamaIndex loaders do this for you; see [SDKs](https://dataforgaio.com/docs/sdks.md). - **Respect AI-use signals in your own pipeline.** `robots_txt` and `ai_use_signal` tell you what the site declared. Decide in your code what to keep. --- # Data retention > How long we keep queued task results, raw HTML, cached results, billing records and AI answers. | Data | Kept for | After that | |---|---|---| | Queued task results (`task_post` → `task_get`) | 30 days after the task finishes | `result` is cleared. The task record, status and `cost` remain, so `task_get` returns the task with an empty result. | | Raw HTML results, where an endpoint stores them | 7 days | Cleared. (`task_get/html` isn't served on any endpoint yet.) | | Failed task list (`POST /v1/account/errors`) | 7 days | Older failures drop off the list. | | Shared result cache | The longest window any request can use: the data type's default window, and at least 24 hours | Deleted. Cache rows hold the normalized query and result only, never your organization or key. | | Charges, wallet transactions and receipts | Not deleted | They're financial records. | | Crawl API jobs and their receipts | Kept with your organization's data | | Live requests aren't stored as tasks: the response is the result. Store what you need on your side. ## AI answers Answers returned by `llm_responses` are added, with their prompts and citations, to our anonymized AI-answer dataset, which aggregates prompt, answer and citation records. Organizations are included by default and can opt out; an opted-out organization's prompts and answers are never stored in the dataset. To opt out, contact support. --- # Handling webhooks securely > Receive pingback, postback and Crawl API batch webhooks, verify them by reading the result back with your key, and handle missed deliveries. Three callbacks can tell you that work is done: | Callback | Set with | Request we send | |---|---|---| | Pingback | `pingback_url` on a `task_post` task | `GET` to your URL, with `$id` and `$tag` replaced | | Postback | `postback_url` on a `task_post` task | `POST` with the `task_get` envelope as JSON | | Batch webhook | `webhook_url` on `POST /v1/crawls/batch` | `POST` with the finished job envelope as JSON, plus `"event": "crawl.batch.completed"` | Headers on every callback: | Header | Value | |---|---| | `User-Agent` | `DataForGAIO-Webhook/1.0` | | `X-DataForGAIO-Task-Id` | The task id (pingback and postback) | | `X-DataForGAIO-Event` | `crawl.batch.completed` (batch webhook) | | `X-DataForGAIO-Job-Id` | `job_...` (batch webhook) | | `Content-Type` | `application/json` (postback and batch webhook) | ## Callbacks aren't signed: verify by reading back We don't sign callback requests yet. Anyone who learns your callback URL could send a request that looks like ours, so treat every callback as a notification, not as data: 1. Take only the id from the callback (`X-DataForGAIO-Task-Id`, the `$id` in your URL, or `job_id`). 2. Read the result with your own key: `task_get` for queued tasks, `GET /v1/crawls/{job_id}` for batches. Those reads are free, authenticated, and scoped to your organization, so a forged id returns `40401` or 404. 3. Use what you read back, not the callback body. ```python title="Python (Flask)" import os import requests from flask import Flask, request app = Flask(__name__) AUTH = ("api", os.environ["DATAFORGAIO_API_KEY"]) BASE = "https://api.dataforgaio.com/v1" @app.post("/hooks/serp/") def serp_postback(secret): if secret != os.environ["HOOK_SECRET"]: return "", 404 task_id = request.headers.get("X-DataForGAIO-Task-Id", "") if not task_id: return "", 400 # Authoritative copy, read with our key. Free. res = requests.get(f"{BASE}/serp/google/organic/task_get/advanced/{task_id}", auth=AUTH, timeout=60) task = res.json()["tasks"][0] if task["status_code"] == 20000: save(task["data"].get("tag"), task["result"]) return "", 204 ``` ```js title="Node (Express)" import express from "express"; const app = express(); const BASE = "https://api.dataforgaio.com/v1"; app.post("/hooks/crawls/:secret", express.json({ limit: "20mb" }), async (req, res) => { if (req.params.secret !== process.env.HOOK_SECRET) return res.sendStatus(404); const jobId = req.get("X-DataForGAIO-Job-Id"); if (!jobId) return res.sendStatus(400); res.sendStatus(204); // answer fast, then read back // The Crawl API takes Bearer or X-API-Key, not Basic. const r = await fetch(`${BASE}/crawls/${jobId}`, { headers: { Authorization: `Bearer ${process.env.DATAFORGAIO_API_KEY}` }, }); const job = await r.json(); if (job.job_status === "completed") await save(job.tasks); }); ``` ## Hardening your receiver - **Put a secret in the path,** as above, and reject anything else with 404. It doesn't replace the read-back, but it cuts noise. - **Use HTTPS.** Batch webhooks require it. Pingback and postback accept `http` too; use `https` anyway. - **Answer within 10 seconds.** We wait 10 seconds and don't follow redirects. Return 2xx quickly and do the work in the background. - **Be idempotent.** Key your writes by task id or job id so a re-sent callback doesn't duplicate data. - **Public hosts only.** We only call hosts that resolve to public IP addresses. `localhost`, private ranges and internal names are skipped, so use a tunnel to test locally. ## Missed deliveries We make one attempt per callback and don't retry on failure. Plan for misses: - **Queued tasks:** poll `tasks_ready` every few minutes as a backstop. It lists completed tasks you haven't collected yet, whether or not a callback reached you. - **Re-send a callback:** `POST /v1/account/webhook_resend` with `{"id": ""}` delivers the pingback and postback again for a finished task. It answers `40602` if the task hasn't finished yet. - **Batches:** poll `GET /v1/crawls/{job_id}` until `job_status` is `completed`. ```bash curl -X POST "https://api.dataforgaio.com/v1/account/webhook_resend" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{"id": "6f1c2a7e-3b0d-4c55-9a51-0e2f8d7b1c44"}' ``` --- # Retrying safely > Which errors to retry, how to back off, and how to avoid paying twice for a request that timed out on your side. A retry should fix a transient problem without running billed work twice. Three rules cover most cases. ## 1. Retry only transient errors | Retry with backoff | Fix first, then send again | |---|---| | HTTP 429 / `40202` (wait for `Retry-After`) | `40501` Invalid Field, `40503`, `40006`, HTTP 400, 415, 422 | | HTTP 500 / `50000`, HTTP 502 `upstream_error` | `40100`, `40101`, HTTP 401, 403 | | Network errors and timeouts on `GET` | `40210` / HTTP 402 (top up first) | | `40601` / `40602` on `task_get` (wait, then check again) | `40402` (the route isn't served), `40400`, `40401` | `40102` (No Search Results) is a real answer, not a transient failure. Retrying it right away usually returns the same thing. ## 2. Back off with jitter ```python import random import time import requests RETRYABLE = {429, 500, 502, 503, 504} def request_with_retries(method, url, *, max_attempts=5, **kwargs): for attempt in range(max_attempts): try: res = requests.request(method, url, timeout=120, **kwargs) except (requests.ConnectionError, requests.Timeout): if method != "GET": raise # a POST may have run; see rule 3 res = None if res is not None and res.status_code not in RETRYABLE: return res if attempt == max_attempts - 1: break if res is not None and res.headers.get("Retry-After"): delay = int(res.headers["Retry-After"]) else: delay = min(60, 2 ** attempt) * random.uniform(0.5, 1.0) time.sleep(delay) if res is None: raise RuntimeError("no response after retries") return res ``` Task-level errors arrive inside an HTTP 200, so also check each `tasks[].status_code`. Re-send only the tasks that failed with `50000`, not the whole array. ```python body = res.json() retry = [t["data"] for t in body["tasks"] if t["status_code"] == 50000] ``` `t["data"]` is the task you sent, echoed back, so you can re-post it as is. ## 3. Don't pay twice for a timed-out POST We don't support idempotency keys yet. If your client times out waiting for a live `POST`, the request may still have run and been billed. Before retrying: - **Prefer `task_post` for anything you'd retry.** It answers immediately with a task id and `cost: 0`. Retrying `task_get` is free and safe. - **Use a `tag`** with a stable value per unit of work (for example `"2026-12-03:trail running shoes:2840"`), so you can recognize a task that already ran in `tasks_ready` or your postback handler. - **Read back instead of re-running.** On the Crawl API, `GET /v1/crawls/{id}` and the crawl list return what already ran at no cost. - **Set a generous client timeout** for live calls: 120 seconds or more. Pages are fetched with up to a 60-second budget per task, and a live request runs its tasks one after another. ## SDK behavior The Python and TypeScript SDKs (Crawl API only) retry 429 on any method, honoring `Retry-After` up to 60 seconds, and 5xx and network errors on `GET` with exponential backoff and full jitter. They don't retry a `POST` after a 5xx or read timeout, for the reason above. See [SDKs](https://dataforgaio.com/docs/sdks.md). --- # Working with large batches > Run thousands of SERP, profile or page tasks with task arrays, queues and callbacks while staying inside rate limits and your wallet. For thousands of tasks, the pattern is the same on every family: chunk into arrays of 100, post them to a queue, and collect results as they finish. ## Plan the run | Question | Answer | |---|---| | How many requests? | `ceil(tasks / 100)`. 10,000 keywords is 100 `task_post` requests. | | How fast can I send them? | 120 requests per minute per key, so 100 requests take under a minute. | | What will it cost? | Tasks × unit price × units per task. 10,000 keywords at depth 10 in the standard queue: 10,000 × $0.00054 = $5.40, if every task returns results. | | Will my wallet cover it? | Each request checks that the balance covers its own worst case before it runs. For a queued SERP task with `auto_upgrade` on, that's the live price, so 100 tasks at depth 10 need $0.18 of balance to be accepted. Charges settle as tasks finish, so top up for the expected cost of the whole run. | ## Post in chunks ```python import os import time import requests BASE = "https://api.dataforgaio.com/v1" AUTH = ("api", os.environ["DATAFORGAIO_API_KEY"]) def chunks(items, size=100): for i in range(0, len(items), size): yield items[i:i + size] keywords = [line.strip() for line in open("keywords.txt") if line.strip()] posted = {} for chunk in chunks(keywords): tasks = [ {"keyword": kw, "location_code": 2840, "language_code": "en", "depth": 10, "tag": kw[:255]} for kw in chunk ] res = requests.post(f"{BASE}/serp/google/organic/task_post", auth=AUTH, json=tasks, timeout=60) if res.status_code == 429: time.sleep(int(res.headers.get("Retry-After", "5"))) res = requests.post(f"{BASE}/serp/google/organic/task_post", auth=AUTH, json=tasks, timeout=60) body = res.json() if body["status_code"] != 20000: raise SystemExit(f'{body["status_code"]} {body["status_message"]}') for t in body["tasks"]: if t["status_code"] == 20100: posted[t["id"]] = t["data"]["keyword"] else: print("not queued:", t["data"].get("keyword"), t["status_code"], t["status_message"]) ``` Keep the returned ids. They're how you collect results and how you avoid posting the same work twice. ## Collect results Either set `postback_url` on each task and let results come to you (see [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md)), or poll: ```python results = {} while len(results) < len(posted): ready = requests.get(f"{BASE}/serp/google/organic/tasks_ready", auth=AUTH, timeout=60).json() for row in ready["tasks"][0]["result"] or []: got = requests.get(f'https://api.dataforgaio.com{row["endpoint_advanced"]}', auth=AUTH, timeout=60).json() task = got["tasks"][0] results[task["id"]] = task time.sleep(30) ``` `tasks_ready` returns up to 1,000 uncollected tasks per call, and `task_get` marks each one collected. Failed tasks never show up in `tasks_ready`, so the loop above would wait forever on one. In production, also check ids you've waited on for a while with `task_get` directly, or list failures with `POST /v1/account/errors`. Each `task_get` counts against the 120-per-minute budget. For very large runs, postbacks avoid that cost. ## Crawl API batches The Crawl API batches up to 100 URLs per `POST /v1/crawls/batch`, returns a `job_id` at once, and can post the finished job to `webhook_url`: ```bash curl -X POST "https://api.dataforgaio.com/v1/crawls/batch" \ -H "Authorization: Bearer $DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "targets": [{"url": "https://example.com/a"}, {"url": "https://example.com/b"}], "output_format": "markdown", "max_level": "rendered", "webhook_url": "https://your-app.example/hooks/crawls/SECRET" }' ``` If any target URL is invalid, the whole batch is refused with `422 invalid_target` and `details.targets` naming each bad index. Nothing is queued or billed. ## Checklist - Chunk into 100 and pace requests to stay under 120 per minute per key. - Use the standard queue unless you need results within the hour. - Set `max_cost` per task when you want a hard ceiling. - Store task ids and tags as you post. - Collect with postbacks, with `tasks_ready` as a backstop. - Re-post only tasks that failed with `50000`. --- # Choosing a mode for cost vs speed > When to use the standard queue, the priority queue or live, with worked costs for common workloads. The three modes return the same data. Pick by who's waiting and how fresh the answer has to be. | You need | Use | Google SERP price per 10 results | Default cache window | |---|---|---|---| | Scheduled work: daily rank tracking, weekly audits, large research runs | Standard queue (`task_post`, `priority: 1`) | $0.00054 | 6 hours | | Results within the hour from fresher data, without a person waiting on the response | Priority queue (`task_post`, `priority: 2`) | $0.00108 | 1 hour | | A person or an agent waiting on this response | Live (`.../live/...`) | $0.0018 | none | ## Worked costs Prices from [Pricing and billing](https://dataforgaio.com/docs/pricing-and-billing.md), assuming every task returns results: | Workload | Standard queue | Priority queue | Live | |---|---|---|---| | 500 keywords, top 10, daily for 30 days (15,000 tasks) | $8.10 | $16.20 | $27.00 | | 500 keywords, top 100, daily for 30 days (10 units each) | $81.00 | $162.00 | $270.00 | | 20 Maps searches × 49 grid points, weekly for 4 weeks (3,920 tasks) | $2.1168 | $4.2336 | $7.056 | | 1,000 `chat_gpt` prompts, base fee only, before tokens | $0.18 | $0.54 | $0.54 | ## Rules of thumb - **Default to the standard queue** for anything on a schedule. Results normally come back well before the next run, and repeat queries within 6 hours can be answered from the shared cache. - **Use priority** when the next step in your pipeline is waiting, but no person is. - **Use live** for interactive tools and for agents answering a user. Keep live arrays short; every task runs before the response is sent. - **Need fresh data in the standard queue?** Send `max_age: 0` on those tasks. You keep the standard price and skip the cache. - **`llm_responses` in the queue** runs through model providers' batch processing (Beta). It's the cheapest way to track many prompts, but answers can take hours to arrive; a batch that isn't back after 24 hours is re-run normally. - **Endpoints without queues** (Pages, products, photos, ads) are live only. Control their cost with `max_level` and `max_cost` instead. ## Cost controls that apply in every mode - `max_cost` caps one task, including any upgrade. - `auto_upgrade: false` keeps queued SERP tasks at the queue price: if the included sources fail, the task fails at $0 instead of falling back to the live source. - `depth` sets how many organic results you pay for, in pages of 10. --- # Migrate from DataForSEO > Move a DataForSEO v3 client to DataForGAIO by swapping the base URL and password, with the path mapping per family, what's served today, and the known differences. The SERP, Pages, AI answers and Business families accept DataForSEO v3 paths, task arrays and field names, and return the v3 envelope and status codes. For the endpoints we serve, moving over is a base-URL and password change. ## 1. Swap the base URL and password | Setting | DataForSEO | DataForGAIO | |---|---|---| | Base URL | `https://api.dataforseo.com` | `https://api.dataforgaio.com/v1` | | Login | your login | anything (ignored) | | Password | your API password | your `dg_` API key | If your client builds paths as `/v3/serp/...`, keep them: `/v1/v3/...` resolves to the same routes ([details](https://dataforgaio.com/docs/base-urls.md)). Otherwise use the paths in the table below. ```python title="Python (requests)" import os import requests # Before: requests.post("https://api.dataforseo.com/v3/serp/google/organic/live/advanced", # auth=(LOGIN, PASSWORD), json=tasks) res = requests.post( "https://api.dataforgaio.com/v1/serp/google/organic/live/advanced", auth=("api", os.environ["DATAFORGAIO_API_KEY"]), json=[{"keyword": "trail running shoes", "location_code": 2840, "language_code": "en"}], timeout=120, ) print(res.json()["tasks"][0]["status_code"]) ``` ```bash title="Official SDK settings" # Point the client at our host and keep its /v3 paths. BASE_URL = "https://api.dataforgaio.com/v1" LOGIN = "api" # ignored PASSWORD = "dg_..." # your DataForGAIO key ``` ## 2. Map your paths | Family | DataForSEO path | DataForGAIO path | Reference | |---|---|---|---| | SERP | `/v3/serp/google/organic/{live/advanced, live/regular, task_post, tasks_ready, tasks_fixed, task_get/advanced, task_get/regular}` | `/v1/serp/google/organic/...` (same suffixes) | [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md) | | SERP | `/v3/serp/bing/organic/...` (same suffixes) | `/v1/serp/bing/organic/...` | [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md) | | SERP | `/v3/serp/google/maps/{live/advanced, task_post, tasks_ready, tasks_fixed, task_get/advanced}` | `/v1/serp/google/maps/...` | [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md) | | SERP | `/v3/serp/google/locations`, `/languages` (and Bing) | `/v1/serp/google/locations`, `/languages` | [Google SERP: Locations](https://dataforgaio.com/docs/api/serp-google-locations.md) | | OnPage | `/v3/on_page/instant_pages` | `/v1/pages/instant_pages` | [Instant Pages](https://dataforgaio.com/docs/api/pages-instant-pages.md) | | OnPage | `/v3/on_page/content_parsing/live` | `/v1/pages/content_parsing/live` | [Content Parsing: Live](https://dataforgaio.com/docs/api/pages-content-parsing-live.md) | | AI Optimization | `/v3/ai_optimization/chat_gpt/llm_responses/{live, task_post, tasks_ready, task_get, models}` | `/v1/ai/chat_gpt/llm_responses/...` | [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md) | | AI Optimization | `/v3/ai_optimization/claude/llm_responses/...` | `/v1/ai/claude/llm_responses/...` | [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md) | | AI Optimization | `/v3/ai_optimization/perplexity/llm_responses/{live, models}` | `/v1/ai/perplexity/llm_responses/...` | [Perplexity LLM Responses: Live](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-live.md) | | Business Data | `/v3/business_data/google/my_business_info/{live, task_post, tasks_ready, tasks_fixed, task_get}` | `/v1/business/google/my_business_info/...` | [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md) | | Appendix | `/v3/appendix/user_data` | `/v1/account/user_data` | [User Data](https://dataforgaio.com/docs/api/account-user-data.md) | | Appendix | `/v3/appendix/errors` | `/v1/account/errors` | [Errors](https://dataforgaio.com/docs/api/account-errors.md) | | Appendix | `/v3/appendix/webhook_resend` | `/v1/account/webhook_resend` | [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md) | | Appendix | `/v3/appendix/status` | `/v1/account/status` | [Status](https://dataforgaio.com/docs/api/account-status.md) | | (ours) | | `/v1/account/support_matrix` | [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md) | ## 3. Check what's served Families and endpoints not in the table above are routed but not served yet. They answer `40402` ("This endpoint isn't available yet") at $0, so a client calling them fails cleanly rather than with a 404. This includes Keywords Data, DataForSEO Labs, Backlinks, Domain Analytics, Content Analysis, Merchant, App Data, the other SERP engines and types, `ai_optimization/gemini`, and the other OnPage and Business Data endpoints. The [support matrix](https://dataforgaio.com/docs/api.md) lists every route with its status and price. The same list is available from the API: ```bash curl "https://api.dataforgaio.com/v1/account/support_matrix?supported=true" -u "api:$DATAFORGAIO_API_KEY" ``` Filter with `family=serp` (or `pages`, `ai`, `business`, `ads`, `account`) and `supported=true`. ## 4. What's the same - Task arrays of up to 100, `tag`, `priority`, `pingback_url`, `postback_url`, `postback_data`, `$id` and `$tag`. - The envelope (`version`, `status_code`, `status_message`, `time`, `cost`, `tasks_count`, `tasks_error`, `tasks`) and the task fields (`id`, `status_code`, `status_message`, `time`, `cost`, `result_count`, `path`, `data`, `result`). - Status codes: `20000`, `20100`, `40006`, `40100`, `40101`, `40102`, `40202`, `40210`, `40400`, `40401`, `40402`, `40501`, `40503`, `40601`, `40602`, `50000`. - Result and item schemas for organic, `maps_search`, `google_business_info`, `llm_responses`, `instant_pages` and `content_parsing`. ## 5. Known differences **Extra fields.** Every task adds `receipt_id`, `fetch_level`, `upgraded`, `upgrade_reason` and `cache_hit`, and results add `fetched_at`. Clients that don't know them ignore them. `path` starts with `"v1"`. **Auto-upgrade and request controls.** Tasks accept `auto_upgrade`, `max_level`, `max_cost` and `max_age`. A queued Google organic task whose included sources fail falls back to our live source and is billed at the live price, with `upgraded: true`. Send `auto_upgrade: false` to keep queue pricing and fail at $0 instead. See [Fetch levels and Auto-upgrade](https://dataforgaio.com/docs/fetch-levels-and-auto-upgrade.md). **Shared cache.** Standard-queue SERP results may come from a cache up to 6 hours old (priority: 1 hour; live: none). `fetched_at` and `cache_hit` say so. Send `max_age: 0` to always fetch fresh. See [Caching and max_age](https://dataforgaio.com/docs/caching-and-max-age.md). **SERP.** - `location_code` accepts country-level codes only. Use `location_name` (`"Austin,Texas,United States"`) for cities. - Organic `depth` is 1 to 200. Maps accepts up to 700 but returns at most 100. - Fields we can't fill from our sources are present and `null`: `xpath`, `cache_url`, `pre_snippet`, `extended_snippet`, `faq`, `about_this_result`, `address_info` on Maps items, and others. Organic `advanced` items are `organic` only; other SERP features (`people_also_ask`, `featured_snippet`, `local_pack`, ...) aren't returned yet. - `task_get/html` isn't served (`40402`). - Bing `mobile` returns the desktop results page. - The standard and priority queues share workers; priority uses faster sources and a shorter cache window. **OnPage.** - Everything is computed from the single HTML document. We don't load sub-resources, so resource sizes, browser timings, CLS and spell checks are `null`. `duration_time` is our fetch time. - `onpage_score` is our own weighted score of the checks (0 to 100), not DataForSEO's formula. - Ignored: `load_resources`, `check_spell`, `validate_micromarkup`, `custom_user_agent`, `accept_language`, `browser_*`, `ip_pool_for_scan`, `switch_pool`, `store_raw_html`, `disable_cookie_popup`, `enable_xhr`, `return_despite_timeout`, `checks_threshold`. - `custom_js` is rejected with `40501`. - `enable_javascript: true` bills the Rendered level. **AI Optimization.** - Gemini isn't served yet. Perplexity is live only. - Each task is billed as a base fee plus tokens and web searches at the model provider's list price; `money_spent` in the result is that token part. - `user_prompt` and `system_message` are limited to 500 characters, `message_chain` to 10 messages, `max_output_tokens` to 4,096. - Queued tasks run through model providers' batch processing and can take hours (Beta). - Answers are added to our anonymized AI-answer dataset unless your organization opts out. See [Data retention](https://dataforgaio.com/docs/data-retention.md). **Business Data (`my_business_info`) (Beta).** - `keyword` takes a business name, `cid:` or `place_id:`. `location_name` is added to a name search; `location_code` is echoed but doesn't target the search. - Price is per profile and the same in every mode, by fetch level. - Results are cached for 24 hours. **Appendix.** - `user_data` returns `money.balance`, `money.currency` and `price` (our price table), not DataForSEO's full account object. - `errors` lists failed queued tasks from the last 7 days. **Status codes.** HTTP statuses follow the code: `40100`/`40101` → 401, `40210` → 402, `40400`/`40402` → 404, `40202` → 429, `40006`/`40503` → 400, `50000` → 500, for request-level errors. ## 6. Checklist 1. Create a key under **Dashboard → Developers** and top up the wallet. 2. Change the base URL and password. 3. Call `GET /v1/account/support_matrix?supported=true` and confirm every path you use is listed. 4. Run a handful of tasks in each mode and compare results and `cost`. 5. Decide on `auto_upgrade` and `max_cost` for queued work. 6. Point `pingback_url` / `postback_url` at your receivers; they work unchanged. Read [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md). --- # Migrate from Scale SERP (place_products) > Move Scale SERP search_type=place_products calls to /v1/business/google/products, with parameter and response mapping. `GET /v1/business/google/products` accepts Scale SERP's `place_products` parameters and returns its response body, so a client changes its host, path and key. > **Note:** Beta: the products parser was written from public documentation and hasn't been checked against a live response yet. ## 1. Change the request | | Scale SERP | DataForGAIO | |---|---|---| | URL | `https://api.scaleserp.com/search` | `https://api.dataforgaio.com/v1/business/google/products` | | `search_type` | `place_products` | not needed (the path implies it) | | Auth | `api_key=...` | `api_key=dg_...`, or a Bearer, `X-API-Key` or Basic header | | Method | `GET` | `GET` | ```bash title="cURL" curl "https://api.dataforgaio.com/v1/business/google/products?data_cid=12345678901234567890&hl=en" \ -H "Authorization: Bearer $DATAFORGAIO_API_KEY" ``` ```python title="Python" import os import requests res = requests.get( "https://api.dataforgaio.com/v1/business/google/products", params={"data_cid": "12345678901234567890", "hl": "en"}, headers={"Authorization": f"Bearer {os.environ['DATAFORGAIO_API_KEY']}"}, timeout=120, ) body = res.json() print(body["request_info"]["success"], body["request_info"]["cost"]) for p in body.get("place_products_results", []): print(p["position"], p["name"], p.get("price")) ``` `?api_key=dg_...` works on this route only, for drop-in compatibility. Prefer a header: query strings end up in proxy logs and browser history. ## 2. Parameters | Parameter | Required | Notes | |---|---|---| | `data_cid` | Yes (or `data_id`) | The place's decimal CID. | | `data_id` | | A feature id (`0x...:0x...`); we derive the CID from it. | | `hl` | | Language, default `en`. | | `auto_upgrade`, `max_level`, `max_cost`, `max_age` | | Our [request controls](/docs/making-requests#request-controls), as query parameters. | Other Scale SERP parameters are ignored. ## 3. Response ```json { "request_info": { "success": true, "credits_used": 1, "cost": 0.0015, "receipt_id": "0b6c...", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false }, "search_parameters": { "search_type": "place_products", "data_cid": "12345678901234567890", "hl": "en", "engine": "google" }, "search_metadata": { "created_at": "...", "processed_at": "...", "fetched_at": "...", "engine_url": "https://www.google.com/local/place/products/catalog?hl=en&ludocid=12345678901234567890" }, "search_information": { "original_query_yields_zero_results": false }, "place_products_results": [ { "name": "Trail Runner 3", "link": "https://www.google.com/local/place/products/product?...", "image": "https://...", "price": "$129.00", "position": 1 } ] } ``` | Field | Difference | |---|---| | `request_info.credits_used` | `1` on success, `0` on failure. Our charge is in `request_info.cost`, in USD. | | `request_info.receipt_id`, `fetch_level`, `upgraded`, `upgrade_reason`, `cache_hit` | Ours. See [Receipts](https://dataforgaio.com/docs/receipts.md). | | `place_products_results[]` | `name`, `link`, `image`, `price` (when shown), `position`. | | `search_information.original_query_yields_zero_results` | `true` when the place lists no products. | ## 4. Pricing and errors - $0.0015 per place with products. A place with no products returns an empty list at $0. - Results are cached for 24 hours; `max_age: 0` fetches fresh. - Errors return `request_info.success: false` with `request_info.message`, and an HTTP status: 400 for invalid input, 401 auth, 402 insufficient balance, 429 rate limit, 500 for a fetch we couldn't complete. None are billed. See [Google Business Products](https://dataforgaio.com/docs/api/business-google-products.md) for every field. --- # Migrate from Outscraper (photos) > Move Outscraper Google Maps Photos calls, including owner photos with tag=by_owner, to /v1/business/google/photos. `GET /v1/business/google/photos` accepts Outscraper's Google Maps Photos parameters and returns its response body. It runs synchronously: the photos come back in the same response. > **Note:** Beta: the photos parser was written from public documentation and hasn't been checked against a live response yet. ## 1. Change the request | | Outscraper | DataForGAIO | |---|---|---| | URL | Outscraper's Google Maps Photos endpoint | `https://api.dataforgaio.com/v1/business/google/photos` | | Auth | Your Outscraper API key | Your `dg_` key in `X-API-Key`, a Bearer header or Basic auth | | Async mode | Optional | Not used: every call is synchronous, so there's no request id to poll | ```bash title="cURL" curl -G "https://api.dataforgaio.com/v1/business/google/photos" \ -H "X-API-Key: $DATAFORGAIO_API_KEY" \ --data-urlencode "query=Blue Bottle Coffee, 1 Ferry Building, San Francisco" \ --data-urlencode "tag=by_owner" \ --data-urlencode "photosLimit=20" ``` ```python title="Python" import os import requests res = requests.get( "https://api.dataforgaio.com/v1/business/google/photos", params={"query": "Blue Bottle Coffee, 1 Ferry Building, San Francisco", "tag": "by_owner", "photosLimit": 20}, headers={"X-API-Key": os.environ["DATAFORGAIO_API_KEY"]}, timeout=120, ) body = res.json() for place in body["data"]: for p in place[0]["photos_data"]: print(p["photo_id"], p["original_photo_url"]) ``` ## 2. Parameters | Parameter | Default | Notes | |---|---|---| | `query` | required | A name and address, a `place_id`, a `google_id` (`0x...:0x...`) or a CID. Up to 25 queries, newline-separated in one `query` parameter. Repeating the parameter keeps only the last value. | | `photosLimit` | 100 | Photos per place, 1 to 1,000. `photos_limit` also works. | | `tag` | `all` | `all`, `latest`, `menu`, `by_owner` or `videos`. | | `language` | `en` | | | `region` | `us` | 2-letter country. | | `limit` | | Accepted for compatibility; one place is returned per query. | | `auto_upgrade`, `max_level`, `max_cost`, `max_age` | | Our [request controls](/docs/making-requests#request-controls). `max_cost` caps the number of images: `max_cost=0.018` returns at most 20. | ## 3. Response ```json { "id": "5b1f0d9c-...", "status": "Success", "receipt_id": "9a2e...", "cost": 0.018, "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false, "data": [ [ { "query": "Blue Bottle Coffee, 1 Ferry Building, San Francisco", "name": "Blue Bottle Coffee", "place_id": "ChIJ...", "google_id": "0x808f...:0x2c1d...", "full_address": "1 Ferry Building #7, San Francisco, CA 94111", "photos_data": [ { "photo_id": "AF1Qip...", "photo_url": "https://...=w1024-h768-k-no", "photo_url_big": "https://...=w2048-h1536-k-no", "original_photo_url": "https://...=s0", "latitude": null, "longitude": null, "photo_date": null, "photo_upload_source": "owner", "photo_source_video": null, "photo_tags": ["by_owner"] } ] } ] ] } ``` `data` has one list per query, each holding one place. Differences from Outscraper: - `receipt_id`, `cost`, `fetch_level`, `upgraded`, `upgrade_reason` and `cache_hit` are ours. - `latitude`, `longitude`, `photo_date` and `photo_source_video` are `null`; we return photo URLs, not their metadata. - `photo_upload_source` is `"owner"` when you asked for `tag=by_owner`, otherwise `null`. ## 4. Pricing and errors - $0.0009 per image returned ($0.90 per 1,000). A query that finds no place, or a place with no photos for the tag, costs $0. - Results are cached for 24 hours per query, tag, language and region. - Errors return `{"id", "status": "Error", "error": true, "errorMessage", "receipt_id"}` with HTTP 400 (invalid input, or no places found), 401, 402, 429 or 500. None are billed. See [Google Business Photos](https://dataforgaio.com/docs/api/business-google-photos.md) for every field. --- # Migrate from Apify (Meta and Yelp ads actors) > Move Apify Facebook Ads Library and Yelp actor runs to /v1/ads/meta and /v1/ads/yelp, with input and output field mapping. `POST /v1/ads/meta` and `POST /v1/ads/yelp` take an Apify actor's input JSON as the request body and return the dataset items as a JSON array, like Apify's run-sync-get-dataset-items call. There's no run to start, poll or fetch a dataset from. > **Note:** Beta: both parsers were written from public documentation and haven't been checked against a live response yet. ## 1. Change the call | | Apify | DataForGAIO | |---|---|---| | URL | `https://api.apify.com/v2/acts//run-sync-get-dataset-items` | `https://api.dataforgaio.com/v1/ads/meta` or `/v1/ads/yelp` | | Auth | Apify token | Your `dg_` key: Bearer, `X-API-Key` or Basic | | Body | Actor input JSON | The same input JSON | | Response | JSON array of dataset items | JSON array of dataset items, each with `receipt_id` | ## 2. Meta ads ### Input Field names from the popular Facebook Ads Library actors are accepted: | Field | Aliases | Notes | |---|---|---| | `startUrls` | `urls` | `[{"url": ...}]` or strings. Ad Library URLs (`facebook.com/ads/library/?q=...&country=..&ad_type=..&active_status=..`, `view_all_page_id=...`, `id=...`), or a Facebook Page URL, which is searched by the page name. | | `searchTerms` | `searchTerm`, `search_terms` | A keyword or a list of keywords. | | `country` | `countryCode`, `scrapePageAds.countryCode` | ISO-2 code or `ALL` (default). | | `adType` | `ad_type` | `ALL` (default) or `POLITICAL_AND_ISSUE_ADS`. | | `activeStatus` | `scrapePageAds.activeStatus` | `active`, `inactive` or `all` (default). | | `resultsLimit` | `count`, `maxItems` | Total ads, 1 to 5,000, default 100. | | `limitPerSource` | | Ads per URL or search term. | Send at least one `startUrls` entry or search term. ```bash title="cURL" curl -X POST "https://api.dataforgaio.com/v1/ads/meta" \ -H "Authorization: Bearer $DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "searchTerms": ["trail running shoes"], "country": "DE", "activeStatus": "active", "resultsLimit": 50 }' ``` ```python title="Python" import os import requests res = requests.post( "https://api.dataforgaio.com/v1/ads/meta", headers={"Authorization": f"Bearer {os.environ['DATAFORGAIO_API_KEY']}"}, json={"searchTerms": ["trail running shoes"], "country": "DE", "activeStatus": "active", "resultsLimit": 50}, timeout=120, ) ads = res.json() for ad in ads: print(ad["adArchiveID"], ad["pageName"], ad["isActive"], ad["snapshot"]["body"]["text"]) print("receipt:", res.headers.get("X-Receipt-Id")) ``` ### Output Items follow the `apify/facebook-ads-scraper` item shape: | Field | Notes | |---|---| | `adArchiveID` / `adArchiveId` | The Ad Library id (both spellings). | | `pageID` / `pageId`, `pageName` | The advertiser's page. | | `isActive`, `startDate`, `endDate`, `startDateFormatted`, `endDateFormatted` | Delivery dates as Unix seconds and formatted strings. | | `publisherPlatform` | `["FACEBOOK", "INSTAGRAM", ...]` | | `currency`, `spend`, `impressionsWithIndex.range`, `reachEstimate` | Filled where the Ad Library publishes them (EU-delivered and political or issue ads). | | `snapshot` | `pageName`, `byline`, `body.text`, `title`, `caption`, `linkDescription`, plus `images`, `videos`, `cards`, `ctaText`, which may be empty. | | `categories` | `["POLITICAL"]` for political and issue ads. | | `targetedOrReachedCountries`, `inputUrl`, `url` | | | `receipt_id` | Ours, on every item. | `adId`, `collationCount` and `collationId` are `null`. Coverage: every ad delivered in the EU, and political or issue ads anywhere, come from the Ad Library's full records. Other ads come from the first page of public Ad Library results for each source, with fewer fields filled. ## 3. Yelp ads ### Input | Field | Aliases | Notes | |---|---|---| | `searchTerms` | `search_terms`, `searchTerm` | Each term runs in each location. | | `locations` | `location` | Required with `searchTerms`, e.g. `"Austin, TX"`. | | `directUrls` | `startUrls` | Yelp search URLs (`yelp.com/search?find_desc=...&find_loc=...`). Business pages aren't accepted. | | `searchLimit` | | Results per search, 1 to 240, default 10. | Up to 50 searches (terms × locations, plus direct URLs) per request. ```bash curl -X POST "https://api.dataforgaio.com/v1/ads/yelp" \ -H "Authorization: Bearer $DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{"searchTerms": ["plumber"], "locations": ["Austin, TX"], "searchLimit": 20}' ``` ### Output Items follow the common Yelp actor item: `name`, `bizId`, `directUrl`, `address` (`addressLine1` filled; the rest `null`), `neighborhoods`, `phone`, `aggregatedRating`, `reviewCount`, `priceRange`, `categories`, `primaryPhoto`, plus: | Field | Meaning | |---|---| | `isAd`, `sponsored`, `advertiser` | `true` for paid placements. | | `position` | Order on the results page, ads included. | | `searchTerm`, `location` | The search that produced the row. | | `scrapeStartedAt`, `scrapeFinishedAt` | ISO 8601 times for that search. | | `receipt_id` | Ours. | `website`, `type`, `cuisine`, `claimed`, `verified`, `images` and `alternateNames` are empty or `null`. ## 4. Pricing and errors | Route | Price | Cache | |---|---|---| | `/v1/ads/meta` | $0.00018 per ad returned ($0.18 per 1,000) | 6 hours | | `/v1/ads/yelp` | $0.00045 per result returned ($0.45 per 1,000), ads and organic rows alike | 6 hours | - `max_cost` caps the number of items: `"max_cost": 0.009` on Yelp returns at most 20 results. - `auto_upgrade`, `max_level` and `max_age` work as on other routes. Yelp usually needs a higher fetch level; the price per result doesn't change with the level. - The response has no cost field. The charge is on the `receipt_id` (each item, and the `X-Receipt-Id` header) in **Dashboard → Billing**. - Errors use Apify's body, `{"error": {"type", "message", "receipt_id"}}`, with HTTP 400 `invalid-input` (bad input, or no ads found), 401 `user-or-token-not-found`, 402 `not-enough-usage-to-run-paid-actor`, 429 `rate-limit-exceeded`, 500 `internal-error`. None are billed. See [Meta Ad Library](https://dataforgaio.com/docs/api/ads-meta.md) and [Yelp Search Ads](https://dataforgaio.com/docs/api/ads-yelp.md) for every field. --- # Daily rank tracking with the standard queue > Track a domain's Google positions for a keyword list every day at the standard queue price, collecting results with tasks_ready and storing them in SQLite. This script posts one task per keyword to the standard queue, collects the results as they finish, and records where your domain ranks. Run it once a day from cron. **Cost:** $0.00054 per keyword at depth 10, or $0.0054 at depth 100 (10 pages of 10). 500 keywords at depth 100 is $2.70 a day. With `auto_upgrade: false`, a task whose included sources fail costs $0 instead of falling back to the live price. **You need:** Python 3.9+, `requests`, and `DATAFORGAIO_API_KEY` in the environment. ```python title="rank_tracker.py" import datetime as dt import os import sqlite3 import time import requests BASE = "https://api.dataforgaio.com/v1" AUTH = ("api", os.environ["DATAFORGAIO_API_KEY"]) DOMAIN = "example.com" # the domain you track LOCATION_CODE = 2840 # United States LANGUAGE = "en" DEPTH = 100 KEYWORDS = [ "trail running shoes", "waterproof hiking boots", "lightweight running vest", ] db = sqlite3.connect("ranks.db") db.execute("""create table if not exists ranks ( day text, keyword text, position integer, url text, cost real, fetched_at text, cache_hit integer, primary key (day, keyword))""") today = dt.date.today().isoformat() def post_tasks(): """Queue today's tasks; return {task_id: keyword}.""" done = {row[0] for row in db.execute("select keyword from ranks where day = ?", (today,))} todo = [k for k in KEYWORDS if k not in done] ids = {} for i in range(0, len(todo), 100): tasks = [{ "keyword": kw, "location_code": LOCATION_CODE, "language_code": LANGUAGE, "depth": DEPTH, "priority": 1, "auto_upgrade": False, "tag": f"{today}:{kw}"[:255], } for kw in todo[i:i + 100]] body = requests.post(f"{BASE}/serp/google/organic/task_post", auth=AUTH, json=tasks, timeout=60).json() if body["status_code"] != 20000: raise SystemExit(f'{body["status_code"]}: {body["status_message"]}') for t in body["tasks"]: if t["status_code"] == 20100: ids[t["id"]] = t["data"]["keyword"] else: print("not queued:", t["data"].get("keyword"), t["status_code"], t["status_message"]) return ids def record(keyword, task): result = (task.get("result") or [{}])[0] hit = next((i for i in result.get("items") or [] if (i.get("domain") or "").endswith(DOMAIN)), None) db.execute( "insert or replace into ranks values (?, ?, ?, ?, ?, ?, ?)", (today, keyword, hit["rank_absolute"] if hit else None, hit["url"] if hit else None, task["cost"], result.get("fetched_at"), int(task["cache_hit"])), ) db.commit() def collect(ids, timeout_s=3600): deadline = time.time() + timeout_s while ids and time.time() < deadline: ready = requests.get(f"{BASE}/serp/google/organic/tasks_ready", auth=AUTH, timeout=60).json() for row in ready["tasks"][0]["result"] or []: if row["id"] not in ids: continue # someone else's run on the same key got = requests.get(f"{BASE}/serp/google/organic/task_get/advanced/{row['id']}", auth=AUTH, timeout=60).json() record(ids.pop(row["id"]), got["tasks"][0]) # Failed tasks never appear in tasks_ready: check stragglers directly. for task_id in list(ids)[:20]: got = requests.get(f"{BASE}/serp/google/organic/task_get/advanced/{task_id}", auth=AUTH, timeout=60).json()["tasks"][0] if got["status_code"] in (40601, 40602): continue if got["status_code"] == 20000: record(ids.pop(task_id), got) else: print("failed:", ids.pop(task_id), got["status_code"], got["status_message"]) if ids: time.sleep(30) if ids: print(f"{len(ids)} tasks still running; rerun the script later to collect them.") if __name__ == "__main__": collect(post_tasks()) for row in db.execute("select keyword, position, url from ranks where day = ? order by keyword", (today,)): print(row) ``` ## How it works - **Standard queue, `priority: 1`.** The lowest SERP price. Results may come from the shared cache if the same query ran in the last 6 hours; `cache_hit` and `fetched_at` are stored so you can tell. - **`auto_upgrade: false`.** Keeps every task at the queue price. Drop it if you'd rather pay the live price than miss a day. - **`tag`.** `day:keyword` makes each task recognizable in `tasks_ready` and postbacks. - **Rerunnable.** Keywords already recorded today are skipped, so a second run only posts what's missing. Tasks posted by an earlier run that weren't collected stay in `tasks_ready` until collected; extend `collect` to look them up by tag if you rerun often. - **No polling at all:** set `"postback_url": "https://your-app.example/hooks/serp/SECRET?id=$id"` on each task and move `record` into your webhook handler. See [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md). ## Schedule it ```bash # crontab -e: every day at 06:15 15 6 * * * cd /opt/rank-tracker && /usr/bin/python3 rank_tracker.py >> run.log 2>&1 ``` Reference: [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md), [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md), [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md). --- # Local rank grid with Google Maps > Measure a business's Google Maps position across a grid of map points around its location, using location_coordinate and the standard queue. A local rank grid runs the same Maps search from many points around a business and records its position at each one. This recipe builds a 7 × 7 grid, queues one Google Maps task per point, and prints a position map. > **Note:** Beta: Google Maps results come from parsers that haven't been checked against live responses yet. **Cost:** one task per point, $0.00054 each in the standard queue. A 7 × 7 grid is 49 tasks, $0.02646 per keyword. Maps tasks don't fall back to a live source, so a point that fails costs $0. **You need:** Python 3.9+, `requests`, `DATAFORGAIO_API_KEY`, and the business's CID (from a Maps result's `cid`, or `my_business_info`). ```python title="rank_grid.py" import math import os import time import requests BASE = "https://api.dataforgaio.com/v1" AUTH = ("api", os.environ["DATAFORGAIO_API_KEY"]) KEYWORD = "coffee shop" TARGET_CID = "1234567890123456789" # the business you track CENTER = (30.2672, -97.7431) # lat, lng SIZE = 7 # 7 x 7 points SPACING_KM = 1.0 ZOOM = "15z" DEPTH = 20 def grid(center, size, spacing_km): lat0, lng0 = center half = size // 2 for row in range(size): for col in range(size): dy = (half - row) * spacing_km dx = (col - half) * spacing_km lat = lat0 + dy / 111.32 lng = lng0 + dx / (111.32 * math.cos(math.radians(lat0))) yield row, col, round(lat, 6), round(lng, 6) points = list(grid(CENTER, SIZE, SPACING_KM)) tasks = [{ "keyword": KEYWORD, "location_coordinate": f"{lat},{lng},{ZOOM}", "language_code": "en", "depth": DEPTH, "tag": f"{row},{col}", } for row, col, lat, lng in points] body = requests.post(f"{BASE}/serp/google/maps/task_post", auth=AUTH, json=tasks, timeout=60).json() if body["status_code"] != 20000: raise SystemExit(f'{body["status_code"]}: {body["status_message"]}') pending = {t["id"]: t["data"]["tag"] for t in body["tasks"] if t["status_code"] == 20100} positions = {} deadline = time.time() + 1800 while pending and time.time() < deadline: for task_id in list(pending): task = requests.get(f"{BASE}/serp/google/maps/task_get/advanced/{task_id}", auth=AUTH, timeout=60).json()["tasks"][0] if task["status_code"] in (40601, 40602): continue # not finished yet tag = pending.pop(task_id) items = (task.get("result") or [{}])[0].get("items") or [] hit = next((i for i in items if i.get("cid") == TARGET_CID), None) positions[tag] = hit["rank_absolute"] if hit else None if pending: time.sleep(30) # 49 reads per 30 s stays under 120 requests per minute for row in range(SIZE): cells = [] for col in range(SIZE): pos = positions.get(f"{row},{col}") cells.append(f"{pos:>3}" if pos else " -") print(" ".join(cells)) found = [p for p in positions.values() if p] print(f"found at {len(found)}/{len(points)} points; average position {sum(found) / len(found):.1f}" if found else "not found in the top results at any point") ``` Example output (`-` means not in the top 20 at that point): ```text - - 14 11 12 - - - 9 6 4 5 8 - 13 5 3 2 2 4 10 9 4 2 1 1 3 7 12 6 3 2 2 5 11 - 10 7 5 6 9 - - - 15 12 13 - - ``` ## Notes - **`location_coordinate`** is `"latitude,longitude,zoom"`. Zoom defaults to `14z` when you leave it out. You don't need a `location_code` alongside it. - **Depth.** Google returns about 20 Maps results per request. Depth up to 100 is served, at one unit per task. - **Matching.** `cid` is the most reliable key. `place_id` and `title` work too. - **Caching.** The standard queue reuses a Maps result up to 6 hours old for an identical keyword, coordinate, language and depth. Add `"max_age": 0` for a fresh grid every time. - **Live.** For an on-demand grid in a UI, post the same tasks to `/v1/serp/google/maps/live/advanced` in arrays of 10 or so ($0.0018 each). - **This recipe polls `task_get` per task,** which is fine for 49 tasks. For many keywords, collect with `tasks_ready` or a `postback_url` instead, and mind the 120 requests per minute per key. Reference: [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md), [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md). --- # LLM brand-mention tracking with llm_responses > Ask ChatGPT, Claude and Perplexity models the prompts your buyers ask, then measure how often your brand is mentioned and which sources are cited. This recipe sends a set of prompts to three answer engines through `llm_responses` with web search on, then counts brand mentions, competitor mentions and cited domains. **Cost:** each answer is a base fee ($0.00054 live, $0.00018 in the standard queue) plus the model's tokens and web searches at the provider's list price. The token part is returned as `money_spent`; the task's `cost` is the total. 10 prompts × 3 engines is 30 answers, so $0.0162 in base fees plus tokens. A failed or empty answer costs $0. **You need:** Python 3.9+, `requests`, `DATAFORGAIO_API_KEY`. ```python title="brand_mentions.py" import collections import os import re from urllib.parse import urlsplit import requests BASE = "https://api.dataforgaio.com/v1" AUTH = ("api", os.environ["DATAFORGAIO_API_KEY"]) BRAND = "Acme Trail" COMPETITORS = ["Summit Gear", "Ridgeline"] ENGINES = ["chat_gpt", "claude", "perplexity"] PROMPTS = [ "What are the best trail running shoes for muddy terrain?", "Which brands make the most durable hiking boots?", "Recommend a lightweight running vest for ultramarathons.", ] def ask(engine, prompts): tasks = [{ "user_prompt": p, "web_search": True, "web_search_country_iso_code": "US", "max_output_tokens": 1024, "max_cost": 0.05, # never more than 5 cents per answer "tag": p[:255], } for p in prompts] body = requests.post(f"{BASE}/ai/{engine}/llm_responses/live", auth=AUTH, json=tasks, timeout=600).json() if body["status_code"] != 20000: raise SystemExit(f'{body["status_code"]}: {body["status_message"]}') return body["tasks"] def mentioned(name, text): return re.search(rf"\b{re.escape(name)}\b", text, re.IGNORECASE) is not None stats = collections.defaultdict(collections.Counter) cited = collections.Counter() spend = 0.0 for engine in ENGINES: for task in ask(engine, PROMPTS): spend += task["cost"] if task["status_code"] != 20000: print(engine, "failed:", task["status_message"]) continue result = task["result"][0] sections = [s for item in result["items"] for s in item.get("sections") or []] text = "\n".join(s.get("text") or "" for s in sections) stats[engine]["answers"] += 1 stats[engine]["brand"] += mentioned(BRAND, text) for c in COMPETITORS: stats[engine][c] += mentioned(c, text) for s in sections: for a in s.get("annotations") or []: if a.get("url"): cited[urlsplit(a["url"]).netloc.removeprefix("www.")] += 1 for engine, s in stats.items(): n = s["answers"] or 1 others = ", ".join(f"{c} {s[c] / n:.0%}" for c in COMPETITORS) print(f"{engine:11} {BRAND} {s['brand'] / n:.0%} | {others}") print("\nMost cited domains:") for domain, count in cited.most_common(10): print(f" {count:3} {domain}") print(f"\nTotal cost: ${spend:.4f}") ``` ## What's in each answer | Field | Meaning | |---|---| | `result[0].model_name` | The model that answered. Choose one with `model_name`; `GET /v1/ai//llm_responses/models` lists them (free). | | `result[0].items[].sections[].text` | The answer text. | | `result[0].items[].sections[].annotations[]` | Citations with `title`, `url` and, where the engine provides them, `start_index`, `end_index` and `text`. | | `result[0].fan_out_queries` | The web searches the model ran. | | `result[0].search_results` | The results it saw. | | `result[0].input_tokens`, `output_tokens`, `reasoning_tokens`, `money_spent` | Usage and its token cost. | ## Tracking over time - **Queue it to pay less.** For a daily run, post to `/v1/ai/chat_gpt/llm_responses/task_post` and `/v1/ai/claude/llm_responses/task_post` and collect with `tasks_ready` and `task_get/{id}`. Base fees drop to $0.00018 per answer. Queued answers go through the providers' batch processing (Beta) and can take hours. Perplexity is live only. - **Answers aren't cached.** Every call is a fresh sample, so day-to-day changes are real variation. Run each prompt a few times if you need stable rates. - **Limits.** `user_prompt` and `system_message` are up to 500 characters, `max_output_tokens` up to 4,096, and `message_chain` up to 10 alternating `user` / `ai` messages. - **Set `max_cost`.** It caps what each answer is billed, tokens included, and it's also what we reserve from your balance per task. Without it, we reserve the base fee plus a conservative estimate of the tokens the task could use, so a low balance may return `40210` even if the answers would cost less. If you'd rather not build this yourself, the dashboard's AI visibility trackers run prompts on a schedule, and `GET /v1/visibility/trackers/{id}/summary` returns mention rates, citation rates, share of voice and sentiment. > **Note:** Answers returned by `llm_responses` are added to our anonymized AI-answer dataset unless your organization opts out. See [Data retention](https://dataforgaio.com/docs/data-retention.md). Reference: [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md), [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md), [Perplexity LLM Responses: Live](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-live.md). --- # Monitoring competitor ads (Meta and Yelp) > Pull competitors' active Meta Ad Library ads and Yelp sponsored placements on a schedule, and report what's new since the last run. This recipe checks each competitor's active Meta ads and who is buying Yelp sponsored placements in your category, then prints what changed since the previous run. > **Note:** Beta: the Meta and Yelp parsers were written from public documentation and haven't been checked against live responses yet. **Cost:** $0.00018 per Meta ad and $0.00045 per Yelp result returned. 3 competitors × 50 ads plus 2 Yelp searches × 20 results is at most $0.027 + $0.018 = $0.045 a run. Searches that return nothing cost $0. Both routes cache results for 6 hours. **You need:** Python 3.9+, `requests`, `DATAFORGAIO_API_KEY`. ```python title="competitor_ads.py" import json import os import pathlib import requests BASE = "https://api.dataforgaio.com/v1" HEADERS = {"Authorization": f"Bearer {os.environ['DATAFORGAIO_API_KEY']}"} STATE = pathlib.Path("ads_state.json") COMPETITOR_PAGES = { # name -> Meta Ad Library URL for that advertiser's page "Summit Gear": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&view_all_page_id=111111111111111", "Ridgeline": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&view_all_page_id=222222222222222", } YELP_SEARCHES = {"searchTerms": ["running store"], "locations": ["Austin, TX", "Denver, CO"], "searchLimit": 20} def call(path, payload): res = requests.post(f"{BASE}{path}", headers=HEADERS, json=payload, timeout=300) body = res.json() if res.status_code == 400 and "No " in body.get("error", {}).get("message", ""): return [] # nothing found: $0 if res.status_code != 200: raise SystemExit(f"{path}: HTTP {res.status_code} {body}") return body previous = json.loads(STATE.read_text()) if STATE.exists() else {"meta": {}, "yelp": []} current = {"meta": {}, "yelp": []} for name, url in COMPETITOR_PAGES.items(): ads = call("/ads/meta", {"startUrls": [{"url": url}], "resultsLimit": 50, "max_cost": 0.009}) current["meta"][name] = sorted(a["adArchiveID"] for a in ads) new = set(current["meta"][name]) - set(previous["meta"].get(name, [])) print(f"{name}: {len(ads)} active ads, {len(new)} new") for ad in ads: if ad["adArchiveID"] in new: body = (ad["snapshot"].get("body") or {}).get("text") or "" print(f" + {ad['adArchiveID']} since {ad['startDateFormatted']}: {body[:80]}") rows = call("/ads/yelp", YELP_SEARCHES) sponsored = sorted({f"{r['location']}|{r['name']}" for r in rows if r["isAd"]}) current["yelp"] = sponsored for entry in sorted(set(sponsored) - set(previous["yelp"])): location, name = entry.split("|", 1) print(f"Yelp: new sponsored placement for {name} in {location}") STATE.write_text(json.dumps(current, indent=2)) ``` ## Notes - **Meta input.** `startUrls` takes Ad Library URLs (with `view_all_page_id`, `q`, `country`, `ad_type`, `active_status`) or a Facebook Page URL. `searchTerms` runs a keyword search instead. `max_cost: 0.009` caps a call at 50 ads. - **Meta coverage.** Ads delivered in the EU, and political or issue ads anywhere, come with the Ad Library's full records (`spend`, `impressionsWithIndex`, `reachEstimate` where published). Other ads come from the first page of public Ad Library results, with fewer fields. - **Yelp rows** include organic results too. `isAd` (also `sponsored` and `advertiser`) marks paid placements, and `position` is the order on the page. - **"Nothing found"** comes back as HTTP 400 `invalid-input` with a "No ads found" or "No results found" message, in Apify's error shape. The helper above treats that as an empty list. - **Receipts.** The response is a bare array, so the charge is on each item's `receipt_id` and the `X-Receipt-Id` header. - **Freshness.** A repeat call within 6 hours may be served from cache. Send `"max_age": 0` when you need a fresh read. Reference: [Meta Ad Library](https://dataforgaio.com/docs/api/ads-meta.md), [Yelp Search Ads](https://dataforgaio.com/docs/api/ads-yelp.md). Input and output fields are mapped in [Migrate from Apify](https://dataforgaio.com/docs/migrate-from-apify.md). --- # Crawling a site to Markdown for RAG > List a site's pages with /v1/map, crawl them to Markdown with /v1/crawls/batch, and save each page with its receipt for a retrieval index. This recipe turns a documentation site into Markdown files ready for chunking and embedding, with provenance kept next to every page. **Cost:** - `/v1/map`: each fetch that returned real content (robots.txt, sitemap files, the start page) at the page price, at most 12 fetches. Usually under $0.0015. - `/v1/crawls/batch`: $0.00011 per page at Standard, $0.0011 at Rendered, $0.003 at Protected. Pages that aren't real content (challenge pages, login walls, error pages, empty shells) cost $0. 300 Standard pages is $0.033. **You need:** Python 3.9+, `requests`, `DATAFORGAIO_API_KEY`. ```python title="site_to_markdown.py" import json import os import pathlib import re import time import requests BASE = "https://api.dataforgaio.com/v1" HEADERS = {"Authorization": f"Bearer {os.environ['DATAFORGAIO_API_KEY']}"} # Crawl API: Bearer or X-API-Key SITE = "https://docs.example.com/" OUT = pathlib.Path("corpus") LIMIT = 300 def post(path, payload): while True: res = requests.post(f"{BASE}{path}", headers=HEADERS, json=payload, timeout=180) if res.status_code == 429: time.sleep(int(res.headers.get("Retry-After", "5"))) continue body = res.json() if res.status_code >= 400 and body.get("status") == "error": raise SystemExit(f"{path}: {body['error']}") return body # 1. Find the pages. site_map = post("/map", {"url": SITE, "limit": LIMIT, "search": "/guides/", "max_level": "rendered"}) urls = [u["url"] for u in site_map["urls"]] print(f"map: {len(urls)} URLs from {len(site_map['sitemaps'])} sitemaps, billed ${site_map['billed_usd']}") # 2. Crawl them in batches of 100. jobs = [] for i in range(0, len(urls), 100): job = post("/crawls/batch", { "targets": [{"url": u} for u in urls[i:i + 100]], "output_format": "markdown", "max_level": "rendered", # never pay the Protected price on a docs site "max_cost": 0.0011, }) jobs.append(job["job_id"]) print("queued", job["job_id"], job["tasks_count"]) # 3. Wait for each job and save pages with their receipts. OUT.mkdir(exist_ok=True) total = 0.0 for job_id in jobs: delay = 2 while True: res = requests.get(f"{BASE}/crawls/{job_id}", headers=HEADERS, timeout=120).json() if res["job_status"] == "completed": break time.sleep(delay) delay = min(delay * 1.5, 15) for task in res["tasks"]: total += task["cost"] receipt = task.get("receipt") or {} if task["status"] != "completed" or receipt.get("content_check") != "substantive": print("skip", receipt.get("source_url"), task["status"], task["status_message"]) continue slug = re.sub(r"[^a-z0-9]+", "-", receipt["source_url"].lower()).strip("-")[:120] (OUT / f"{slug}.md").write_text(task["content"]["markdown"]) (OUT / f"{slug}.json").write_text(json.dumps({ "title": task["content"]["title"], "source_url": receipt["source_url"], "fetched_at": receipt["fetched_at"], "content_sha256": receipt["content_sha256"], "robots_txt": receipt["robots_txt"], "ai_use_signal": receipt["ai_use_signal"], "fetch_level": receipt["fetch_level"], "billed_usd": receipt["billed_usd"], "receipt_id": receipt["receipt_id"], }, indent=2)) print(f"done: {len(list(OUT.glob('*.md')))} pages, ${total:.4f}") ``` ## How it works 1. **Map.** `POST /v1/map` reads robots.txt, up to 10 sitemap files and the links on the start page, and returns up to `limit` URLs (max 5,000) as `{url, source, lastmod, crawler_allowed}`. `search` keeps URLs containing that text. It doesn't crawl beyond the start page. 2. **Batch.** `POST /v1/crawls/batch` queues up to 100 targets and returns a `job_id` at once. If any URL is invalid, the whole batch is refused (422) and nothing is billed. 3. **Collect.** `GET /v1/crawls/{job_id}` returns `job_status` (`queued`, `processing`, `completed`) and every task with its content and receipt. Reads are free. Instead of polling, pass `webhook_url` (https) and we'll post the finished job to you. See [Handling webhooks securely](https://dataforgaio.com/docs/webhooks.md). ## Respecting site signals Every receipt records `robots_txt` and `ai_use_signal`, and each map URL carries `crawler_allowed`. robots.txt is recorded, not enforced, so the decision is yours. To skip pages a site has reserved from AI use, filter before you index: ```python keep = receipt["robots_txt"] != "disallowed" and receipt["ai_use_signal"] not in ("reserved",) ``` ## Into your index The `.json` sidecar keeps provenance with each document. When you chunk, copy `source_url`, `fetched_at` and `content_sha256` onto every chunk so an answer can cite exactly which fetch it came from. The Python SDK's `DataForGAIOLoader` (LangChain) and `DataForGAIOReader` (LlamaIndex) do this for you; see [SDKs](https://dataforgaio.com/docs/sdks.md). Reference: [Map a site](https://dataforgaio.com/docs/api/map.md), [Crawl a batch](https://dataforgaio.com/docs/api/crawls-batch.md), [Get a crawl](https://dataforgaio.com/docs/api/crawls-get.md). --- # Google Business Profile audit > Audit a Google Business Profile in three calls, combining my_business_info, owner photos and place products into one report. This recipe pulls a business's profile, its owner-uploaded photos and its product listings, then flags common gaps: no description, few categories, unclaimed, few owner photos, no products. > **Note:** Beta: the business profile, photos and products parsers were written from public documentation and haven't been checked against live responses yet. **Cost per business:** | Call | Price | |---|---| | `my_business_info` (live) | $0.00135 at Standard, $0.00234 Rendered, $0.003 Protected | | `photos` with `tag=by_owner`, up to 30 images | $0.0009 per image, at most $0.027 | | `products` | $0.0015 if the place lists products, $0 if not | All three cache for 24 hours, so a rerun the same day reuses the data at the same price. Send `max_age: 0` for a fresh read. **You need:** Python 3.9+, `requests`, `DATAFORGAIO_API_KEY`. ```python title="gbp_audit.py" import os import sys import requests BASE = "https://api.dataforgaio.com/v1" KEY = os.environ["DATAFORGAIO_API_KEY"] BASIC = ("api", KEY) HEADERS = {"Authorization": f"Bearer {KEY}"} query = sys.argv[1] if len(sys.argv) > 1 else "Blue Bottle Coffee Ferry Building San Francisco" # 1. Profile (DataForSEO shape, task array). body = requests.post( f"{BASE}/business/google/my_business_info/live", auth=BASIC, json=[{"keyword": query, "language_code": "en", "max_level": "rendered"}], timeout=180, ).json() task = body["tasks"][0] if task["status_code"] != 20000: raise SystemExit(f'profile: {task["status_code"]} {task["status_message"]}') info = task["result"][0]["items"][0] cid = info["cid"] print(f'{info["title"]} | cid {cid} | {info["category"]} | {info["address"]}') # 2. Owner photos (Outscraper shape). Use the cid so we hit the same place. photos = requests.get( f"{BASE}/business/google/photos", params={"query": cid, "tag": "by_owner", "photosLimit": 30}, headers=HEADERS, timeout=180, ).json() owner_photos = photos["data"][0][0]["photos_data"] if photos.get("status") == "Success" else [] # 3. Products (Scale SERP shape). products = requests.get( f"{BASE}/business/google/products", params={"data_cid": cid, "hl": "en"}, headers=HEADERS, timeout=180, ).json() product_rows = products.get("place_products_results") or [] # 4. Findings. rating = info.get("rating") or {} checks = [ ("Has a description", bool(info.get("description"))), ("Claimed by the owner", info.get("is_claimed") is True), ("At least 3 categories", 1 + len(info.get("additional_categories") or []) >= 3 if info.get("category") else False), ("Has a website", bool(info.get("url"))), ("Has a phone number", bool(info.get("phone"))), ("Rated 4.0 or higher", (rating.get("value") or 0) >= 4.0), ("At least 10 owner photos", len(owner_photos) >= 10), ("Lists products", len(product_rows) > 0), ] for label, ok in checks: print(f' [{"x" if ok else " "}] {label}') print(f'\nrating {rating.get("value")} from {rating.get("votes_count")} reviews; ' f'{info.get("total_photos")} photos in total, {len(owner_photos)} from the owner; {len(product_rows)} products') print(f'cost: profile ${task["cost"]} ({task["fetch_level"]}), photos ${photos.get("cost", 0)}, ' f'products ${products.get("request_info", {}).get("cost", 0)}') ``` ## Notes - **Identify the place once.** `my_business_info` takes a name (plus city), `cid:` or `place_id:` as `keyword`. Use the `cid` it returns for the photos and products calls so all three describe the same place. - **Fields that can be `null`.** Fields the place data doesn't carry (`category_ids`, `attributes`, `place_topics`, `logo`, `contact_url`) are present and `null`. Check for `null`, not just absence. - **Queue it for many locations.** For a portfolio, post profiles to `/v1/business/google/my_business_info/task_post` (same price) and collect them with `tasks_ready` and `task_get/{id}`. - **Cost control.** `max_level: "rendered"` keeps a profile at $0.00234 or less. `photosLimit` (or `max_cost`) caps the photo bill. Reference: [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md), [Google Business Photos](https://dataforgaio.com/docs/api/business-google-photos.md), [Google Business Products](https://dataforgaio.com/docs/api/business-google-products.md). --- # Using the docs as an agent > Machine-readable versions of these docs for AI agents and coding assistants, including llms.txt, Markdown pages, the OpenAPI spec and the reference JSON. Every page in these docs is available in a form an agent can read without rendering HTML. | URL | What it is | Use it for | |---|---|---| | `https://dataforgaio.com/llms.txt` | An index of every docs page, with one-line descriptions and links to the Markdown versions, in the llmstxt.org format | Finding the right page | | `https://dataforgaio.com/llms-full.txt` | All guides and the full API reference as one Markdown file | Loading everything into a long context at once | | `https://dataforgaio.com/docs/.md` | Any docs page as raw Markdown, for example `/docs/quickstart.md` or `/docs/api/serp-google-organic-live-advanced.md` | Reading one page | | `https://dataforgaio.com/openapi.json` | The OpenAPI 3.1 spec for every served endpoint | Generating clients and tool definitions | | `https://dataforgaio.com/docs/api-reference.json` | The reference data behind the endpoint pages: fields, prices per mode and level, errors and examples | Structured lookups, such as the price of an endpoint | ## Pointing a coding assistant at the docs Give the assistant the index and let it pull pages as needed: ```text Use the DataForGAIO API docs. Start from https://dataforgaio.com/llms.txt and fetch the .md version of any page you need. Base URL: https://api.dataforgaio.com/v1. Auth: Basic with any login and my dg_ key as the password (or Bearer). Always set max_cost on tasks. ``` For a project that will use the API heavily, save `llms-full.txt` into the repository or the assistant's context so it doesn't fetch it on every session. ## Generating tools from OpenAPI `/openapi.json` describes each operation with its request body, response schema, examples and errors. Most agent frameworks can turn it into tool definitions directly. Two things to add by hand: - **Cost controls.** Make `max_cost` a required argument on every tool that calls a paid endpoint, and set a default. See [Tool-calling tips](https://dataforgaio.com/docs/tool-calling-tips.md). - **Auth.** Inject the key on the server side, as a Basic password or a Bearer token. Never pass it to the model. ## Discovering what's served The API can describe itself too, with your key: - `GET /v1/account/support_matrix?supported=true` lists every served route with its method, mode and price. - `GET /v1/account/user_data` returns your balance and the full price table. - `GET /v1/ai//llm_responses/models` lists the AI models for an engine. - `GET /v1/serp/google/locations` and `/languages` list targeting codes. All four are free. ## The MCP server If your agent speaks the Model Context Protocol, the hosted MCP server gives it the Crawl API, `POST /v1/serp` and the AI visibility reports as ready-made tools. See [MCP server](https://dataforgaio.com/docs/mcp-server.md). --- # MCP server > Connect Claude, LiteLLM or any MCP client to the hosted DataForGAIO MCP server, with its tools, connection settings, costs and limits. The hosted Model Context Protocol server lets an AI client crawl pages, map sites, run Google or Bing searches and read AI visibility reports, with a receipt on every result. > **Note:** The MCP server covers the Crawl API, `POST /v1/serp`, usage and the AI visibility routes today. The compatible SERP, Pages, AI answers, Business and Ads endpoints aren't exposed as MCP tools yet; agents call those over HTTP. See [Tool-calling tips](https://dataforgaio.com/docs/tool-calling-tips.md). ## Connecting | Setting | Value | |---|---| | Endpoint | `https://mcp.dataforgaio.com/mcp` | | Transport | Streamable HTTP (stateless, JSON responses) | | Auth | `Authorization: Bearer dg_...` or `X-API-Key: dg_...` on every request | | OAuth | None. In a Claude connector, choose **No sign-in** and add the header. | | Health check | `GET https://mcp.dataforgaio.com/healthz` returns `{"status":"ok"}` without auth | The server holds no key of its own. Each request carries the caller's key and bills that key's organization wallet. A request without a key is refused with HTTP 401. ```bash title="Claude Code" claude mcp add --transport http dataforgaio https://mcp.dataforgaio.com/mcp \ --header "Authorization: Bearer dg_your_key" ``` ```json title="Claude Desktop / JSON config" { "mcpServers": { "dataforgaio": { "url": "https://mcp.dataforgaio.com/mcp", "headers": { "Authorization": "Bearer dg_your_key" } } } } ``` ```yaml title="LiteLLM" mcp_servers: dataforgaio: url: "https://mcp.dataforgaio.com/mcp" transport: "http" auth_type: "bearer_token" auth_value: "dg_..." ``` ## Tools | Tool | Calls | Arguments | Billed | |---|---|---|---| | `dataforgaio_crawl` | `POST /v1/crawls` | `url`, `output_format` (`markdown`, `html`, `json`), `include_receipt`, `project_id`, `max_content_chars` | Per page with real content, at the level that delivered it | | `dataforgaio_crawl_batch` | `POST /v1/crawls/batch` | `urls` (up to 100), `output_format`, `include_receipt`, `project_id`, `webhook_url` | Same, per page | | `dataforgaio_get_crawl` | `GET /v1/crawls/{id}` | `id` (`job_...` or `cr_...`), `include_receipt`, `max_content_chars` | Free | | `dataforgaio_get_receipts` | `GET /v1/crawls/{id}/receipt` | `id` | Free | | `dataforgaio_map` | `POST /v1/map` | `url`, `limit` (1 to 5,000), `include_subdomains`, `search`, `use_sitemap` | Per fetch with real content, at most 12 | | `dataforgaio_serp` | `POST /v1/serp` | `keyword`, `search_engine` (`google`, `bing`), `country`, `language`, `device`, `include_receipt`, `project_id` | $0.00054 per search with results | | `dataforgaio_list_crawls` | `GET /api/v1/crawl/list/` | `project`, `page` | Free | | `dataforgaio_usage` | `GET /v1/usage` | none | Free | | `dataforgaio_list_visibility_trackers` | `GET /v1/visibility/trackers` | `project` | Free | | `dataforgaio_visibility_summary` | `GET /v1/visibility/trackers/{id}/summary` | `id` (`vt_...`), `days` (1 to 365, default 30) | Free | The crawl and map tools don't expose `auto_upgrade`, `max_level` or `max_cost` yet, so they use the API defaults (Auto-upgrade on, up to Protected). Pages are billed at most $0.003 each. If you need a lower ceiling, call the REST API directly. ## Behavior - **Page bodies are cut** to `max_content_chars` (default 20,000, max 200,000) so one large page doesn't fill the model's context. A cut task has `content_truncated: true` and `content_full_chars`. - **Errors keep the API's shapes.** Request errors return `{"status": "error", "error": {...}}`. A crawl that failed upstream (502) returns the full envelope with an added `http_status`. A 429 adds `retry_after_seconds`. - **Timeouts.** Inline calls wait up to 120 seconds. On a timeout the tool says the request may still have run, and suggests checking `dataforgaio_list_crawls` before retrying a billed call. - **Instructions.** The server sends the client instructions that steer the model to fetch only what the user asked for, read results back instead of re-crawling, poll batches a few seconds apart, and report receipt facts with the content. ## Limits - Rate limits are per API key: 120 requests per minute across all `/v1` routes. Every MCP user keeps their own budget even though their requests reach the API from the MCP host. - Inline calls (`dataforgaio_crawl`, `dataforgaio_map`, `dataforgaio_serp`) count toward your organization's 10 in-flight inline requests. - A batch takes up to 100 URLs. See [Rate limits and concurrency](https://dataforgaio.com/docs/rate-limits.md). --- # SDKs > What the Python and TypeScript SDKs cover today (the Crawl API, POST /v1/serp and usage), how to install them, and how to call the compatible endpoints over HTTP. There are two official SDKs, for Python and TypeScript. Both cover the Crawl API, `POST /v1/serp` and `GET /v1/usage`. > **Note:** The SDKs don't wrap the compatible SERP, Pages, AI answers, Business and Ads endpoints yet. Call those over HTTP, as in every example in these docs, or with an existing DataForSEO v3 client pointed at our base URL. See [Migrate from DataForSEO](https://dataforgaio.com/docs/migrate-from-dataforseo.md). ## What they cover | Python | TypeScript | Endpoint | |---|---|---| | `crawl(url, output_format=, include_receipt=, project_id=)` | `crawl(url, { outputFormat, includeReceipt, projectId })` | `POST /v1/crawls` | | `crawl_batch(urls, webhook_url=, output_format=, include_receipt=, project_id=)` | `crawlBatch(urls, { webhookUrl, ... })` | `POST /v1/crawls/batch` | | `get_crawl(ref, include_receipt=)` | `getCrawl(ref, { includeReceipt })` | `GET /v1/crawls/{ref}` | | `wait_for_batch(job_id, timeout=600, poll_interval=2, max_poll_interval=15)` | `waitForBatch(jobId, { timeoutMs, pollIntervalMs, maxPollIntervalMs })` | Polls `GET /v1/crawls/{ref}` | | `get_receipt(ref)` | `getReceipt(ref)` | `GET /v1/crawls/{ref}/receipt` | | `serp(keyword, search_engine=, country=, language=, device=)` | `serp(keyword, { searchEngine, country, language, device })` | `POST /v1/serp` | | `usage()` | `usage()` | `GET /v1/usage` | `ref` is a batch `job_id` (`job_...`) or a task id (`cr_...`). Responses are the API's own JSON, with its snake_case field names. The crawl methods don't take `auto_upgrade`, `max_level` or `max_cost` yet, so they use the API defaults. To set a ceiling, call `POST /v1/crawls` directly. ## Python ```bash pip install dataforgaio pip install "dataforgaio[langchain]" # adds DataForGAIOLoader pip install "dataforgaio[llamaindex]" # adds DataForGAIOReader ``` ```python from dataforgaio import DataForGAIO client = DataForGAIO() # reads DATAFORGAIO_API_KEY; or DataForGAIO(api_key="dg_...") result = client.crawl("https://example.com", output_format="markdown") task = result["tasks"][0] print(task["status"], task["content"]["title"], task["receipt"]["billed_usd"]) job = client.crawl_batch(["https://example.com/a", "https://example.com/b"]) done = client.wait_for_batch(job["job_id"], timeout=600) ``` - Sync `DataForGAIO` and async `AsyncDataForGAIO` clients. Python 3.9 or later; the only runtime dependency is `httpx`. - `DataForGAIOLoader` (LangChain) and `DataForGAIOReader` (LlamaIndex) put every receipt field in each document's metadata and skip pages whose `content_check` isn't `substantive` (pass `include_non_substantive=True` to keep them). - Default base URL `https://api.dataforgaio.com/v1`, overridable with `base_url=` or `DATAFORGAIO_BASE_URL`. ## TypeScript ```bash npm install @dataforgaio/sdk ``` ```ts import { DataForGAIO } from '@dataforgaio/sdk'; const client = new DataForGAIO(); // reads DATAFORGAIO_API_KEY const result = await client.crawl('https://example.com', { outputFormat: 'markdown' }); const task = result.tasks[0]!; console.log(task.status, task.content?.title, task.receipt?.billed_usd); ``` - No runtime dependencies; uses the built-in `fetch`. ESM and CommonJS builds for Node 18 or later, Deno, Bun and edge runtimes. - Client options: `apiKey`, `baseUrl`, `timeoutMs` (default 120 s), `maxRetries`, `headers`, `fetch`. Every method accepts an `AbortSignal` as `signal`. ## Errors and retries (both SDKs) | Error | HTTP | API `code` | |---|---|---| | `AuthError` | 401, 403 | `unauthorized`, `forbidden` | | `InsufficientBalance` | 402 | `balance_required` | | `InvalidRequest` | 400, 422 | `invalid_request`, `invalid_target` | | `NotFound` | 404 | `not_found` | | `RateLimited` | 429 | `rate_limited` (with `retry_after` in seconds) | | `APIError` | anything else | e.g. `not_configured` | Both retry up to `max_retries` / `maxRetries` times (default 2): 429 on any method, honoring `Retry-After` up to 60 s; 5xx and network errors on `GET`, with exponential backoff and full jitter; and connection failures on `POST` where the request never reached us. A `POST` isn't retried after a 5xx or a read timeout, since the crawl or search may already have run. See [Retrying safely](https://dataforgaio.com/docs/retrying-safely.md). ## Calling the compatible endpoints Until the SDKs cover them, a few lines of HTTP do the job: ```python title="Python" import os import requests def dfg(path, tasks): res = requests.post( f"https://api.dataforgaio.com/v1/{path}", auth=("api", os.environ["DATAFORGAIO_API_KEY"]), json=tasks, timeout=180, ) res.raise_for_status() return res.json() body = dfg("serp/google/organic/live/advanced", [{"keyword": "web data api", "location_code": 2840, "language_code": "en", "max_cost": 0.002}]) ``` ```ts title="TypeScript" async function dfg(path: string, tasks: object[]) { const auth = Buffer.from(`api:${process.env.DATAFORGAIO_API_KEY}`).toString('base64'); const res = await fetch(`https://api.dataforgaio.com/v1/${path}`, { method: 'POST', headers: { Authorization: `Basic ${auth}`, 'Content-Type': 'application/json' }, body: JSON.stringify(tasks), }); if (!res.ok) throw new Error(`HTTP ${res.status}`); return res.json(); } const body = await dfg('serp/google/organic/live/advanced', [ { keyword: 'web data api', location_code: 2840, language_code: 'en', max_cost: 0.002 }, ]); ``` Task-level errors arrive inside an HTTP 200, so check each `tasks[].status_code` as well. --- # Tool-calling tips > How to give an AI agent DataForGAIO tools safely, with the cost controls it should always set, which mode to use, and how to handle errors and results. An agent that can call a paid API needs the same guardrails you'd give a new teammate: a budget per call, a clear rule for retries, and results small enough to read. These tips apply whether the agent uses the [MCP server](https://dataforgaio.com/docs/mcp-server.md), tools generated from [`/openapi.json`](https://dataforgaio.com/docs/docs-for-agents.md), or hand-written functions. ## Cost controls to always set Set these in your tool code, not in the model's prompt, so the model can't drop them. | Control | Set it to | Why | |---|---|---| | `max_cost` | A per-task ceiling, e.g. `0.002` for a SERP or page task, `0.05` for an `llm_responses` answer | No single task can cost more, upgrades included. It also lowers the wallet reservation. | | `max_level` | `rendered` for most page work | Keeps a page at $0.0011 or less. Allow `protected` ($0.003) only when the user asks for a hard-to-reach site. | | `auto_upgrade` | `true` (default) for interactive work; `false` for scheduled queues | `false` keeps queued SERP tasks at the queue price and fails at $0 rather than upgrading. | | `depth` | 10 unless the user asks for more | Organic SERPs bill per 10 results returned. | | Units on per-item routes | `photosLimit`, `resultsLimit`, `searchLimit` | Photos, Meta ads and Yelp results bill per item. | ```python def serp_tool(keyword: str, location_code: int = 2840, language_code: str = "en") -> dict: """Top 10 Google results for one keyword. Costs at most $0.002.""" task = { "keyword": keyword, "location_code": location_code, "language_code": language_code, "depth": 10, "max_cost": 0.002, # enforced here, not left to the model } body = requests.post(f"{BASE}/serp/google/organic/live/advanced", auth=AUTH, json=[task], timeout=120).json() t = body["tasks"][0] if t["status_code"] != 20000: return {"error": t["status_code"], "message": t["status_message"], "cost": t["cost"]} items = t["result"][0]["items"] return { "results": [{"rank": i["rank_absolute"], "title": i["title"], "url": i["url"]} for i in items], "cost": t["cost"], "fetched_at": t["result"][0]["fetched_at"], "cache_hit": t["cache_hit"], } ``` ## Pick the mode for the agent's situation - **Answering a user now:** live routes. Keep each call to one or a few tasks. - **Background research the user will read later:** `task_post` in the standard queue, then `tasks_ready` and `task_get`. Tell the user it's running rather than guessing at results. - **Never loop `task_get` tightly.** Poll every 30 seconds or more; reads count toward 120 requests per minute per key. ## Handle errors without burning money - **Task errors are free.** `40501` names the bad field: let the model fix the argument and try once more. Don't retry it unchanged. - **`40210` / 402** means the wallet needs a top-up. Stop and tell the user; nothing was billed. - **`40202` / 429**: wait `Retry-After` seconds. Don't let the model spin. - **`40402`**: the endpoint isn't served yet. Don't retry; check `GET /v1/account/support_matrix`. - **A live `POST` that timed out may have run.** Read it back (`task_get`, `GET /v1/crawls/{id}`) instead of calling again. There are no idempotency keys yet. ## Keep results small - Return only the fields the model needs (rank, title, URL, a snippet) plus `cost`. Full SERP and page objects are large. - Cut page bodies. The MCP server cuts at 20,000 characters by default; do the same in your own tools. - Keep `receipt_id`, `fetched_at` and `cache_hit` in the result so the agent can cite where data came from and how fresh it is. ## Tell the model what things cost Put the price in each tool's description, from [Pricing and billing](https://dataforgaio.com/docs/pricing-and-billing.md). A model that knows a live SERP is $0.0018 and a queued one is $0.00054 makes better choices about batching and modes. `GET /v1/account/user_data` returns the current price table and balance if you'd rather load them at startup. ## Use a dedicated key Give each agent deployment its own key. Its rate limit is its own, and you can revoke it without touching anything else. Keep the key in your tool runtime; never put it in the prompt. --- # Status codes | Code | HTTP | Message | Meaning | Billed | |---|---|---|---|---| | 20000 | 200 | Ok. | The task returned data. Its `cost` is what we charged. | yes | | 20100 | 200 | Task Created. | A task_post task was accepted and queued. Read it with task_get once tasks_ready lists it. Nothing is charged until it returns data. | no | | 40006 | 400 | You can send up to 100 tasks in one request. | One POST carried more than 100 tasks. Nothing ran. | no | | 40100 | 401 | Authentication required. Use any login and your dg_ API key as the password. | No credentials were sent. Use HTTP Basic with any login and your `dg_` key as the password, or `Authorization: Bearer dg_...`. | no | | 40101 | 401 | Authentication failed. The API key is missing, malformed or revoked. | The API key is missing, malformed or revoked, or its owner is no longer a member of an organization. | no | | 40102 | 200 | No Search Results. | The request ran but there was no data to return: an empty results page, or no fetch level got the page. You weren't billed. | no | | 40202 | 429 | Too many requests. Retry shortly. | Too many requests for this key. Wait for the `Retry-After` seconds and retry. | no | | 40210 | 402 | Insufficient funds. Top up your wallet and retry. You weren't billed. | Your wallet balance is below the most this request could cost (the worst case its `max_level` or `max_cost` allows). Nothing ran. | no | | 40400 | 404 | Not Found. | No route at this path. Check it against `/v1/account/support_matrix`. | no | | 40401 | 200 | Task Not Found. | No task with this id in your organization. | no | | 40402 | 404 | This endpoint isn't available yet. See /v1/account/support_matrix. You weren't billed. | The route exists in the catalog but isn't served yet, or the service behind it isn't set up on this server. You weren't billed. | no | | 40501 | 200 | Invalid Field. | A field in the task failed validation. `status_message` names the field. The task didn't run. | no | | 40503 | 400 | POST Data Is Invalid. | The body isn't a JSON array of task objects, or a live/task_post route was called with a method other than POST. | no | | 40601 | 200 | Task Handed. | A worker has picked the task up and it's running. | no | | 40602 | 200 | Task In Queue. | The task is still queued. Try task_get again later, or wait for your pingback. | no | | 50000 | 500 | Internal Error. You weren't billed. | Something failed on our side or upstream and the task returned no data. You weren't billed. | no | --- # Google Organic SERP: Live Advanced > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/google/organic/live/advanced` Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. Family: SERP API · Mode: Live ## Price Unit: SERP page of up to 10 results | Mode | Price (USD) | |---|---| | Live | $0.0018 | Billed per unit returned; no results costs $0. ## Description Send up to 100 tasks in one POST as a JSON array. Each task runs at once and comes back in `tasks[]` in the order you sent it. Use the live mode when you need the results now; use `task_post` for the cheaper standard and priority queues. The **advanced** format returns every field of each organic item; fields our sources can't fill are present and null. The **regular** format keeps the core fields: rank, page, domain, title, description, URL and breadcrumb. **Billing.** Billed per 10 results returned (so `ceil(items / 10)` units), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. With `auto_upgrade` on (the default), a standard or priority task that the included search path can't serve is answered by the live path and billed at the live price; the task shows `upgraded: true` and an `upgrade_reason`. Live results aren't cached unless you send `max_age`. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/google/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/google/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return, 1 to 200. Billed per 10 results returned, so `depth: 100` with 100 results costs 10 units. default `10`; min 1; max 200 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `google.com` | | `auto_upgrade` | boolean | no | If the included search path can't return the page, the task is served by the live path and billed at the live price, with `upgraded: true`. `false` returns the failure at $0 instead. default `true` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/organic/live/advanced" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10 } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.position` | string | Side of the page the item appears on. Always `left` for organic results. | | `tasks.result.items.xpath` | null | Not available from our sources. Always null. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.cache_url` | null | Not available. Always null. | | `tasks.result.items.related_search_url` | null | Not available. Always null. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.items.website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `tasks.result.items.is_image` | boolean | Always false: image results aren't parsed yet. | | `tasks.result.items.is_video` | boolean | Always false: video results aren't parsed yet. | | `tasks.result.items.is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `tasks.result.items.is_malicious` | boolean | Always false. | | `tasks.result.items.is_web_story` | boolean | Always false. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.pre_snippet` | null | Not available. Always null. | | `tasks.result.items.extended_snippet` | null | Not available. Always null. | | `tasks.result.items.images` | null | Not available. Always null. | | `tasks.result.items.rating` | null | Not available. Always null. | | `tasks.result.items.price` | null | Not available. Always null. | | `tasks.result.items.links` | array\|null | Sitelinks shown under the result, when there are any. | | `tasks.result.items.links.type` | string | Always `link_element`. | | `tasks.result.items.links.title` | string\|null | Sitelink text. | | `tasks.result.items.links.description` | string\|null | Sitelink description, when shown. | | `tasks.result.items.links.url` | string\|null | Sitelink URL. | | `tasks.result.items.faq` | null | Not available. Always null. | | `tasks.result.items.extended_people_also_search` | null | Not available. Always null. | | `tasks.result.items.about_this_result` | null | Not available. Always null. | | `tasks.result.items.related_result` | null | Not available. Always null. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `position` | string | Side of the page the item appears on. Always `left` for organic results. | | `xpath` | null | Not available from our sources. Always null. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `url` | string\|null | Result URL. | | `cache_url` | null | Not available. Always null. | | `related_search_url` | null | Not available. Always null. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | | `website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `is_image` | boolean | Always false: image results aren't parsed yet. | | `is_video` | boolean | Always false: video results aren't parsed yet. | | `is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `is_malicious` | boolean | Always false. | | `is_web_story` | boolean | Always false. | | `description` | string\|null | Snippet text under the title. | | `pre_snippet` | null | Not available. Always null. | | `extended_snippet` | null | Not available. Always null. | | `images` | null | Not available. Always null. | | `rating` | null | Not available. Always null. | | `price` | null | Not available. Always null. | | `links` | array\|null | Sitelinks shown under the result, when there are any. | | `links.type` | string | Always `link_element`. | | `links.title` | string\|null | Sitelink text. | | `links.description` | string\|null | Sitelink description, when shown. | | `links.url` | string\|null | Sitelink URL. | | `faq` | null | Not available. Always null. | | `extended_people_also_search` | null | Not available. Always null. | | `about_this_result` | null | Not available. Always null. | | `related_result` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "result_count": 1, "path": [ "v1", "serp", "google", "organic", "live", "advanced" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "google.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.google.com/search?q=trail+running+shoes&gl=us&hl=en", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "position": "left", "xpath": null, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://www.example-reviews.com › gear", "website_name": "Example Reviews", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": [ { "type": "link_element", "title": "Best for mud", "description": null, "url": "https://www.example-reviews.com/gear/trail-running-shoes#mud" } ], "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "position": "left", "xpath": null, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "url": "https://summitrunning.example/trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://summitrunning.example › trail-shoes", "website_name": "Summit Running Co.", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "position": "left", "xpath": null, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "url": "https://runnersguide.example/choose-trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://runnersguide.example › choose-trail-shoes", "website_name": "Runner's Guide", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Lug depth, rock plates and drop: what matters on which terrain.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | The search ran but returned no results. $0. | | 40402 | The search service isn't set up on this server. $0. | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/live/advanced`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Google Organic SERP: Live Regular > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/google/organic/live/regular` Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. Family: SERP API · Mode: Live ## Price Unit: SERP page of up to 10 results | Mode | Price (USD) | |---|---| | Live | $0.0018 | Billed per unit returned; no results costs $0. ## Description Send up to 100 tasks in one POST as a JSON array. Each task runs at once and comes back in `tasks[]` in the order you sent it. Use the live mode when you need the results now; use `task_post` for the cheaper standard and priority queues. The **advanced** format returns every field of each organic item; fields our sources can't fill are present and null. The **regular** format keeps the core fields: rank, page, domain, title, description, URL and breadcrumb. **Billing.** Billed per 10 results returned (so `ceil(items / 10)` units), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. With `auto_upgrade` on (the default), a standard or priority task that the included search path can't serve is answered by the live path and billed at the live price; the task shows `upgraded: true` and an `upgrade_reason`. Live results aren't cached unless you send `max_age`. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/google/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/google/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return, 1 to 200. Billed per 10 results returned, so `depth: 100` with 100 results costs 10 units. default `10`; min 1; max 200 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `google.com` | | `auto_upgrade` | boolean | no | If the included search path can't return the page, the task is served by the live path and billed at the live price, with `upgraded: true`. `false` returns the failure at $0 instead. default `true` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/organic/live/regular" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10 } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `description` | string\|null | Snippet text under the title. | | `url` | string\|null | Result URL. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "result_count": 1, "path": [ "v1", "serp", "google", "organic", "live", "regular" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "google.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.google.com/search?q=trail+running+shoes&gl=us&hl=en", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "breadcrumb": "https://www.example-reviews.com › gear" }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "url": "https://summitrunning.example/trail-shoes", "breadcrumb": "https://summitrunning.example › trail-shoes" }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "description": "Lug depth, rock plates and drop: what matters on which terrain.", "url": "https://runnersguide.example/choose-trail-shoes", "breadcrumb": "https://runnersguide.example › choose-trail-shoes" } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | The search ran but returned no results. $0. | | 40402 | The search service isn't set up on this server. $0. | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/live/regular`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Google Organic SERP: Task Post > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/google/organic/task_post` Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. Family: SERP API · Mode: Task Post ## Price Unit: SERP page of up to 10 results | Mode | Price (USD) | |---|---| | Standard queue | $0.00054 | | Priority queue | $0.00108 | `standard` is `priority: 1`, `priority` is `priority: 2`. A task served by the live fallback bills at the live price. ## Description Post up to 100 tasks in one request. Each comes back at once with status 20100 and a task id; nothing is charged yet. When a task finishes it appears in `tasks_ready`, and we call your `pingback_url` or `postback_url` if you set one. Read the result with `task_get`. `priority: 1` uses the standard queue, `priority: 2` the priority queue, which runs sooner and is priced higher. **Billing.** Billed per 10 results returned (so `ceil(items / 10)` units), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. With `auto_upgrade` on (the default), a standard or priority task that the included search path can't serve is answered by the live path and billed at the live price; the task shows `upgraded: true` and an `upgrade_reason`. Queued results reuse the shared cache: 6 h on the standard queue, 1 h on the priority queue. `max_age: 0` forces a fresh search. The wallet check at post time reserves the worst case each task can cost (the live price when Auto-upgrade is on), so the post is refused with 40210 if the balance can't cover it. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/google/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/google/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return, 1 to 200. Billed per 10 results returned, so `depth: 100` with 100 results costs 10 units. default `10`; min 1; max 200 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `google.com` | | `auto_upgrade` | boolean | no | If the included search path can't return the page, the task is served by the live path and billed at the live price, with `upgraded: true`. `false` returns the failure at $0 instead. default `true` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | | `priority` | integer | no | Queue for this task: `1` is the standard queue, `2` the priority queue (faster, priced higher). default `1`; one of `1`, `2` | | `tag` | string | no | Your own label for the task, up to 255 characters. Returned by tasks_ready. max 255 | | `pingback_url` | string | no | We send a GET to this http(s) URL when the task finishes. `$id` and `$tag` in the URL are replaced with the task id and tag. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_url` | string | no | We POST the finished task, in the task_get envelope, to this http(s) URL. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_data` | string | no | Result format sent to `postback_url`. Defaults to `advanced` when `postback_url` is set. one of `regular`, `advanced`, `html` | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/organic/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10, "priority": 1, "tag": "weekly-rank-check", "pingback_url": "https://hooks.example.com/done?id=$id&tag=$tag" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | null | Always null for task_post. Read the result with task_get. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20100, "status_message": "Task Created.", "time": "0.4210 sec.", "cost": 0, "result_count": 0, "path": [ "v1", "serp", "google", "organic", "task_post" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10, "priority": 1, "tag": "weekly-rank-check", "pingback_url": "https://hooks.example.com/done?id=$id&tag=$tag" }, "result": null, "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 40501 | `pingback_url` or `postback_url` isn't an http(s) URL, `postback_data` isn't regular, advanced or html, or `priority` isn't 1 or 2. | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/task_post`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Google Organic SERP: Tasks Ready > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/organic/tasks_ready` List your finished tasks for this endpoint that you haven't collected yet. Family: SERP API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Returns up to 1,000 completed tasks posted to this endpoint's task_post that task_get hasn't returned yet, oldest first. A task leaves the list once you read it with task_get. Each entry carries ready-made task_get paths. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/organic/tasks_ready" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "google", "organic", "tasks_ready" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "google", "se_type": "organic", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/serp/google/organic/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/serp/google/organic/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/tasks_ready`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Google Organic SERP: Tasks Fixed > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/organic/tasks_fixed` Same list as tasks_ready, kept for clients that call tasks_fixed. Family: SERP API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Returns up to 1,000 completed tasks posted to this endpoint's task_post that task_get hasn't returned yet, oldest first. A task leaves the list once you read it with task_get. We don't re-parse tasks, so tasks_fixed returns the same list as tasks_ready. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/organic/tasks_fixed" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "google", "organic", "tasks_fixed" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "google", "se_type": "organic", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/serp/google/organic/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/serp/google/organic/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/tasks_fixed`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Google Organic SERP: Task Get Advanced > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/organic/task_get/advanced/{id}` Read one queued task's result in the advanced format. Family: SERP API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. While the task is queued you get 40602, and 40601 while it runs. A finished task returns its result here and leaves the tasks_ready list; you can read it again for 30 days. Returns the result exactly as the live route would have. Free: the task was billed when it returned data. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/organic/task_get/advanced/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.position` | string | Side of the page the item appears on. Always `left` for organic results. | | `tasks.result.items.xpath` | null | Not available from our sources. Always null. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.cache_url` | null | Not available. Always null. | | `tasks.result.items.related_search_url` | null | Not available. Always null. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.items.website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `tasks.result.items.is_image` | boolean | Always false: image results aren't parsed yet. | | `tasks.result.items.is_video` | boolean | Always false: video results aren't parsed yet. | | `tasks.result.items.is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `tasks.result.items.is_malicious` | boolean | Always false. | | `tasks.result.items.is_web_story` | boolean | Always false. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.pre_snippet` | null | Not available. Always null. | | `tasks.result.items.extended_snippet` | null | Not available. Always null. | | `tasks.result.items.images` | null | Not available. Always null. | | `tasks.result.items.rating` | null | Not available. Always null. | | `tasks.result.items.price` | null | Not available. Always null. | | `tasks.result.items.links` | array\|null | Sitelinks shown under the result, when there are any. | | `tasks.result.items.links.type` | string | Always `link_element`. | | `tasks.result.items.links.title` | string\|null | Sitelink text. | | `tasks.result.items.links.description` | string\|null | Sitelink description, when shown. | | `tasks.result.items.links.url` | string\|null | Sitelink URL. | | `tasks.result.items.faq` | null | Not available. Always null. | | `tasks.result.items.extended_people_also_search` | null | Not available. Always null. | | `tasks.result.items.about_this_result` | null | Not available. Always null. | | `tasks.result.items.related_result` | null | Not available. Always null. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `position` | string | Side of the page the item appears on. Always `left` for organic results. | | `xpath` | null | Not available from our sources. Always null. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `url` | string\|null | Result URL. | | `cache_url` | null | Not available. Always null. | | `related_search_url` | null | Not available. Always null. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | | `website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `is_image` | boolean | Always false: image results aren't parsed yet. | | `is_video` | boolean | Always false: video results aren't parsed yet. | | `is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `is_malicious` | boolean | Always false. | | `is_web_story` | boolean | Always false. | | `description` | string\|null | Snippet text under the title. | | `pre_snippet` | null | Not available. Always null. | | `extended_snippet` | null | Not available. Always null. | | `images` | null | Not available. Always null. | | `rating` | null | Not available. Always null. | | `price` | null | Not available. Always null. | | `links` | array\|null | Sitelinks shown under the result, when there are any. | | `links.type` | string | Always `link_element`. | | `links.title` | string\|null | Sitelink text. | | `links.description` | string\|null | Sitelink description, when shown. | | `links.url` | string\|null | Sitelink URL. | | `faq` | null | Not available. Always null. | | `extended_people_also_search` | null | Not available. Always null. | | `about_this_result` | null | Not available. Always null. | | `related_result` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "result_count": 1, "path": [ "v1", "serp", "google", "organic", "task_get", "advanced" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "google.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.google.com/search?q=trail+running+shoes&gl=us&hl=en", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "position": "left", "xpath": null, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://www.example-reviews.com › gear", "website_name": "Example Reviews", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": [ { "type": "link_element", "title": "Best for mud", "description": null, "url": "https://www.example-reviews.com/gear/trail-running-shoes#mud" } ], "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "position": "left", "xpath": null, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "url": "https://summitrunning.example/trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://summitrunning.example › trail-shoes", "website_name": "Summit Running Co.", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "position": "left", "xpath": null, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "url": "https://runnersguide.example/choose-trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://runnersguide.example › choose-trail-shoes", "website_name": "Runner's Guide", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Lug depth, rock plates and drop: what matters on which terrain.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/task_get/advanced`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-google-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Google Organic SERP: Task Get Regular > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/organic/task_get/regular/{id}` Read one queued task's result in the regular format. Family: SERP API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. While the task is queued you get 40602, and 40601 while it runs. A finished task returns its result here and leaves the tasks_ready list; you can read it again for 30 days. Results are stored in the advanced format; this route returns the regular format, keeping organic items only. Free: the task was billed when it returned data. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/organic/task_get/regular/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `description` | string\|null | Snippet text under the title. | | `url` | string\|null | Result URL. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "result_count": 1, "path": [ "v1", "serp", "google", "organic", "task_get", "regular" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "device": "desktop", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "google.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.google.com/search?q=trail+running+shoes&gl=us&hl=en", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "breadcrumb": "https://www.example-reviews.com › gear" }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "url": "https://summitrunning.example/trail-shoes", "breadcrumb": "https://summitrunning.example › trail-shoes" }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "description": "Lug depth, rock plates and drop: what matters on which terrain.", "url": "https://runnersguide.example/choose-trail-shoes", "breadcrumb": "https://runnersguide.example › choose-trail-shoes" } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/serp/google/organic/task_get/regular`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-organic-live-advanced.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Google Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-google-organic-live-regular.md): Google organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Google Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-organic-task-post.md): Queue Google organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-organic-task-get-advanced.md): Read one queued task's result in the advanced format. --- # Bing Organic SERP: Live Advanced > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/bing/organic/live/advanced` Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. Family: SERP API · Mode: Live ## Price Unit: SERP page of up to 10 results | Mode | Price (USD) | |---|---| | Live | $0.0018 | Billed per unit returned; no results costs $0. ## Description Send up to 100 tasks in one POST as a JSON array. Each task runs at once and comes back in `tasks[]` in the order you sent it. Use the live mode when you need the results now; use `task_post` for the cheaper standard and priority queues. The **advanced** format returns every field of each organic item; fields our sources can't fill are present and null. The **regular** format keeps the core fields: rank, page, domain, title, description, URL and breadcrumb. **Billing.** Billed per 10 results returned (so `ceil(items / 10)` units), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. Bing results are fetched by us. A page the Standard fetch can't get moves up the fetch levels under Auto-upgrade; the task's price stays the SERP price for its mode. Live results aren't cached unless you send `max_age`. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/bing/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/bing/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return, 1 to 200. Billed per 10 results returned, so `depth: 100` with 100 results costs 10 units. default `10`; min 1; max 200 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `bing.com` | | `auto_upgrade` | boolean | no | Lets the Bing fetch move from the Standard level to Rendered or Protected when a page is refused. `false` stops at Standard and returns the failure at $0. default `true` | | `max_level` | string | no | The highest fetch level the Bing fetch may use. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/bing/organic/live/advanced" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.position` | string | Side of the page the item appears on. Always `left` for organic results. | | `tasks.result.items.xpath` | null | Not available from our sources. Always null. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.cache_url` | null | Not available. Always null. | | `tasks.result.items.related_search_url` | null | Not available. Always null. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.items.website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `tasks.result.items.is_image` | boolean | Always false: image results aren't parsed yet. | | `tasks.result.items.is_video` | boolean | Always false: video results aren't parsed yet. | | `tasks.result.items.is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `tasks.result.items.is_malicious` | boolean | Always false. | | `tasks.result.items.is_web_story` | boolean | Always false. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.pre_snippet` | null | Not available. Always null. | | `tasks.result.items.extended_snippet` | null | Not available. Always null. | | `tasks.result.items.images` | null | Not available. Always null. | | `tasks.result.items.rating` | null | Not available. Always null. | | `tasks.result.items.price` | null | Not available. Always null. | | `tasks.result.items.links` | array\|null | Sitelinks shown under the result, when there are any. | | `tasks.result.items.links.type` | string | Always `link_element`. | | `tasks.result.items.links.title` | string\|null | Sitelink text. | | `tasks.result.items.links.description` | string\|null | Sitelink description, when shown. | | `tasks.result.items.links.url` | string\|null | Sitelink URL. | | `tasks.result.items.faq` | null | Not available. Always null. | | `tasks.result.items.extended_people_also_search` | null | Not available. Always null. | | `tasks.result.items.about_this_result` | null | Not available. Always null. | | `tasks.result.items.related_result` | null | Not available. Always null. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `position` | string | Side of the page the item appears on. Always `left` for organic results. | | `xpath` | null | Not available from our sources. Always null. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `url` | string\|null | Result URL. | | `cache_url` | null | Not available. Always null. | | `related_search_url` | null | Not available. Always null. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | | `website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `is_image` | boolean | Always false: image results aren't parsed yet. | | `is_video` | boolean | Always false: video results aren't parsed yet. | | `is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `is_malicious` | boolean | Always false. | | `is_web_story` | boolean | Always false. | | `description` | string\|null | Snippet text under the title. | | `pre_snippet` | null | Not available. Always null. | | `extended_snippet` | null | Not available. Always null. | | `images` | null | Not available. Always null. | | `rating` | null | Not available. Always null. | | `price` | null | Not available. Always null. | | `links` | array\|null | Sitelinks shown under the result, when there are any. | | `links.type` | string | Always `link_element`. | | `links.title` | string\|null | Sitelink text. | | `links.description` | string\|null | Sitelink description, when shown. | | `links.url` | string\|null | Sitelink URL. | | `faq` | null | Not available. Always null. | | `extended_people_also_search` | null | Not available. Always null. | | `about_this_result` | null | Not available. Always null. | | `related_result` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "result_count": 1, "path": [ "v1", "serp", "bing", "organic", "live", "advanced" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "bing.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.bing.com/search?q=trail+running+shoes", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "position": "left", "xpath": null, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://www.example-reviews.com › gear", "website_name": "Example Reviews", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": [ { "type": "link_element", "title": "Best for mud", "description": null, "url": "https://www.example-reviews.com/gear/trail-running-shoes#mud" } ], "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "position": "left", "xpath": null, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "url": "https://summitrunning.example/trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://summitrunning.example › trail-shoes", "website_name": "Summit Running Co.", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "position": "left", "xpath": null, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "url": "https://runnersguide.example/choose-trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://runnersguide.example › choose-trail-shoes", "website_name": "Runner's Guide", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Lug depth, rock plates and drop: what matters on which terrain.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | The search ran but returned no results. $0. | | 40402 | The search service isn't set up on this server. $0. | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/live/advanced`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Bing Organic SERP: Live Regular > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/bing/organic/live/regular` Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. Family: SERP API · Mode: Live ## Price Unit: SERP page of up to 10 results | Mode | Price (USD) | |---|---| | Live | $0.0018 | Billed per unit returned; no results costs $0. ## Description Send up to 100 tasks in one POST as a JSON array. Each task runs at once and comes back in `tasks[]` in the order you sent it. Use the live mode when you need the results now; use `task_post` for the cheaper standard and priority queues. The **advanced** format returns every field of each organic item; fields our sources can't fill are present and null. The **regular** format keeps the core fields: rank, page, domain, title, description, URL and breadcrumb. **Billing.** Billed per 10 results returned (so `ceil(items / 10)` units), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. Bing results are fetched by us. A page the Standard fetch can't get moves up the fetch levels under Auto-upgrade; the task's price stays the SERP price for its mode. Live results aren't cached unless you send `max_age`. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/bing/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/bing/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return, 1 to 200. Billed per 10 results returned, so `depth: 100` with 100 results costs 10 units. default `10`; min 1; max 200 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `bing.com` | | `auto_upgrade` | boolean | no | Lets the Bing fetch move from the Standard level to Rendered or Protected when a page is refused. `false` stops at Standard and returns the failure at $0. default `true` | | `max_level` | string | no | The highest fetch level the Bing fetch may use. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/bing/organic/live/regular" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `description` | string\|null | Snippet text under the title. | | `url` | string\|null | Result URL. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "result_count": 1, "path": [ "v1", "serp", "bing", "organic", "live", "regular" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "bing.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.bing.com/search?q=trail+running+shoes", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "breadcrumb": "https://www.example-reviews.com › gear" }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "url": "https://summitrunning.example/trail-shoes", "breadcrumb": "https://summitrunning.example › trail-shoes" }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "description": "Lug depth, rock plates and drop: what matters on which terrain.", "url": "https://runnersguide.example/choose-trail-shoes", "breadcrumb": "https://runnersguide.example › choose-trail-shoes" } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | The search ran but returned no results. $0. | | 40402 | The search service isn't set up on this server. $0. | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/live/regular`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Bing Organic SERP: Task Post > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/bing/organic/task_post` Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. Family: SERP API · Mode: Task Post ## Price Unit: SERP page of up to 10 results | Mode | Price (USD) | |---|---| | Standard queue | $0.00054 | | Priority queue | $0.00108 | `standard` is `priority: 1`, `priority` is `priority: 2`. A task served by the live fallback bills at the live price. ## Description Post up to 100 tasks in one request. Each comes back at once with status 20100 and a task id; nothing is charged yet. When a task finishes it appears in `tasks_ready`, and we call your `pingback_url` or `postback_url` if you set one. Read the result with `task_get`. `priority: 1` uses the standard queue, `priority: 2` the priority queue, which runs sooner and is priced higher. **Billing.** Billed per 10 results returned (so `ceil(items / 10)` units), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. Bing results are fetched by us. A page the Standard fetch can't get moves up the fetch levels under Auto-upgrade; the task's price stays the SERP price for its mode. Queued results reuse the shared cache: 6 h on the standard queue, 1 h on the priority queue. `max_age: 0` forces a fresh search. The wallet check at post time reserves the worst case each task can cost (the live price when Auto-upgrade is on), so the post is refused with 40210 if the balance can't cover it. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/bing/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/bing/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return, 1 to 200. Billed per 10 results returned, so `depth: 100` with 100 results costs 10 units. default `10`; min 1; max 200 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `bing.com` | | `auto_upgrade` | boolean | no | Lets the Bing fetch move from the Standard level to Rendered or Protected when a page is refused. `false` stops at Standard and returns the failure at $0. default `true` | | `max_level` | string | no | The highest fetch level the Bing fetch may use. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | | `priority` | integer | no | Queue for this task: `1` is the standard queue, `2` the priority queue (faster, priced higher). default `1`; one of `1`, `2` | | `tag` | string | no | Your own label for the task, up to 255 characters. Returned by tasks_ready. max 255 | | `pingback_url` | string | no | We send a GET to this http(s) URL when the task finishes. `$id` and `$tag` in the URL are replaced with the task id and tag. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_url` | string | no | We POST the finished task, in the task_get envelope, to this http(s) URL. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_data` | string | no | Result format sent to `postback_url`. Defaults to `advanced` when `postback_url` is set. one of `regular`, `advanced`, `html` | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/bing/organic/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10, "priority": 1, "tag": "weekly-rank-check", "pingback_url": "https://hooks.example.com/done?id=$id&tag=$tag" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | null | Always null for task_post. Read the result with task_get. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20100, "status_message": "Task Created.", "time": "0.4210 sec.", "cost": 0, "result_count": 0, "path": [ "v1", "serp", "bing", "organic", "task_post" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10, "priority": 1, "tag": "weekly-rank-check", "pingback_url": "https://hooks.example.com/done?id=$id&tag=$tag" }, "result": null, "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 40501 | `pingback_url` or `postback_url` isn't an http(s) URL, `postback_data` isn't regular, advanced or html, or `priority` isn't 1 or 2. | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/task_post`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Bing Organic SERP: Tasks Ready > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/bing/organic/tasks_ready` List your finished tasks for this endpoint that you haven't collected yet. Family: SERP API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Returns up to 1,000 completed tasks posted to this endpoint's task_post that task_get hasn't returned yet, oldest first. A task leaves the list once you read it with task_get. Each entry carries ready-made task_get paths. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/bing/organic/tasks_ready" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "bing", "organic", "tasks_ready" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "bing", "se_type": "organic", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/serp/bing/organic/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/serp/bing/organic/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/tasks_ready`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Bing Organic SERP: Tasks Fixed > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/bing/organic/tasks_fixed` Same list as tasks_ready, kept for clients that call tasks_fixed. Family: SERP API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Returns up to 1,000 completed tasks posted to this endpoint's task_post that task_get hasn't returned yet, oldest first. A task leaves the list once you read it with task_get. We don't re-parse tasks, so tasks_fixed returns the same list as tasks_ready. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/bing/organic/tasks_fixed" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "bing", "organic", "tasks_fixed" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "bing", "se_type": "organic", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/serp/bing/organic/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/serp/bing/organic/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/tasks_fixed`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Bing Organic SERP: Task Get Advanced > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/bing/organic/task_get/advanced/{id}` Read one queued task's result in the advanced format. Family: SERP API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. While the task is queued you get 40602, and 40601 while it runs. A finished task returns its result here and leaves the tasks_ready list; you can read it again for 30 days. Returns the result exactly as the live route would have. Free: the task was billed when it returned data. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/bing/organic/task_get/advanced/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.position` | string | Side of the page the item appears on. Always `left` for organic results. | | `tasks.result.items.xpath` | null | Not available from our sources. Always null. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.cache_url` | null | Not available. Always null. | | `tasks.result.items.related_search_url` | null | Not available. Always null. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.items.website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `tasks.result.items.is_image` | boolean | Always false: image results aren't parsed yet. | | `tasks.result.items.is_video` | boolean | Always false: video results aren't parsed yet. | | `tasks.result.items.is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `tasks.result.items.is_malicious` | boolean | Always false. | | `tasks.result.items.is_web_story` | boolean | Always false. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.pre_snippet` | null | Not available. Always null. | | `tasks.result.items.extended_snippet` | null | Not available. Always null. | | `tasks.result.items.images` | null | Not available. Always null. | | `tasks.result.items.rating` | null | Not available. Always null. | | `tasks.result.items.price` | null | Not available. Always null. | | `tasks.result.items.links` | array\|null | Sitelinks shown under the result, when there are any. | | `tasks.result.items.links.type` | string | Always `link_element`. | | `tasks.result.items.links.title` | string\|null | Sitelink text. | | `tasks.result.items.links.description` | string\|null | Sitelink description, when shown. | | `tasks.result.items.links.url` | string\|null | Sitelink URL. | | `tasks.result.items.faq` | null | Not available. Always null. | | `tasks.result.items.extended_people_also_search` | null | Not available. Always null. | | `tasks.result.items.about_this_result` | null | Not available. Always null. | | `tasks.result.items.related_result` | null | Not available. Always null. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `position` | string | Side of the page the item appears on. Always `left` for organic results. | | `xpath` | null | Not available from our sources. Always null. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `url` | string\|null | Result URL. | | `cache_url` | null | Not available. Always null. | | `related_search_url` | null | Not available. Always null. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | | `website_name` | string\|null | Site name shown with the result, when the engine shows one. | | `is_image` | boolean | Always false: image results aren't parsed yet. | | `is_video` | boolean | Always false: video results aren't parsed yet. | | `is_featured_snippet` | boolean | Always false: featured snippets aren't parsed yet. | | `is_malicious` | boolean | Always false. | | `is_web_story` | boolean | Always false. | | `description` | string\|null | Snippet text under the title. | | `pre_snippet` | null | Not available. Always null. | | `extended_snippet` | null | Not available. Always null. | | `images` | null | Not available. Always null. | | `rating` | null | Not available. Always null. | | `price` | null | Not available. Always null. | | `links` | array\|null | Sitelinks shown under the result, when there are any. | | `links.type` | string | Always `link_element`. | | `links.title` | string\|null | Sitelink text. | | `links.description` | string\|null | Sitelink description, when shown. | | `links.url` | string\|null | Sitelink URL. | | `faq` | null | Not available. Always null. | | `extended_people_also_search` | null | Not available. Always null. | | `about_this_result` | null | Not available. Always null. | | `related_result` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "result_count": 1, "path": [ "v1", "serp", "bing", "organic", "task_get", "advanced" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "bing.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.bing.com/search?q=trail+running+shoes", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "position": "left", "xpath": null, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://www.example-reviews.com › gear", "website_name": "Example Reviews", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": [ { "type": "link_element", "title": "Best for mud", "description": null, "url": "https://www.example-reviews.com/gear/trail-running-shoes#mud" } ], "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "position": "left", "xpath": null, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "url": "https://summitrunning.example/trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://summitrunning.example › trail-shoes", "website_name": "Summit Running Co.", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "position": "left", "xpath": null, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "url": "https://runnersguide.example/choose-trail-shoes", "cache_url": null, "related_search_url": null, "breadcrumb": "https://runnersguide.example › choose-trail-shoes", "website_name": "Runner's Guide", "is_image": false, "is_video": false, "is_featured_snippet": false, "is_malicious": false, "is_web_story": false, "description": "Lug depth, rock plates and drop: what matters on which terrain.", "pre_snippet": null, "extended_snippet": null, "images": null, "rating": null, "price": null, "links": null, "faq": null, "extended_people_also_search": null, "about_this_result": null, "related_result": null } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/task_get/advanced`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Task Get Regular](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-regular.md): Read one queued task's result in the regular format. --- # Bing Organic SERP: Task Get Regular > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/bing/organic/task_get/regular/{id}` Read one queued task's result in the regular format. Family: SERP API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. While the task is queued you get 40602, and 40601 while it runs. A finished task returns its result here and leaves the tasks_ready list; you can read it again for 30 days. Results are stored in the advanced format; this route returns the regular format, keeping organic items only. Free: the task was billed when it returned data. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/bing/organic/task_get/regular/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Results pages read: 1 per 10 organic results. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The organic items. | | `tasks.result.items.type` | string | Always `organic`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.page` | integer | Results page the item sits on, counting 10 results per page. | | `tasks.result.items.domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `tasks.result.items.title` | string\|null | Result title as shown on the page. | | `tasks.result.items.description` | string\|null | Snippet text under the title. | | `tasks.result.items.url` | string\|null | Result URL. | | `tasks.result.items.breadcrumb` | string\|null | Breadcrumb shown under the title. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### organic | Field | Type | Description | |---|---|---| | `type` | string | Always `organic`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `page` | integer | Results page the item sits on, counting 10 results per page. | | `domain` | string\|null | Domain of the result URL, for example `www.example-reviews.com`. | | `title` | string\|null | Result title as shown on the page. | | `description` | string\|null | Snippet text under the title. | | `url` | string\|null | Result URL. | | `breadcrumb` | string\|null | Breadcrumb shown under the title. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "result_count": 1, "path": [ "v1", "serp", "bing", "organic", "task_get", "regular" ], "data": { "keyword": "trail running shoes", "location_code": 2840, "language_code": "en", "depth": 10 }, "result": [ { "keyword": "trail running shoes", "type": "organic", "se_domain": "bing.com", "location_code": 2840, "language_code": "en", "check_url": "https://www.bing.com/search?q=trail+running+shoes", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "organic" ], "se_results_count": 48200000, "pages_count": 1, "items_count": 3, "items": [ { "type": "organic", "rank_group": 1, "rank_absolute": 1, "page": 1, "domain": "www.example-reviews.com", "title": "The 12 best trail running shoes of 2026, tested", "description": "We ran 400 miles in 30 pairs to find the shoes that grip, drain and last.", "url": "https://www.example-reviews.com/gear/trail-running-shoes", "breadcrumb": "https://www.example-reviews.com › gear" }, { "type": "organic", "rank_group": 2, "rank_absolute": 2, "page": 1, "domain": "summitrunning.example", "title": "Trail running shoes | Summit Running Co.", "description": "Free gait analysis and 60-day returns on every trail shoe we stock.", "url": "https://summitrunning.example/trail-shoes", "breadcrumb": "https://summitrunning.example › trail-shoes" }, { "type": "organic", "rank_group": 3, "rank_absolute": 3, "page": 1, "domain": "runnersguide.example", "title": "How to choose trail running shoes", "description": "Lug depth, rock plates and drop: what matters on which terrain.", "url": "https://runnersguide.example/choose-trail-shoes", "breadcrumb": "https://runnersguide.example › choose-trail-shoes" } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/serp/bing/organic/task_get/regular`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing Organic SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-live-advanced.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the advanced format. - [Bing Organic SERP: Live Regular](https://dataforgaio.com/docs/api/serp-bing-organic-live-regular.md): Bing organic results for a keyword, location, language and device. Returned in the same call, in the regular format. - [Bing Organic SERP: Task Post](https://dataforgaio.com/docs/api/serp-bing-organic-task-post.md): Queue Bing organic searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Bing Organic SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Bing Organic SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-bing-organic-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Bing Organic SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-bing-organic-task-get-advanced.md): Read one queued task's result in the advanced format. --- # Google Maps SERP: Live Advanced > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/google/maps/live/advanced` Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format. Family: SERP API · Mode: Live ## Price Unit: search (up to 100 listings) | Mode | Price (USD) | |---|---| | Live | $0.0018 | Billed per unit returned; no results costs $0. ## Description Send up to 100 tasks in one POST as a JSON array. Each task runs at once and comes back in `tasks[]` in the order you sent it. Use the live mode when you need the results now; use `task_post` for the cheaper standard and priority queues. Maps returns `maps_search` items in the advanced format only. **Billing.** Billed per search (up to 100 listings), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. With `auto_upgrade` on (the default), a standard or priority task that the included search path can't serve is answered by the live path and billed at the live price; the task shows `upgraded: true` and an `upgrade_reason`. Live results aren't cached unless you send `max_age`. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/google/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/google/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return. Values up to 700 are accepted; we return up to 100 listings. Billed per search, not per result. default `100`; min 1; max 700 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `google.com` | | `auto_upgrade` | boolean | no | If the included search path can't return the page, the task is served by the live path and billed at the live price, with `upgraded: true`. `false` returns the failure at $0 instead. default `true` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/maps/live/advanced" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "running store", "location_name": "Boulder,Colorado,United States", "language_code": "en", "depth": 20 } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Always 1 for Maps. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The maps_search items. | | `tasks.result.items.type` | string | Always `maps_search`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.domain` | string\|null | Domain of the listing's website. | | `tasks.result.items.title` | string\|null | Business name. | | `tasks.result.items.original_title` | null | Not available. Always null. | | `tasks.result.items.url` | string\|null | The listing's website. | | `tasks.result.items.contact_url` | null | Not available. Always null. | | `tasks.result.items.contributor_url` | null | Not available. Always null. | | `tasks.result.items.book_online_url` | null | Not available. Always null. | | `tasks.result.items.rating` | object\|null | Star rating, when the listing has one. | | `tasks.result.items.rating.rating_type` | string | Always `Max5`. | | `tasks.result.items.rating.value` | number\|null | Average rating, 1 to 5. | | `tasks.result.items.rating.votes_count` | integer\|null | Number of reviews. | | `tasks.result.items.rating.rating_max` | integer | Always 5. | | `tasks.result.items.rating_distribution` | null | Not available in search listings. Always null. | | `tasks.result.items.snippet` | string\|null | Short line shown with the listing. | | `tasks.result.items.address` | string\|null | Street address as shown. | | `tasks.result.items.address_info` | null | Not available in search listings. Always null. | | `tasks.result.items.place_id` | string\|null | Google place id. | | `tasks.result.items.phone` | string\|null | Phone number as shown. | | `tasks.result.items.main_image` | string\|null | URL of the listing's main photo. | | `tasks.result.items.total_photos` | null | Not available in search listings. Always null. | | `tasks.result.items.category` | string\|null | Main business category. | | `tasks.result.items.additional_categories` | array\|null | Other categories, when listed. | | `tasks.result.items.category_ids` | null | Not available. Always null. | | `tasks.result.items.work_hours` | object\|null | Opening status, when shown. | | `tasks.result.items.work_hours.timetable` | null | Not available in search listings. Always null. | | `tasks.result.items.work_hours.current_status` | string\|null | Status text as shown, for example `Open ⋅ Closes 7 PM`. | | `tasks.result.items.feature_id` | string\|null | Google feature id, `0x…:0x…`. | | `tasks.result.items.cid` | string\|null | Google customer id (CID) of the place, as a decimal string. | | `tasks.result.items.latitude` | number\|null | Latitude of the place. | | `tasks.result.items.longitude` | number\|null | Longitude of the place. | | `tasks.result.items.is_claimed` | null | Not available in search listings. Always null. | | `tasks.result.items.local_justifications` | null | Not available. Always null. | | `tasks.result.items.is_directory_item` | boolean | Always false. | | `tasks.result.items.price_level` | string\|null | `inexpensive`, `moderate`, `expensive` or `very_expensive`, from the listing's `$` signs. | | `tasks.result.items.hotel_rating` | null | Not available. Always null. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### maps_search | Field | Type | Description | |---|---|---| | `type` | string | Always `maps_search`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `domain` | string\|null | Domain of the listing's website. | | `title` | string\|null | Business name. | | `original_title` | null | Not available. Always null. | | `url` | string\|null | The listing's website. | | `contact_url` | null | Not available. Always null. | | `contributor_url` | null | Not available. Always null. | | `book_online_url` | null | Not available. Always null. | | `rating` | object\|null | Star rating, when the listing has one. | | `rating.rating_type` | string | Always `Max5`. | | `rating.value` | number\|null | Average rating, 1 to 5. | | `rating.votes_count` | integer\|null | Number of reviews. | | `rating.rating_max` | integer | Always 5. | | `rating_distribution` | null | Not available in search listings. Always null. | | `snippet` | string\|null | Short line shown with the listing. | | `address` | string\|null | Street address as shown. | | `address_info` | null | Not available in search listings. Always null. | | `place_id` | string\|null | Google place id. | | `phone` | string\|null | Phone number as shown. | | `main_image` | string\|null | URL of the listing's main photo. | | `total_photos` | null | Not available in search listings. Always null. | | `category` | string\|null | Main business category. | | `additional_categories` | array\|null | Other categories, when listed. | | `category_ids` | null | Not available. Always null. | | `work_hours` | object\|null | Opening status, when shown. | | `work_hours.timetable` | null | Not available in search listings. Always null. | | `work_hours.current_status` | string\|null | Status text as shown, for example `Open ⋅ Closes 7 PM`. | | `feature_id` | string\|null | Google feature id, `0x…:0x…`. | | `cid` | string\|null | Google customer id (CID) of the place, as a decimal string. | | `latitude` | number\|null | Latitude of the place. | | `longitude` | number\|null | Longitude of the place. | | `is_claimed` | null | Not available in search listings. Always null. | | `local_justifications` | null | Not available. Always null. | | `is_directory_item` | boolean | Always false. | | `price_level` | string\|null | `inexpensive`, `moderate`, `expensive` or `very_expensive`, from the listing's `$` signs. | | `hotel_rating` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0018, "result_count": 1, "path": [ "v1", "serp", "google", "maps", "live", "advanced" ], "data": { "keyword": "running store", "location_name": "Boulder,Colorado,United States", "language_code": "en", "depth": 20 }, "result": [ { "keyword": "running store", "type": "maps", "se_domain": "google.com", "location_code": null, "language_code": "en", "check_url": "https://www.google.com/maps/search/running+store", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "maps_search" ], "se_results_count": 2, "pages_count": 1, "items_count": 2, "items": [ { "type": "maps_search", "rank_group": 1, "rank_absolute": 1, "domain": "summitrunning.example", "title": "Summit Running Co.", "original_title": null, "url": "https://summitrunning.example/", "contact_url": null, "contributor_url": null, "book_online_url": null, "rating": { "rating_type": "Max5", "value": 4.7, "votes_count": 318, "rating_max": 5 }, "rating_distribution": null, "snippet": "Running store in Boulder", "address": "120 Main St, Boulder, CO 80302", "address_info": null, "place_id": "ChIJexample-summit-0001", "phone": "+1 303-555-0142", "main_image": "https://images.example/summit.jpg", "total_photos": null, "category": "Running store", "additional_categories": [ "Shoe store", "Sportswear store" ], "category_ids": null, "work_hours": { "timetable": null, "current_status": "Open ⋅ Closes 7 PM" }, "feature_id": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315", "cid": "1234567890123456789", "latitude": 40.0176, "longitude": -105.2797, "is_claimed": null, "local_justifications": null, "is_directory_item": false, "price_level": "moderate", "hotel_rating": null }, { "type": "maps_search", "rank_group": 2, "rank_absolute": 2, "domain": "trailhead.example", "title": "Trailhead Outfitters", "original_title": null, "url": "https://trailhead.example/", "contact_url": null, "contributor_url": null, "book_online_url": null, "rating": { "rating_type": "Max5", "value": 4.5, "votes_count": 96, "rating_max": 5 }, "rating_distribution": null, "snippet": null, "address": "455 Pearl St, Boulder, CO 80302", "address_info": null, "place_id": "ChIJexample-trailhead-0002", "phone": "+1 303-555-0199", "main_image": null, "total_photos": null, "category": "Outdoor sports store", "additional_categories": null, "category_ids": null, "work_hours": null, "feature_id": "0x876bec0d5e6f7a8b:0x8911c0ffee00d0d1", "cid": "9876543210987654321", "latitude": 40.0189, "longitude": -105.2811, "is_claimed": null, "local_justifications": null, "is_directory_item": false, "price_level": null, "hotel_rating": null } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | The search ran but returned no results. $0. | | 40402 | The search service isn't set up on this server. $0. | ## Migrating Replaces DataForSEO `/v3/serp/google/maps/live/advanced`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md): Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Maps SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-maps-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Maps SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-maps-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md): Read one queued task's result in the advanced format. --- # Google Maps SERP: Task Post > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/serp/google/maps/task_post` Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get. Family: SERP API · Mode: Task Post ## Price Unit: search (up to 100 listings) | Mode | Price (USD) | |---|---| | Standard queue | $0.00054 | | Priority queue | $0.00108 | `standard` is `priority: 1`, `priority` is `priority: 2`. A task served by the live fallback bills at the live price. ## Description Post up to 100 tasks in one request. Each comes back at once with status 20100 and a task id; nothing is charged yet. When a task finishes it appears in `tasks_ready`, and we call your `pingback_url` or `postback_url` if you set one. Read the result with `task_get`. `priority: 1` uses the standard queue, `priority: 2` the priority queue, which runs sooner and is priced higher. **Billing.** Billed per search (up to 100 listings), at the price of the mode the task ran in. A search with no results, or one that returned no data, costs $0. With `auto_upgrade` on (the default), a standard or priority task that the included search path can't serve is answered by the live path and billed at the live price; the task shows `upgraded: true` and an `upgrade_reason`. Queued results reuse the shared cache: 6 h on the standard queue, 1 h on the priority queue. `max_age: 0` forces a fresh search. The wallet check at post time reserves the worst case each task can cost (the live price when Auto-upgrade is on), so the post is refused with 40210 if the balance can't cover it. **Beta.** The parsers that read this engine's results were written from the upstream documentation and haven't been checked against live responses yet. Field names and the response shape are fixed; expect some fields to be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search query, up to 700 characters. Leading and trailing spaces are trimmed. max 700 | | `location_code` | integer | no | Country location code from `/v1/serp/google/locations`, for example `2840` for the United States. City and region codes aren't served yet. Send this, `location_name` or `location_coordinate`. | | `location_name` | string | no | A country name (`United States`), or a comma-separated place that ends in a country (`Boulder,Colorado,United States`) to search from that place. | | `location_coordinate` | string | no | `latitude,longitude` or `latitude,longitude,zoom` for a search centered on a point. Used when neither `location_code` nor `location_name` is sent. | | `language_code` | string | no | Language code from `/v1/serp/google/languages`, for example `en`. Send this or `language_name`. | | `language_name` | string | no | Language name, for example `English`, used when `language_code` is not sent. | | `device` | string | no | Device the results are for. default `desktop`; one of `desktop`, `mobile` | | `os` | string | no | Operating system for the device: `windows` or `macos` on desktop, `android` or `ios` on mobile. Defaults to `windows` on desktop and `android` on mobile. one of `windows`, `macos`, `android`, `ios` | | `depth` | integer | no | Results to return. Values up to 700 are accepted; we return up to 100 listings. Billed per search, not per result. default `100`; min 1; max 700 | | `se_domain` | string | no | Search engine domain to report in the result's `se_domain`, for example `google.co.uk`. It's echoed back only: the location and language fields decide where the search runs. default `google.com` | | `auto_upgrade` | boolean | no | If the included search path can't return the page, the task is served by the live path and billed at the live price, with `upgraded: true`. `false` returns the failure at $0 instead. default `true` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this instead of the worst case, and the task doesn't upgrade to the live price when that would go over it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always searches fresh. Default window: none on live (always fresh), 6 h on the standard queue, 1 h on the priority queue. Leave it out to use the default. min 0; max 86400 | | `priority` | integer | no | Queue for this task: `1` is the standard queue, `2` the priority queue (faster, priced higher). default `1`; one of `1`, `2` | | `tag` | string | no | Your own label for the task, up to 255 characters. Returned by tasks_ready. max 255 | | `pingback_url` | string | no | We send a GET to this http(s) URL when the task finishes. `$id` and `$tag` in the URL are replaced with the task id and tag. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_url` | string | no | We POST the finished task, in the task_get envelope, to this http(s) URL. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_data` | string | no | Result format sent to `postback_url`. Defaults to `advanced` when `postback_url` is set. one of `regular`, `advanced`, `html` | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp/google/maps/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "running store", "location_name": "Boulder,Colorado,United States", "language_code": "en", "depth": 20, "priority": 1, "tag": "weekly-rank-check", "pingback_url": "https://hooks.example.com/done?id=$id&tag=$tag" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | null | Always null for task_post. Read the result with task_get. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20100, "status_message": "Task Created.", "time": "0.4210 sec.", "cost": 0, "result_count": 0, "path": [ "v1", "serp", "google", "maps", "task_post" ], "data": { "keyword": "running store", "location_name": "Boulder,Colorado,United States", "language_code": "en", "depth": 20, "priority": 1, "tag": "weekly-rank-check", "pingback_url": "https://hooks.example.com/done?id=$id&tag=$tag" }, "result": null, "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 40501 | `pingback_url` or `postback_url` isn't an http(s) URL, `postback_data` isn't regular, advanced or html, or `priority` isn't 1 or 2. | ## Migrating Replaces DataForSEO `/v3/serp/google/maps/task_post`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md): Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format. - [Google Maps SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-maps-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Maps SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-maps-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md): Read one queued task's result in the advanced format. --- # Google Maps SERP: Tasks Ready > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/maps/tasks_ready` List your finished tasks for this endpoint that you haven't collected yet. Family: SERP API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Returns up to 1,000 completed tasks posted to this endpoint's task_post that task_get hasn't returned yet, oldest first. A task leaves the list once you read it with task_get. Each entry carries ready-made task_get paths. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/maps/tasks_ready" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "google", "maps", "tasks_ready" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "google", "se_type": "maps", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": null, "endpoint_advanced": "/v1/serp/google/maps/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/google/maps/tasks_ready`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md): Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format. - [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md): Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Maps SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-maps-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md): Read one queued task's result in the advanced format. --- # Google Maps SERP: Tasks Fixed > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/maps/tasks_fixed` Same list as tasks_ready, kept for clients that call tasks_fixed. Family: SERP API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Returns up to 1,000 completed tasks posted to this endpoint's task_post that task_get hasn't returned yet, oldest first. A task leaves the list once you read it with task_get. We don't re-parse tasks, so tasks_fixed returns the same list as tasks_ready. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/maps/tasks_fixed" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "google", "maps", "tasks_fixed" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "google", "se_type": "maps", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": null, "endpoint_advanced": "/v1/serp/google/maps/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/google/maps/tasks_fixed`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md): Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format. - [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md): Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Maps SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-maps-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Maps SERP: Task Get Advanced](https://dataforgaio.com/docs/api/serp-google-maps-task-get-advanced.md): Read one queued task's result in the advanced format. --- # Google Maps SERP: Task Get Advanced > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/serp/google/maps/task_get/advanced/{id}` Read one queued task's result in the advanced format. Family: SERP API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. While the task is queued you get 40602, and 40601 while it runs. A finished task returns its result here and leaves the tasks_ready list; you can read it again for 30 days. Returns the result exactly as the live route would have. Free: the task was billed when it returned data. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/maps/task_get/advanced/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.type` | string | `organic` or `maps`. | | `tasks.result.se_domain` | string | The `se_domain` you sent, or the engine's default domain. | | `tasks.result.location_code` | integer\|null | Location code the search ran for. Null for a city-level `location_name` or a coordinate search. | | `tasks.result.language_code` | string | Language code the search ran for. | | `tasks.result.check_url` | string\|null | A URL that opens the same search in a browser, to check the result by hand. | | `tasks.result.datetime` | string\|null | When the results were fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit this is the original fetch time. | | `tasks.result.spell` | null | Spelling suggestion. Not available yet. Always null. | | `tasks.result.refinement_chips` | null | Not available. Always null. | | `tasks.result.item_types` | array | Item types present in `items`. | | `tasks.result.se_results_count` | integer | Total results the engine reported for the query; 0 when it didn't say. | | `tasks.result.pages_count` | integer | Always 1 for Maps. | | `tasks.result.items_count` | integer | Number of entries in `items`. | | `tasks.result.items` | array | The maps_search items. | | `tasks.result.items.type` | string | Always `maps_search`. | | `tasks.result.items.rank_group` | integer | Position among items of the same type, starting at 1. | | `tasks.result.items.rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `tasks.result.items.domain` | string\|null | Domain of the listing's website. | | `tasks.result.items.title` | string\|null | Business name. | | `tasks.result.items.original_title` | null | Not available. Always null. | | `tasks.result.items.url` | string\|null | The listing's website. | | `tasks.result.items.contact_url` | null | Not available. Always null. | | `tasks.result.items.contributor_url` | null | Not available. Always null. | | `tasks.result.items.book_online_url` | null | Not available. Always null. | | `tasks.result.items.rating` | object\|null | Star rating, when the listing has one. | | `tasks.result.items.rating.rating_type` | string | Always `Max5`. | | `tasks.result.items.rating.value` | number\|null | Average rating, 1 to 5. | | `tasks.result.items.rating.votes_count` | integer\|null | Number of reviews. | | `tasks.result.items.rating.rating_max` | integer | Always 5. | | `tasks.result.items.rating_distribution` | null | Not available in search listings. Always null. | | `tasks.result.items.snippet` | string\|null | Short line shown with the listing. | | `tasks.result.items.address` | string\|null | Street address as shown. | | `tasks.result.items.address_info` | null | Not available in search listings. Always null. | | `tasks.result.items.place_id` | string\|null | Google place id. | | `tasks.result.items.phone` | string\|null | Phone number as shown. | | `tasks.result.items.main_image` | string\|null | URL of the listing's main photo. | | `tasks.result.items.total_photos` | null | Not available in search listings. Always null. | | `tasks.result.items.category` | string\|null | Main business category. | | `tasks.result.items.additional_categories` | array\|null | Other categories, when listed. | | `tasks.result.items.category_ids` | null | Not available. Always null. | | `tasks.result.items.work_hours` | object\|null | Opening status, when shown. | | `tasks.result.items.work_hours.timetable` | null | Not available in search listings. Always null. | | `tasks.result.items.work_hours.current_status` | string\|null | Status text as shown, for example `Open ⋅ Closes 7 PM`. | | `tasks.result.items.feature_id` | string\|null | Google feature id, `0x…:0x…`. | | `tasks.result.items.cid` | string\|null | Google customer id (CID) of the place, as a decimal string. | | `tasks.result.items.latitude` | number\|null | Latitude of the place. | | `tasks.result.items.longitude` | number\|null | Longitude of the place. | | `tasks.result.items.is_claimed` | null | Not available in search listings. Always null. | | `tasks.result.items.local_justifications` | null | Not available. Always null. | | `tasks.result.items.is_directory_item` | boolean | Always false. | | `tasks.result.items.price_level` | string\|null | `inexpensive`, `moderate`, `expensive` or `very_expensive`, from the listing's `$` signs. | | `tasks.result.items.hotel_rating` | null | Not available. Always null. | | `tasks.result.fetched_at` | string\|null | When the results were fetched, ISO 8601 in UTC. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### maps_search | Field | Type | Description | |---|---|---| | `type` | string | Always `maps_search`. | | `rank_group` | integer | Position among items of the same type, starting at 1. | | `rank_absolute` | integer | Position among all items on the page, starting at 1. Equal to `rank_group` for now: only one item type is returned. | | `domain` | string\|null | Domain of the listing's website. | | `title` | string\|null | Business name. | | `original_title` | null | Not available. Always null. | | `url` | string\|null | The listing's website. | | `contact_url` | null | Not available. Always null. | | `contributor_url` | null | Not available. Always null. | | `book_online_url` | null | Not available. Always null. | | `rating` | object\|null | Star rating, when the listing has one. | | `rating.rating_type` | string | Always `Max5`. | | `rating.value` | number\|null | Average rating, 1 to 5. | | `rating.votes_count` | integer\|null | Number of reviews. | | `rating.rating_max` | integer | Always 5. | | `rating_distribution` | null | Not available in search listings. Always null. | | `snippet` | string\|null | Short line shown with the listing. | | `address` | string\|null | Street address as shown. | | `address_info` | null | Not available in search listings. Always null. | | `place_id` | string\|null | Google place id. | | `phone` | string\|null | Phone number as shown. | | `main_image` | string\|null | URL of the listing's main photo. | | `total_photos` | null | Not available in search listings. Always null. | | `category` | string\|null | Main business category. | | `additional_categories` | array\|null | Other categories, when listed. | | `category_ids` | null | Not available. Always null. | | `work_hours` | object\|null | Opening status, when shown. | | `work_hours.timetable` | null | Not available in search listings. Always null. | | `work_hours.current_status` | string\|null | Status text as shown, for example `Open ⋅ Closes 7 PM`. | | `feature_id` | string\|null | Google feature id, `0x…:0x…`. | | `cid` | string\|null | Google customer id (CID) of the place, as a decimal string. | | `latitude` | number\|null | Latitude of the place. | | `longitude` | number\|null | Longitude of the place. | | `is_claimed` | null | Not available in search listings. Always null. | | `local_justifications` | null | Not available. Always null. | | `is_directory_item` | boolean | Always false. | | `price_level` | string\|null | `inexpensive`, `moderate`, `expensive` or `very_expensive`, from the listing's `$` signs. | | `hotel_rating` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00054, "result_count": 1, "path": [ "v1", "serp", "google", "maps", "task_get", "advanced" ], "data": { "keyword": "running store", "location_name": "Boulder,Colorado,United States", "language_code": "en", "depth": 20 }, "result": [ { "keyword": "running store", "type": "maps", "se_domain": "google.com", "location_code": null, "language_code": "en", "check_url": "https://www.google.com/maps/search/running+store", "datetime": "2026-12-03 10:42:18 +00:00", "spell": null, "refinement_chips": null, "item_types": [ "maps_search" ], "se_results_count": 2, "pages_count": 1, "items_count": 2, "items": [ { "type": "maps_search", "rank_group": 1, "rank_absolute": 1, "domain": "summitrunning.example", "title": "Summit Running Co.", "original_title": null, "url": "https://summitrunning.example/", "contact_url": null, "contributor_url": null, "book_online_url": null, "rating": { "rating_type": "Max5", "value": 4.7, "votes_count": 318, "rating_max": 5 }, "rating_distribution": null, "snippet": "Running store in Boulder", "address": "120 Main St, Boulder, CO 80302", "address_info": null, "place_id": "ChIJexample-summit-0001", "phone": "+1 303-555-0142", "main_image": "https://images.example/summit.jpg", "total_photos": null, "category": "Running store", "additional_categories": [ "Shoe store", "Sportswear store" ], "category_ids": null, "work_hours": { "timetable": null, "current_status": "Open ⋅ Closes 7 PM" }, "feature_id": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315", "cid": "1234567890123456789", "latitude": 40.0176, "longitude": -105.2797, "is_claimed": null, "local_justifications": null, "is_directory_item": false, "price_level": "moderate", "hotel_rating": null }, { "type": "maps_search", "rank_group": 2, "rank_absolute": 2, "domain": "trailhead.example", "title": "Trailhead Outfitters", "original_title": null, "url": "https://trailhead.example/", "contact_url": null, "contributor_url": null, "book_online_url": null, "rating": { "rating_type": "Max5", "value": 4.5, "votes_count": 96, "rating_max": 5 }, "rating_distribution": null, "snippet": null, "address": "455 Pearl St, Boulder, CO 80302", "address_info": null, "place_id": "ChIJexample-trailhead-0002", "phone": "+1 303-555-0199", "main_image": null, "total_photos": null, "category": "Outdoor sports store", "additional_categories": null, "category_ids": null, "work_hours": null, "feature_id": "0x876bec0d5e6f7a8b:0x8911c0ffee00d0d1", "cid": "9876543210987654321", "latitude": 40.0189, "longitude": -105.2811, "is_claimed": null, "local_justifications": null, "is_directory_item": false, "price_level": null, "hotel_rating": null } ], "fetched_at": "2026-12-03T10:42:18Z" } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/serp/google/maps/task_get/advanced`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Maps SERP: Live Advanced](https://dataforgaio.com/docs/api/serp-google-maps-live-advanced.md): Maps listings for a keyword and location: name, rating, reviews, address, phone, category, coordinates and Google ids. Returned in the same call, in the advanced format. - [Google Maps SERP: Task Post](https://dataforgaio.com/docs/api/serp-google-maps-task-post.md): Queue Google Maps searches on the standard or priority queue, then collect them with tasks_ready and task_get. - [Google Maps SERP: Tasks Ready](https://dataforgaio.com/docs/api/serp-google-maps-tasks-ready.md): List your finished tasks for this endpoint that you haven't collected yet. - [Google Maps SERP: Tasks Fixed](https://dataforgaio.com/docs/api/serp-google-maps-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. --- # Google SERP: Locations `GET /v1/serp/google/locations` The country `location_code` values Google SERP tasks accept. Family: SERP API ## Price Unit: request Free. This route never charges your wallet. ## Description Returns every country we serve. Add a two-letter country code to the path, for example `/v1/serp/google/locations/us`, to get just that country. City and region codes aren't served yet. To search from a city, send `location_name` with the full place, such as `Boulder,Colorado,United States`. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `country` | string | no | Optional path segment: a two-letter country code that filters the list to that country. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/locations" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per location. | | `tasks.result.location_code` | integer | Use as `location_code`. Country codes are 2000 plus the ISO 3166-1 numeric code (2840 is the United States). | | `tasks.result.location_name` | string | English country name. Also accepted as `location_name`. | | `tasks.result.location_code_parent` | integer\|null | Parent location. Null for countries. | | `tasks.result.country_iso_code` | string | ISO 3166-1 alpha-2 code. | | `tasks.result.location_type` | string | Always `Country`: city and region codes aren't served yet. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "google", "locations" ], "data": {}, "result": [ { "location_code": 2840, "location_name": "United States", "location_code_parent": null, "country_iso_code": "US", "location_type": "Country" } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/google/locations`. Same request body and response envelope; change the base URL and the key. ## Related - [Google SERP: Languages](https://dataforgaio.com/docs/api/serp-google-languages.md): The `language_code` values Google SERP tasks accept. --- # Google SERP: Languages `GET /v1/serp/google/languages` The `language_code` values Google SERP tasks accept. Family: SERP API ## Price Unit: request Free. This route never charges your wallet. ## Description Returns every language we serve, with the code and name SERP tasks accept. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/google/languages" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per language. | | `tasks.result.language_name` | string | English language name. Also accepted as `language_name`. | | `tasks.result.language_code` | string | Use as `language_code`. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 75, "path": [ "v1", "serp", "google", "languages" ], "data": {}, "result": [ { "language_name": "Afrikaans", "language_code": "af" }, { "language_name": "Albanian", "language_code": "sq" }, { "language_name": "Amharic", "language_code": "am" }, { "language_name": "Arabic", "language_code": "ar" }, { "language_name": "Armenian", "language_code": "hy" } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/google/languages`. Same request body and response envelope; change the base URL and the key. ## Related - [Google SERP: Locations](https://dataforgaio.com/docs/api/serp-google-locations.md): The country `location_code` values Google SERP tasks accept. --- # Bing SERP: Locations `GET /v1/serp/bing/locations` The country `location_code` values Bing SERP tasks accept. Family: SERP API ## Price Unit: request Free. This route never charges your wallet. ## Description Returns every country we serve. Add a two-letter country code to the path, for example `/v1/serp/bing/locations/us`, to get just that country. City and region codes aren't served yet. To search from a city, send `location_name` with the full place, such as `Boulder,Colorado,United States`. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `country` | string | no | Optional path segment: a two-letter country code that filters the list to that country. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/bing/locations" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per location. | | `tasks.result.location_code` | integer | Use as `location_code`. Country codes are 2000 plus the ISO 3166-1 numeric code (2840 is the United States). | | `tasks.result.location_name` | string | English country name. Also accepted as `location_name`. | | `tasks.result.location_code_parent` | integer\|null | Parent location. Null for countries. | | `tasks.result.country_iso_code` | string | ISO 3166-1 alpha-2 code. | | `tasks.result.location_type` | string | Always `Country`: city and region codes aren't served yet. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "serp", "bing", "locations" ], "data": {}, "result": [ { "location_code": 2840, "location_name": "United States", "location_code_parent": null, "country_iso_code": "US", "location_type": "Country" } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/bing/locations`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing SERP: Languages](https://dataforgaio.com/docs/api/serp-bing-languages.md): The `language_code` values Bing SERP tasks accept. --- # Bing SERP: Languages `GET /v1/serp/bing/languages` The `language_code` values Bing SERP tasks accept. Family: SERP API ## Price Unit: request Free. This route never charges your wallet. ## Description Returns every language we serve, with the code and name SERP tasks accept. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/serp/bing/languages" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | One entry per language. | | `tasks.result.language_name` | string | English language name. Also accepted as `language_name`. | | `tasks.result.language_code` | string | Use as `language_code`. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 75, "path": [ "v1", "serp", "bing", "languages" ], "data": {}, "result": [ { "language_name": "Afrikaans", "language_code": "af" }, { "language_name": "Albanian", "language_code": "sq" }, { "language_name": "Amharic", "language_code": "am" }, { "language_name": "Arabic", "language_code": "ar" }, { "language_name": "Armenian", "language_code": "hy" } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/serp/bing/languages`. Same request body and response envelope; change the base URL and the key. ## Related - [Bing SERP: Locations](https://dataforgaio.com/docs/api/serp-bing-locations.md): The country `location_code` values Bing SERP tasks accept. --- # Instant Pages `POST /v1/pages/instant_pages` On-page data for one URL: status, meta tags, headings, links, structured data, text statistics, about 50 checks and an on-page score. Family: Pages API · Mode: Live ## Price Unit: page | Mode | Price (USD) | |---|---| | Live | $0.00011 | | Fetch level | Price (USD) | |---|---| | standard | $0.00011 | | rendered | $0.0011 | | protected | $0.003 | `usd.live` is the Standard-level price. `by_level` is the price at the level that returned the page. ## Description Send up to 100 tasks, one URL each. Every task fetches its page at the cheapest level that works and returns one item in `result[0].items`. Everything is read from the HTML document itself. We don't download images, scripts or stylesheets, so their sizes are 0, and browser timings, layout shift and spell checks are null. `onpage_score` is our own weighted score of the checks. **Billing.** Billed by the fetch level that returned the page: Standard, Rendered or Protected (see the price table). A page that no allowed level could fetch, or that answered 5xx, costs $0 and comes back as 40102 with the reason. Redirect and 4xx answers are delivered pages and are billed. Accepted and ignored: `load_resources`, `check_spell`, `validate_micromarkup`, `custom_user_agent`, `accept_language`, the `browser_*` fields, `ip_pool_for_scan`, `switch_pool`, `store_raw_html`, `disable_cookie_popup`, `enable_xhr`, `return_despite_timeout` and `checks_threshold`. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | Absolute http or https URL of the page, up to 2,000 characters. max 2000 | | `enable_javascript` | boolean | no | Render the page in a browser before reading it. The fetch starts at the Rendered level, so `max_level` must be `rendered` or `protected`. Also accepts the string `"true"`. default `false` | | `enable_browser_rendering` | boolean | no | Same as `enable_javascript`. default `false` | | `custom_js` | string | no | Not supported. A task that sends it fails with 40501 and isn't billed. | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Levels whose price is above it are skipped; if even the cheapest allowed level costs more, the task fails with 40501 at $0. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Pages are always fetched fresh: this field is accepted and has no effect here. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/pages/instant_pages" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "url": "https://summitrunning.example/trail-shoes", "enable_javascript": false } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array\|null | The data for this task. Null when the task returned an error. | | `tasks.result.crawl_progress` | string | Always `finished`: the page is fetched within the call. | | `tasks.result.crawl_status` | object | Counters for the one-page crawl. | | `tasks.result.crawl_status.max_crawl_pages` | integer | Always 1. | | `tasks.result.crawl_status.pages_in_queue` | integer | Always 0. | | `tasks.result.crawl_status.pages_crawled` | integer | Always 1. | | `tasks.result.items_count` | integer | Number of entries in `items`. Always 1. | | `tasks.result.items` | array | The page. | | `tasks.result.items.resource_type` | string | `html` for a page that answered 2xx. A redirect returns `redirect` and a 4xx/5xx page `broken`; those items carry only the fields up to `relative_url_length` plus `fetch_timing`, `checks` (status checks only), `resource_errors` and `last_modified`. one of `html`, `redirect`, `broken` | | `tasks.result.items.status_code` | integer | HTTP status the page answered with. | | `tasks.result.items.location` | string\|null | The `Location` header, for redirects. | | `tasks.result.items.url` | string | The final URL after redirects. | | `tasks.result.items.size` | integer | Size of the HTML in bytes. | | `tasks.result.items.encoded_size` | integer | Bytes on the wire: `Content-Length` when sent, else `size`. | | `tasks.result.items.total_transfer_size` | integer | Same as `encoded_size`: sub-resources aren't loaded. | | `tasks.result.items.fetch_time` | string | When we fetched the page, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items.cache_control` | object | What the `Cache-Control` header allows. | | `tasks.result.items.cache_control.cachable` | boolean | True when the response may be cached. | | `tasks.result.items.cache_control.ttl` | integer | `max-age` or `s-maxage` in seconds; 0 when absent. | | `tasks.result.items.content_encoding` | string\|null | The `Content-Encoding` header, for example `gzip`. | | `tasks.result.items.media_type` | string | Media type from `Content-Type`, for example `text/html`. | | `tasks.result.items.server` | string\|null | The `Server` header. | | `tasks.result.items.is_resource` | boolean | Always false: the item is the page itself. | | `tasks.result.items.url_length` | integer | Length of the final URL in characters. | | `tasks.result.items.relative_url_length` | integer | Length of the path and query in characters. | | `tasks.result.items.meta` | object | What the page declares and contains. | | `tasks.result.items.meta.title` | string\|null | Text of the first ``. | | `tasks.result.items.meta.charset` | integer\|null | Code page of the declared charset, for example 65001 for UTF-8. | | `tasks.result.items.meta.follow` | boolean | False when the robots meta tag or `X-Robots-Tag` says `nofollow` or `none`. | | `tasks.result.items.meta.generator` | string\|null | The generator meta tag. | | `tasks.result.items.meta.htags` | object\|null | Heading text by level: keys `h1` to `h6`, each a list of strings. | | `tasks.result.items.meta.description` | string\|null | The meta description. | | `tasks.result.items.meta.favicon` | string\|null | Absolute URL of the declared favicon. | | `tasks.result.items.meta.meta_keywords` | string\|null | The meta keywords. | | `tasks.result.items.meta.canonical` | string\|null | Absolute canonical URL. | | `tasks.result.items.meta.internal_links_count` | integer | Links to the same site (www ignored). | | `tasks.result.items.meta.external_links_count` | integer | Links to other sites. | | `tasks.result.items.meta.inbound_links_count` | integer | Always 0: one page can't see links to itself. | | `tasks.result.items.meta.images_count` | integer | Number of `<img>` tags. | | `tasks.result.items.meta.images_size` | integer | Always 0: images aren't downloaded. | | `tasks.result.items.meta.scripts_count` | integer | Number of external scripts. | | `tasks.result.items.meta.scripts_size` | integer | Always 0: scripts aren't downloaded. | | `tasks.result.items.meta.stylesheets_count` | integer | Number of stylesheet links. | | `tasks.result.items.meta.stylesheets_size` | integer | Always 0: stylesheets aren't downloaded. | | `tasks.result.items.meta.title_length` | integer | Title length in characters. | | `tasks.result.items.meta.description_length` | integer | Description length in characters. | | `tasks.result.items.meta.render_blocking_scripts_count` | integer | Scripts in `<head>` without async, defer or `type=module`. | | `tasks.result.items.meta.render_blocking_stylesheets_count` | integer | Stylesheets in `<head>` for all or screen media. | | `tasks.result.items.meta.cumulative_layout_shift` | null | Not measured. Always null. | | `tasks.result.items.meta.meta_title` | string\|null | The `<meta name="title">` content. | | `tasks.result.items.meta.content` | object | Text statistics for the visible text. | | `tasks.result.items.meta.content.plain_text_size` | integer | Visible text length in characters. | | `tasks.result.items.meta.content.plain_text_rate` | number | Visible text length divided by HTML size. | | `tasks.result.items.meta.content.plain_text_word_count` | integer | Words in the visible text. | | `tasks.result.items.meta.content.automated_readability_index` | number\|null | Automated Readability Index of the visible text. | | `tasks.result.items.meta.content.coleman_liau_readability_index` | number\|null | Coleman-Liau index of the visible text. | | `tasks.result.items.meta.content.dale_chall_readability_index` | null | Not computed. Always null. | | `tasks.result.items.meta.content.flesch_kincaid_readability_index` | number\|null | Flesch reading-ease score of the visible text (higher reads easier). | | `tasks.result.items.meta.content.smog_readability_index` | number\|null | SMOG index of the visible text. | | `tasks.result.items.meta.content.description_to_content_consistency` | number\|null | Share of the description's keywords found in the text, 0 to 1. | | `tasks.result.items.meta.content.title_to_content_consistency` | number\|null | Share of the title's keywords found in the text, 0 to 1. | | `tasks.result.items.meta.content.meta_keywords_to_content_consistency` | number\|null | Share of the meta keywords found in the text, 0 to 1. | | `tasks.result.items.meta.content.deprecated_tags` | array<string>\|null | Deprecated tags found, sorted. | | `tasks.result.items.meta.content.duplicate_meta_tags` | array<string>\|null | Single-use meta names that appear more than once. | | `tasks.result.items.meta.spell` | null | Spell checks aren't supported. Always null. | | `tasks.result.items.meta.social_media_tags` | object\|null | Open Graph and Twitter meta tags, keyed by property name (`og:title`, `twitter:card`, ...). | | `tasks.result.items.meta.page_timing` | object | Fetch timing. Browser paint timings aren't measured and are null. | | `tasks.result.items.meta.page_timing.time_to_interactive` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.dom_complete` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.largest_contentful_paint` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.first_input_delay` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.connection_time` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.time_to_secure_connection` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.request_sent_time` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.waiting_time` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.download_time` | null | Not measured. Always null. | | `tasks.result.items.meta.page_timing.duration_time` | integer | Our wall-clock fetch time in milliseconds. | | `tasks.result.items.meta.page_timing.fetch_start` | integer | Always 0. | | `tasks.result.items.meta.page_timing.fetch_end` | integer | Equal to `duration_time`. | | `tasks.result.items.onpage_score` | number | Our weighted score of the checks, 0 to 100. Each failed check subtracts its weight (for example 10 for no title, 30 for a 4xx). | | `tasks.result.items.total_dom_size` | integer | Number of elements in the document. | | `tasks.result.items.custom_js_response` | null | Custom scripts aren't supported. Always null. | | `tasks.result.items.custom_js_client_exception` | null | Always null. | | `tasks.result.items.resource_errors` | object | HTML errors and warnings. Not checked yet, so both lists are empty. | | `tasks.result.items.resource_errors.errors` | array<object> | Always empty. | | `tasks.result.items.resource_errors.warnings` | array<object> | Always empty. | | `tasks.result.items.broken_resources` | null | Sub-resources aren't loaded. Always null. | | `tasks.result.items.broken_links` | null | Links aren't followed. Always null. | | `tasks.result.items.duplicate_title` | boolean | Always false: one page has nothing to duplicate. | | `tasks.result.items.duplicate_description` | boolean | Always false. | | `tasks.result.items.duplicate_content` | boolean | Always false. | | `tasks.result.items.click_depth` | integer | Always 0: the page is the crawl's start. | | `tasks.result.items.checks` | object | Pass/fail checks on the page. True means the condition is present. | | `tasks.result.items.checks.no_content_encoding` | boolean | The response wasn't compressed. | | `tasks.result.items.checks.high_loading_time` | boolean | The fetch took longer than 3,000 ms. | | `tasks.result.items.checks.is_redirect` | boolean | The URL answered with a redirect. | | `tasks.result.items.checks.is_4xx_code` | boolean | The URL answered 4xx. | | `tasks.result.items.checks.is_5xx_code` | boolean | The URL answered 5xx. | | `tasks.result.items.checks.is_broken` | boolean | The URL answered 4xx or 5xx. | | `tasks.result.items.checks.is_www` | boolean | The host starts with `www.`. | | `tasks.result.items.checks.is_https` | boolean | The URL uses https. | | `tasks.result.items.checks.is_http` | boolean | The URL uses plain http. | | `tasks.result.items.checks.high_waiting_time` | boolean | Not measured. Always false. | | `tasks.result.items.checks.has_micromarkup` | boolean | The page has JSON-LD, microdata or RDFa. | | `tasks.result.items.checks.has_micromarkup_errors` | boolean | A JSON-LD block didn't parse. | | `tasks.result.items.checks.no_doctype` | boolean | The document has no `<!doctype>`. | | `tasks.result.items.checks.has_html_doctype` | boolean | The doctype is `<!doctype html>`. | | `tasks.result.items.checks.canonical` | boolean | The page declares a canonical URL. | | `tasks.result.items.checks.no_encoding_meta_tag` | boolean | No charset is declared in a meta tag. | | `tasks.result.items.checks.no_h1_tag` | boolean | The page has no `<h1>`. | | `tasks.result.items.checks.https_to_http_links` | boolean | An https page links to http URLs. | | `tasks.result.items.checks.size_greater_than_3mb` | boolean | The HTML is larger than 3 MB. | | `tasks.result.items.checks.meta_charset_consistency` | boolean | The meta charset matches the `Content-Type` charset (true when either is missing). | | `tasks.result.items.checks.has_meta_refresh_redirect` | boolean | The page has a `<meta http-equiv="refresh">`. | | `tasks.result.items.checks.has_render_blocking_resources` | boolean | The `<head>` has scripts without async/defer or screen stylesheets. | | `tasks.result.items.checks.low_content_rate` | boolean | Visible text is under 10% of the HTML size. | | `tasks.result.items.checks.high_content_rate` | boolean | Visible text is over 90% of the HTML size. | | `tasks.result.items.checks.low_character_count` | boolean | Visible text is under 1,024 characters. | | `tasks.result.items.checks.high_character_count` | boolean | Visible text is over 256,000 characters. | | `tasks.result.items.checks.small_page_size` | boolean | The HTML is under 1 KB. | | `tasks.result.items.checks.large_page_size` | boolean | The HTML is over 1 MB. | | `tasks.result.items.checks.low_readability_rate` | boolean | The Flesch reading-ease score is under 15. | | `tasks.result.items.checks.irrelevant_description` | boolean | Under 20% of the description's keywords appear in the page text. | | `tasks.result.items.checks.irrelevant_title` | boolean | Under 20% of the title's keywords appear in the page text. | | `tasks.result.items.checks.irrelevant_meta_keywords` | boolean | Under 20% of the meta keywords appear in the page text. | | `tasks.result.items.checks.title_too_long` | boolean | The title is longer than 65 characters. | | `tasks.result.items.checks.has_meta_title` | boolean | The page has a `<meta name="title">`. | | `tasks.result.items.checks.title_too_short` | boolean | The title is 1 to 29 characters long. | | `tasks.result.items.checks.deprecated_html_tags` | boolean | The page uses deprecated tags such as `<font>` or `<center>`. | | `tasks.result.items.checks.duplicate_meta_tags` | boolean | A single-use meta tag (description, robots, viewport, ...) appears twice. | | `tasks.result.items.checks.duplicate_title_tag` | boolean | The page has more than one `<title>`. | | `tasks.result.items.checks.no_image_alt` | boolean | An image has no alt text. | | `tasks.result.items.checks.no_image_title` | boolean | An image has no title attribute. | | `tasks.result.items.checks.no_description` | boolean | The page has no meta description. | | `tasks.result.items.checks.no_title` | boolean | The page has no title. | | `tasks.result.items.checks.no_favicon` | boolean | The page declares no favicon. | | `tasks.result.items.checks.seo_friendly_url` | boolean | All four `seo_friendly_url_*` checks pass. | | `tasks.result.items.checks.flash` | boolean | The page embeds Flash. | | `tasks.result.items.checks.frame` | boolean | The page uses frames or iframes. | | `tasks.result.items.checks.lorem_ipsum` | boolean | The text contains "lorem ipsum". | | `tasks.result.items.checks.has_misspelling` | null | Spell checks aren't supported. Always null. | | `tasks.result.items.checks.seo_friendly_url_characters_check` | boolean | The path uses only lowercase letters, digits and `-_/.~%`. | | `tasks.result.items.checks.seo_friendly_url_dynamic_check` | boolean | The URL has no query string. | | `tasks.result.items.checks.seo_friendly_url_keywords_check` | boolean | A title keyword appears in the path (true for the home page). | | `tasks.result.items.checks.seo_friendly_url_relative_length_check` | boolean | The path and query are 120 characters or fewer. | | `tasks.result.items.last_modified` | object | Last-modified dates the page declares. | | `tasks.result.items.last_modified.header` | string\|null | The `Last-Modified` header. | | `tasks.result.items.last_modified.sitemap` | null | Not read. Always null. | | `tasks.result.items.last_modified.meta_tag` | string\|null | `last-modified` meta or `article:modified_time`. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00011, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00011, "result_count": 1, "path": [ "v1", "pages", "instant_pages" ], "data": { "url": "https://summitrunning.example/trail-shoes", "enable_javascript": false }, "result": [ { "crawl_progress": "finished", "crawl_status": { "max_crawl_pages": 1, "pages_in_queue": 0, "pages_crawled": 1 }, "items_count": 1, "items": [ { "resource_type": "html", "status_code": 200, "location": null, "url": "https://summitrunning.example/trail-shoes", "size": 1734, "encoded_size": 1734, "total_transfer_size": 1734, "fetch_time": "2026-12-03 10:42:18 +00:00", "cache_control": { "cachable": true, "ttl": 600 }, "content_encoding": null, "media_type": "text/html", "server": "nginx", "is_resource": false, "url_length": 41, "relative_url_length": 12, "meta": { "title": "Trail running shoes: pricing and fit | Summit Running Co.", "charset": 65001, "follow": true, "generator": null, "htags": { "h1": [ "Trail running shoes" ], "h2": [ "Prices" ] }, "description": "Trail running shoes from Summit Running Co., with free gait analysis and 60-day returns.", "favicon": "https://summitrunning.example/favicon.ico", "meta_keywords": "trail running shoes, gait analysis", "canonical": "https://summitrunning.example/trail-shoes", "internal_links_count": 4, "external_links_count": 1, "inbound_links_count": 0, "images_count": 1, "images_size": 0, "scripts_count": 1, "scripts_size": 0, "stylesheets_count": 1, "stylesheets_size": 0, "title_length": 57, "description_length": 88, "render_blocking_scripts_count": 0, "render_blocking_stylesheets_count": 1, "cumulative_layout_shift": null, "meta_title": null, "content": { "plain_text_size": 349, "plain_text_rate": 0.2013, "plain_text_word_count": 61, "automated_readability_index": 7.1198, "coleman_liau_readability_index": 8.3816, "dale_chall_readability_index": null, "flesch_kincaid_readability_index": 79.0185, "smog_readability_index": 8.0765, "description_to_content_consistency": 1, "title_to_content_consistency": 0.6667, "meta_keywords_to_content_consistency": 1, "deprecated_tags": null, "duplicate_meta_tags": null }, "spell": null, "social_media_tags": { "og:title": "Trail running shoes", "twitter:card": "summary" }, "page_timing": { "time_to_interactive": null, "dom_complete": null, "largest_contentful_paint": null, "first_input_delay": null, "connection_time": null, "time_to_secure_connection": null, "request_sent_time": null, "waiting_time": null, "download_time": null, "duration_time": 0, "fetch_start": 0, "fetch_end": 0 } }, "onpage_score": 95, "total_dom_size": 42, "custom_js_response": null, "custom_js_client_exception": null, "resource_errors": { "errors": [], "warnings": [] }, "broken_resources": null, "broken_links": null, "duplicate_title": false, "duplicate_description": false, "duplicate_content": false, "click_depth": 0, "checks": { "no_content_encoding": true, "high_loading_time": false, "is_redirect": false, "is_4xx_code": false, "is_5xx_code": false, "is_broken": false, "is_www": false, "is_https": true, "is_http": false, "high_waiting_time": false, "has_micromarkup": true, "has_micromarkup_errors": false, "no_doctype": false, "has_html_doctype": true, "canonical": true, "no_encoding_meta_tag": false, "no_h1_tag": false, "https_to_http_links": false, "size_greater_than_3mb": false, "meta_charset_consistency": true, "has_meta_refresh_redirect": false, "has_render_blocking_resources": true, "low_content_rate": false, "high_content_rate": false, "low_character_count": true, "high_character_count": false, "small_page_size": false, "large_page_size": false, "low_readability_rate": false, "irrelevant_description": false, "irrelevant_title": false, "irrelevant_meta_keywords": false, "title_too_long": false, "has_meta_title": false, "title_too_short": false, "deprecated_html_tags": false, "duplicate_meta_tags": false, "duplicate_title_tag": false, "no_image_alt": false, "no_image_title": true, "no_description": false, "no_title": false, "no_favicon": false, "seo_friendly_url": true, "flash": false, "frame": false, "lorem_ipsum": false, "has_misspelling": null, "seo_friendly_url_characters_check": true, "seo_friendly_url_dynamic_check": true, "seo_friendly_url_keywords_check": true, "seo_friendly_url_relative_length_check": true }, "last_modified": { "header": null, "sitemap": null, "meta_tag": null } } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | No allowed fetch level got the page, or it answered 5xx. The message names the level and the HTTP facts. $0. | | 40501 | `url` isn't an absolute http(s) URL, `custom_js` was sent, `enable_javascript` needs a higher `max_level`, or `max_cost` is below the cheapest allowed level. | ## Migrating Replaces DataForSEO `/v3/on_page/instant_pages`. Same request body and response envelope; change the base URL and the key. --- # Content Parsing: Live `POST /v1/pages/content_parsing/live` The readable content of one URL: header, main topics by heading, sidebar, footer, tables, ratings, offers and contacts, with optional Markdown. Family: Pages API · Mode: Live ## Price Unit: page | Mode | Price (USD) | |---|---| | Live | $0.00011 | | Fetch level | Price (USD) | |---|---| | standard | $0.00011 | | rendered | $0.0011 | | protected | $0.003 | `usd.live` is the Standard-level price. `by_level` is the price at the level that returned the page. ## Description Send up to 100 tasks, one URL each. Scripts, forms and navigation are dropped; the rest is split into the site header, the main content (one topic per heading), sidebar topics and the footer. Link-heavy blocks go to `secondary_content`. Ratings and offers come from the page's JSON-LD; phone numbers and emails from `tel:` and `mailto:` links. Send `markdown_view: true` to also get the main content as Markdown. **Billing.** Billed by the fetch level that returned the page: Standard, Rendered or Protected (see the price table). A page that no allowed level could fetch, or that answered 5xx, costs $0 and comes back as 40102 with the reason. Redirect and 4xx answers are delivered pages and are billed. Accepted and ignored: `load_resources`, `check_spell`, `validate_micromarkup`, `custom_user_agent`, `accept_language`, the `browser_*` fields, `ip_pool_for_scan`, `switch_pool`, `store_raw_html`, `disable_cookie_popup`, `enable_xhr`, `return_despite_timeout` and `checks_threshold`. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | Absolute http or https URL of the page, up to 2,000 characters. max 2000 | | `enable_javascript` | boolean | no | Render the page in a browser before reading it. The fetch starts at the Rendered level, so `max_level` must be `rendered` or `protected`. Also accepts the string `"true"`. default `false` | | `enable_browser_rendering` | boolean | no | Same as `enable_javascript`. default `false` | | `custom_js` | string | no | Not supported. A task that sends it fails with 40501 and isn't billed. | | `markdown_view` | boolean | no | Also return the page's main content as Markdown in `page_as_markdown`. default `false` | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Levels whose price is above it are skipped; if even the cheapest allowed level costs more, the task fails with 40501 at $0. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Pages are always fetched fresh: this field is accepted and has no effect here. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/pages/content_parsing/live" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "url": "https://summitrunning.example/trail-shoes", "markdown_view": true } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | The data for this task. Null when the task returned an error. | | `tasks.result.crawl_progress` | string | Always `finished`: the page is fetched within the call. | | `tasks.result.crawl_status` | object | Counters for the one-page crawl. | | `tasks.result.crawl_status.max_crawl_pages` | integer | Always 1. | | `tasks.result.crawl_status.pages_in_queue` | integer | Always 0. | | `tasks.result.crawl_status.pages_crawled` | integer | Always 1. | | `tasks.result.items_count` | integer | Number of entries in `items`. Always 1. | | `tasks.result.items` | array<object> | The parsed page. | | `tasks.result.items.type` | string | Always `content_parsing_element`. | | `tasks.result.items.fetch_time` | string | When we fetched the page, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items.status_code` | integer | HTTP status the page answered with. | | `tasks.result.items.page_content` | object\|null | The page split into parts. Null when the page didn't answer 2xx. | | `tasks.result.items.page_content.header` | object\|null | The site header (outside the main content). | | `tasks.result.items.page_content.header.primary_content` | array<object>\|null | Text blocks: paragraphs, list items, quotes. | | `tasks.result.items.page_content.header.primary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.header.primary_content.url` | null | Always null. | | `tasks.result.items.page_content.header.primary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.header.primary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.header.primary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.header.secondary_content` | array<object>\|null | Link-heavy blocks, such as menus and link lists. | | `tasks.result.items.page_content.header.secondary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.header.secondary_content.url` | null | Always null. | | `tasks.result.items.page_content.header.secondary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.header.secondary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.header.secondary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.header.table_content` | array<object>\|null | Tables. | | `tasks.result.items.page_content.header.table_content.header` | array<object>\|null | Header rows (`<thead>`, or a first row of `<th>` cells). | | `tasks.result.items.page_content.header.table_content.header.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.header.table_content.header.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.header.table_content.header.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.header.table_content.header.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.header.table_content.header.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.header.table_content.header.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.header.table_content.body` | array<object>\|null | Body rows. | | `tasks.result.items.page_content.header.table_content.body.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.header.table_content.body.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.header.table_content.body.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.header.table_content.body.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.header.table_content.body.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.header.table_content.body.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.header.table_content.footer` | array<object>\|null | Footer rows. | | `tasks.result.items.page_content.header.table_content.footer.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.header.table_content.footer.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.header.table_content.footer.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.header.table_content.footer.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.header.table_content.footer.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.header.table_content.footer.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.footer` | object\|null | The site footer. | | `tasks.result.items.page_content.footer.primary_content` | array<object>\|null | Text blocks: paragraphs, list items, quotes. | | `tasks.result.items.page_content.footer.primary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.footer.primary_content.url` | null | Always null. | | `tasks.result.items.page_content.footer.primary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.footer.primary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.footer.primary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.footer.secondary_content` | array<object>\|null | Link-heavy blocks, such as menus and link lists. | | `tasks.result.items.page_content.footer.secondary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.footer.secondary_content.url` | null | Always null. | | `tasks.result.items.page_content.footer.secondary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.footer.secondary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.footer.secondary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.footer.table_content` | array<object>\|null | Tables. | | `tasks.result.items.page_content.footer.table_content.header` | array<object>\|null | Header rows (`<thead>`, or a first row of `<th>` cells). | | `tasks.result.items.page_content.footer.table_content.header.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.footer.table_content.header.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.footer.table_content.header.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.footer.table_content.header.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.footer.table_content.header.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.footer.table_content.header.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.footer.table_content.body` | array<object>\|null | Body rows. | | `tasks.result.items.page_content.footer.table_content.body.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.footer.table_content.body.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.footer.table_content.body.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.footer.table_content.body.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.footer.table_content.body.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.footer.table_content.body.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.footer.table_content.footer` | array<object>\|null | Footer rows. | | `tasks.result.items.page_content.footer.table_content.footer.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.footer.table_content.footer.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.footer.table_content.footer.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.footer.table_content.footer.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.footer.table_content.footer.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.footer.table_content.footer.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.main_topic` | array<object>\|null | The main content, one topic per heading. | | `tasks.result.items.page_content.main_topic.h_title` | string\|null | The heading that starts this topic. Null for text before the first heading. | | `tasks.result.items.page_content.main_topic.main_title` | string\|null | The page's `<h1>`, or its `<title>` when there's no h1. | | `tasks.result.items.page_content.main_topic.author` | string\|null | Author from the author meta tag or JSON-LD. | | `tasks.result.items.page_content.main_topic.language` | string\|null | The `<html lang>` value. | | `tasks.result.items.page_content.main_topic.level` | integer\|null | Heading level, 1 to 6. | | `tasks.result.items.page_content.main_topic.primary_content` | array<object>\|null | Text blocks: paragraphs, list items, quotes. | | `tasks.result.items.page_content.main_topic.primary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.main_topic.primary_content.url` | null | Always null. | | `tasks.result.items.page_content.main_topic.primary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.main_topic.primary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.main_topic.primary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.main_topic.secondary_content` | array<object>\|null | Link-heavy blocks, such as menus and link lists. | | `tasks.result.items.page_content.main_topic.secondary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.main_topic.secondary_content.url` | null | Always null. | | `tasks.result.items.page_content.main_topic.secondary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.main_topic.secondary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.main_topic.secondary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.main_topic.table_content` | array<object>\|null | Tables. | | `tasks.result.items.page_content.main_topic.table_content.header` | array<object>\|null | Header rows (`<thead>`, or a first row of `<th>` cells). | | `tasks.result.items.page_content.main_topic.table_content.header.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.main_topic.table_content.header.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.main_topic.table_content.header.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.main_topic.table_content.header.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.main_topic.table_content.header.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.main_topic.table_content.header.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.main_topic.table_content.body` | array<object>\|null | Body rows. | | `tasks.result.items.page_content.main_topic.table_content.body.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.main_topic.table_content.body.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.main_topic.table_content.body.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.main_topic.table_content.body.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.main_topic.table_content.body.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.main_topic.table_content.body.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.main_topic.table_content.footer` | array<object>\|null | Footer rows. | | `tasks.result.items.page_content.main_topic.table_content.footer.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.main_topic.table_content.footer.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.main_topic.table_content.footer.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.main_topic.table_content.footer.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.main_topic.table_content.footer.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.main_topic.table_content.footer.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.secondary_topic` | array<object>\|null | Sidebar (`<aside>`) content, one topic per heading. | | `tasks.result.items.page_content.secondary_topic.h_title` | string\|null | The heading that starts this topic. Null for text before the first heading. | | `tasks.result.items.page_content.secondary_topic.main_title` | string\|null | The page's `<h1>`, or its `<title>` when there's no h1. | | `tasks.result.items.page_content.secondary_topic.author` | string\|null | Author from the author meta tag or JSON-LD. | | `tasks.result.items.page_content.secondary_topic.language` | string\|null | The `<html lang>` value. | | `tasks.result.items.page_content.secondary_topic.level` | integer\|null | Heading level, 1 to 6. | | `tasks.result.items.page_content.secondary_topic.primary_content` | array<object>\|null | Text blocks: paragraphs, list items, quotes. | | `tasks.result.items.page_content.secondary_topic.primary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.secondary_topic.primary_content.url` | null | Always null. | | `tasks.result.items.page_content.secondary_topic.primary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.secondary_topic.primary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.secondary_topic.primary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.secondary_topic.secondary_content` | array<object>\|null | Link-heavy blocks, such as menus and link lists. | | `tasks.result.items.page_content.secondary_topic.secondary_content.text` | string | Text of the block. | | `tasks.result.items.page_content.secondary_topic.secondary_content.url` | null | Always null. | | `tasks.result.items.page_content.secondary_topic.secondary_content.urls` | array<object>\|null | Links inside the block. | | `tasks.result.items.page_content.secondary_topic.secondary_content.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.secondary_topic.secondary_content.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.secondary_topic.table_content` | array<object>\|null | Tables. | | `tasks.result.items.page_content.secondary_topic.table_content.header` | array<object>\|null | Header rows (`<thead>`, or a first row of `<th>` cells). | | `tasks.result.items.page_content.secondary_topic.table_content.header.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.secondary_topic.table_content.header.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.secondary_topic.table_content.header.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.secondary_topic.table_content.header.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.secondary_topic.table_content.header.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.secondary_topic.table_content.header.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.secondary_topic.table_content.body` | array<object>\|null | Body rows. | | `tasks.result.items.page_content.secondary_topic.table_content.body.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.secondary_topic.table_content.body.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.secondary_topic.table_content.body.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.secondary_topic.table_content.body.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.secondary_topic.table_content.body.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.secondary_topic.table_content.body.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.secondary_topic.table_content.footer` | array<object>\|null | Footer rows. | | `tasks.result.items.page_content.secondary_topic.table_content.footer.row_cells` | array<object> | Cells in the row. | | `tasks.result.items.page_content.secondary_topic.table_content.footer.row_cells.text` | string\|null | Cell text. | | `tasks.result.items.page_content.secondary_topic.table_content.footer.row_cells.urls` | array<object>\|null | Links in the cell. | | `tasks.result.items.page_content.secondary_topic.table_content.footer.row_cells.urls.url` | string | Absolute link URL. | | `tasks.result.items.page_content.secondary_topic.table_content.footer.row_cells.urls.anchor_text` | string\|null | Link text. | | `tasks.result.items.page_content.secondary_topic.table_content.footer.row_cells.is_header` | boolean | True for `<th>` cells. | | `tasks.result.items.page_content.ratings` | array<object>\|null | Aggregate ratings from JSON-LD. | | `tasks.result.items.page_content.ratings.name` | string\|null | Name of the rated thing. | | `tasks.result.items.page_content.ratings.rating_value` | number\|null | Average rating. | | `tasks.result.items.page_content.ratings.max_rating_value` | number | Best possible rating (default 5). | | `tasks.result.items.page_content.ratings.rating_count` | integer\|null | Number of ratings or reviews. | | `tasks.result.items.page_content.ratings.relative_rating` | number\|null | `rating_value / max_rating_value`. | | `tasks.result.items.page_content.offers` | array<object>\|null | Offers from JSON-LD. | | `tasks.result.items.page_content.offers.name` | string\|null | Offer or product name. | | `tasks.result.items.page_content.offers.price` | number\|null | Price (or low price). | | `tasks.result.items.page_content.offers.price_currency` | string\|null | ISO currency code. | | `tasks.result.items.page_content.offers.price_valid_until` | string\|null | `priceValidUntil` as given. | | `tasks.result.items.page_content.comments` | null | Not parsed. Always null. | | `tasks.result.items.page_content.contacts` | object\|null | Phone numbers and emails linked with `tel:` and `mailto:`. | | `tasks.result.items.page_content.contacts.telephones` | array<string>\|null | Phone numbers. | | `tasks.result.items.page_content.contacts.emails` | array<string>\|null | Email addresses. | | `tasks.result.items.page_as_markdown` | string\|null | The main content as Markdown, when you sent `markdown_view: true`. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0011, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0011, "result_count": 1, "path": [ "v1", "pages", "content_parsing", "live" ], "data": { "url": "https://summitrunning.example/trail-shoes", "markdown_view": true }, "result": [ { "crawl_progress": "finished", "crawl_status": { "max_crawl_pages": 1, "pages_in_queue": 0, "pages_crawled": 1 }, "items_count": 1, "items": [ { "type": "content_parsing_element", "fetch_time": "2026-12-03 10:42:18 +00:00", "status_code": 200, "page_content": { "header": { "primary_content": [ { "text": "Home Stores", "url": null, "urls": [ { "url": "https://summitrunning.example/", "anchor_text": "Home" }, { "url": "https://summitrunning.example/stores", "anchor_text": "Stores" } ] } ], "secondary_content": null, "table_content": null }, "footer": { "primary_content": [ { "text": "Summit Running Co., 120 Main St, Boulder, CO", "url": null, "urls": null } ], "secondary_content": null, "table_content": null }, "main_topic": [ { "h_title": "Trail running shoes", "main_title": "Trail running shoes", "author": "Summit Running Co.", "language": "en", "level": 1, "primary_content": [ { "text": "Every trail shoe we stock comes with free gait analysis and 60-day returns. Read our independent test results .", "url": null, "urls": [ { "url": "https://www.example-reviews.com/gear/trail-running-shoes", "anchor_text": "independent test results" } ] } ], "secondary_content": null, "table_content": null }, { "h_title": "Prices", "main_title": "Trail running shoes", "author": "Summit Running Co.", "language": "en", "level": 2, "primary_content": [ { "text": "Ridge Runner 4: 6 mm lugs, rock plate", "url": null, "urls": null }, { "text": "Canyon Lite: 4 mm lugs, 240 g", "url": null, "urls": null }, { "text": "Questions? Call 303-555-0142 or email us .", "url": null, "urls": [ { "url": "tel:+13035550142", "anchor_text": "303-555-0142" }, { "url": "mailto:fit@summitrunning.example", "anchor_text": "email us" } ] } ], "secondary_content": null, "table_content": [ { "header": [ { "row_cells": [ { "text": "Model", "urls": null, "is_header": true }, { "text": "Price", "urls": null, "is_header": true } ] } ], "body": [ { "row_cells": [ { "text": "Ridge Runner 4", "urls": null, "is_header": false }, { "text": "$139", "urls": null, "is_header": false } ] } ], "footer": null } ] } ], "secondary_topic": null, "ratings": [ { "name": "Ridge Runner 4", "rating_value": 4.6, "max_rating_value": 5, "rating_count": 128, "relative_rating": 0.92 } ], "offers": [ { "name": "Ridge Runner 4", "price": 139, "price_currency": "USD", "price_valid_until": null } ], "comments": null, "contacts": { "telephones": [ "+13035550142" ], "emails": [ "fit@summitrunning.example" ] } }, "page_as_markdown": "# Trail running shoes\n\nEvery trail shoe we stock comes with free gait analysis and 60-day returns. Read our\n[independent test results](https://www.example-reviews.com/gear/trail-running-shoes).\n\n## Prices\n\n| Model | Price |\n| --- | --- |\n| Ridge Runner 4 | $139 |\n\n- Ridge Runner 4: 6 mm lugs, rock plate\n- Canyon Lite: 4 mm lugs, 240 g\n\n![Ridge Runner 4](https://summitrunning.example/img/ridge-runner.jpg)\n\nQuestions? Call [303-555-0142](tel:+13035550142) or [email us](mailto:fit@summitrunning.example)." } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "rendered", "upgraded": true, "upgrade_reason": "403 at standard", "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | No allowed fetch level got the page, or it answered 5xx. $0. | | 40501 | `url` isn't an absolute http(s) URL, `custom_js` was sent, `enable_javascript` needs a higher `max_level`, or `max_cost` is below the cheapest allowed level. | ## Migrating Replaces DataForSEO `/v3/on_page/content_parsing/live`. Same request body and response envelope; change the base URL and the key. --- # ChatGPT LLM Responses: Live `POST /v1/ai/chat_gpt/llm_responses/live` One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. Family: AI answers API · Mode: Live ## Price Unit: answer | Mode | Price (USD) | |---|---| | Live | $0.00054 | Base fee per answer. The model's token and search cost is added at its list price (see the table in the description). ## Description Send up to 100 tasks, one prompt each. Each task calls the model once and returns its answer in `result[0].items[0].sections[0].text`, with citations in `annotations` when web search is on. Use `message_chain` to continue a conversation, and `web_search_country_iso_code` or `web_search_city` to localize the search. **Billing.** Each answer costs our base fee for the mode plus the model's token and search cost at the model's published list price, reported as `money_spent`. A failed, empty or refused answer costs $0. Before the call, the wallet check reserves the base fee plus a conservative token estimate (or your `max_cost`). Token prices for ChatGPT models: | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `gpt-5` | $1.25 | $10.0 | $10.0 | yes | | `gpt-5-mini` | $0.25 | $2.0 | $10.0 | yes | | `gpt-5-nano` | $0.05 | $0.4 | $10.0 | yes | | `gpt-4.1` | $2.0 | $8.0 | $25.0 | no | | `gpt-4.1-mini` | $0.4 | $1.6 | $25.0 | no | | `gpt-4o` | $2.5 | $10.0 | $25.0 | no | | `gpt-4o-mini` | $0.15 | $0.6 | $25.0 | no | Answers aren't cached: each call is a new sample. Prompts and answers are added to the AI-answer dataset unless your organization has opted out. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `user_prompt` | string | yes | The prompt, up to 500 characters. max 500 | | `model_name` | string | no | A model id from `/v1/ai/chat_gpt/llm_responses/models`. Dated ids such as `gpt-4.1-2025-04-14` resolve to their base model. Leave it out to use the default model. default `gpt-5`; one of `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4o`, `gpt-4o-mini` | | `system_message` | string | no | Instructions sent before the prompt, up to 500 characters. max 500 | | `message_chain` | array<object> | no | Earlier turns of the conversation, up to 10. They alternate `user` and `ai`, start with `user` and end with `ai`; each message is up to 500 characters. max 10 | | `message_chain.role` | string | yes | Who said it. one of `user`, `ai` | | `message_chain.message` | string | yes | What was said. max 500 | | `max_output_tokens` | integer | no | Most tokens the answer may use, up to 4,096. The minimum is 16, or 1,024 for reasoning models. default `2048`; min 16; max 4096 | | `temperature` | number | no | Sampling temperature, 0.0 to 2.0. Send this or `top_p`, not both. Ignored by reasoning models. min 0; max 2 | | `top_p` | number | no | Nucleus sampling, 0 to 1. Send this or `temperature`, not both. min 0; max 1 | | `web_search` | boolean | no | Let the model search the web before answering. Search fees are added to `money_spent`. default `false` | | `force_web_search` | boolean | no | Require a web search before answering. Needs `web_search: true`. default `false` | | `web_search_country_iso_code` | string | no | Two-letter country the web search should favor. min 2; max 2 | | `web_search_city` | string | no | City the web search should favor, up to 100 characters. max 100 | | `max_cost` | number | no | The most this task may be charged, in USD. The wallet check reserves this amount instead of our token estimate, and the charge is capped at it. Before the model is called, `max_output_tokens` is lowered (and web search turned off, unless forced or always on) so the most the answer can cost fits; when even the prompt can't fit, the task returns 40501 at $0. min 0 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/live" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "gpt-4o-mini", "web_search": true, "web_search_country_iso_code": "US" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One answer. | | `tasks.result.model_name` | string | The model that answered. | | `tasks.result.input_tokens` | integer | Prompt tokens the model read, including search results it was given. | | `tasks.result.output_tokens` | integer | Tokens in the answer. | | `tasks.result.reasoning_tokens` | integer | Reasoning tokens, for reasoning models; 0 otherwise. | | `tasks.result.web_search` | boolean | Whether the model was allowed to search the web. | | `tasks.result.money_spent` | number | Token and search cost at the model's list price, in USD. The task's `cost` is this plus our base fee. | | `tasks.result.datetime` | string | When the answer was produced, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items` | array<object> | The answer. One `message` item. | | `tasks.result.items.type` | string | Always `message`. | | `tasks.result.items.sections` | array<object> | Parts of the message. One `text` section. | | `tasks.result.items.sections.type` | string | Always `text`. | | `tasks.result.items.sections.text` | string | The answer text, as the model wrote it (often Markdown). | | `tasks.result.items.sections.annotations` | array<object>\|null | Sources the answer cited. Null when web search was off. | | `tasks.result.items.sections.annotations.title` | string\|null | Title of the cited page. | | `tasks.result.items.sections.annotations.url` | string\|null | URL of the cited page. | | `tasks.result.items.sections.annotations.start_index` | integer\|null | Start of the cited span in `text`, when the model reports it. | | `tasks.result.items.sections.annotations.end_index` | integer\|null | End of the cited span in `text`. | | `tasks.result.items.sections.annotations.text` | string\|null | The cited passage, when the model reports it. | | `tasks.result.fan_out_queries` | array<string>\|null | Search queries the model ran. Null when web search was off. | | `tasks.result.search_results` | array<object>\|null | Pages the searches returned, cited or not. Null when web search was off. | | `tasks.result.search_results.title` | string\|null | Page title. | | `tasks.result.search_results.url` | string\|null | Page URL. | | `tasks.result.search_results.date` | string\|null | Publication date, when reported. | | `tasks.result.search_results.snippet` | string\|null | Snippet, when reported. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0259732, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0259732, "result_count": 1, "path": [ "v1", "ai", "chat_gpt", "llm_responses", "live" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "gpt-4o-mini", "web_search": true, "web_search_country_iso_code": "US" }, "result": [ { "model_name": "gpt-4o-mini", "input_tokens": 1240, "output_tokens": 412, "reasoning_tokens": 0, "web_search": true, "money_spent": 0.0254332, "datetime": "2026-12-03 10:42:18 +00:00", "items": [ { "type": "message", "sections": [ { "type": "text", "text": "For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are largest.", "annotations": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "start_index": 0, "end_index": 98, "text": "brands that make most models in a wide (2E) fit" } ] } ] } ], "fan_out_queries": [ "best running shoes for wide feet" ], "search_results": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "date": "2026-11-20", "snippet": "We measured toe-box width on 40 shoes." } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40501 | `user_prompt` missing or too long, unknown `model_name`, `temperature` and `top_p` both sent, a value out of range, or a malformed `message_chain`. | | 50000 | The model returned no answer, or the engine isn't available right now. $0. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/chat_gpt/llm_responses/live`. Same request body and response envelope; change the base URL and the key. ## Related - [ChatGPT LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-post.md): Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. - [ChatGPT LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [ChatGPT LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [ChatGPT LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-get.md): Read one queued answer. - [ChatGPT LLM Responses: Models](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-models.md): The ChatGPT model ids you can send as `model_name`. --- # ChatGPT LLM Responses: Task Post > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/ai/chat_gpt/llm_responses/task_post` Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. Family: AI answers API · Mode: Task Post ## Price Unit: answer | Mode | Price (USD) | |---|---| | Standard queue | $0.00018 | | Priority queue | $0.00054 | Base fee per answer by queue, plus the model's token and search cost at list price. ## Description Post up to 100 tasks; each comes back with 20100 and a task id. Answers appear in tasks_ready when done. `priority: 2` uses the priority queue at the priority base fee. **Billing.** Each answer costs our base fee for the mode plus the model's token and search cost at the model's published list price, reported as `money_spent`. A failed, empty or refused answer costs $0. Before the call, the wallet check reserves the base fee plus a conservative token estimate (or your `max_cost`). Token prices for ChatGPT models: | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `gpt-5` | $1.25 | $10.0 | $10.0 | yes | | `gpt-5-mini` | $0.25 | $2.0 | $10.0 | yes | | `gpt-5-nano` | $0.05 | $0.4 | $10.0 | yes | | `gpt-4.1` | $2.0 | $8.0 | $25.0 | no | | `gpt-4.1-mini` | $0.4 | $1.6 | $25.0 | no | | `gpt-4o` | $2.5 | $10.0 | $25.0 | no | | `gpt-4o-mini` | $0.15 | $0.6 | $25.0 | no | Answers aren't cached: each call is a new sample. Prompts and answers are added to the AI-answer dataset unless your organization has opted out. **Beta.** Queued tasks go through the model vendor's batch interface, which we wrote from its documentation and haven't checked against live batch responses yet. When a batch can't be submitted, the task runs on the standard interface instead; the result shape is the same either way. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `user_prompt` | string | yes | The prompt, up to 500 characters. max 500 | | `model_name` | string | no | A model id from `/v1/ai/chat_gpt/llm_responses/models`. Dated ids such as `gpt-4.1-2025-04-14` resolve to their base model. Leave it out to use the default model. default `gpt-5`; one of `gpt-5`, `gpt-5-mini`, `gpt-5-nano`, `gpt-4.1`, `gpt-4.1-mini`, `gpt-4o`, `gpt-4o-mini` | | `system_message` | string | no | Instructions sent before the prompt, up to 500 characters. max 500 | | `message_chain` | array<object> | no | Earlier turns of the conversation, up to 10. They alternate `user` and `ai`, start with `user` and end with `ai`; each message is up to 500 characters. max 10 | | `message_chain.role` | string | yes | Who said it. one of `user`, `ai` | | `message_chain.message` | string | yes | What was said. max 500 | | `max_output_tokens` | integer | no | Most tokens the answer may use, up to 4,096. The minimum is 16, or 1,024 for reasoning models. default `2048`; min 16; max 4096 | | `temperature` | number | no | Sampling temperature, 0.0 to 2.0. Send this or `top_p`, not both. Ignored by reasoning models. min 0; max 2 | | `top_p` | number | no | Nucleus sampling, 0 to 1. Send this or `temperature`, not both. min 0; max 1 | | `web_search` | boolean | no | Let the model search the web before answering. Search fees are added to `money_spent`. default `false` | | `force_web_search` | boolean | no | Require a web search before answering. Needs `web_search: true`. default `false` | | `web_search_country_iso_code` | string | no | Two-letter country the web search should favor. min 2; max 2 | | `web_search_city` | string | no | City the web search should favor, up to 100 characters. max 100 | | `max_cost` | number | no | The most this task may be charged, in USD. The wallet check reserves this amount instead of our token estimate, and the charge is capped at it. Before the model is called, `max_output_tokens` is lowered (and web search turned off, unless forced or always on) so the most the answer can cost fits; when even the prompt can't fit, the task returns 40501 at $0. min 0 | | `priority` | integer | no | Queue for this task: `1` is the standard queue, `2` the priority queue (faster, priced higher). default `1`; one of `1`, `2` | | `tag` | string | no | Your own label for the task, up to 255 characters. Returned by tasks_ready. max 255 | | `pingback_url` | string | no | We send a GET to this http(s) URL when the task finishes. `$id` and `$tag` in the URL are replaced with the task id and tag. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_url` | string | no | We POST the finished task, in the task_get envelope, to this http(s) URL. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_data` | string | no | Result format sent to `postback_url`. Defaults to `advanced` when `postback_url` is set. one of `regular`, `advanced`, `html` | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "gpt-4o-mini", "web_search": true, "web_search_country_iso_code": "US", "tag": "wide-feet-weekly" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | null | Always null for task_post. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20100, "status_message": "Task Created.", "time": "0.4210 sec.", "cost": 0, "result_count": 0, "path": [ "v1", "ai", "chat_gpt", "llm_responses", "task_post" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "gpt-4o-mini", "web_search": true, "web_search_country_iso_code": "US", "tag": "wide-feet-weekly" }, "result": null, "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/chat_gpt/llm_responses/task_post`. Same request body and response envelope; change the base URL and the key. ## Related - [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md): One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [ChatGPT LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [ChatGPT LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [ChatGPT LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-get.md): Read one queued answer. - [ChatGPT LLM Responses: Models](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-models.md): The ChatGPT model ids you can send as `model_name`. --- # ChatGPT LLM Responses: Tasks Ready > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/ai/chat_gpt/llm_responses/tasks_ready` List finished answers you haven't collected yet. Family: AI answers API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Up to 1,000 completed tasks from this engine's task_post that task_get hasn't returned yet, oldest first. `se` is the engine and `se_type` is `llm_responses`; use the `endpoint_regular` path to read each one. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/tasks_ready" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per answer ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "ai", "chat_gpt", "llm_responses", "tasks_ready" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "chat_gpt", "se_type": "llm_responses", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/ai/chat_gpt/llm_responses/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/ai/chat_gpt/llm_responses/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/chat_gpt/llm_responses/tasks_ready`. Same request body and response envelope; change the base URL and the key. ## Related - [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md): One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [ChatGPT LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-post.md): Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. - [ChatGPT LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [ChatGPT LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-get.md): Read one queued answer. - [ChatGPT LLM Responses: Models](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-models.md): The ChatGPT model ids you can send as `model_name`. --- # ChatGPT LLM Responses: Tasks Fixed > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/ai/chat_gpt/llm_responses/tasks_fixed` Same list as tasks_ready, kept for clients that call tasks_fixed. Family: AI answers API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Up to 1,000 completed tasks from this engine's task_post that task_get hasn't returned yet, oldest first. `se` is the engine and `se_type` is `llm_responses`; use the `endpoint_regular` path to read each one. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/tasks_fixed" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per answer ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "ai", "chat_gpt", "llm_responses", "tasks_fixed" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "chat_gpt", "se_type": "llm_responses", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/ai/chat_gpt/llm_responses/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/ai/chat_gpt/llm_responses/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/chat_gpt/llm_responses/tasks_fixed`. Same request body and response envelope; change the base URL and the key. ## Related - [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md): One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [ChatGPT LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-post.md): Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. - [ChatGPT LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [ChatGPT LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-get.md): Read one queued answer. - [ChatGPT LLM Responses: Models](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-models.md): The ChatGPT model ids you can send as `model_name`. --- # ChatGPT LLM Responses: Task Get > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/ai/chat_gpt/llm_responses/task_get/{id}` Read one queued answer. Family: AI answers API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. Returns 40602 while the task is queued (including while its batch is processing) and 40601 while it runs. A format segment is accepted and ignored: `task_get/regular/{id}` and `task_get/advanced/{id}` return the same result. Free: the task was billed when it returned an answer. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/task_get/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One answer. | | `tasks.result.model_name` | string | The model that answered. | | `tasks.result.input_tokens` | integer | Prompt tokens the model read, including search results it was given. | | `tasks.result.output_tokens` | integer | Tokens in the answer. | | `tasks.result.reasoning_tokens` | integer | Reasoning tokens, for reasoning models; 0 otherwise. | | `tasks.result.web_search` | boolean | Whether the model was allowed to search the web. | | `tasks.result.money_spent` | number | Token and search cost at the model's list price, in USD. The task's `cost` is this plus our base fee. | | `tasks.result.datetime` | string | When the answer was produced, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items` | array<object> | The answer. One `message` item. | | `tasks.result.items.type` | string | Always `message`. | | `tasks.result.items.sections` | array<object> | Parts of the message. One `text` section. | | `tasks.result.items.sections.type` | string | Always `text`. | | `tasks.result.items.sections.text` | string | The answer text, as the model wrote it (often Markdown). | | `tasks.result.items.sections.annotations` | array<object>\|null | Sources the answer cited. Null when web search was off. | | `tasks.result.items.sections.annotations.title` | string\|null | Title of the cited page. | | `tasks.result.items.sections.annotations.url` | string\|null | URL of the cited page. | | `tasks.result.items.sections.annotations.start_index` | integer\|null | Start of the cited span in `text`, when the model reports it. | | `tasks.result.items.sections.annotations.end_index` | integer\|null | End of the cited span in `text`. | | `tasks.result.items.sections.annotations.text` | string\|null | The cited passage, when the model reports it. | | `tasks.result.fan_out_queries` | array<string>\|null | Search queries the model ran. Null when web search was off. | | `tasks.result.search_results` | array<object>\|null | Pages the searches returned, cited or not. Null when web search was off. | | `tasks.result.search_results.title` | string\|null | Page title. | | `tasks.result.search_results.url` | string\|null | Page URL. | | `tasks.result.search_results.date` | string\|null | Publication date, when reported. | | `tasks.result.search_results.snippet` | string\|null | Snippet, when reported. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0256132, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.0256132, "result_count": 1, "path": [ "v1", "ai", "chat_gpt", "llm_responses", "task_get" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "gpt-4o-mini", "web_search": true, "web_search_country_iso_code": "US" }, "result": [ { "model_name": "gpt-4o-mini", "input_tokens": 1240, "output_tokens": 412, "reasoning_tokens": 0, "web_search": true, "money_spent": 0.0254332, "datetime": "2026-12-03 10:42:18 +00:00", "items": [ { "type": "message", "sections": [ { "type": "text", "text": "For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are largest.", "annotations": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "start_index": 0, "end_index": 98, "text": "brands that make most models in a wide (2E) fit" } ] } ] } ], "fan_out_queries": [ "best running shoes for wide feet" ], "search_results": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "date": "2026-11-20", "snippet": "We measured toe-box width on 40 shoes." } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/chat_gpt/llm_responses/task_get`. Same request body and response envelope; change the base URL and the key. ## Related - [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md): One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [ChatGPT LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-post.md): Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. - [ChatGPT LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [ChatGPT LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [ChatGPT LLM Responses: Models](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-models.md): The ChatGPT model ids you can send as `model_name`. --- # ChatGPT LLM Responses: Models `GET /v1/ai/chat_gpt/llm_responses/models` The ChatGPT model ids you can send as `model_name`. Family: AI answers API ## Price Unit: request Free. This route never charges your wallet. ## Description Lists every ChatGPT model we serve, whether it's a reasoning model, and whether it can be queued with task_post. Free. | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `gpt-5` | $1.25 | $10.0 | $10.0 | yes | | `gpt-5-mini` | $0.25 | $2.0 | $10.0 | yes | | `gpt-5-nano` | $0.05 | $0.4 | $10.0 | yes | | `gpt-4.1` | $2.0 | $8.0 | $25.0 | no | | `gpt-4.1-mini` | $0.4 | $1.6 | $25.0 | no | | `gpt-4o` | $2.5 | $10.0 | $25.0 | no | | `gpt-4o-mini` | $0.15 | $0.6 | $25.0 | no | ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/chat_gpt/llm_responses/models" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per model. | | `tasks.result.model_name` | string | Send this as `model_name`. | | `tasks.result.reasoning` | boolean | True for reasoning models. They ignore `temperature` and `top_p`. | | `tasks.result.web_search_supported` | boolean | Whether the model can search the web. True for every model we serve. | | `tasks.result.task_post_supported` | boolean | Whether the model can be queued with task_post. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 7, "path": [ "v1", "ai", "chat_gpt", "llm_responses", "models" ], "data": {}, "result": [ { "model_name": "gpt-5", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "gpt-5-mini", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "gpt-5-nano", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "gpt-4.1", "reasoning": false, "web_search_supported": true, "task_post_supported": true }, { "model_name": "gpt-4.1-mini", "reasoning": false, "web_search_supported": true, "task_post_supported": true }, { "model_name": "gpt-4o", "reasoning": false, "web_search_supported": true, "task_post_supported": true }, { "model_name": "gpt-4o-mini", "reasoning": false, "web_search_supported": true, "task_post_supported": true } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/chat_gpt/llm_responses/models`. Same request body and response envelope; change the base URL and the key. ## Related - [ChatGPT LLM Responses: Live](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-live.md): One answer from a ChatGPT model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [ChatGPT LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-post.md): Queue prompts for a ChatGPT model at the lower queued base fee, then collect the answers. - [ChatGPT LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [ChatGPT LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [ChatGPT LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-chat-gpt-llm-responses-task-get.md): Read one queued answer. --- # Claude LLM Responses: Live `POST /v1/ai/claude/llm_responses/live` One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. Family: AI answers API · Mode: Live ## Price Unit: answer | Mode | Price (USD) | |---|---| | Live | $0.00054 | Base fee per answer. The model's token and search cost is added at its list price (see the table in the description). ## Description Send up to 100 tasks, one prompt each. Each task calls the model once and returns its answer in `result[0].items[0].sections[0].text`, with citations in `annotations` when web search is on. Use `message_chain` to continue a conversation, and `web_search_country_iso_code` or `web_search_city` to localize the search. **Billing.** Each answer costs our base fee for the mode plus the model's token and search cost at the model's published list price, reported as `money_spent`. A failed, empty or refused answer costs $0. Before the call, the wallet check reserves the base fee plus a conservative token estimate (or your `max_cost`). Token prices for Claude models: | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `claude-opus-5-5` | $4.0 | $20.0 | $10.0 | yes | | `claude-sonnet-5-5` | $2.0 | $10.0 | $10.0 | yes | | `claude-haiku-5-5` | $0.1 | $0.5 | $10.0 | yes | | `claude-opus-5` | $5.0 | $25.0 | $10.0 | yes | | `claude-sonnet-5` | $2.0 | $10.0 | $10.0 | yes | | `claude-opus-4-8` | $5.0 | $25.0 | $10.0 | no | | `claude-sonnet-4-6` | $3.0 | $15.0 | $10.0 | no | | `claude-haiku-4-5` | $1.0 | $5.0 | $10.0 | no | Answers aren't cached: each call is a new sample. Prompts and answers are added to the AI-answer dataset unless your organization has opted out. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `user_prompt` | string | yes | The prompt, up to 500 characters. max 500 | | `model_name` | string | no | A model id from `/v1/ai/claude/llm_responses/models`. Dated ids such as `gpt-4.1-2025-04-14` resolve to their base model. Leave it out to use the default model. default `claude-sonnet-5-5`; one of `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, `claude-opus-5`, `claude-sonnet-5`, `claude-opus-4-8`, `claude-sonnet-4-6`, `claude-haiku-4-5` | | `system_message` | string | no | Instructions sent before the prompt, up to 500 characters. max 500 | | `message_chain` | array<object> | no | Earlier turns of the conversation, up to 10. They alternate `user` and `ai`, start with `user` and end with `ai`; each message is up to 500 characters. max 10 | | `message_chain.role` | string | yes | Who said it. one of `user`, `ai` | | `message_chain.message` | string | yes | What was said. max 500 | | `max_output_tokens` | integer | no | Most tokens the answer may use, up to 4,096. default `2048`; min 1; max 4096 | | `temperature` | number | no | Sampling temperature, 0.0 to 1.0. Send this or `top_p`, not both. Ignored by reasoning models. min 0; max 1 | | `top_p` | number | no | Nucleus sampling, 0 to 1. Send this or `temperature`, not both. min 0; max 1 | | `web_search` | boolean | no | Let the model search the web before answering. Search fees are added to `money_spent`. default `false` | | `force_web_search` | boolean | no | Require a web search before answering. Needs `web_search: true`. default `false` | | `web_search_country_iso_code` | string | no | Two-letter country the web search should favor. min 2; max 2 | | `web_search_city` | string | no | City the web search should favor, up to 100 characters. max 100 | | `max_cost` | number | no | The most this task may be charged, in USD. The wallet check reserves this amount instead of our token estimate, and the charge is capped at it. Before the model is called, `max_output_tokens` is lowered (and web search turned off, unless forced or always on) so the most the answer can cost fits; when even the prompt can't fit, the task returns 40501 at $0. min 0 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ai/claude/llm_responses/live" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "claude-sonnet-4-6", "web_search": true, "web_search_country_iso_code": "US" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One answer. | | `tasks.result.model_name` | string | The model that answered. | | `tasks.result.input_tokens` | integer | Prompt tokens the model read, including search results it was given. | | `tasks.result.output_tokens` | integer | Tokens in the answer. | | `tasks.result.reasoning_tokens` | integer | Reasoning tokens, for reasoning models; 0 otherwise. | | `tasks.result.web_search` | boolean | Whether the model was allowed to search the web. | | `tasks.result.money_spent` | number | Token and search cost at the model's list price, in USD. The task's `cost` is this plus our base fee. | | `tasks.result.datetime` | string | When the answer was produced, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items` | array<object> | The answer. One `message` item. | | `tasks.result.items.type` | string | Always `message`. | | `tasks.result.items.sections` | array<object> | Parts of the message. One `text` section. | | `tasks.result.items.sections.type` | string | Always `text`. | | `tasks.result.items.sections.text` | string | The answer text, as the model wrote it (often Markdown). | | `tasks.result.items.sections.annotations` | array<object>\|null | Sources the answer cited. Null when web search was off. | | `tasks.result.items.sections.annotations.title` | string\|null | Title of the cited page. | | `tasks.result.items.sections.annotations.url` | string\|null | URL of the cited page. | | `tasks.result.items.sections.annotations.start_index` | integer\|null | Start of the cited span in `text`, when the model reports it. | | `tasks.result.items.sections.annotations.end_index` | integer\|null | End of the cited span in `text`. | | `tasks.result.items.sections.annotations.text` | string\|null | The cited passage, when the model reports it. | | `tasks.result.fan_out_queries` | array<string>\|null | Search queries the model ran. Null when web search was off. | | `tasks.result.search_results` | array<object>\|null | Pages the searches returned, cited or not. Null when web search was off. | | `tasks.result.search_results.title` | string\|null | Page title. | | `tasks.result.search_results.url` | string\|null | Page URL. | | `tasks.result.search_results.date` | string\|null | Publication date, when reported. | | `tasks.result.search_results.snippet` | string\|null | Snippet, when reported. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.02044, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.02044, "result_count": 1, "path": [ "v1", "ai", "claude", "llm_responses", "live" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "claude-sonnet-4-6", "web_search": true, "web_search_country_iso_code": "US" }, "result": [ { "model_name": "claude-sonnet-4-6", "input_tokens": 1240, "output_tokens": 412, "reasoning_tokens": 0, "web_search": true, "money_spent": 0.0199, "datetime": "2026-12-03 10:42:18 +00:00", "items": [ { "type": "message", "sections": [ { "type": "text", "text": "For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are largest.", "annotations": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "start_index": 0, "end_index": 98, "text": "brands that make most models in a wide (2E) fit" } ] } ] } ], "fan_out_queries": [ "best running shoes for wide feet" ], "search_results": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "date": "2026-11-20", "snippet": "We measured toe-box width on 40 shoes." } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40501 | `user_prompt` missing or too long, unknown `model_name`, `temperature` and `top_p` both sent, a value out of range, or a malformed `message_chain`. | | 50000 | The model returned no answer, or the engine isn't available right now. $0. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/claude/llm_responses/live`. Same request body and response envelope; change the base URL and the key. ## Related - [Claude LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-post.md): Queue prompts for a Claude model at the lower queued base fee, then collect the answers. - [Claude LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [Claude LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Claude LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-get.md): Read one queued answer. - [Claude LLM Responses: Models](https://dataforgaio.com/docs/api/ai-claude-llm-responses-models.md): The Claude model ids you can send as `model_name`. --- # Claude LLM Responses: Task Post > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/ai/claude/llm_responses/task_post` Queue prompts for a Claude model at the lower queued base fee, then collect the answers. Family: AI answers API · Mode: Task Post ## Price Unit: answer | Mode | Price (USD) | |---|---| | Standard queue | $0.00018 | | Priority queue | $0.00054 | Base fee per answer by queue, plus the model's token and search cost at list price. ## Description Post up to 100 tasks; each comes back with 20100 and a task id. Answers appear in tasks_ready when done. `priority: 2` uses the priority queue at the priority base fee. **Billing.** Each answer costs our base fee for the mode plus the model's token and search cost at the model's published list price, reported as `money_spent`. A failed, empty or refused answer costs $0. Before the call, the wallet check reserves the base fee plus a conservative token estimate (or your `max_cost`). Token prices for Claude models: | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `claude-opus-5-5` | $4.0 | $20.0 | $10.0 | yes | | `claude-sonnet-5-5` | $2.0 | $10.0 | $10.0 | yes | | `claude-haiku-5-5` | $0.1 | $0.5 | $10.0 | yes | | `claude-opus-5` | $5.0 | $25.0 | $10.0 | yes | | `claude-sonnet-5` | $2.0 | $10.0 | $10.0 | yes | | `claude-opus-4-8` | $5.0 | $25.0 | $10.0 | no | | `claude-sonnet-4-6` | $3.0 | $15.0 | $10.0 | no | | `claude-haiku-4-5` | $1.0 | $5.0 | $10.0 | no | Answers aren't cached: each call is a new sample. Prompts and answers are added to the AI-answer dataset unless your organization has opted out. **Beta.** Queued tasks go through the model vendor's batch interface, which we wrote from its documentation and haven't checked against live batch responses yet. When a batch can't be submitted, the task runs on the standard interface instead; the result shape is the same either way. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `user_prompt` | string | yes | The prompt, up to 500 characters. max 500 | | `model_name` | string | no | A model id from `/v1/ai/claude/llm_responses/models`. Dated ids such as `gpt-4.1-2025-04-14` resolve to their base model. Leave it out to use the default model. default `claude-sonnet-5-5`; one of `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5`, `claude-opus-5`, `claude-sonnet-5`, `claude-opus-4-8`, `claude-sonnet-4-6`, `claude-haiku-4-5` | | `system_message` | string | no | Instructions sent before the prompt, up to 500 characters. max 500 | | `message_chain` | array<object> | no | Earlier turns of the conversation, up to 10. They alternate `user` and `ai`, start with `user` and end with `ai`; each message is up to 500 characters. max 10 | | `message_chain.role` | string | yes | Who said it. one of `user`, `ai` | | `message_chain.message` | string | yes | What was said. max 500 | | `max_output_tokens` | integer | no | Most tokens the answer may use, up to 4,096. default `2048`; min 1; max 4096 | | `temperature` | number | no | Sampling temperature, 0.0 to 1.0. Send this or `top_p`, not both. Ignored by reasoning models. min 0; max 1 | | `top_p` | number | no | Nucleus sampling, 0 to 1. Send this or `temperature`, not both. min 0; max 1 | | `web_search` | boolean | no | Let the model search the web before answering. Search fees are added to `money_spent`. default `false` | | `force_web_search` | boolean | no | Require a web search before answering. Needs `web_search: true`. default `false` | | `web_search_country_iso_code` | string | no | Two-letter country the web search should favor. min 2; max 2 | | `web_search_city` | string | no | City the web search should favor, up to 100 characters. max 100 | | `max_cost` | number | no | The most this task may be charged, in USD. The wallet check reserves this amount instead of our token estimate, and the charge is capped at it. Before the model is called, `max_output_tokens` is lowered (and web search turned off, unless forced or always on) so the most the answer can cost fits; when even the prompt can't fit, the task returns 40501 at $0. min 0 | | `priority` | integer | no | Queue for this task: `1` is the standard queue, `2` the priority queue (faster, priced higher). default `1`; one of `1`, `2` | | `tag` | string | no | Your own label for the task, up to 255 characters. Returned by tasks_ready. max 255 | | `pingback_url` | string | no | We send a GET to this http(s) URL when the task finishes. `$id` and `$tag` in the URL are replaced with the task id and tag. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_url` | string | no | We POST the finished task, in the task_get envelope, to this http(s) URL. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_data` | string | no | Result format sent to `postback_url`. Defaults to `advanced` when `postback_url` is set. one of `regular`, `advanced`, `html` | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ai/claude/llm_responses/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "claude-sonnet-4-6", "web_search": true, "web_search_country_iso_code": "US", "tag": "wide-feet-weekly" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | null | Always null for task_post. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20100, "status_message": "Task Created.", "time": "0.4210 sec.", "cost": 0, "result_count": 0, "path": [ "v1", "ai", "claude", "llm_responses", "task_post" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "claude-sonnet-4-6", "web_search": true, "web_search_country_iso_code": "US", "tag": "wide-feet-weekly" }, "result": null, "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/claude/llm_responses/task_post`. Same request body and response envelope; change the base URL and the key. ## Related - [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md): One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Claude LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [Claude LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Claude LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-get.md): Read one queued answer. - [Claude LLM Responses: Models](https://dataforgaio.com/docs/api/ai-claude-llm-responses-models.md): The Claude model ids you can send as `model_name`. --- # Claude LLM Responses: Tasks Ready > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/ai/claude/llm_responses/tasks_ready` List finished answers you haven't collected yet. Family: AI answers API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Up to 1,000 completed tasks from this engine's task_post that task_get hasn't returned yet, oldest first. `se` is the engine and `se_type` is `llm_responses`; use the `endpoint_regular` path to read each one. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/claude/llm_responses/tasks_ready" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per answer ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "ai", "claude", "llm_responses", "tasks_ready" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "claude", "se_type": "llm_responses", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/ai/claude/llm_responses/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/ai/claude/llm_responses/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/claude/llm_responses/tasks_ready`. Same request body and response envelope; change the base URL and the key. ## Related - [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md): One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Claude LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-post.md): Queue prompts for a Claude model at the lower queued base fee, then collect the answers. - [Claude LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Claude LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-get.md): Read one queued answer. - [Claude LLM Responses: Models](https://dataforgaio.com/docs/api/ai-claude-llm-responses-models.md): The Claude model ids you can send as `model_name`. --- # Claude LLM Responses: Tasks Fixed > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/ai/claude/llm_responses/tasks_fixed` Same list as tasks_ready, kept for clients that call tasks_fixed. Family: AI answers API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Up to 1,000 completed tasks from this engine's task_post that task_get hasn't returned yet, oldest first. `se` is the engine and `se_type` is `llm_responses`; use the `endpoint_regular` path to read each one. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/claude/llm_responses/tasks_fixed" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per answer ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "ai", "claude", "llm_responses", "tasks_fixed" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "claude", "se_type": "llm_responses", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/ai/claude/llm_responses/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/ai/claude/llm_responses/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/claude/llm_responses/tasks_fixed`. Same request body and response envelope; change the base URL and the key. ## Related - [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md): One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Claude LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-post.md): Queue prompts for a Claude model at the lower queued base fee, then collect the answers. - [Claude LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [Claude LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-get.md): Read one queued answer. - [Claude LLM Responses: Models](https://dataforgaio.com/docs/api/ai-claude-llm-responses-models.md): The Claude model ids you can send as `model_name`. --- # Claude LLM Responses: Task Get > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/ai/claude/llm_responses/task_get/{id}` Read one queued answer. Family: AI answers API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. Returns 40602 while the task is queued (including while its batch is processing) and 40601 while it runs. A format segment is accepted and ignored: `task_get/regular/{id}` and `task_get/advanced/{id}` return the same result. Free: the task was billed when it returned an answer. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/claude/llm_responses/task_get/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One answer. | | `tasks.result.model_name` | string | The model that answered. | | `tasks.result.input_tokens` | integer | Prompt tokens the model read, including search results it was given. | | `tasks.result.output_tokens` | integer | Tokens in the answer. | | `tasks.result.reasoning_tokens` | integer | Reasoning tokens, for reasoning models; 0 otherwise. | | `tasks.result.web_search` | boolean | Whether the model was allowed to search the web. | | `tasks.result.money_spent` | number | Token and search cost at the model's list price, in USD. The task's `cost` is this plus our base fee. | | `tasks.result.datetime` | string | When the answer was produced, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items` | array<object> | The answer. One `message` item. | | `tasks.result.items.type` | string | Always `message`. | | `tasks.result.items.sections` | array<object> | Parts of the message. One `text` section. | | `tasks.result.items.sections.type` | string | Always `text`. | | `tasks.result.items.sections.text` | string | The answer text, as the model wrote it (often Markdown). | | `tasks.result.items.sections.annotations` | array<object>\|null | Sources the answer cited. Null when web search was off. | | `tasks.result.items.sections.annotations.title` | string\|null | Title of the cited page. | | `tasks.result.items.sections.annotations.url` | string\|null | URL of the cited page. | | `tasks.result.items.sections.annotations.start_index` | integer\|null | Start of the cited span in `text`, when the model reports it. | | `tasks.result.items.sections.annotations.end_index` | integer\|null | End of the cited span in `text`. | | `tasks.result.items.sections.annotations.text` | string\|null | The cited passage, when the model reports it. | | `tasks.result.fan_out_queries` | array<string>\|null | Search queries the model ran. Null when web search was off. | | `tasks.result.search_results` | array<object>\|null | Pages the searches returned, cited or not. Null when web search was off. | | `tasks.result.search_results.title` | string\|null | Page title. | | `tasks.result.search_results.url` | string\|null | Page URL. | | `tasks.result.search_results.date` | string\|null | Publication date, when reported. | | `tasks.result.search_results.snippet` | string\|null | Snippet, when reported. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.02008, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.02008, "result_count": 1, "path": [ "v1", "ai", "claude", "llm_responses", "task_get" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "claude-sonnet-4-6", "web_search": true, "web_search_country_iso_code": "US" }, "result": [ { "model_name": "claude-sonnet-4-6", "input_tokens": 1240, "output_tokens": 412, "reasoning_tokens": 0, "web_search": true, "money_spent": 0.0199, "datetime": "2026-12-03 10:42:18 +00:00", "items": [ { "type": "message", "sections": [ { "type": "text", "text": "For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are largest.", "annotations": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "start_index": 0, "end_index": 98, "text": "brands that make most models in a wide (2E) fit" } ] } ] } ], "fan_out_queries": [ "best running shoes for wide feet" ], "search_results": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "date": "2026-11-20", "snippet": "We measured toe-box width on 40 shoes." } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/claude/llm_responses/task_get`. Same request body and response envelope; change the base URL and the key. ## Related - [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md): One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Claude LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-post.md): Queue prompts for a Claude model at the lower queued base fee, then collect the answers. - [Claude LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [Claude LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Claude LLM Responses: Models](https://dataforgaio.com/docs/api/ai-claude-llm-responses-models.md): The Claude model ids you can send as `model_name`. --- # Claude LLM Responses: Models `GET /v1/ai/claude/llm_responses/models` The Claude model ids you can send as `model_name`. Family: AI answers API ## Price Unit: request Free. This route never charges your wallet. ## Description Lists every Claude model we serve, whether it's a reasoning model, and whether it can be queued with task_post. Free. | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `claude-opus-5-5` | $4.0 | $20.0 | $10.0 | yes | | `claude-sonnet-5-5` | $2.0 | $10.0 | $10.0 | yes | | `claude-haiku-5-5` | $0.1 | $0.5 | $10.0 | yes | | `claude-opus-5` | $5.0 | $25.0 | $10.0 | yes | | `claude-sonnet-5` | $2.0 | $10.0 | $10.0 | yes | | `claude-opus-4-8` | $5.0 | $25.0 | $10.0 | no | | `claude-sonnet-4-6` | $3.0 | $15.0 | $10.0 | no | | `claude-haiku-4-5` | $1.0 | $5.0 | $10.0 | no | ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/claude/llm_responses/models" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per model. | | `tasks.result.model_name` | string | Send this as `model_name`. | | `tasks.result.reasoning` | boolean | True for reasoning models. They ignore `temperature` and `top_p`. | | `tasks.result.web_search_supported` | boolean | Whether the model can search the web. True for every model we serve. | | `tasks.result.task_post_supported` | boolean | Whether the model can be queued with task_post. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 8, "path": [ "v1", "ai", "claude", "llm_responses", "models" ], "data": {}, "result": [ { "model_name": "claude-opus-5-5", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-sonnet-5-5", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-haiku-5-5", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-opus-5", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-sonnet-5", "reasoning": true, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-opus-4-8", "reasoning": false, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-sonnet-4-6", "reasoning": false, "web_search_supported": true, "task_post_supported": true }, { "model_name": "claude-haiku-4-5", "reasoning": false, "web_search_supported": true, "task_post_supported": true } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/claude/llm_responses/models`. Same request body and response envelope; change the base URL and the key. ## Related - [Claude LLM Responses: Live](https://dataforgaio.com/docs/api/ai-claude-llm-responses-live.md): One answer from a Claude model for your prompt, with the sources it cited, the searches it ran and the tokens it used. - [Claude LLM Responses: Task Post](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-post.md): Queue prompts for a Claude model at the lower queued base fee, then collect the answers. - [Claude LLM Responses: Tasks Ready](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-ready.md): List finished answers you haven't collected yet. - [Claude LLM Responses: Tasks Fixed](https://dataforgaio.com/docs/api/ai-claude-llm-responses-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Claude LLM Responses: Task Get](https://dataforgaio.com/docs/api/ai-claude-llm-responses-task-get.md): Read one queued answer. --- # Perplexity LLM Responses: Live `POST /v1/ai/perplexity/llm_responses/live` One answer from a Perplexity model for your prompt, with the sources it cited, the searches it ran and the tokens it used. Family: AI answers API · Mode: Live ## Price Unit: answer | Mode | Price (USD) | |---|---| | Live | $0.00054 | Base fee per answer. The model's token and search cost is added at its list price (see the table in the description). ## Description Send up to 100 tasks, one prompt each. Each task calls the model once and returns its answer in `result[0].items[0].sections[0].text`, with citations in `annotations` when web search is on. Perplexity models always search the web. Use `message_chain` to continue a conversation. **Billing.** Each answer costs our base fee for the mode plus the model's token and search cost at the model's published list price, reported as `money_spent`. A failed, empty or refused answer costs $0. Before the call, the wallet check reserves the base fee plus a conservative token estimate (or your `max_cost`). Token prices for Perplexity models: | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `sonar` | $1.0 | $1.0 | $5.0 | no | | `sonar-pro` | $3.0 | $15.0 | $6.0 | no | | `sonar-reasoning-pro` | $2.0 | $8.0 | $6.0 | yes | Answers aren't cached: each call is a new sample. Prompts and answers are added to the AI-answer dataset unless your organization has opted out. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `user_prompt` | string | yes | The prompt, up to 500 characters. max 500 | | `model_name` | string | no | A model id from `/v1/ai/perplexity/llm_responses/models`. Dated ids such as `gpt-4.1-2025-04-14` resolve to their base model. Leave it out to use the default model. default `sonar`; one of `sonar`, `sonar-pro`, `sonar-reasoning-pro` | | `system_message` | string | no | Instructions sent before the prompt, up to 500 characters. max 500 | | `message_chain` | array<object> | no | Earlier turns of the conversation, up to 10. They alternate `user` and `ai`, start with `user` and end with `ai`; each message is up to 500 characters. max 10 | | `message_chain.role` | string | yes | Who said it. one of `user`, `ai` | | `message_chain.message` | string | yes | What was said. max 500 | | `max_output_tokens` | integer | no | Most tokens the answer may use, up to 4,096. default `2048`; min 1; max 4096 | | `temperature` | number | no | Sampling temperature, 0.0 to 1.9. Send this or `top_p`, not both. Ignored by reasoning models. min 0; max 1.9 | | `top_p` | number | no | Nucleus sampling, 0 to 1. Send this or `temperature`, not both. min 0; max 1 | | `web_search` | boolean | no | Perplexity models always search the web; `false` is rejected. default `true` | | `force_web_search` | boolean | no | Require a web search before answering. Needs `web_search: true`. default `false` | | `web_search_country_iso_code` | string | no | Two-letter country the web search should favor. min 2; max 2 | | `max_cost` | number | no | The most this task may be charged, in USD. The wallet check reserves this amount instead of our token estimate, and the charge is capped at it. Before the model is called, `max_output_tokens` is lowered (and web search turned off, unless forced or always on) so the most the answer can cost fits; when even the prompt can't fit, the task returns 40501 at $0. min 0 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ai/perplexity/llm_responses/live" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "sonar", "web_search": true } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One answer. | | `tasks.result.model_name` | string | The model that answered. | | `tasks.result.input_tokens` | integer | Prompt tokens the model read, including search results it was given. | | `tasks.result.output_tokens` | integer | Tokens in the answer. | | `tasks.result.reasoning_tokens` | integer | Reasoning tokens, for reasoning models; 0 otherwise. | | `tasks.result.web_search` | boolean | Whether the model was allowed to search the web. | | `tasks.result.money_spent` | number | Token and search cost at the model's list price, in USD. The task's `cost` is this plus our base fee. | | `tasks.result.datetime` | string | When the answer was produced, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items` | array<object> | The answer. One `message` item. | | `tasks.result.items.type` | string | Always `message`. | | `tasks.result.items.sections` | array<object> | Parts of the message. One `text` section. | | `tasks.result.items.sections.type` | string | Always `text`. | | `tasks.result.items.sections.text` | string | The answer text, as the model wrote it (often Markdown). | | `tasks.result.items.sections.annotations` | array<object>\|null | Sources the answer cited. Null when web search was off. | | `tasks.result.items.sections.annotations.title` | string\|null | Title of the cited page. | | `tasks.result.items.sections.annotations.url` | string\|null | URL of the cited page. | | `tasks.result.items.sections.annotations.start_index` | integer\|null | Start of the cited span in `text`, when the model reports it. | | `tasks.result.items.sections.annotations.end_index` | integer\|null | End of the cited span in `text`. | | `tasks.result.items.sections.annotations.text` | string\|null | The cited passage, when the model reports it. | | `tasks.result.fan_out_queries` | array<string>\|null | Search queries the model ran. Null when web search was off. | | `tasks.result.search_results` | array<object>\|null | Pages the searches returned, cited or not. Null when web search was off. | | `tasks.result.search_results.title` | string\|null | Page title. | | `tasks.result.search_results.url` | string\|null | Page URL. | | `tasks.result.search_results.date` | string\|null | Publication date, when reported. | | `tasks.result.search_results.snippet` | string\|null | Snippet, when reported. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.007192, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.007192, "result_count": 1, "path": [ "v1", "ai", "perplexity", "llm_responses", "live" ], "data": { "user_prompt": "Which running shoe brands are best for wide feet?", "model_name": "sonar", "web_search": true }, "result": [ { "model_name": "sonar", "input_tokens": 1240, "output_tokens": 412, "reasoning_tokens": 0, "web_search": true, "money_spent": 0.006652, "datetime": "2026-12-03 10:42:18 +00:00", "items": [ { "type": "message", "sections": [ { "type": "text", "text": "For wide feet, look at brands that make most models in a wide (2E) fit, such as Summit Trail and Ridgeway. Try shoes on late in the day, when your feet are largest.", "annotations": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "start_index": 0, "end_index": 98, "text": "brands that make most models in a wide (2E) fit" } ] } ] } ], "fan_out_queries": [ "best running shoes for wide feet" ], "search_results": [ { "title": "Best running shoes for wide feet", "url": "https://www.example-reviews.com/gear/wide-running-shoes", "date": "2026-11-20", "snippet": "We measured toe-box width on 40 shoes." } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40501 | `user_prompt` missing or too long, unknown `model_name`, `temperature` and `top_p` both sent, a value out of range, or a malformed `message_chain`. | | 50000 | The model returned no answer, or the engine isn't available right now. $0. | ## Migrating Replaces DataForSEO `/v3/ai_optimization/perplexity/llm_responses/live`. Same request body and response envelope; change the base URL and the key. ## Related - [Perplexity LLM Responses: Models](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-models.md): The Perplexity model ids you can send as `model_name`. --- # Perplexity LLM Responses: Models `GET /v1/ai/perplexity/llm_responses/models` The Perplexity model ids you can send as `model_name`. Family: AI answers API ## Price Unit: request Free. This route never charges your wallet. ## Description Lists every Perplexity model we serve, whether it's a reasoning model, and whether it can be queued with task_post. Free. | Model | Input per 1M tokens | Output per 1M tokens | Web search per 1,000 | Reasoning | |---|---|---|---|---| | `sonar` | $1.0 | $1.0 | $5.0 | no | | `sonar-pro` | $3.0 | $15.0 | $6.0 | no | | `sonar-reasoning-pro` | $2.0 | $8.0 | $6.0 | yes | ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/ai/perplexity/llm_responses/models" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per model. | | `tasks.result.model_name` | string | Send this as `model_name`. | | `tasks.result.reasoning` | boolean | True for reasoning models. They ignore `temperature` and `top_p`. | | `tasks.result.web_search_supported` | boolean | Whether the model can search the web. True for every model we serve. | | `tasks.result.task_post_supported` | boolean | Whether the model can be queued with task_post. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 3, "path": [ "v1", "ai", "perplexity", "llm_responses", "models" ], "data": {}, "result": [ { "model_name": "sonar", "reasoning": false, "web_search_supported": true, "task_post_supported": false }, { "model_name": "sonar-pro", "reasoning": false, "web_search_supported": true, "task_post_supported": false }, { "model_name": "sonar-reasoning-pro", "reasoning": true, "web_search_supported": true, "task_post_supported": false } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/ai_optimization/perplexity/llm_responses/models`. Same request body and response envelope; change the base URL and the key. ## Related - [Perplexity LLM Responses: Live](https://dataforgaio.com/docs/api/ai-perplexity-llm-responses-live.md): One answer from a Perplexity model for your prompt, with the sources it cited, the searches it ran and the tokens it used. --- # Google Business Profile: Live > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/business/google/my_business_info/live` A Google business profile: name, categories, address, phone, website, rating and review counts, hours, coordinates and Google ids. Family: Business API · Mode: Live ## Price Unit: profile | Mode | Price (USD) | |---|---| | Live | $0.00135 | | Fetch level | Price (USD) | |---|---| | standard | $0.00135 | | rendered | $0.00234 | | protected | $0.003 | Billed by the level that returned the profile. ## Description Send up to 100 tasks. Each looks up one business by name and address, CID, place id or feature id, and returns one `google_business_info` item. **Billing.** Billed per profile by the fetch level that returned it (see `by_level`). We try the Maps search data first and the place page second; a rendered fetch is used only when the plain fetch carried no place data and your `max_level` allows it. A request where no level gets the profile costs $0. Profiles are cached for 24 h; send `max_age: 0` for a fresh fetch. **Beta.** We read Google's place data with a parser written from public documentation that hasn't been checked against live responses yet. Field names and shapes are fixed; some values may be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The business to look up, up to 700 characters: its name and address (`Summit Running Co. Boulder`), `cid:<number>`, `place_id:<id>`, or a `0x…:0x…` feature id. max 700 | | `location_name` | string | no | A place to search in, added to a name search, for example `Boulder,Colorado,United States`. | | `location_code` | integer | no | Echoed in the result's `location_code`. It doesn't change the search: use `location_name` or `location_country_iso`. | | `location_country_iso` | string | no | Two-letter country to search in. `country_iso_code` is accepted too. default `us` | | `country_iso_code` | string | no | Same as `location_country_iso`. | | `language_code` | string | no | Result language, for example `en`. default `en` | | `language_name` | string | no | Language name, used when `language_code` isn't sent. English, Spanish, French, German, Italian, Portuguese, Dutch and Japanese are recognized; others fall back to English. | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Default window: 24 h. Leave it out to use it. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/business/google/my_business_info/live" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "Summit Running Co. Boulder", "location_name": "Boulder,Colorado,United States", "language_code": "en" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.se_domain` | string | Always `google.com`. | | `tasks.result.location_code` | integer\|null | The `location_code` you sent. | | `tasks.result.language_code` | string | Language the profile was read in. | | `tasks.result.check_url` | string | The URL the profile was read from. | | `tasks.result.datetime` | string | When the profile was fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit, the original fetch time. | | `tasks.result.fetched_at` | string | When the profile was fetched, ISO 8601. | | `tasks.result.items_count` | integer | Always 1. | | `tasks.result.items` | array<object> | The profile. | | `tasks.result.items.type` | string | Always `google_business_info`. | | `tasks.result.items.title` | string | Business name. | | `tasks.result.items.original_title` | null | Not available. Always null. | | `tasks.result.items.description` | string\|null | The business description. | | `tasks.result.items.category` | string\|null | Main category. | | `tasks.result.items.category_ids` | null | Not in the place data. Always null. | | `tasks.result.items.additional_categories` | array<string>\|null | Other categories. | | `tasks.result.items.cid` | string\|null | Google customer id (CID), as a decimal string. | | `tasks.result.items.feature_id` | string | Google feature id, `0x…:0x…`. | | `tasks.result.items.address` | string\|null | Full address as shown. | | `tasks.result.items.address_info` | object\|null | The address in parts. | | `tasks.result.items.address_info.borough` | string\|null | Neighborhood or borough. | | `tasks.result.items.address_info.address` | string\|null | Street address. | | `tasks.result.items.address_info.city` | string\|null | City. | | `tasks.result.items.address_info.zip` | string\|null | Postal code. | | `tasks.result.items.address_info.region` | string\|null | State or region. | | `tasks.result.items.address_info.country_code` | string\|null | Two-letter country code. | | `tasks.result.items.place_id` | string\|null | Google place id. | | `tasks.result.items.phone` | string\|null | Phone number as shown. | | `tasks.result.items.url` | string\|null | The business's website. | | `tasks.result.items.contact_url` | null | Not available. Always null. | | `tasks.result.items.contributor_url` | null | Not available. Always null. | | `tasks.result.items.book_online_url` | null | Not available. Always null. | | `tasks.result.items.domain` | string\|null | Domain of the website. | | `tasks.result.items.logo` | null | Not available. Always null. | | `tasks.result.items.main_image` | string\|null | URL of the main photo. | | `tasks.result.items.total_photos` | integer\|null | Number of photos on the profile. | | `tasks.result.items.snippet` | string\|null | Short address line. | | `tasks.result.items.latitude` | number\|null | Latitude. | | `tasks.result.items.longitude` | number\|null | Longitude. | | `tasks.result.items.is_claimed` | boolean\|null | True when the owner has claimed the profile. | | `tasks.result.items.attributes` | null | Not parsed yet. Always null. | | `tasks.result.items.place_topics` | null | Not parsed yet. Always null. | | `tasks.result.items.rating` | object\|null | Star rating. | | `tasks.result.items.rating.rating_type` | string | Always `Max5`. | | `tasks.result.items.rating.value` | number\|null | Average rating, 1 to 5. | | `tasks.result.items.rating.votes_count` | integer\|null | Number of reviews. | | `tasks.result.items.rating.rating_max` | null | Always null. | | `tasks.result.items.hotel_rating` | null | Not available. Always null. | | `tasks.result.items.price_level` | string\|null | Price level as shown on the profile, for example `$$`. | | `tasks.result.items.rating_distribution` | object\|null | Review counts by star, keys `1` to `5`. | | `tasks.result.items.people_also_search` | null | Not parsed yet. Always null. | | `tasks.result.items.work_time` | object\|null | Opening hours. | | `tasks.result.items.work_time.work_hours` | object | Opening hours by day. | | `tasks.result.items.work_time.work_hours.timetable` | object | One key per weekday. | | `tasks.result.items.work_time.work_hours.timetable.monday` | array<object>\|null | Opening spans on Monday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.monday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.monday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.monday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.monday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.monday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.monday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.tuesday` | array<object>\|null | Opening spans on Tuesday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.wednesday` | array<object>\|null | Opening spans on Wednesday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.thursday` | array<object>\|null | Opening spans on Thursday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.thursday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.thursday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.thursday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.thursday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.thursday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.thursday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.friday` | array<object>\|null | Opening spans on Friday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.friday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.friday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.friday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.friday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.friday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.friday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.saturday` | array<object>\|null | Opening spans on Saturday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.saturday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.saturday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.saturday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.saturday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.saturday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.saturday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.sunday` | array<object>\|null | Opening spans on Sunday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.sunday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.sunday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.sunday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.sunday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.sunday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.sunday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.current_status` | string\|null | `opened` or `close` at fetch time. one of `opened`, `close` | | `tasks.result.items.popular_times` | null | Not parsed yet. Always null. | | `tasks.result.items.local_business_links` | null | Not parsed yet. Always null. | | `tasks.result.items.contact_info` | array<object>\|null | Contact details. | | `tasks.result.items.contact_info.type` | string | Always `telephone`. | | `tasks.result.items.contact_info.value` | string | The phone number. | | `tasks.result.items.contact_info.source` | string | Always `google`. | | `tasks.result.items.check_url` | string\|null | A URL that opens the profile in a browser. | | `tasks.result.items.last_updated_time` | string\|null | When we read the profile, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items.first_seen` | null | Not available. Always null. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### google_business_info | Field | Type | Description | |---|---|---| | `type` | string | Always `google_business_info`. | | `title` | string | Business name. | | `original_title` | null | Not available. Always null. | | `description` | string\|null | The business description. | | `category` | string\|null | Main category. | | `category_ids` | null | Not in the place data. Always null. | | `additional_categories` | array<string>\|null | Other categories. | | `cid` | string\|null | Google customer id (CID), as a decimal string. | | `feature_id` | string | Google feature id, `0x…:0x…`. | | `address` | string\|null | Full address as shown. | | `address_info` | object\|null | The address in parts. | | `address_info.borough` | string\|null | Neighborhood or borough. | | `address_info.address` | string\|null | Street address. | | `address_info.city` | string\|null | City. | | `address_info.zip` | string\|null | Postal code. | | `address_info.region` | string\|null | State or region. | | `address_info.country_code` | string\|null | Two-letter country code. | | `place_id` | string\|null | Google place id. | | `phone` | string\|null | Phone number as shown. | | `url` | string\|null | The business's website. | | `contact_url` | null | Not available. Always null. | | `contributor_url` | null | Not available. Always null. | | `book_online_url` | null | Not available. Always null. | | `domain` | string\|null | Domain of the website. | | `logo` | null | Not available. Always null. | | `main_image` | string\|null | URL of the main photo. | | `total_photos` | integer\|null | Number of photos on the profile. | | `snippet` | string\|null | Short address line. | | `latitude` | number\|null | Latitude. | | `longitude` | number\|null | Longitude. | | `is_claimed` | boolean\|null | True when the owner has claimed the profile. | | `attributes` | null | Not parsed yet. Always null. | | `place_topics` | null | Not parsed yet. Always null. | | `rating` | object\|null | Star rating. | | `rating.rating_type` | string | Always `Max5`. | | `rating.value` | number\|null | Average rating, 1 to 5. | | `rating.votes_count` | integer\|null | Number of reviews. | | `rating.rating_max` | null | Always null. | | `hotel_rating` | null | Not available. Always null. | | `price_level` | string\|null | Price level as shown on the profile, for example `$$`. | | `rating_distribution` | object\|null | Review counts by star, keys `1` to `5`. | | `people_also_search` | null | Not parsed yet. Always null. | | `work_time` | object\|null | Opening hours. | | `work_time.work_hours` | object | Opening hours by day. | | `work_time.work_hours.timetable` | object | One key per weekday. | | `work_time.work_hours.timetable.monday` | array<object>\|null | Opening spans on Monday. Null when closed or unknown. | | `work_time.work_hours.timetable.monday.open` | object | Opening time. | | `work_time.work_hours.timetable.monday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.monday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.monday.close` | object | Closing time. | | `work_time.work_hours.timetable.monday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.monday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.tuesday` | array<object>\|null | Opening spans on Tuesday. Null when closed or unknown. | | `work_time.work_hours.timetable.tuesday.open` | object | Opening time. | | `work_time.work_hours.timetable.tuesday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.tuesday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.tuesday.close` | object | Closing time. | | `work_time.work_hours.timetable.tuesday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.tuesday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.wednesday` | array<object>\|null | Opening spans on Wednesday. Null when closed or unknown. | | `work_time.work_hours.timetable.wednesday.open` | object | Opening time. | | `work_time.work_hours.timetable.wednesday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.wednesday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.wednesday.close` | object | Closing time. | | `work_time.work_hours.timetable.wednesday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.wednesday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.thursday` | array<object>\|null | Opening spans on Thursday. Null when closed or unknown. | | `work_time.work_hours.timetable.thursday.open` | object | Opening time. | | `work_time.work_hours.timetable.thursday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.thursday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.thursday.close` | object | Closing time. | | `work_time.work_hours.timetable.thursday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.thursday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.friday` | array<object>\|null | Opening spans on Friday. Null when closed or unknown. | | `work_time.work_hours.timetable.friday.open` | object | Opening time. | | `work_time.work_hours.timetable.friday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.friday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.friday.close` | object | Closing time. | | `work_time.work_hours.timetable.friday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.friday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.saturday` | array<object>\|null | Opening spans on Saturday. Null when closed or unknown. | | `work_time.work_hours.timetable.saturday.open` | object | Opening time. | | `work_time.work_hours.timetable.saturday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.saturday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.saturday.close` | object | Closing time. | | `work_time.work_hours.timetable.saturday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.saturday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.sunday` | array<object>\|null | Opening spans on Sunday. Null when closed or unknown. | | `work_time.work_hours.timetable.sunday.open` | object | Opening time. | | `work_time.work_hours.timetable.sunday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.sunday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.sunday.close` | object | Closing time. | | `work_time.work_hours.timetable.sunday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.sunday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.current_status` | string\|null | `opened` or `close` at fetch time. one of `opened`, `close` | | `popular_times` | null | Not parsed yet. Always null. | | `local_business_links` | null | Not parsed yet. Always null. | | `contact_info` | array<object>\|null | Contact details. | | `contact_info.type` | string | Always `telephone`. | | `contact_info.value` | string | The phone number. | | `contact_info.source` | string | Always `google`. | | `check_url` | string\|null | A URL that opens the profile in a browser. | | `last_updated_time` | string\|null | When we read the profile, `YYYY-MM-DD HH:MM:SS +00:00`. | | `first_seen` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00135, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00135, "result_count": 1, "path": [ "v1", "business", "google", "my_business_info", "live" ], "data": { "keyword": "Summit Running Co. Boulder", "location_name": "Boulder,Colorado,United States", "language_code": "en" }, "result": [ { "keyword": "Summit Running Co. Boulder", "se_domain": "google.com", "location_code": null, "language_code": "en", "check_url": "https://www.google.com/search?tbm=map&authuser=0&hl=en&gl=us&q=Summit+Running+Co.+Boulder+Boulder%2CColorado%2CUnited+States&pb=%214m12%211m3%211d3000%212d0%213d0%212m3%211f0%212f0%213f0%213m2%211i1024%212i768%214f13.1%217i20%218i0", "datetime": "2026-12-03 10:42:18 +00:00", "fetched_at": "2026-12-03T10:42:18.000000+00:00", "items_count": 1, "items": [ { "type": "google_business_info", "title": "Summit Running Co.", "original_title": null, "description": "Running shoes, gait analysis and group runs since 2009.", "category": "Running store", "category_ids": null, "additional_categories": [ "Shoe store", "Sportswear store" ], "cid": "1234567890842202901", "feature_id": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315", "address": "120 Main St, Boulder, CO 80302", "address_info": { "borough": null, "address": "120 Main St", "city": "Boulder", "zip": "80302", "region": "Colorado", "country_code": "US" }, "place_id": "ChIJexample-summit-0001", "phone": "+1 303-555-0142", "url": "https://summitrunning.example/", "contact_url": null, "contributor_url": null, "book_online_url": null, "domain": "summitrunning.example", "logo": null, "main_image": "https://lh5.googleusercontent.com/p/AF1QipSummitStorefront", "total_photos": 214, "snippet": "120 Main St, Boulder, CO 80302", "latitude": 40.0176, "longitude": -105.2797, "is_claimed": true, "attributes": null, "place_topics": null, "rating": { "rating_type": "Max5", "value": 4.7, "votes_count": 318, "rating_max": null }, "hotel_rating": null, "price_level": "$$", "rating_distribution": { "1": 6, "2": 4, "3": 12, "4": 58, "5": 238 }, "people_also_search": null, "work_time": { "work_hours": { "timetable": { "sunday": null, "monday": [ { "open": { "hour": 10, "minute": 0 }, "close": { "hour": 19, "minute": 0 } } ], "tuesday": [ { "open": { "hour": 10, "minute": 0 }, "close": { "hour": 19, "minute": 0 } } ], "wednesday": null, "thursday": null, "friday": null, "saturday": [ { "open": { "hour": 9, "minute": 0 }, "close": { "hour": 18, "minute": 0 } } ] }, "current_status": "opened" } }, "popular_times": null, "local_business_links": null, "contact_info": [ { "type": "telephone", "value": "+1 303-555-0142", "source": "google" } ], "check_url": "https://www.google.com/search?tbm=map&authuser=0&hl=en&gl=us&q=Summit+Running+Co.+Boulder+Boulder%2CColorado%2CUnited+States&pb=%214m12%211m3%211d3000%212d0%213d0%212m3%211f0%212f0%213f0%213m2%211i1024%212i768%214f13.1%217i20%218i0", "last_updated_time": "2026-12-03 10:42:18 +00:00", "first_seen": null } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40102 | The page loaded but held no matching place. $0. | | 50000 | No allowed fetch level got the profile. $0. | | 40501 | `keyword` is missing or longer than 700 characters. | ## Migrating Replaces DataForSEO `/v3/business_data/google/my_business_info/live`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Business Profile: Task Post](https://dataforgaio.com/docs/api/business-google-my-business-info-task-post.md): Queue business profile lookups and collect them with tasks_ready and task_get. - [Google Business Profile: Tasks Ready](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-ready.md): List finished profile lookups you haven't collected yet. - [Google Business Profile: Tasks Fixed](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Business Profile: Task Get](https://dataforgaio.com/docs/api/business-google-my-business-info-task-get.md): Read one queued profile lookup. --- # Google Business Profile: Task Post > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/business/google/my_business_info/task_post` Queue business profile lookups and collect them with tasks_ready and task_get. Family: Business API · Mode: Task Post ## Price Unit: profile | Mode | Price (USD) | |---|---| | Standard queue | $0.00135 | | Priority queue | $0.00135 | | Fetch level | Price (USD) | |---|---| | standard | $0.00135 | | rendered | $0.00234 | | protected | $0.003 | Billed by the level that returned the profile. ## Description Post up to 100 tasks; each returns 20100 and a task id. The price is the same on both queues; `priority: 2` runs sooner. **Billing.** Billed per profile by the fetch level that returned it (see `by_level`). We try the Maps search data first and the place page second; a rendered fetch is used only when the plain fetch carried no place data and your `max_level` allows it. A request where no level gets the profile costs $0. Profiles are cached for 24 h; send `max_age: 0` for a fresh fetch. **Beta.** We read Google's place data with a parser written from public documentation that hasn't been checked against live responses yet. Field names and shapes are fixed; some values may be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 100 per request). | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The business to look up, up to 700 characters: its name and address (`Summit Running Co. Boulder`), `cid:<number>`, `place_id:<id>`, or a `0x…:0x…` feature id. max 700 | | `location_name` | string | no | A place to search in, added to a name search, for example `Boulder,Colorado,United States`. | | `location_code` | integer | no | Echoed in the result's `location_code`. It doesn't change the search: use `location_name` or `location_country_iso`. | | `location_country_iso` | string | no | Two-letter country to search in. `country_iso_code` is accepted too. default `us` | | `country_iso_code` | string | no | Same as `location_country_iso`. | | `language_code` | string | no | Result language, for example `en`. default `en` | | `language_name` | string | no | Language name, used when `language_code` isn't sent. English, Spanish, French, German, Italian, Portuguese, Dutch and Japanese are recognized; others fall back to English. | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Default window: 24 h. Leave it out to use it. min 0; max 86400 | | `priority` | integer | no | Queue for this task: `1` is the standard queue, `2` the priority queue (faster, priced higher). default `1`; one of `1`, `2` | | `tag` | string | no | Your own label for the task, up to 255 characters. Returned by tasks_ready. max 255 | | `pingback_url` | string | no | We send a GET to this http(s) URL when the task finishes. `$id` and `$tag` in the URL are replaced with the task id and tag. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_url` | string | no | We POST the finished task, in the task_get envelope, to this http(s) URL. Only public hosts are called and redirects aren't followed. max 2000 | | `postback_data` | string | no | Result format sent to `postback_url`. Defaults to `advanced` when `postback_url` is set. one of `regular`, `advanced`, `html` | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/business/google/my_business_info/task_post" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "keyword": "Summit Running Co. Boulder", "location_name": "Boulder,Colorado,United States", "language_code": "en", "tag": "store-audit" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | null | Always null for task_post. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20100, "status_message": "Task Created.", "time": "0.4210 sec.", "cost": 0, "result_count": 0, "path": [ "v1", "business", "google", "my_business_info", "task_post" ], "data": { "keyword": "Summit Running Co. Boulder", "location_name": "Boulder,Colorado,United States", "language_code": "en", "tag": "store-audit" }, "result": null, "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | ## Migrating Replaces DataForSEO `/v3/business_data/google/my_business_info/task_post`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md): A Google business profile: name, categories, address, phone, website, rating and review counts, hours, coordinates and Google ids. - [Google Business Profile: Tasks Ready](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-ready.md): List finished profile lookups you haven't collected yet. - [Google Business Profile: Tasks Fixed](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Business Profile: Task Get](https://dataforgaio.com/docs/api/business-google-my-business-info-task-get.md): Read one queued profile lookup. --- # Google Business Profile: Tasks Ready > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/business/google/my_business_info/tasks_ready` List finished profile lookups you haven't collected yet. Family: Business API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Up to 1,000 completed tasks from task_post that task_get hasn't returned yet, oldest first. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/business/google/my_business_info/tasks_ready" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "business", "google", "my_business_info", "tasks_ready" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "google", "se_type": "my_business_info", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/business/google/my_business_info/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/business/google/my_business_info/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/business_data/google/my_business_info/tasks_ready`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md): A Google business profile: name, categories, address, phone, website, rating and review counts, hours, coordinates and Google ids. - [Google Business Profile: Task Post](https://dataforgaio.com/docs/api/business-google-my-business-info-task-post.md): Queue business profile lookups and collect them with tasks_ready and task_get. - [Google Business Profile: Tasks Fixed](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. - [Google Business Profile: Task Get](https://dataforgaio.com/docs/api/business-google-my-business-info-task-get.md): Read one queued profile lookup. --- # Google Business Profile: Tasks Fixed > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/business/google/my_business_info/tasks_fixed` Same list as tasks_ready, kept for clients that call tasks_fixed. Family: Business API · Mode: Tasks Ready ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Up to 1,000 completed tasks from task_post that task_get hasn't returned yet, oldest first. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/business/google/my_business_info/tasks_fixed" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry per task ready to collect. | | `tasks.result.id` | string | Task id. Pass it to task_get. | | `tasks.result.se` | string\|null | Engine segment of the task's path, for example `google`. | | `tasks.result.se_type` | string\|null | Type segment of the task's path, for example `organic`. | | `tasks.result.date_posted` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.tag` | string\|null | The `tag` you sent with the task. | | `tasks.result.endpoint_regular` | string\|null | task_get path for the regular format, or null when this route doesn't serve it. | | `tasks.result.endpoint_advanced` | string\|null | task_get path for the advanced format, or null when this route doesn't serve it. | | `tasks.result.endpoint_html` | string\|null | task_get path for raw HTML. Null while HTML output isn't served. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "business", "google", "my_business_info", "tasks_fixed" ], "data": {}, "result": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "se": "google", "se_type": "my_business_info", "date_posted": "2026-12-03 10:42:18 +00:00", "tag": "weekly-rank-check", "endpoint_regular": "/v1/business/google/my_business_info/task_get/regular/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_advanced": "/v1/business/google/my_business_info/task_get/advanced/744695e7-dd8a-5016-bb2b-2d314ea9ef81", "endpoint_html": null } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | ## Migrating Replaces DataForSEO `/v3/business_data/google/my_business_info/tasks_fixed`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md): A Google business profile: name, categories, address, phone, website, rating and review counts, hours, coordinates and Google ids. - [Google Business Profile: Task Post](https://dataforgaio.com/docs/api/business-google-my-business-info-task-post.md): Queue business profile lookups and collect them with tasks_ready and task_get. - [Google Business Profile: Tasks Ready](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-ready.md): List finished profile lookups you haven't collected yet. - [Google Business Profile: Task Get](https://dataforgaio.com/docs/api/business-google-my-business-info-task-get.md): Read one queued profile lookup. --- # Google Business Profile: Task Get > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/business/google/my_business_info/task_get/{id}` Read one queued profile lookup. Family: Business API · Mode: Task Get ## Price Unit: request Free. A queued task is billed once, when it returns data, at the price of the queue you posted it to. ## Description Pass the task id from task_post or tasks_ready. Returns 40602 while the task is queued and 40601 while it runs. `task_get/{format}/{id}` is accepted too. Free: the task was billed when it returned data. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id returned by task_post. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/business/google/my_business_info/task_get/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | The data for this task. Null when the task returned an error. | | `tasks.result.keyword` | string | The keyword you sent, trimmed. | | `tasks.result.se_domain` | string | Always `google.com`. | | `tasks.result.location_code` | integer\|null | The `location_code` you sent. | | `tasks.result.language_code` | string | Language the profile was read in. | | `tasks.result.check_url` | string | The URL the profile was read from. | | `tasks.result.datetime` | string | When the profile was fetched, `YYYY-MM-DD HH:MM:SS +00:00`. For a cache hit, the original fetch time. | | `tasks.result.fetched_at` | string | When the profile was fetched, ISO 8601. | | `tasks.result.items_count` | integer | Always 1. | | `tasks.result.items` | array<object> | The profile. | | `tasks.result.items.type` | string | Always `google_business_info`. | | `tasks.result.items.title` | string | Business name. | | `tasks.result.items.original_title` | null | Not available. Always null. | | `tasks.result.items.description` | string\|null | The business description. | | `tasks.result.items.category` | string\|null | Main category. | | `tasks.result.items.category_ids` | null | Not in the place data. Always null. | | `tasks.result.items.additional_categories` | array<string>\|null | Other categories. | | `tasks.result.items.cid` | string\|null | Google customer id (CID), as a decimal string. | | `tasks.result.items.feature_id` | string | Google feature id, `0x…:0x…`. | | `tasks.result.items.address` | string\|null | Full address as shown. | | `tasks.result.items.address_info` | object\|null | The address in parts. | | `tasks.result.items.address_info.borough` | string\|null | Neighborhood or borough. | | `tasks.result.items.address_info.address` | string\|null | Street address. | | `tasks.result.items.address_info.city` | string\|null | City. | | `tasks.result.items.address_info.zip` | string\|null | Postal code. | | `tasks.result.items.address_info.region` | string\|null | State or region. | | `tasks.result.items.address_info.country_code` | string\|null | Two-letter country code. | | `tasks.result.items.place_id` | string\|null | Google place id. | | `tasks.result.items.phone` | string\|null | Phone number as shown. | | `tasks.result.items.url` | string\|null | The business's website. | | `tasks.result.items.contact_url` | null | Not available. Always null. | | `tasks.result.items.contributor_url` | null | Not available. Always null. | | `tasks.result.items.book_online_url` | null | Not available. Always null. | | `tasks.result.items.domain` | string\|null | Domain of the website. | | `tasks.result.items.logo` | null | Not available. Always null. | | `tasks.result.items.main_image` | string\|null | URL of the main photo. | | `tasks.result.items.total_photos` | integer\|null | Number of photos on the profile. | | `tasks.result.items.snippet` | string\|null | Short address line. | | `tasks.result.items.latitude` | number\|null | Latitude. | | `tasks.result.items.longitude` | number\|null | Longitude. | | `tasks.result.items.is_claimed` | boolean\|null | True when the owner has claimed the profile. | | `tasks.result.items.attributes` | null | Not parsed yet. Always null. | | `tasks.result.items.place_topics` | null | Not parsed yet. Always null. | | `tasks.result.items.rating` | object\|null | Star rating. | | `tasks.result.items.rating.rating_type` | string | Always `Max5`. | | `tasks.result.items.rating.value` | number\|null | Average rating, 1 to 5. | | `tasks.result.items.rating.votes_count` | integer\|null | Number of reviews. | | `tasks.result.items.rating.rating_max` | null | Always null. | | `tasks.result.items.hotel_rating` | null | Not available. Always null. | | `tasks.result.items.price_level` | string\|null | Price level as shown on the profile, for example `$$`. | | `tasks.result.items.rating_distribution` | object\|null | Review counts by star, keys `1` to `5`. | | `tasks.result.items.people_also_search` | null | Not parsed yet. Always null. | | `tasks.result.items.work_time` | object\|null | Opening hours. | | `tasks.result.items.work_time.work_hours` | object | Opening hours by day. | | `tasks.result.items.work_time.work_hours.timetable` | object | One key per weekday. | | `tasks.result.items.work_time.work_hours.timetable.monday` | array<object>\|null | Opening spans on Monday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.monday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.monday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.monday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.monday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.monday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.monday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.tuesday` | array<object>\|null | Opening spans on Tuesday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.tuesday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.wednesday` | array<object>\|null | Opening spans on Wednesday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.wednesday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.thursday` | array<object>\|null | Opening spans on Thursday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.thursday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.thursday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.thursday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.thursday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.thursday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.thursday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.friday` | array<object>\|null | Opening spans on Friday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.friday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.friday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.friday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.friday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.friday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.friday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.saturday` | array<object>\|null | Opening spans on Saturday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.saturday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.saturday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.saturday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.saturday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.saturday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.saturday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.sunday` | array<object>\|null | Opening spans on Sunday. Null when closed or unknown. | | `tasks.result.items.work_time.work_hours.timetable.sunday.open` | object | Opening time. | | `tasks.result.items.work_time.work_hours.timetable.sunday.open.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.sunday.open.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.timetable.sunday.close` | object | Closing time. | | `tasks.result.items.work_time.work_hours.timetable.sunday.close.hour` | integer | Hour, 0 to 23. | | `tasks.result.items.work_time.work_hours.timetable.sunday.close.minute` | integer | Minute, 0 to 59. | | `tasks.result.items.work_time.work_hours.current_status` | string\|null | `opened` or `close` at fetch time. one of `opened`, `close` | | `tasks.result.items.popular_times` | null | Not parsed yet. Always null. | | `tasks.result.items.local_business_links` | null | Not parsed yet. Always null. | | `tasks.result.items.contact_info` | array<object>\|null | Contact details. | | `tasks.result.items.contact_info.type` | string | Always `telephone`. | | `tasks.result.items.contact_info.value` | string | The phone number. | | `tasks.result.items.contact_info.source` | string | Always `google`. | | `tasks.result.items.check_url` | string\|null | A URL that opens the profile in a browser. | | `tasks.result.items.last_updated_time` | string\|null | When we read the profile, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.result.items.first_seen` | null | Not available. Always null. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Item types #### google_business_info | Field | Type | Description | |---|---|---| | `type` | string | Always `google_business_info`. | | `title` | string | Business name. | | `original_title` | null | Not available. Always null. | | `description` | string\|null | The business description. | | `category` | string\|null | Main category. | | `category_ids` | null | Not in the place data. Always null. | | `additional_categories` | array<string>\|null | Other categories. | | `cid` | string\|null | Google customer id (CID), as a decimal string. | | `feature_id` | string | Google feature id, `0x…:0x…`. | | `address` | string\|null | Full address as shown. | | `address_info` | object\|null | The address in parts. | | `address_info.borough` | string\|null | Neighborhood or borough. | | `address_info.address` | string\|null | Street address. | | `address_info.city` | string\|null | City. | | `address_info.zip` | string\|null | Postal code. | | `address_info.region` | string\|null | State or region. | | `address_info.country_code` | string\|null | Two-letter country code. | | `place_id` | string\|null | Google place id. | | `phone` | string\|null | Phone number as shown. | | `url` | string\|null | The business's website. | | `contact_url` | null | Not available. Always null. | | `contributor_url` | null | Not available. Always null. | | `book_online_url` | null | Not available. Always null. | | `domain` | string\|null | Domain of the website. | | `logo` | null | Not available. Always null. | | `main_image` | string\|null | URL of the main photo. | | `total_photos` | integer\|null | Number of photos on the profile. | | `snippet` | string\|null | Short address line. | | `latitude` | number\|null | Latitude. | | `longitude` | number\|null | Longitude. | | `is_claimed` | boolean\|null | True when the owner has claimed the profile. | | `attributes` | null | Not parsed yet. Always null. | | `place_topics` | null | Not parsed yet. Always null. | | `rating` | object\|null | Star rating. | | `rating.rating_type` | string | Always `Max5`. | | `rating.value` | number\|null | Average rating, 1 to 5. | | `rating.votes_count` | integer\|null | Number of reviews. | | `rating.rating_max` | null | Always null. | | `hotel_rating` | null | Not available. Always null. | | `price_level` | string\|null | Price level as shown on the profile, for example `$$`. | | `rating_distribution` | object\|null | Review counts by star, keys `1` to `5`. | | `people_also_search` | null | Not parsed yet. Always null. | | `work_time` | object\|null | Opening hours. | | `work_time.work_hours` | object | Opening hours by day. | | `work_time.work_hours.timetable` | object | One key per weekday. | | `work_time.work_hours.timetable.monday` | array<object>\|null | Opening spans on Monday. Null when closed or unknown. | | `work_time.work_hours.timetable.monday.open` | object | Opening time. | | `work_time.work_hours.timetable.monday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.monday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.monday.close` | object | Closing time. | | `work_time.work_hours.timetable.monday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.monday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.tuesday` | array<object>\|null | Opening spans on Tuesday. Null when closed or unknown. | | `work_time.work_hours.timetable.tuesday.open` | object | Opening time. | | `work_time.work_hours.timetable.tuesday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.tuesday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.tuesday.close` | object | Closing time. | | `work_time.work_hours.timetable.tuesday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.tuesday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.wednesday` | array<object>\|null | Opening spans on Wednesday. Null when closed or unknown. | | `work_time.work_hours.timetable.wednesday.open` | object | Opening time. | | `work_time.work_hours.timetable.wednesday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.wednesday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.wednesday.close` | object | Closing time. | | `work_time.work_hours.timetable.wednesday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.wednesday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.thursday` | array<object>\|null | Opening spans on Thursday. Null when closed or unknown. | | `work_time.work_hours.timetable.thursday.open` | object | Opening time. | | `work_time.work_hours.timetable.thursday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.thursday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.thursday.close` | object | Closing time. | | `work_time.work_hours.timetable.thursday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.thursday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.friday` | array<object>\|null | Opening spans on Friday. Null when closed or unknown. | | `work_time.work_hours.timetable.friday.open` | object | Opening time. | | `work_time.work_hours.timetable.friday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.friday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.friday.close` | object | Closing time. | | `work_time.work_hours.timetable.friday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.friday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.saturday` | array<object>\|null | Opening spans on Saturday. Null when closed or unknown. | | `work_time.work_hours.timetable.saturday.open` | object | Opening time. | | `work_time.work_hours.timetable.saturday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.saturday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.saturday.close` | object | Closing time. | | `work_time.work_hours.timetable.saturday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.saturday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.sunday` | array<object>\|null | Opening spans on Sunday. Null when closed or unknown. | | `work_time.work_hours.timetable.sunday.open` | object | Opening time. | | `work_time.work_hours.timetable.sunday.open.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.sunday.open.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.timetable.sunday.close` | object | Closing time. | | `work_time.work_hours.timetable.sunday.close.hour` | integer | Hour, 0 to 23. | | `work_time.work_hours.timetable.sunday.close.minute` | integer | Minute, 0 to 59. | | `work_time.work_hours.current_status` | string\|null | `opened` or `close` at fetch time. one of `opened`, `close` | | `popular_times` | null | Not parsed yet. Always null. | | `local_business_links` | null | Not parsed yet. Always null. | | `contact_info` | array<object>\|null | Contact details. | | `contact_info.type` | string | Always `telephone`. | | `contact_info.value` | string | The phone number. | | `contact_info.source` | string | Always `google`. | | `check_url` | string\|null | A URL that opens the profile in a browser. | | `last_updated_time` | string\|null | When we read the profile, `YYYY-MM-DD HH:MM:SS +00:00`. | | `first_seen` | null | Not available. Always null. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00135, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0.00135, "result_count": 1, "path": [ "v1", "business", "google", "my_business_info", "task_get" ], "data": { "keyword": "Summit Running Co. Boulder", "location_name": "Boulder,Colorado,United States", "language_code": "en" }, "result": [ { "keyword": "Summit Running Co. Boulder", "se_domain": "google.com", "location_code": null, "language_code": "en", "check_url": "https://www.google.com/search?tbm=map&authuser=0&hl=en&gl=us&q=Summit+Running+Co.+Boulder+Boulder%2CColorado%2CUnited+States&pb=%214m12%211m3%211d3000%212d0%213d0%212m3%211f0%212f0%213f0%213m2%211i1024%212i768%214f13.1%217i20%218i0", "datetime": "2026-12-03 10:42:18 +00:00", "fetched_at": "2026-12-03T10:42:18.000000+00:00", "items_count": 1, "items": [ { "type": "google_business_info", "title": "Summit Running Co.", "original_title": null, "description": "Running shoes, gait analysis and group runs since 2009.", "category": "Running store", "category_ids": null, "additional_categories": [ "Shoe store", "Sportswear store" ], "cid": "1234567890842202901", "feature_id": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315", "address": "120 Main St, Boulder, CO 80302", "address_info": { "borough": null, "address": "120 Main St", "city": "Boulder", "zip": "80302", "region": "Colorado", "country_code": "US" }, "place_id": "ChIJexample-summit-0001", "phone": "+1 303-555-0142", "url": "https://summitrunning.example/", "contact_url": null, "contributor_url": null, "book_online_url": null, "domain": "summitrunning.example", "logo": null, "main_image": "https://lh5.googleusercontent.com/p/AF1QipSummitStorefront", "total_photos": 214, "snippet": "120 Main St, Boulder, CO 80302", "latitude": 40.0176, "longitude": -105.2797, "is_claimed": true, "attributes": null, "place_topics": null, "rating": { "rating_type": "Max5", "value": 4.7, "votes_count": 318, "rating_max": null }, "hotel_rating": null, "price_level": "$$", "rating_distribution": { "1": 6, "2": 4, "3": 12, "4": 58, "5": 238 }, "people_also_search": null, "work_time": { "work_hours": { "timetable": { "sunday": null, "monday": [ { "open": { "hour": 10, "minute": 0 }, "close": { "hour": 19, "minute": 0 } } ], "tuesday": [ { "open": { "hour": 10, "minute": 0 }, "close": { "hour": 19, "minute": 0 } } ], "wednesday": null, "thursday": null, "friday": null, "saturday": [ { "open": { "hour": 9, "minute": 0 }, "close": { "hour": 18, "minute": 0 } } ] }, "current_status": "opened" } }, "popular_times": null, "local_business_links": null, "contact_info": [ { "type": "telephone", "value": "+1 303-555-0142", "source": "google" } ], "check_url": "https://www.google.com/search?tbm=map&authuser=0&hl=en&gl=us&q=Summit+Running+Co.+Boulder+Boulder%2CColorado%2CUnited+States&pb=%214m12%211m3%211d3000%212d0%213d0%212m3%211f0%212f0%213f0%213m2%211i1024%212i768%214f13.1%217i20%218i0", "last_updated_time": "2026-12-03 10:42:18 +00:00", "first_seen": null } ] } ], "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No task with this id in your organization. | | 40602 | The task is still queued. | | 40601 | The task is running. | ## Migrating Replaces DataForSEO `/v3/business_data/google/my_business_info/task_get`. Same request body and response envelope; change the base URL and the key. ## Related - [Google Business Profile: Live](https://dataforgaio.com/docs/api/business-google-my-business-info-live.md): A Google business profile: name, categories, address, phone, website, rating and review counts, hours, coordinates and Google ids. - [Google Business Profile: Task Post](https://dataforgaio.com/docs/api/business-google-my-business-info-task-post.md): Queue business profile lookups and collect them with tasks_ready and task_get. - [Google Business Profile: Tasks Ready](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-ready.md): List finished profile lookups you haven't collected yet. - [Google Business Profile: Tasks Fixed](https://dataforgaio.com/docs/api/business-google-my-business-info-tasks-fixed.md): Same list as tasks_ready, kept for clients that call tasks_fixed. --- # Google Business Products > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/business/google/products` The products a Google business profile lists, with name, price, image and link, in the Scale SERP `place_products` request and response shape. Family: Business API · Mode: Live ## Price Unit: place | Mode | Price (USD) | |---|---| | Live | $0.0015 | Flat per place; not priced by fetch level. ## Description Send the place's CID as `data_cid` (or its feature id as `data_id`) in the query string. A JSON body with the same fields is accepted on POST. **Billing.** One flat price per place that returned products, whatever fetch level was needed. A place with no products returns an empty list at $0, and so does a page no level could fetch. Results are cached for 24 h. **Beta.** We read Google's place data with a parser written from public documentation that hasn't been checked against live responses yet. Field names and shapes are fixed; some values may be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send the fields as query parameters. | Field | Type | Required | Description | |---|---|---|---| | `data_cid` | string | yes | The place's decimal CID. Required unless you send `data_id`. | | `data_id` | string | no | The place's `0x…:0x…` feature id, used when `data_cid` isn't sent. | | `hl` | string | no | Language of the product page. default `en` | | `search_type` | string | no | Accepted for clients that always send it. Only `place_products` is served. one of `place_products` | | `api_key` | string | no | Your `dg_` key as a query parameter. A Basic or Bearer header works too; prefer the header so the key stays out of URLs and logs. | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Default window: 24 h. Leave it out to use it. min 0; max 86400 | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/business/google/products" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `request_info` | object | Outcome and billing for this request. | | `request_info.success` | boolean | True when the request returned data. | | `request_info.credits_used` | integer | 1 when the request returned data, else 0. | | `request_info.cost` | number | What this request was charged, in USD. | | `request_info.receipt_id` | string\|null | Id of the ledger receipt for this request. | | `request_info.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `request_info.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `request_info.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `request_info.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | | `request_info.message` | string | What went wrong. Present only on errors. | | `search_parameters` | object | The search as we ran it. | | `search_parameters.search_type` | string | Always `place_products`. | | `search_parameters.data_cid` | string | The place's CID. | | `search_parameters.hl` | string | Language. | | `search_parameters.engine` | string | Always `google`. | | `search_metadata` | object | Timing for this request. | | `search_metadata.created_at` | string | When the request was received, ISO 8601. | | `search_metadata.processed_at` | string | When the response was built, ISO 8601. | | `search_metadata.fetched_at` | string | When the product page was fetched (the original time for a cache hit). | | `search_metadata.engine_url` | string | The page the products were read from. | | `search_information` | object | Summary. | | `search_information.original_query_yields_zero_results` | boolean | True when the place lists no products. | | `place_products_results` | array<object> | The products the place lists. | | `place_products_results.position` | integer | Position in the list, starting at 1. | | `place_products_results.name` | string | Product name. | | `place_products_results.link` | string | Link to the product on Google. | | `place_products_results.image` | string\|null | Product image URL. | | `place_products_results.price` | string | Price as shown, for example `$139.00`. Present only when the product shows one. | ### Example response ```json { "request_info": { "success": true, "credits_used": 1, "cost": 0.0015, "receipt_id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false }, "search_parameters": { "search_type": "place_products", "data_cid": "1234567890842202901", "hl": "en", "engine": "google" }, "search_metadata": { "created_at": "2026-12-03T10:42:18.000000+00:00", "processed_at": "2026-12-03T10:42:18.000000+00:00", "fetched_at": "2026-12-03T10:42:18.000000+00:00", "engine_url": "https://www.google.com/local/place/products/catalog?hl=en&ludocid=1234567890842202901" }, "search_information": { "original_query_yields_zero_results": false }, "place_products_results": [ { "name": "Ridge Runner 4 trail shoe", "link": "https://www.google.com/local/place/products/product?ludocid=1&entry_id=p1&hl=en", "image": "https://lh3.googleusercontent.com/summit-ridge", "position": 1, "price": "$139.00" }, { "name": "Merino running socks", "link": "https://www.google.com/local/place/products/product?ludocid=1&entry_id=p2&hl=en", "image": "https://lh3.googleusercontent.com/summit-socks", "position": 2, "price": "$22.00" } ] } ``` ## Errors | Code | When | |---|---| | 400 | `data_cid` is missing or not a number, or a control field is invalid. `request_info.success` is false and `request_info.message` says why. | | 401 | No valid API key. | | 402 | Wallet balance below this request's price. | | 429 | Too many requests. | | 500 | No allowed fetch level got the product page. $0. | ## Migrating Replaces Scale SERP `/search?search_type=place_products`. Same request body and response envelope; change the base URL and the key. --- # Google Business Photos > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `GET /v1/business/google/photos` Photo URLs for a place, filterable to owner uploads with `tag=by_owner`, in the Outscraper photos request and response shape. Family: Business API · Mode: Live ## Price Unit: image | Mode | Price (USD) | |---|---| | Live | $0.0009 | Per photo returned; not priced by fetch level. ## Description Send the place in `query`. For several places, repeat `query` in the URL, separate them with newlines, or POST a JSON body with `query` as an array. A query that matches no place returns HTTP 200 with an empty list for that query in `data`, at $0 (Outscraper's convention). Bad input is HTTP 400. **Billing.** Per photo returned. A place with no photos for the tag, or no place found, costs $0. Results are cached for 24 h. **Beta.** We read Google's place data with a parser written from public documentation that hasn't been checked against live responses yet. Field names and shapes are fixed; some values may be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send the fields as query parameters. | Field | Type | Required | Description | |---|---|---|---| | `query` | string\|array<string> | yes | The place: name and address, place id, `0x…:0x…` feature id, or CID. Send up to 25 places by repeating `query` (`?query=a&query=b`), separating them with newlines, or as a JSON array (POST). max 25 | | `photosLimit` | integer | no | Most photos to return per place. `photos_limit` and `limit` are accepted too. default `100`; min 1; max 1000 | | `photos_limit` | integer | no | Same as `photosLimit`. | | `limit` | integer | no | Same as `photosLimit`. | | `tag` | string | no | Which photos: `all`, `latest`, `menu`, `by_owner` (owner uploads) or `videos`. default `all`; one of `all`, `latest`, `menu`, `by_owner`, `videos` | | `language` | string | no | Language. default `en` | | `region` | string | no | Two-letter country the place is in. default `us` | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Photos stop at the number this amount pays for. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Default window: 24 h. Leave it out to use it. min 0; max 86400 | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/business/google/photos" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `id` | string | Request id. | | `status` | string | `Success`. | | `receipt_id` | string\|null | Id of the ledger receipt for this request. | | `cost` | number | What this request was charged, in USD. | | `fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `cache_hit` | boolean | True when every place came from the shared result cache. | | `data` | array<array<object>> | One list per query, in the order sent, holding the place; an empty list when no place matched that query. | | `data.query` | string | The query this place answers. | | `data.name` | string\|null | Place name. | | `data.place_id` | string\|null | Google place id. | | `data.google_id` | string\|null | Google feature id, `0x…:0x…`. | | `data.full_address` | string\|null | Full address. | | `data.photos_data` | array<object> | The photos. | | `data.photos_data.photo_id` | string | Photo id. | | `data.photos_data.photo_url` | string | Photo URL sized to 1024×768. | | `data.photos_data.photo_url_big` | string | Photo URL sized to 2048×1536. | | `data.photos_data.original_photo_url` | string | Photo URL at its original size. | | `data.photos_data.latitude` | null | Not available. Always null. | | `data.photos_data.longitude` | null | Not available. Always null. | | `data.photos_data.photo_date` | null | Not available yet. Always null. | | `data.photos_data.photo_upload_source` | string\|null | `owner` for `tag: by_owner`; null otherwise. | | `data.photos_data.photo_source_video` | null | Not available. Always null. | | `data.photos_data.photo_tags` | array<string> | The tag you asked for; empty for `all`. | ### Example response ```json { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status": "Success", "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "cost": 0.0018, "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false, "data": [ [ { "query": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315", "name": "Summit Running Co.", "place_id": "ChIJexample-summit-0001", "google_id": "0x876bec0d1a2b3c4d:0x112210f4a8c0b315", "full_address": "120 Main St, Boulder, CO 80302", "photos_data": [ { "photo_id": "AF1QipSummitStorefront", "photo_url": "https://lh5.googleusercontent.com/p/AF1QipSummitStorefront=w1024-h768-k-no", "photo_url_big": "https://lh5.googleusercontent.com/p/AF1QipSummitStorefront=w2048-h1536-k-no", "original_photo_url": "https://lh5.googleusercontent.com/p/AF1QipSummitStorefront=s0", "latitude": null, "longitude": null, "photo_date": null, "photo_upload_source": null, "photo_source_video": null, "photo_tags": [] }, { "photo_id": "AF1QipSummitShoeWall", "photo_url": "https://lh5.googleusercontent.com/p/AF1QipSummitShoeWall=w1024-h768-k-no", "photo_url_big": "https://lh5.googleusercontent.com/p/AF1QipSummitShoeWall=w2048-h1536-k-no", "original_photo_url": "https://lh5.googleusercontent.com/p/AF1QipSummitShoeWall=s0", "latitude": null, "longitude": null, "photo_date": null, "photo_upload_source": null, "photo_source_video": null, "photo_tags": [] } ] } ] ] } ``` ## Errors | Code | When | |---|---| | 400 | `query` missing, more than 25 places, an unknown `tag`, a `photosLimit` below 1, or `max_cost` below the price of one photo. Body: `{"status": "Error", "error": true, "errorMessage": ...}`. | | 401 | No valid API key. | | 402 | Wallet balance below the worst case for this request. | | 429 | Too many requests. | ## Migrating Replaces Outscraper `Google Maps Photos (query, photosLimit, tag)`. Same request body and response envelope; change the base URL and the key. --- # Meta Ad Library > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/ads/meta` Ads from the Meta ad library by keyword, page or URL: page, dates, platforms, creative, and spend and impressions where disclosed, as Apify-style dataset items. Family: Ads API · Mode: Live ## Price Unit: ad | Mode | Price (USD) | |---|---| | Live | $0.00018 | Per ad returned. ## Description POST the input as one JSON object. Each URL and each search term is a source; ads are collected source by source until `resultsLimit` is reached. Only the first page of library results is read for each source. The response body is a JSON array of items, with no wrapper. Every item carries `receipt_id`, and the same id is in the `X-Receipt-Id` response header. **Billing.** Per ad returned, whatever fetch level was needed. An input that finds no ads costs $0. Results are cached for 6 h. **Beta.** The parser behind this route was written from public documentation and hasn't been checked against live pages yet. Item field names are fixed; some values may be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON object. | Field | Type | Required | Description | |---|---|---|---| | `startUrls` | array<object\|string> | no | Ad library URLs (a keyword search with `q`, `country`, `ad_type` and `active_status`, a page's ads with `view_all_page_id`, or one ad with `id`), or a Facebook page URL, which is searched by the page's name. Each entry is `{"url": ...}` or a plain string. `urls` is accepted too. Send this, `searchTerms`, or both. | | `startUrls.url` | string | yes | The URL. | | `urls` | array<object\|string> | no | Same as `startUrls`. | | `searchTerms` | array<string>\|string | no | Keyword searches, one source each. `searchTerm` and `search_terms` are accepted too. | | `searchTerm` | string | no | Same as `searchTerms`, for a single keyword. | | `search_terms` | array<string>\|string | no | Same as `searchTerms`. | | `country` | string | no | Two-letter country the ads were shown in, or `ALL`. `countryCode` is accepted too. A country in an ad library URL wins for that URL. default `ALL` | | `countryCode` | string | no | Same as `country`. | | `adType` | string | no | `ALL`, or `POLITICAL_AND_ISSUE_ADS` for ads about social issues, elections or politics. `ad_type` is accepted too. default `ALL`; one of `ALL`, `POLITICAL_AND_ISSUE_ADS` | | `activeStatus` | string | no | Which ads: running now, stopped, or both. Unknown values fall back to `all`. default `all`; one of `active`, `inactive`, `all` | | `resultsLimit` | integer | no | Most ads to return across all sources. `count` and `maxItems` are accepted too. default `100`; min 1; max 5000 | | `count` | integer | no | Same as `resultsLimit`. | | `maxItems` | integer | no | Same as `resultsLimit`. | | `limitPerSource` | integer | no | Most ads from any one URL or search term. min 1; max 5000 | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Ads stop at the number this amount pays for. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Default window: 6 h. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ads/meta" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "searchTerms": [ "trail running shoes" ], "country": "US", "activeStatus": "active", "resultsLimit": 2 }' ``` ## Response | Field | Type | Description | |---|---|---| | `inputUrl` | string\|null | The URL or search this ad came from. | | `adArchiveID` | string | The ad's library id. | | `adArchiveId` | string | Same as `adArchiveID`, for clients that use this spelling. | | `adId` | string\|null | The ad id, when shown. | | `pageID` | string | Id of the page that ran the ad. | | `pageId` | string | Same as `pageID`. | | `pageName` | string\|null | Name of the page that ran the ad. | | `isActive` | boolean | True while the ad is running. | | `startDate` | integer\|null | When the ad started, Unix seconds. | | `endDate` | integer\|null | When the ad stopped, Unix seconds. Null while running. | | `startDateFormatted` | string\|null | `startDate` as ISO 8601. | | `endDateFormatted` | string\|null | `endDate` as ISO 8601. | | `publisherPlatform` | array<string> | Where it ran, for example `FACEBOOK`, `INSTAGRAM`. | | `collationCount` | integer\|null | Number of near-identical ads grouped with this one. | | `collationId` | string\|null | Id of that group. | | `categories` | array<string> | Ad categories, for example `POLITICAL`. | | `currency` | string | Currency of `spend`. Empty when not disclosed. | | `spend` | object\|string\|null | Amount spent, disclosed for political and issue ads. | | `impressionsWithIndex` | object | Impressions, disclosed for political and issue ads. | | `impressionsWithIndex.impressionsText` | string\|null | Impression range as shown. | | `impressionsWithIndex.impressionsIndex` | integer | Impression bucket, `-1` when not disclosed. | | `impressionsWithIndex.range` | object\|null | Impression range `{lower_bound, upper_bound}`. Present for ads read from the library's data interface. | | `reachEstimate` | integer\|object\|null | Estimated reach, when disclosed. | | `targetedOrReachedCountries` | array<string> | Countries the ad targeted or reached. | | `snapshot` | object | The ad's creative: page name, body text, title, link, call to action, images, videos and cards. Keys are camelCase; which keys are present depends on where the ad was read. | | `url` | string\|null | Link to the ad in the ad library. | | `receipt_id` | string\|null | Id of the ledger receipt for this request. Same on every item. | ### Item types #### ad | Field | Type | Description | |---|---|---| | `inputUrl` | string\|null | The URL or search this ad came from. | | `adArchiveID` | string | The ad's library id. | | `adArchiveId` | string | Same as `adArchiveID`, for clients that use this spelling. | | `adId` | string\|null | The ad id, when shown. | | `pageID` | string | Id of the page that ran the ad. | | `pageId` | string | Same as `pageID`. | | `pageName` | string\|null | Name of the page that ran the ad. | | `isActive` | boolean | True while the ad is running. | | `startDate` | integer\|null | When the ad started, Unix seconds. | | `endDate` | integer\|null | When the ad stopped, Unix seconds. Null while running. | | `startDateFormatted` | string\|null | `startDate` as ISO 8601. | | `endDateFormatted` | string\|null | `endDate` as ISO 8601. | | `publisherPlatform` | array<string> | Where it ran, for example `FACEBOOK`, `INSTAGRAM`. | | `collationCount` | integer\|null | Number of near-identical ads grouped with this one. | | `collationId` | string\|null | Id of that group. | | `categories` | array<string> | Ad categories, for example `POLITICAL`. | | `currency` | string | Currency of `spend`. Empty when not disclosed. | | `spend` | object\|string\|null | Amount spent, disclosed for political and issue ads. | | `impressionsWithIndex` | object | Impressions, disclosed for political and issue ads. | | `impressionsWithIndex.impressionsText` | string\|null | Impression range as shown. | | `impressionsWithIndex.impressionsIndex` | integer | Impression bucket, `-1` when not disclosed. | | `impressionsWithIndex.range` | object\|null | Impression range `{lower_bound, upper_bound}`. Present for ads read from the library's data interface. | | `reachEstimate` | integer\|object\|null | Estimated reach, when disclosed. | | `targetedOrReachedCountries` | array<string> | Countries the ad targeted or reached. | | `snapshot` | object | The ad's creative: page name, body text, title, link, call to action, images, videos and cards. Keys are camelCase; which keys are present depends on where the ad was read. | | `url` | string\|null | Link to the ad in the ad library. | | `receipt_id` | string\|null | Id of the ledger receipt for this request. Same on every item. | ### Example response ```json [ { "inputUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=trail+running+shoes&search_type=keyword_unordered", "adArchiveID": "1229350099285014", "adArchiveId": "1229350099285014", "adId": null, "pageID": "100200300400", "pageId": "100200300400", "pageName": "Summit Running Co.", "isActive": true, "startDate": 1764547200, "endDate": null, "startDateFormatted": "2025-12-01T00:00:00.000Z", "endDateFormatted": null, "publisherPlatform": [ "FACEBOOK", "INSTAGRAM" ], "collationCount": 2, "collationId": "889900112233", "categories": [ "UNKNOWN" ], "currency": "", "spend": null, "impressionsWithIndex": { "impressionsText": null, "impressionsIndex": -1 }, "reachEstimate": null, "targetedOrReachedCountries": [], "snapshot": { "pageName": "Summit Running Co.", "body": { "text": "New trail shoes for winter. Free gait analysis." }, "title": "Shop trail shoes", "linkUrl": "https://summitrunning.example/trail-shoes", "ctaText": "Shop now", "ctaType": "SHOP_NOW", "displayFormat": "IMAGE", "images": [ { "originalImageUrl": "https://images.example/ad-1.jpg" } ], "videos": [], "cards": [] }, "url": "https://www.facebook.com/ads/library/?id=1229350099285014", "receipt_id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009" }, { "inputUrl": "https://www.facebook.com/ads/library/?active_status=active&ad_type=all&country=US&media_type=all&q=trail+running+shoes&search_type=keyword_unordered", "adArchiveID": "1229350099285015", "adArchiveId": "1229350099285015", "adId": null, "pageID": "100200300400", "pageId": "100200300400", "pageName": "Summit Running Co.", "isActive": true, "startDate": 1764547200, "endDate": null, "startDateFormatted": "2025-12-01T00:00:00.000Z", "endDateFormatted": null, "publisherPlatform": [ "FACEBOOK", "INSTAGRAM" ], "collationCount": 1, "collationId": "889900112234", "categories": [ "UNKNOWN" ], "currency": "", "spend": null, "impressionsWithIndex": { "impressionsText": null, "impressionsIndex": -1 }, "reachEstimate": null, "targetedOrReachedCountries": [], "snapshot": { "pageName": "Summit Running Co.", "body": { "text": "New trail shoes for winter. Free gait analysis." }, "title": "Shop trail shoes", "linkUrl": "https://summitrunning.example/trail-shoes", "ctaText": "Shop now", "ctaType": "SHOP_NOW", "displayFormat": "IMAGE", "images": [ { "originalImageUrl": "https://images.example/ad-1.jpg" } ], "videos": [], "cards": [] }, "url": "https://www.facebook.com/ads/library/?id=1229350099285015", "receipt_id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009" } ] ``` ## Errors | Code | When | |---|---| | 400 | Invalid input (no URL or search term, a non-Facebook URL, or an unknown `adType`), or `max_cost` below the price of one item. Body: `{"error": {"type": "invalid-input", "message": ..., "receipt_id": null}}`. | | 400 | Nothing found for the input (`type: invalid-input`). $0. | | 401 | No valid API key (`type: user-or-token-not-found`). | | 402 | Wallet balance below the worst case for this request (`type: not-enough-usage-to-run-paid-actor`). | | 429 | Too many requests (`type: rate-limit-exceeded`). | | 500 | No allowed fetch level got the page (`type: internal-error`). $0. | ## Migrating Replaces Apify `Facebook Ads Library actor input and dataset items`. Same request body and response envelope; change the base URL and the key. --- # Yelp Search Ads > **Beta:** the parser for this endpoint has not yet been checked against a live response. Field shapes may change. `POST /v1/ads/yelp` Yelp search results with sponsored rows flagged (`isAd`), plus name, rating, reviews, price range, categories and position, as Apify-style dataset items. Family: Ads API · Mode: Live ## Price Unit: result | Mode | Price (USD) | |---|---| | Live | $0.00045 | Per result returned. ## Description POST the input as one JSON object. Every term in `searchTerms` runs in every place in `locations`, plus one search per `directUrls` entry, up to 50 searches per request. Results are read page by page until `searchLimit` is reached. The response body is a JSON array of items, with no wrapper. Every item carries `receipt_id`, and the same id is in the `X-Receipt-Id` response header. **Billing.** Per result returned, sponsored rows included, whatever fetch level was needed. An input that finds nothing costs $0. Results are cached for 6 h. **Beta.** The parser behind this route was written from public documentation and hasn't been checked against live pages yet. Item field names are fixed; some values may be null more often than they should be until that check is done. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON object. | Field | Type | Required | Description | |---|---|---|---| | `searchTerms` | array<string>\|string | no | What to search for. Each term runs in each of `locations`. `search_terms` and `searchTerm` are accepted too. Send this with `locations`, or `directUrls`, or both. | | `search_terms` | array<string>\|string | no | Same as `searchTerms`. | | `searchTerm` | string | no | Same as `searchTerms`, for a single term. | | `locations` | array<string>\|string | no | Where to search, for example `Boulder, CO`. Required with `searchTerms`. `location` is accepted too. | | `location` | string | no | Same as `locations`, for a single place. | | `directUrls` | array<string\|object> | no | Yelp search URLs (`yelp.com/search?find_desc=…&find_loc=…`). Business page URLs aren't supported. `startUrls` is accepted too. | | `startUrls` | array<string\|object> | no | Same as `directUrls`. | | `searchLimit` | integer | no | Results per search, sponsored rows included. default `10`; min 1; max 240 | | `auto_upgrade` | boolean | no | Lets the request move to a higher fetch level when the included level can't get the data, billed at the level that delivered it. `false` stops at the Standard level and returns the failure at $0. Also accepts `"true"`, `"false"`, `1` and `0`. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. `rendered` never uses the Protected level. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number | no | The most this task may cost, in USD. The wallet check reserves this amount instead of the worst-case price, the request never upgrades past it, and the charge never exceeds it. Results stop at the number this amount pays for. min 0 | | `max_age` | integer | no | Accept a cached result up to this many seconds old, 0 to 86,400. `0` always fetches fresh. Default window: 6 h. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/ads/yelp" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "searchTerms": [ "running store" ], "locations": [ "Boulder, CO" ], "searchLimit": 3 }' ``` ## Response | Field | Type | Description | |---|---|---| | `name` | string | Business name. | | `bizId` | string\|null | Yelp business id. | | `directUrl` | string | The business's Yelp page, without tracking parameters. | | `alternateNames` | array<string> | Other names. Always empty for now. | | `address` | object | Address. Only `addressLine1` is filled from search results. | | `address.addressLine1` | string\|null | Address as shown in the result. | | `address.addressLine2` | null | Always null. | | `address.addressLine3` | null | Always null. | | `address.city` | null | Always null. | | `address.regionCode` | null | Always null. | | `address.postalCode` | null | Always null. | | `address.country` | null | Always null. | | `neighborhoods` | array<string> | Neighborhoods shown in the result. | | `phone` | string\|null | Phone number. | | `website` | null | Not in search results. Always null. | | `aggregatedRating` | number\|null | Star rating, 1 to 5. | | `reviewCount` | integer\|null | Number of reviews. | | `priceRange` | string\|null | Price range, for example `$$`. | | `type` | null | Always null. | | `cuisine` | null | Always null. | | `categories` | array<string> | Yelp categories. | | `primaryPhoto` | string\|null | Main photo URL. | | `images` | array<string> | Always empty for now. | | `claimed` | null | Not in search results. Always null. | | `verified` | null | Not in search results. Always null. | | `advertiser` | boolean | True for a sponsored row. | | `isAd` | boolean | True for a sponsored row. | | `sponsored` | boolean | True for a sponsored row. | | `position` | integer | Position in this search, sponsored rows included, starting at 1. | | `searchTerm` | string | The term this row came from. | | `location` | string | The location this row came from. | | `scrapeStartedAt` | string | When this search started, ISO 8601. | | `scrapeFinishedAt` | string | When this search finished, ISO 8601. | | `receipt_id` | string\|null | Id of the ledger receipt for this request. Same on every item. | ### Item types #### result | Field | Type | Description | |---|---|---| | `name` | string | Business name. | | `bizId` | string\|null | Yelp business id. | | `directUrl` | string | The business's Yelp page, without tracking parameters. | | `alternateNames` | array<string> | Other names. Always empty for now. | | `address` | object | Address. Only `addressLine1` is filled from search results. | | `address.addressLine1` | string\|null | Address as shown in the result. | | `address.addressLine2` | null | Always null. | | `address.addressLine3` | null | Always null. | | `address.city` | null | Always null. | | `address.regionCode` | null | Always null. | | `address.postalCode` | null | Always null. | | `address.country` | null | Always null. | | `neighborhoods` | array<string> | Neighborhoods shown in the result. | | `phone` | string\|null | Phone number. | | `website` | null | Not in search results. Always null. | | `aggregatedRating` | number\|null | Star rating, 1 to 5. | | `reviewCount` | integer\|null | Number of reviews. | | `priceRange` | string\|null | Price range, for example `$$`. | | `type` | null | Always null. | | `cuisine` | null | Always null. | | `categories` | array<string> | Yelp categories. | | `primaryPhoto` | string\|null | Main photo URL. | | `images` | array<string> | Always empty for now. | | `claimed` | null | Not in search results. Always null. | | `verified` | null | Not in search results. Always null. | | `advertiser` | boolean | True for a sponsored row. | | `isAd` | boolean | True for a sponsored row. | | `sponsored` | boolean | True for a sponsored row. | | `position` | integer | Position in this search, sponsored rows included, starting at 1. | | `searchTerm` | string | The term this row came from. | | `location` | string | The location this row came from. | | `scrapeStartedAt` | string | When this search started, ISO 8601. | | `scrapeFinishedAt` | string | When this search finished, ISO 8601. | | `receipt_id` | string\|null | Id of the ledger receipt for this request. Same on every item. | ### Example response ```json [ { "name": "Summit Running Co.", "bizId": "sRc0001", "directUrl": "https://www.yelp.com/biz/summit-running-co", "alternateNames": [], "address": { "addressLine1": "120 Main St", "addressLine2": null, "addressLine3": null, "city": null, "regionCode": null, "postalCode": null, "country": null }, "neighborhoods": [ "Downtown" ], "phone": "(303) 555-0142", "website": null, "aggregatedRating": 4.5, "reviewCount": 211, "priceRange": "$$", "type": null, "cuisine": null, "categories": [ "Shoe Stores", "Sporting Goods" ], "primaryPhoto": null, "images": [], "claimed": null, "verified": null, "advertiser": true, "isAd": true, "sponsored": true, "position": 1, "searchTerm": "running store", "location": "Boulder, CO", "scrapeStartedAt": "2026-12-03T10:42:18.000000+00:00", "scrapeFinishedAt": "2026-12-03T10:42:18.000000+00:00", "receipt_id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009" }, { "name": "Trailhead Outfitters", "bizId": "tHo0002", "directUrl": "https://www.yelp.com/biz/trailhead-outfitters", "alternateNames": [], "address": { "addressLine1": "455 Pearl St", "addressLine2": null, "addressLine3": null, "city": null, "regionCode": null, "postalCode": null, "country": null }, "neighborhoods": [ "Downtown" ], "phone": "(303) 555-0142", "website": null, "aggregatedRating": 4, "reviewCount": 88, "priceRange": "$$", "type": null, "cuisine": null, "categories": [ "Shoe Stores", "Sporting Goods" ], "primaryPhoto": null, "images": [], "claimed": null, "verified": null, "advertiser": false, "isAd": false, "sponsored": false, "position": 2, "searchTerm": "running store", "location": "Boulder, CO", "scrapeStartedAt": "2026-12-03T10:42:18.000000+00:00", "scrapeFinishedAt": "2026-12-03T10:42:18.000000+00:00", "receipt_id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009" } ] ``` ## Errors | Code | When | |---|---| | 400 | Invalid input (no terms or URLs, `searchTerms` without `locations`, a non-search URL, or more than 50 searches), or `max_cost` below the price of one item. Body: `{"error": {"type": "invalid-input", "message": ..., "receipt_id": null}}`. | | 400 | Nothing found for the input (`type: invalid-input`). $0. | | 401 | No valid API key (`type: user-or-token-not-found`). | | 402 | Wallet balance below the worst case for this request (`type: not-enough-usage-to-run-paid-actor`). | | 429 | Too many requests (`type: rate-limit-exceeded`). | | 500 | No allowed fetch level got the page (`type: internal-error`). $0. | ## Migrating Replaces Apify `Yelp scraper actor input and dataset items`. Same request body and response envelope; change the base URL and the key. --- # Crawl a page `POST /v1/crawls` Fetch one page now and get its content with a receipt: where and when it was fetched, what robots.txt and the site's AI-use signals said, a content hash and the cost. Family: Crawl API ## Price Unit: page | Mode | Price (USD) | |---|---| | Live | $0.00011 | | Fetch level | Price (USD) | |---|---| | standard | $0.00011 | | rendered | $0.0011 | | protected | $0.003 | Billed at the level that delivered the page. ## Description Runs inline and returns one task. The HTTP status follows the task: 200 completed (also for a fetched page that isn't real content, billed $0), 451 blocked by robots.txt, 502 when the site couldn't be fetched. A body with `targets` instead of `url` is treated as POST /v1/crawls/batch. **Billing.** One page at the price of the fetch level that delivered it (Standard $0.00011, Rendered $0.0011, Protected $0.003). Blocked, failed and non-substantive pages cost $0. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON object. | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | The page to fetch: an absolute http(s) URL on a public host. max 2000 | | `auto_upgrade` | boolean | no | Lets a blocked page move to a higher fetch level, billed at the level that delivered it. `false` stops at the requested level and returns the failure at $0. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number\|null | no | The most one page may cost, in USD, up to 6 decimal places. The wallet check reserves this instead of the worst-case price, and a fetch never upgrades past it. min 0 | | `output_format` | string | no | What `content` holds: Markdown text, the page HTML, or a JSON object of the page's title, text and metadata. default `markdown`; one of `markdown`, `html`, `json` | | `engine` | string | no | The level to start at. `rendered` runs JavaScript from the first fetch and needs `max_level` rendered or protected. `browser` is accepted as an older name for `rendered`. default `standard`; one of `standard`, `rendered` | | `render_js` | boolean | no | `true` is the same as `engine: rendered`. default `false` | | `include_receipt` | boolean | no | Include the receipt on each task. default `true` | | `project_id` | string\|null | no | A project in your organization to file this under. Leave it out for the default project. | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/crawls" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://summitrunning.example/trail-shoes", "output_format": "markdown" }' ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok` for a 2xx response. | | `cost` | number | Sum of the task costs, USD. | | `tasks_count` | integer | Number of tasks. | | `tasks_error` | integer | Tasks that failed or were blocked. | | `tasks` | array<object> | The tasks. | | `tasks.id` | string | Task id, `cr_…`. Use it with GET /v1/crawls/{id}. | | `tasks.status` | string | Task state. one of `completed`, `failed`, `blocked`, `queued`, `processing` | | `tasks.status_code` | integer | HTTP-style code for this task: 200 completed, 451 blocked by robots.txt, 422 invalid target or over `max_cost`, 502 upstream error, 503 level unavailable, 202 queued or processing. | | `tasks.status_message` | string | Plain-language status. For a completed but non-substantive page, says why. | | `tasks.cost` | number | What this task was charged, USD. | | `tasks.fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved past the requested level. | | `tasks.upgrade_reason` | string | Why it upgraded, for example `403 at standard`. Empty when it didn't. | | `tasks.content` | object | The page. Present when `status` is `completed`. | | `tasks.content.title` | string | Page title. | | `tasks.content.markdown` | string | Page as Markdown, for `output_format: markdown`. | | `tasks.content.html` | string | Page HTML, for `output_format: html`. | | `tasks.content.json` | object | Title, text and metadata, for `output_format: json`. | | `tasks.error` | object | Present when `status` is `failed` or `blocked`. | | `tasks.error.http_status` | integer | Same as `status_code`. | | `tasks.error.code` | string | Error code, for example `blocked_by_policy` or `upstream_error`. | | `tasks.receipt` | object | Provenance and cost. Present unless `include_receipt` is false. | | `tasks.receipt.receipt_id` | string | Receipt id, `rc_…`. | | `tasks.receipt.source_url` | string | The URL that was requested. | | `tasks.receipt.fetched_at` | string\|null | When the page was fetched, ISO 8601 UTC. Null when it wasn't fetched. | | `tasks.receipt.http_status` | integer\|null | HTTP status the site returned. | | `tasks.receipt.content_sha256` | string\|null | SHA-256 of the content we returned, so you can prove what you saw. | | `tasks.receipt.content_check` | string\|null | Whether the page is real content: `substantive`, or why not. one of `substantive`, `blocked`, `login_wall`, `error_page`, `empty_shell` | | `tasks.receipt.content_check_reasons` | array<string> | Signals behind a non-substantive verdict. | | `tasks.receipt.robots_txt` | string\|null | What the site's robots.txt says about this path for our crawler. one of `allowed`, `disallowed`, `not_found`, `unreachable` | | `tasks.receipt.ai_use_signal` | string\|null | The site's declared stance on AI use, from robots.txt, meta tags, headers and its terms, for example `none_declared` or `opt_out`. | | `tasks.receipt.ai_use_details` | object | Where each AI-use signal was found. | | `tasks.receipt.engine` | string | The level you asked to start at. one of `standard`, `rendered` | | `tasks.receipt.fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` | | `tasks.receipt.upgraded` | boolean | True when Auto-upgrade moved past the requested level. | | `tasks.receipt.upgrade_reason` | string | Why it upgraded, for example `403 at standard`. Empty when it didn't. | | `tasks.receipt.fetch_method` | string | Same as `fetch_level`, or `engine` when nothing was delivered. | | `tasks.receipt.unit_cost_usd` | number\|null | What this page was charged, in USD. Null until the task has run. | | `tasks.receipt.billed_usd` | number\|null | Same as `unit_cost_usd`. | | `tasks.receipt.billed_pages` | integer\|null | 1 when the page was billed, 0 when it cost nothing. | | `tasks.receipt.cost_breakdown` | object\|null | The charge split into the base page price and what an upgrade added. | | `tasks.receipt.cost_breakdown.base` | number | Base page price, USD. | | `tasks.receipt.cost_breakdown.upgrade` | number | Added by Auto-upgrade, USD. | | `tasks.receipt.currency` | string | Always `USD`. | ### Example response ```json { "status": "ok", "cost": 0.00011, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "cr_8cbb5b5c8e155c82995945f93cdad009", "status": "completed", "status_code": 200, "status_message": "Ok.", "cost": 0.00011, "fetch_level": "standard", "upgraded": false, "upgrade_reason": "", "content": { "title": "Trail running shoes", "markdown": "# Trail running shoes\n\nEvery trail shoe we stock comes with free gait analysis and 60-day returns." }, "receipt": { "source_url": "https://summitrunning.example/trail-shoes", "fetched_at": "2026-12-03T10:42:18Z", "http_status": 200, "content_sha256": "9f2c4a1b7e0d3c58a6b1f4e2d7c9a0b3e5f8d1c4a7b0e3f6d9c2a5b8e1f4d7c0", "content_check": "substantive", "content_check_reasons": [], "robots_txt": "allowed", "ai_use_signal": "none_declared", "ai_use_details": {}, "engine": "standard", "fetch_level": "standard", "upgraded": false, "upgrade_reason": "", "unit_cost_usd": 0.00011, "billed_usd": 0.00011, "currency": "USD", "receipt_id": "rc_8cbb5b5c8e155c82995945f93cdad009", "fetch_method": "standard", "billed_pages": 1, "cost_breakdown": { "base": 0.00011, "upgrade": 0 } } } ] } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. The body failed validation. `error.details` maps each field to its problem. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | balance_required | HTTP 402. Your wallet balance is below the most this request could cost. Nothing ran. | | invalid_target | HTTP 422. A URL is not an absolute public http(s) URL. Nothing was fetched. | | rate_limited | HTTP 429. Too many requests, or too many requests in flight for your organization. `Retry-After` says when to retry. | | upstream_error | HTTP 502. The target or search timed out or returned an error we couldn't recover from. You weren't billed. | ## Related - [Crawl a batch](https://dataforgaio.com/docs/api/crawls-batch.md): Queue up to 100 URLs in one request; poll the job or get it at your webhook. - [Get a crawl](https://dataforgaio.com/docs/api/crawls-get.md): A batch job and its tasks, or one task, with content and receipts. - [Get crawl receipts](https://dataforgaio.com/docs/api/crawls-receipt.md): Just the receipts for a job or task, one per page. --- # Crawl a batch `POST /v1/crawls/batch` Queue up to 100 URLs in one request; poll the job or get it at your webhook. Family: Crawl API ## Price Unit: page | Mode | Price (USD) | |---|---| | Live | $0.00011 | | Fetch level | Price (USD) | |---|---| | standard | $0.00011 | | rendered | $0.0011 | | protected | $0.003 | Per page, at the level that delivered it. ## Description Returns 202 with a `job_id` straight away. Read the results with GET /v1/crawls/{id}, or set `webhook_url` and we POST the finished job to it. Options apply to every target. If any target isn't a valid public URL, nothing is queued and the response lists each bad target. The wallet check reserves the worst case for every target (or `max_cost` each). **Billing.** One page at the price of the fetch level that delivered it (Standard $0.00011, Rendered $0.0011, Protected $0.003). Blocked, failed and non-substantive pages cost $0. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON object. | Field | Type | Required | Description | |---|---|---|---| | `targets` | array<object> | yes | The pages to fetch, 1 to 100. min 1; max 100 | | `targets.url` | string | yes | An absolute http(s) URL on a public host. max 2000 | | `webhook_url` | string | no | We POST the finished job (the GET /v1/crawls/{id} body) here. Must be https on a public host. max 2000 | | `auto_upgrade` | boolean | no | Lets a blocked page move to a higher fetch level, billed at the level that delivered it. `false` stops at the requested level and returns the failure at $0. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number\|null | no | The most one page may cost, in USD, up to 6 decimal places. The wallet check reserves this instead of the worst-case price, and a fetch never upgrades past it. min 0 | | `output_format` | string | no | What `content` holds: Markdown text, the page HTML, or a JSON object of the page's title, text and metadata. default `markdown`; one of `markdown`, `html`, `json` | | `engine` | string | no | The level to start at. `rendered` runs JavaScript from the first fetch and needs `max_level` rendered or protected. `browser` is accepted as an older name for `rendered`. default `standard`; one of `standard`, `rendered` | | `render_js` | boolean | no | `true` is the same as `engine: rendered`. default `false` | | `include_receipt` | boolean | no | Include the receipt on each task. default `true` | | `project_id` | string\|null | no | A project in your organization to file this under. Leave it out for the default project. | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/crawls/batch" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "targets": [ { "url": "https://summitrunning.example/trail-shoes" }, { "url": "https://summitrunning.example/stores" } ], "webhook_url": "https://hooks.summitrunning.example/crawls" }' ``` ## Response | Field | Type | Description | |---|---|---| | `job_id` | string | Job id, `job_…`. | | `tasks_count` | integer | Number of targets queued. | | `status` | string | Always `queued`. | ### Example response ```json { "job_id": "job_8cbb5b5c8e155c82995945f93cdad009", "tasks_count": 2, "status": "queued" } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. Invalid options, an empty list, or more than 100 targets. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | balance_required | HTTP 402. Your wallet balance is below the most this request could cost. Nothing ran. | | invalid_target | HTTP 422. A URL is not an absolute public http(s) URL. Nothing was fetched. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | ## Related - [Crawl a page](https://dataforgaio.com/docs/api/crawls-create.md): Fetch one page now and get its content with a receipt: where and when it was fetched, what robots.txt and the site's AI-use signals said, a content hash and the cost. - [Get a crawl](https://dataforgaio.com/docs/api/crawls-get.md): A batch job and its tasks, or one task, with content and receipts. - [Get crawl receipts](https://dataforgaio.com/docs/api/crawls-receipt.md): Just the receipts for a job or task, one per page. --- # Get a crawl `GET /v1/crawls/{id}` A batch job and its tasks, or one task, with content and receipts. Family: Crawl API ## Price Unit: request Free. Pages were billed when they were fetched. ## Description `{id}` is a batch `job_…` id or a task `cr_…` id. A single task that robots.txt blocked responds 451; a batch always responds 200 and reports each task's state. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | A `job_…` or `cr_…` id. | | `include_receipt` | boolean | no | Include receipts. Defaults to the batch's setting. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/crawls/TASK_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok` for a 2xx response. | | `job_id` | string | `job_…` for a batch, `cr_…` for a single task. | | `job_status` | string | `completed` once every task finished, else `queued` or `processing`. one of `queued`, `processing`, `completed` | | `cost` | number | Sum of the task costs, USD. | | `tasks_count` | integer | Number of tasks. | | `tasks_error` | integer | Tasks that failed or were blocked. | | `tasks` | array<object> | The tasks. | | `tasks.id` | string | Task id, `cr_…`. Use it with GET /v1/crawls/{id}. | | `tasks.status` | string | Task state. one of `completed`, `failed`, `blocked`, `queued`, `processing` | | `tasks.status_code` | integer | HTTP-style code for this task: 200 completed, 451 blocked by robots.txt, 422 invalid target or over `max_cost`, 502 upstream error, 503 level unavailable, 202 queued or processing. | | `tasks.status_message` | string | Plain-language status. For a completed but non-substantive page, says why. | | `tasks.cost` | number | What this task was charged, USD. | | `tasks.fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved past the requested level. | | `tasks.upgrade_reason` | string | Why it upgraded, for example `403 at standard`. Empty when it didn't. | | `tasks.content` | object | The page. Present when `status` is `completed`. | | `tasks.content.title` | string | Page title. | | `tasks.content.markdown` | string | Page as Markdown, for `output_format: markdown`. | | `tasks.content.html` | string | Page HTML, for `output_format: html`. | | `tasks.content.json` | object | Title, text and metadata, for `output_format: json`. | | `tasks.error` | object | Present when `status` is `failed` or `blocked`. | | `tasks.error.http_status` | integer | Same as `status_code`. | | `tasks.error.code` | string | Error code, for example `blocked_by_policy` or `upstream_error`. | | `tasks.receipt` | object | Provenance and cost. Present unless `include_receipt` is false. | | `tasks.receipt.receipt_id` | string | Receipt id, `rc_…`. | | `tasks.receipt.source_url` | string | The URL that was requested. | | `tasks.receipt.fetched_at` | string\|null | When the page was fetched, ISO 8601 UTC. Null when it wasn't fetched. | | `tasks.receipt.http_status` | integer\|null | HTTP status the site returned. | | `tasks.receipt.content_sha256` | string\|null | SHA-256 of the content we returned, so you can prove what you saw. | | `tasks.receipt.content_check` | string\|null | Whether the page is real content: `substantive`, or why not. one of `substantive`, `blocked`, `login_wall`, `error_page`, `empty_shell` | | `tasks.receipt.content_check_reasons` | array<string> | Signals behind a non-substantive verdict. | | `tasks.receipt.robots_txt` | string\|null | What the site's robots.txt says about this path for our crawler. one of `allowed`, `disallowed`, `not_found`, `unreachable` | | `tasks.receipt.ai_use_signal` | string\|null | The site's declared stance on AI use, from robots.txt, meta tags, headers and its terms, for example `none_declared` or `opt_out`. | | `tasks.receipt.ai_use_details` | object | Where each AI-use signal was found. | | `tasks.receipt.engine` | string | The level you asked to start at. one of `standard`, `rendered` | | `tasks.receipt.fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` | | `tasks.receipt.upgraded` | boolean | True when Auto-upgrade moved past the requested level. | | `tasks.receipt.upgrade_reason` | string | Why it upgraded, for example `403 at standard`. Empty when it didn't. | | `tasks.receipt.fetch_method` | string | Same as `fetch_level`, or `engine` when nothing was delivered. | | `tasks.receipt.unit_cost_usd` | number\|null | What this page was charged, in USD. Null until the task has run. | | `tasks.receipt.billed_usd` | number\|null | Same as `unit_cost_usd`. | | `tasks.receipt.billed_pages` | integer\|null | 1 when the page was billed, 0 when it cost nothing. | | `tasks.receipt.cost_breakdown` | object\|null | The charge split into the base page price and what an upgrade added. | | `tasks.receipt.cost_breakdown.base` | number | Base page price, USD. | | `tasks.receipt.cost_breakdown.upgrade` | number | Added by Auto-upgrade, USD. | | `tasks.receipt.currency` | string | Always `USD`. | ### Example response ```json { "status": "ok", "job_id": "job_8cbb5b5c8e155c82995945f93cdad009", "job_status": "completed", "cost": 0.00011, "tasks_count": 2, "tasks_error": 1, "tasks": [ { "id": "cr_744695e7dd8a5016bb2b2d314ea9ef81", "status": "completed", "status_code": 200, "status_message": "Ok.", "cost": 0.00011, "fetch_level": "standard", "upgraded": false, "upgrade_reason": "", "content": { "title": "Trail running shoes", "markdown": "# Trail running shoes\n\nEvery trail shoe we stock comes with free gait analysis and 60-day returns." }, "receipt": { "source_url": "https://summitrunning.example/trail-shoes", "fetched_at": "2026-12-03T10:42:18Z", "http_status": 200, "content_sha256": "9f2c4a1b7e0d3c58a6b1f4e2d7c9a0b3e5f8d1c4a7b0e3f6d9c2a5b8e1f4d7c0", "content_check": "substantive", "content_check_reasons": [], "robots_txt": "allowed", "ai_use_signal": "none_declared", "ai_use_details": {}, "engine": "standard", "fetch_level": "standard", "upgraded": false, "upgrade_reason": "", "unit_cost_usd": 0.00011, "billed_usd": 0.00011, "currency": "USD", "receipt_id": "rc_744695e7dd8a5016bb2b2d314ea9ef81", "fetch_method": "standard", "billed_pages": 1, "cost_breakdown": { "base": 0.00011, "upgrade": 0 } } }, { "id": "cr_1160aaf84d8d5ca6a414351f2a73b5ab", "status": "blocked", "status_code": 451, "status_message": "Not fetched: robots.txt at https://summitrunning.example/robots.txt disallows /cart/.", "cost": 0, "fetch_level": null, "upgraded": false, "upgrade_reason": "", "error": { "http_status": 451, "code": "blocked_by_policy" }, "receipt": { "source_url": "https://summitrunning.example/cart/checkout", "fetched_at": null, "http_status": null, "content_sha256": null, "content_check": null, "content_check_reasons": [], "robots_txt": "disallowed", "ai_use_signal": "none_declared", "ai_use_details": {}, "engine": "standard", "fetch_level": null, "upgraded": false, "upgrade_reason": "", "unit_cost_usd": 0, "billed_usd": 0, "currency": "USD", "receipt_id": "rc_1160aaf84d8d5ca6a414351f2a73b5ab", "fetch_method": "standard", "billed_pages": 0, "cost_breakdown": { "base": 0, "upgrade": 0 } } } ] } ``` ## Errors | Code | When | |---|---| | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | not_found | HTTP 404. No job, task or tracker with that id in your organization. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | ## Related - [Crawl a page](https://dataforgaio.com/docs/api/crawls-create.md): Fetch one page now and get its content with a receipt: where and when it was fetched, what robots.txt and the site's AI-use signals said, a content hash and the cost. - [Crawl a batch](https://dataforgaio.com/docs/api/crawls-batch.md): Queue up to 100 URLs in one request; poll the job or get it at your webhook. - [Get crawl receipts](https://dataforgaio.com/docs/api/crawls-receipt.md): Just the receipts for a job or task, one per page. --- # Get crawl receipts `GET /v1/crawls/{id}/receipt` Just the receipts for a job or task, one per page. Family: Crawl API ## Price Unit: request Free. ## Description Use it to store proof of what was fetched without the page content. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | A `job_…` or `cr_…` id. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/crawls/TASK_ID/receipt" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok`. | | `job_id` | string | The job or task id. | | `receipts_count` | integer | Number of receipts. | | `receipts` | array<object> | One receipt per task. | | `receipts.task_id` | string | Task id, `cr_…`. | | `receipts.receipt_id` | string | Receipt id, `rc_…`. | | `receipts.source_url` | string | The URL that was requested. | | `receipts.fetched_at` | string\|null | When the page was fetched, ISO 8601 UTC. Null when it wasn't fetched. | | `receipts.http_status` | integer\|null | HTTP status the site returned. | | `receipts.content_sha256` | string\|null | SHA-256 of the content we returned, so you can prove what you saw. | | `receipts.content_check` | string\|null | Whether the page is real content: `substantive`, or why not. one of `substantive`, `blocked`, `login_wall`, `error_page`, `empty_shell` | | `receipts.content_check_reasons` | array<string> | Signals behind a non-substantive verdict. | | `receipts.robots_txt` | string\|null | What the site's robots.txt says about this path for our crawler. one of `allowed`, `disallowed`, `not_found`, `unreachable` | | `receipts.ai_use_signal` | string\|null | The site's declared stance on AI use, from robots.txt, meta tags, headers and its terms, for example `none_declared` or `opt_out`. | | `receipts.ai_use_details` | object | Where each AI-use signal was found. | | `receipts.engine` | string | The level you asked to start at. one of `standard`, `rendered` | | `receipts.fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` | | `receipts.upgraded` | boolean | True when Auto-upgrade moved past the requested level. | | `receipts.upgrade_reason` | string | Why it upgraded, for example `403 at standard`. Empty when it didn't. | | `receipts.fetch_method` | string | Same as `fetch_level`, or `engine` when nothing was delivered. | | `receipts.unit_cost_usd` | number\|null | What this page was charged, in USD. Null until the task has run. | | `receipts.billed_usd` | number\|null | Same as `unit_cost_usd`. | | `receipts.billed_pages` | integer\|null | 1 when the page was billed, 0 when it cost nothing. | | `receipts.cost_breakdown` | object\|null | The charge split into the base page price and what an upgrade added. | | `receipts.cost_breakdown.base` | number | Base page price, USD. | | `receipts.cost_breakdown.upgrade` | number | Added by Auto-upgrade, USD. | | `receipts.currency` | string | Always `USD`. | ### Example response ```json { "status": "ok", "job_id": "job_8cbb5b5c8e155c82995945f93cdad009", "receipts_count": 2, "receipts": [ { "task_id": "cr_744695e7dd8a5016bb2b2d314ea9ef81", "source_url": "https://summitrunning.example/trail-shoes", "fetched_at": "2026-12-03T10:42:18Z", "http_status": 200, "content_sha256": "9f2c4a1b7e0d3c58a6b1f4e2d7c9a0b3e5f8d1c4a7b0e3f6d9c2a5b8e1f4d7c0", "content_check": "substantive", "content_check_reasons": [], "robots_txt": "allowed", "ai_use_signal": "none_declared", "ai_use_details": {}, "engine": "standard", "fetch_level": "standard", "upgraded": false, "upgrade_reason": "", "unit_cost_usd": 0.00011, "billed_usd": 0.00011, "currency": "USD", "receipt_id": "rc_744695e7dd8a5016bb2b2d314ea9ef81", "fetch_method": "standard", "billed_pages": 1, "cost_breakdown": { "base": 0.00011, "upgrade": 0 } }, { "task_id": "cr_1160aaf84d8d5ca6a414351f2a73b5ab", "source_url": "https://summitrunning.example/cart/checkout", "fetched_at": null, "http_status": null, "content_sha256": null, "content_check": null, "content_check_reasons": [], "robots_txt": "disallowed", "ai_use_signal": "none_declared", "ai_use_details": {}, "engine": "standard", "fetch_level": null, "upgraded": false, "upgrade_reason": "", "unit_cost_usd": 0, "billed_usd": 0, "currency": "USD", "receipt_id": "rc_1160aaf84d8d5ca6a414351f2a73b5ab", "fetch_method": "standard", "billed_pages": 0, "cost_breakdown": { "base": 0, "upgrade": 0 } } ] } ``` ## Errors | Code | When | |---|---| | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | not_found | HTTP 404. No job, task or tracker with that id in your organization. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | ## Related - [Crawl a page](https://dataforgaio.com/docs/api/crawls-create.md): Fetch one page now and get its content with a receipt: where and when it was fetched, what robots.txt and the site's AI-use signals said, a content hash and the cost. - [Crawl a batch](https://dataforgaio.com/docs/api/crawls-batch.md): Queue up to 100 URLs in one request; poll the job or get it at your webhook. - [Get a crawl](https://dataforgaio.com/docs/api/crawls-get.md): A batch job and its tasks, or one task, with content and receipts. --- # Map a site `POST /v1/map` The URLs a site lists in its sitemaps and on its start page, each marked with whether robots.txt lets our crawler fetch it, so you can choose what to crawl. Family: Crawl API ## Price Unit: page | Mode | Price (USD) | |---|---| | Live | $0.00011 | | Fetch level | Price (USD) | |---|---| | standard | $0.00011 | | rendered | $0.0011 | | protected | $0.003 | Per billed fetch (robots.txt, each sitemap file, the start page). ## Description Reads robots.txt, up to 10 sitemap files and the links on the page at `url`. It never follows links further. Each fetch that returned real content (a served robots.txt, a sitemap that parsed, a substantive start page) is billed at its level's page price; failed and blocked fetches cost $0. When robots.txt can't be read at all, nothing else is fetched and you get 502 at $0. **Billing.** Each billed fetch at the price of the fetch level that delivered it (Standard $0.00011, Rendered $0.0011, Protected $0.003). Blocked, failed and non-substantive pages cost $0. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON object. | Field | Type | Required | Description | |---|---|---|---| | `url` | string | yes | The site's start page: an absolute http(s) URL on a public host. max 2000 | | `limit` | integer | no | Most URLs to return. default `1000`; min 1; max 5000 | | `include_subdomains` | boolean | no | Include URLs on subdomains of the start page's host. default `false` | | `search` | string | no | Only URLs containing this text (case-insensitive). max 200 | | `use_sitemap` | boolean | no | Read the site's sitemaps. `false` reads only the start page's links. default `true` | | `auto_upgrade` | boolean | no | Lets a blocked fetch move to a higher fetch level, billed at the level that delivered it. `false` stops at the requested level and returns the failure at $0. default `true` | | `max_level` | string | no | The highest fetch level Auto-upgrade may use. default `protected`; one of `standard`, `rendered`, `protected` | | `max_cost` | number\|null | no | The most one fetch may cost, in USD, up to 6 decimal places. The wallet check reserves this instead of the worst-case price, and a fetch never upgrades past it. min 0 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/map" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "url": "https://summitrunning.example/", "limit": 500 }' ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok`. | | `url` | string | The start page, normalized. | | `urls_count` | integer | Entries in `urls`. | | `limit_reached` | boolean | True when the list stopped at `limit`. | | `urls` | array<object> | The URLs found. | | `urls.url` | string | The URL. | | `urls.source` | string | Where it was found. one of `sitemap`, `link` | | `urls.lastmod` | string | Last-modified date from the sitemap, when it gave a valid one. | | `urls.crawler_allowed` | boolean\|null | Whether robots.txt allows our crawler to fetch it. Null for URLs on another host. | | `sitemaps` | array<string> | Sitemap files that were read. | | `robots_txt` | object | What the site's robots.txt says. | | `robots_txt.found` | boolean | True when robots.txt was served. | | `robots_txt.status` | integer\|null | HTTP status of robots.txt. | | `robots_txt.robots_url` | string | The robots.txt URL. | | `robots_txt.crawler_agent` | string | The user agent we crawl as. | | `robots_txt.crawler_allowed` | boolean | Whether our crawler may fetch the start page. | | `robots_txt.ai_agents` | array<object> | Whether each well-known AI crawler may fetch the start page. | | `robots_txt.ai_agents.agent` | string | User agent token. | | `robots_txt.ai_agents.allowed` | boolean | True when allowed. | | `robots_txt.sitemaps` | array<string> | Sitemaps listed in robots.txt. | | `robots_txt.disallowed_urls` | integer | URLs in `urls` our crawler isn't allowed to fetch. | | `pages_fetched` | integer | Fetches made. | | `pages_billed` | integer | Fetches that returned real content and were billed. | | `unit_cost_usd` | number | Standard page price, USD. | | `billed_usd` | number | Total charged, USD. | | `fetch_level` | string\|null | The level that delivered the page. Null until a page was delivered. one of `standard`, `rendered`, `protected` | | `upgraded` | boolean | True when Auto-upgrade moved past the requested level. | | `upgrade_reason` | string | Why any fetch upgraded. Empty when none did. | | `stopped_early` | boolean | True when the time limit stopped new fetches. | ### Example response ```json { "status": "ok", "url": "https://summitrunning.example/", "urls_count": 4, "limit_reached": false, "urls": [ { "url": "https://summitrunning.example/", "source": "sitemap", "lastmod": "2026-11-28", "crawler_allowed": true }, { "url": "https://summitrunning.example/trail-shoes", "source": "sitemap", "lastmod": "2026-12-03T10:42:18+00:00", "crawler_allowed": true }, { "url": "https://summitrunning.example/cart/checkout", "source": "sitemap", "crawler_allowed": false }, { "url": "https://summitrunning.example/stores", "source": "link", "crawler_allowed": true } ], "sitemaps": [ "https://summitrunning.example/sitemap.xml" ], "robots_txt": { "found": true, "status": 200, "robots_url": "https://summitrunning.example/robots.txt", "crawler_agent": "DataForGAIO", "crawler_allowed": true, "ai_agents": [ { "agent": "GPTBot", "allowed": true }, { "agent": "ClaudeBot", "allowed": true }, { "agent": "Google-Extended", "allowed": true }, { "agent": "CCBot", "allowed": true }, { "agent": "PerplexityBot", "allowed": true }, { "agent": "Applebot-Extended", "allowed": true }, { "agent": "anthropic-ai", "allowed": true }, { "agent": "Claude-Web", "allowed": true }, { "agent": "OAI-SearchBot", "allowed": true }, { "agent": "ChatGPT-User", "allowed": true }, { "agent": "Bytespider", "allowed": true }, { "agent": "Meta-ExternalAgent", "allowed": true }, { "agent": "Amazonbot", "allowed": true }, { "agent": "cohere-ai", "allowed": true } ], "sitemaps": [ "https://summitrunning.example/sitemap.xml" ], "disallowed_urls": 1 }, "pages_fetched": 3, "pages_billed": 3, "unit_cost_usd": 0.00011, "billed_usd": 0.00033, "fetch_level": "standard", "upgraded": false, "upgrade_reason": "", "stopped_early": false } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. The body failed validation. `error.details` maps each field to its problem. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | balance_required | HTTP 402. Your wallet balance is below the most this request could cost. Nothing ran. | | invalid_target | HTTP 422. A URL is not an absolute public http(s) URL. Nothing was fetched. | | max_cost_exceeded | HTTP 422. `max_cost` is below the price of the cheapest allowed fetch. Nothing was fetched. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | | upstream_error | HTTP 502. robots.txt couldn't be read, so nothing else was fetched. $0. | --- # Search results `POST /v1/serp` The top 10 organic results for one search, with a receipt recording the search URL, fetch time and a hash of the results. Family: Crawl API ## Price Unit: request | Mode | Price (USD) | |---|---| | Live | $0.00054 | Per search that returned results. ## Description One search, run inline. For locations, maps, more depth or queued tasks, use the SERP API routes. **Billing.** $0.00054 per search that returned results. A search that fails or returns nothing costs $0. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON object. | Field | Type | Required | Description | |---|---|---|---| | `keyword` | string | yes | The search, up to 700 characters. `query` and `q` are accepted too. max 700 | | `search_engine` | string | no | Search engine. default `google`; one of `google`, `bing` | | `country` | string | no | Two-letter country to search from. | | `language` | string | no | Language code, for example `en` or `en-US`. | | `device` | string | no | Device type. default `desktop`; one of `desktop`, `mobile` | | `include_receipt` | boolean | no | Include the receipt. default `true` | | `project_id` | string\|null | no | A project in your organization to file this under. | | `auto_upgrade` | boolean | no | When the included route returns nothing, retry on the live route (billed at the same price). `false` stops at the included route and the search fails at $0. default `true` | | `max_cost` | number\|null | no | The most this search may cost, USD. Below the search price, nothing runs (422 `max_cost_exceeded`). The charge never exceeds it. | | `max_age` | integer\|null | no | Accept a cached result up to this many seconds old (0 to 86400). Default: always fetch fresh. min 0; max 86400 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/serp" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "keyword": "trail running shoes boulder", "country": "US", "language": "en" }' ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok` for a 2xx response. | | `cost` | number | What the search was charged, USD. | | `tasks_count` | integer | Always 1. | | `tasks_error` | integer | 1 when the search failed. | | `tasks` | array<object> | The search. | | `tasks.id` | string | Search id, `sr_…`. | | `tasks.status` | string | `completed` or `failed`. one of `completed`, `failed`, `processing` | | `tasks.status_code` | integer | 200, or 502/503 when it failed. | | `tasks.status_message` | string | Plain-language status. | | `tasks.cost` | number | Charged, USD. | | `tasks.content` | object | The results. Present when completed. | | `tasks.content.query` | string | The search. | | `tasks.content.search_engine` | string | Search engine. | | `tasks.content.country` | string\|null | Country, lowercase. | | `tasks.content.language` | string\|null | Language. | | `tasks.content.device` | string | Device. | | `tasks.content.items_count` | integer | Entries in `organic`. | | `tasks.content.organic` | array<object> | Organic results in rank order. | | `tasks.content.organic.position` | integer | Rank, starting at 1. | | `tasks.content.organic.title` | string | Result title. | | `tasks.content.organic.url` | string | Result URL. | | `tasks.content.organic.domain` | string | Result domain. | | `tasks.content.organic.snippet` | string | Result snippet. | | `tasks.error` | object | Present when failed. | | `tasks.error.http_status` | integer | Same as `status_code`. | | `tasks.error.code` | string | Error code. | | `tasks.receipt` | object | Provenance and cost. Present unless `include_receipt` is false. | | `tasks.receipt.receipt_id` | string | Receipt id, `rc_…`. | | `tasks.receipt.source_url` | string\|null | The public search URL the results correspond to. | | `tasks.receipt.fetched_at` | string\|null | When the results were fetched, ISO 8601 UTC. | | `tasks.receipt.http_status` | integer\|null | HTTP status of the search. | | `tasks.receipt.content_sha256` | string\|null | SHA-256 of the results we returned. | | `tasks.receipt.content_check` | null | Always null for a search. | | `tasks.receipt.robots_txt` | null | Always null for a search. | | `tasks.receipt.ai_use_signal` | null | Always null for a search. | | `tasks.receipt.fetch_method` | string | Always `serp_api`. | | `tasks.receipt.cache_hit` | boolean | True when a cached result (within `max_age`) answered. | | `tasks.receipt.upgraded` | boolean | True when the live route answered after the included route didn't. | | `tasks.receipt.unit_cost_usd` | number\|null | Charged, USD. | | `tasks.receipt.billed_usd` | number\|null | Same as `unit_cost_usd`. | | `tasks.receipt.currency` | string | Always `USD`. | ### Example response ```json { "status": "ok", "cost": 0.00054, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "sr_8cbb5b5c8e155c82995945f93cdad009", "status": "completed", "status_code": 200, "status_message": "Ok.", "cost": 0.00054, "content": { "query": "trail running shoes boulder", "search_engine": "google", "country": "us", "language": "en", "device": "desktop", "items_count": 2, "organic": [ { "position": 1, "title": "Trail running shoes | Summit Running Co.", "url": "https://summitrunning.example/trail-shoes", "domain": "summitrunning.example", "snippet": "Every trail shoe we stock, fitted after a free gait analysis." }, { "position": 2, "title": "The best trail running shoes", "url": "https://www.example-gear.com/best-trail-shoes", "domain": "www.example-gear.com", "snippet": "Tested on rock, mud and snow." } ] }, "receipt": { "receipt_id": "rc_8cbb5b5c8e155c82995945f93cdad009", "source_url": "https://www.google.com/search?q=trail+running+shoes+boulder&num=10&gl=us&hl=en", "fetched_at": "2026-12-03T10:42:18Z", "http_status": 200, "content_sha256": "b085e457d70d4053268da555d16037247e5d54ee16e182e7fca462347c269520", "content_check": null, "robots_txt": null, "ai_use_signal": null, "fetch_method": "serp_api", "cache_hit": false, "upgraded": false, "unit_cost_usd": 0.00054, "billed_usd": 0.00054, "currency": "USD" } } ] } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. The body failed validation. `error.details` maps each field to its problem. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | balance_required | HTTP 402. Your wallet balance is below the most this request could cost. Nothing ran. | | max_cost_exceeded | HTTP 422. `max_cost` is below the price of one search. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | | upstream_error | HTTP 502. The target or search timed out or returned an error we couldn't recover from. You weren't billed. | | not_configured | HTTP 503. The service behind this route isn't set up on this server. You weren't billed. | --- # Usage `GET /v1/usage` Your organization's spend and request counts across every product. Family: Crawl API ## Price Unit: request Free. ## Description Every billed request: crawls, map, searches (native and the SERP API routes), Pages, AI, Business, Ads, audits and visibility runs. Amounts are what you were charged. All-time unless `from` / `to` narrow it. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `from` | string | no | First day to count, YYYY-MM-DD (UTC), inclusive. | | `to` | string | no | Last day to count, YYYY-MM-DD (UTC), inclusive. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/usage" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok`. | | `currency` | string | Always `USD`. | | `from` | string\|null | The `from` you sent, or null. | | `to` | string\|null | The `to` you sent, or null. | | `cost` | number | Total spend, USD. | | `units` | object | Counts. | | `units.crawl_tasks` | integer | Crawl tasks run. | | `units.crawl_pages_billed` | integer | Crawl tasks that were billed. | | `units.serp_requests` | integer | Searches run (native and SERP API routes). | | `units.serp_requests_billed` | integer | Searches that were billed. | | `units.requests` | integer | Requests of every product. | | `units.requests_billed` | integer | Requests of every product that were billed. | | `spend` | object | Spend by product group. | | `spend.crawl_usd` | number | Crawl spend, USD. | | `spend.serp_usd` | number | Search spend, USD. | | `products` | array<object> | Requests and spend per product and mode. | | `products.product` | string | Product key, for example `serp.google.organic` or `crawl_job`. | | `products.mode` | string\|null | `live`, `standard`, `priority`, or null. | | `products.requests` | integer | Requests. | | `products.requests_billed` | integer | Requests that were billed. | | `products.charged_usd` | number | Charged, USD. | | `total_crawl_jobs` | integer | Same as `units.crawl_tasks`. Kept for older clients. | | `total_cost_usd` | string | Same as `cost`, as a decimal string. Kept for older clients. | ### Example response ```json { "status": "ok", "currency": "USD", "from": "2026-11-01", "to": "2026-11-30", "cost": 0.79036, "units": { "crawl_tasks": 1840, "crawl_pages_billed": 1795, "serp_requests": 520, "serp_requests_billed": 514, "requests": 2385, "requests_billed": 2334 }, "spend": { "crawl_usd": 0.4213, "serp_usd": 0.27756 }, "products": [ { "product": "ai.chat_gpt.llm_responses", "mode": "live", "requests": 25, "requests_billed": 25, "charged_usd": 0.0915 }, { "product": "crawl_job", "mode": null, "requests": 1840, "requests_billed": 1795, "charged_usd": 0.4213 }, { "product": "serp.google.organic", "mode": "live", "requests": 120, "requests_billed": 118, "charged_usd": 0.06372 }, { "product": "serp.google.organic", "mode": "standard", "requests": 400, "requests_billed": 396, "charged_usd": 0.21384 } ], "total_crawl_jobs": 1840, "total_cost_usd": "0.79036" } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. `from` or `to` isn't a YYYY-MM-DD date, or `from` is after `to`. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | --- # List visibility trackers `GET /v1/visibility/trackers` Your organization's AI visibility trackers, each with its latest run. Family: AI visibility ## Price Unit: request Free. Tracker runs are billed when they run. ## Description Trackers are set up in the dashboard; this route reads them. Up to 200 trackers. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `project` | string | no | A project id, or `all`. default `all` | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/visibility/trackers" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok`. | | `trackers_count` | integer | Entries in `trackers`. | | `trackers` | array<object> | The trackers. | | `trackers.id` | string | Tracker id, `vt_…`. | | `trackers.name` | string | Tracker name. | | `trackers.brand_name` | string | The brand it tracks. | | `trackers.brand_domains` | array<string> | The brand's domains; citations of these count as brand citations. | | `trackers.competitors` | array<object> | Competitor brands. | | `trackers.competitors.name` | string | Competitor name. | | `trackers.competitors.aliases` | array<string> | Other names that count as a mention. | | `trackers.competitors.domains` | array<string> | Competitor domains. | | `trackers.competitor_domains` | array<string> | All competitor domains. | | `trackers.prompts` | array<string> | The questions sent to each answer engine. | | `trackers.providers` | array<string> | Answer engines by id: `openai` (ChatGPT), `anthropic` (Claude), `perplexity` (Perplexity). Empty means every available engine. | | `trackers.schedule_daily` | boolean | True when it runs every day. | | `trackers.is_active` | boolean | False when paused. | | `trackers.project_id` | string\|null | Project it belongs to. | | `trackers.last_run_at` | string\|null | When it last ran, ISO 8601 UTC. | | `trackers.created_at` | string\|null | When it was created, ISO 8601 UTC. | | `trackers.latest_run` | object\|null | The most recent run. | | `trackers.latest_run.id` | string | Run id, `vr_…`. | | `trackers.latest_run.status` | string | Run state. one of `pending`, `processing`, `completed`, `failed` | | `trackers.latest_run.answer_count` | integer | Answers collected. | | `trackers.latest_run.failed_answer_count` | integer | Answers that failed (not billed). | | `trackers.latest_run.billed_usd` | number | What the run was charged, USD. | | `trackers.latest_run.created_at` | string\|null | When it started, ISO 8601 UTC. | | `trackers.latest_run.completed_at` | string\|null | When it finished, ISO 8601 UTC. | ### Example response ```json { "status": "ok", "trackers_count": 1, "trackers": [ { "id": "vt_8cbb5b5c8e155c82995945f93cdad009", "name": "Trail shoes, Boulder", "brand_name": "Summit Running Co.", "brand_domains": [ "summitrunning.example" ], "competitors": [ { "name": "Peak Outfitters", "aliases": [ "Peak" ], "domains": [ "peakoutfitters.example" ] } ], "competitor_domains": [ "peakoutfitters.example" ], "prompts": [ "best running store in Boulder", "where to get fitted for trail shoes in Boulder" ], "providers": [ "openai", "anthropic" ], "schedule_daily": true, "is_active": true, "project_id": null, "last_run_at": "2026-12-03T10:42:18Z", "created_at": "2026-11-12T10:42:18Z", "latest_run": { "id": "vr_744695e7dd8a5016bb2b2d314ea9ef81", "status": "completed", "answer_count": 12, "failed_answer_count": 0, "billed_usd": 0.264, "created_at": "2026-12-03T10:42:18Z", "completed_at": "2026-12-03T10:42:18Z" } } ] } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. `project` isn't a UUID or `all`. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | not_found | HTTP 404. No project with that id in your organization. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | ## Related - [Visibility tracker summary](https://dataforgaio.com/docs/api/visibility-tracker-summary.md): How often AI answers mention and cite your brand, share of voice against competitors, sentiment, and the prompts where you're missing. --- # Visibility tracker summary `GET /v1/visibility/trackers/{id}/summary` How often AI answers mention and cite your brand, share of voice against competitors, sentiment, and the prompts where you're missing. Family: AI visibility ## Price Unit: request Free. Tracker runs are billed when they run. ## Description Covers the answers collected in the last `days` days, by engine, by day and by prompt. Failed answers are left out of every rate. Free. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | Tracker id, with or without the `vt_` prefix. | | `days` | integer | no | Window in days. default `30`; min 1; max 365 | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/visibility/trackers/TASK_ID/summary" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `status` | string | Always `ok`. | | `tracker` | object | The tracker. | | `tracker.id` | string | Tracker id, `vt_…`. | | `tracker.name` | string | Tracker name. | | `tracker.brand_name` | string | The brand it tracks. | | `tracker.brand_domains` | array<string> | The brand's domains; citations of these count as brand citations. | | `tracker.competitors` | array<object> | Competitor brands. | | `tracker.competitors.name` | string | Competitor name. | | `tracker.competitors.aliases` | array<string> | Other names that count as a mention. | | `tracker.competitors.domains` | array<string> | Competitor domains. | | `tracker.competitor_domains` | array<string> | All competitor domains. | | `tracker.prompts` | array<string> | The questions sent to each answer engine. | | `tracker.providers` | array<string> | Answer engines by id: `openai` (ChatGPT), `anthropic` (Claude), `perplexity` (Perplexity). Empty means every available engine. | | `tracker.schedule_daily` | boolean | True when it runs every day. | | `tracker.is_active` | boolean | False when paused. | | `tracker.project_id` | string\|null | Project it belongs to. | | `tracker.last_run_at` | string\|null | When it last ran, ISO 8601 UTC. | | `tracker.created_at` | string\|null | When it was created, ISO 8601 UTC. | | `tracker.latest_run` | object\|null | The most recent run. | | `tracker.latest_run.id` | string | Run id, `vr_…`. | | `tracker.latest_run.status` | string | Run state. one of `pending`, `processing`, `completed`, `failed` | | `tracker.latest_run.answer_count` | integer | Answers collected. | | `tracker.latest_run.failed_answer_count` | integer | Answers that failed (not billed). | | `tracker.latest_run.billed_usd` | number | What the run was charged, USD. | | `tracker.latest_run.created_at` | string\|null | When it started, ISO 8601 UTC. | | `tracker.latest_run.completed_at` | string\|null | When it finished, ISO 8601 UTC. | | `currency` | string | Always `USD`. | | `brand_name` | string | The brand it tracks. | | `days` | integer | The window, in days. | | `since` | string | Start of the window, ISO 8601 UTC. | | `run_count` | integer | Runs in the window. | | `billed_usd` | number | What runs in the window were charged, USD. | | `provider_labels` | object | Display name for each engine id. | | `answers` | integer | Answers counted (failed answers excluded). | | `mention_rate` | number\|null | Share of answers mentioning the brand, 0 to 1. | | `citation_rate` | number\|null | Share of answers citing a brand domain, 0 to 1. | | `providers` | array<object> | Rates by engine. | | `providers.provider` | string | Engine id. | | `providers.answers` | integer | Answers counted (failed answers excluded). | | `providers.mention_rate` | number\|null | Share of answers mentioning the brand, 0 to 1. | | `providers.citation_rate` | number\|null | Share of answers citing a brand domain, 0 to 1. | | `series` | array<object> | Rates by engine and day. | | `series.provider` | string | Engine id. | | `series.day` | string | Date, YYYY-MM-DD. | | `series.answers` | integer | Answers counted (failed answers excluded). | | `series.mention_rate` | number\|null | Share of answers mentioning the brand, 0 to 1. | | `series.citation_rate` | number\|null | Share of answers citing a brand domain, 0 to 1. | | `top_domains` | array<object> | Most-cited domains, up to 15, most answers first; ties in alphabetical order. | | `top_domains.domain` | string | Domain. | | `top_domains.answers` | integer | Answers citing it. | | `prompts` | array<object> | Rates by prompt. | | `prompts.prompt` | string | The prompt. | | `prompts.answers` | integer | Answers counted (failed answers excluded). | | `prompts.mention_rate` | number\|null | Share of answers mentioning the brand, 0 to 1. | | `prompts.citation_rate` | number\|null | Share of answers citing a brand domain, 0 to 1. | | `prompts.absent` | boolean | True when no answer mentioned or cited the brand. | | `prompts.providers_absent` | array<string> | Engines whose answers left the brand out. | | `prompts.tracked` | boolean | True when the prompt is still on the tracker. | | `share_of_voice` | object | Your brand against the tracked competitors. | | `share_of_voice.brand_name` | string | Your brand. | | `share_of_voice.answers` | integer | Answers counted. | | `share_of_voice.total_mentions` | integer | Mentions of any tracked brand. | | `share_of_voice.total_citations` | integer | Citations of any tracked brand. | | `share_of_voice.brand_mention_share` | number\|null | Your share of mentions, 0 to 1. | | `share_of_voice.brand_citation_share` | number\|null | Your share of citations, 0 to 1. | | `share_of_voice.brand_avg_position` | number\|null | Your average first-mention rank. | | `share_of_voice.brands` | array<object> | Every tracked brand. | | `share_of_voice.brands.name` | string | Brand name. | | `share_of_voice.brands.is_brand` | boolean | True for your brand, false for a competitor. | | `share_of_voice.brands.mentions` | integer | Answers mentioning it. | | `share_of_voice.brands.citations` | integer | Answers citing its domains. | | `share_of_voice.brands.mention_share` | number\|null | Share of tracked-brand mentions, 0 to 1. | | `share_of_voice.brands.citation_share` | number\|null | Share of tracked-brand citations, 0 to 1. | | `share_of_voice.brands.avg_position` | number\|null | Average first-mention rank. | | `share_of_voice.providers` | array<object> | Share of voice by engine. | | `share_of_voice.providers.provider` | string | Engine id. | | `share_of_voice.providers.answers` | integer | Answers counted. | | `share_of_voice.providers.total_mentions` | integer | Mentions of any tracked brand. | | `share_of_voice.providers.total_citations` | integer | Citations of any tracked brand. | | `share_of_voice.providers.mention_share` | number\|null | The brand's share of tracked-brand mentions, 0 to 1. | | `share_of_voice.providers.citation_share` | number\|null | The brand's share of tracked-brand citations, 0 to 1. | | `share_of_voice.providers.avg_position` | number\|null | Average rank at which the brand is first mentioned. | | `share_of_voice.providers.brands` | array<object> | Every tracked brand on this engine. | | `share_of_voice.providers.brands.name` | string | Brand name. | | `share_of_voice.providers.brands.is_brand` | boolean | True for your brand, false for a competitor. | | `share_of_voice.providers.brands.mentions` | integer | Answers mentioning it. | | `share_of_voice.providers.brands.citations` | integer | Answers citing its domains. | | `share_of_voice.providers.brands.mention_share` | number\|null | Share of tracked-brand mentions, 0 to 1. | | `share_of_voice.providers.brands.citation_share` | number\|null | Share of tracked-brand citations, 0 to 1. | | `share_of_voice.providers.brands.avg_position` | number\|null | Average first-mention rank. | | `share_of_voice.prompts` | array<object> | Your share of voice by prompt. | | `share_of_voice.prompts.prompt` | string | The prompt. | | `share_of_voice.prompts.answers` | integer | Answers counted. | | `share_of_voice.prompts.total_mentions` | integer | Mentions of any tracked brand. | | `share_of_voice.prompts.total_citations` | integer | Citations of any tracked brand. | | `share_of_voice.prompts.mention_share` | number\|null | The brand's share of tracked-brand mentions, 0 to 1. | | `share_of_voice.prompts.citation_share` | number\|null | The brand's share of tracked-brand citations, 0 to 1. | | `share_of_voice.prompts.avg_position` | number\|null | Average rank at which the brand is first mentioned. | | `share_of_voice.series` | array<object> | Share of voice by day. | | `share_of_voice.series.day` | string | Date, YYYY-MM-DD. | | `share_of_voice.series.mention_share` | object | Mention share by brand name. | | `share_of_voice.series.citation_share` | object | Citation share by brand name. | | `sentiment` | object | How answers that mention the brand describe it. | | `sentiment.scored` | integer | Answers with a sentiment score. | | `sentiment.positive` | integer | Positive answers. | | `sentiment.neutral` | integer | Neutral answers. | | `sentiment.negative` | integer | Negative answers. | | `sentiment.positive_rate` | number\|null | Share positive, 0 to 1. | | `sentiment.negative_rate` | number\|null | Share negative, 0 to 1. | | `sentiment.providers` | array<object> | Sentiment by engine. | | `sentiment.providers.provider` | string | Engine id. | | `sentiment.providers.scored` | integer | Scored answers. | | `sentiment.providers.positive` | integer | Positive answers. | | `sentiment.providers.neutral` | integer | Neutral answers. | | `sentiment.providers.negative` | integer | Negative answers. | ### Example response ```json { "status": "ok", "tracker": { "id": "vt_8cbb5b5c8e155c82995945f93cdad009", "name": "Trail shoes, Boulder", "brand_name": "Summit Running Co.", "brand_domains": [ "summitrunning.example" ], "competitors": [ { "name": "Peak Outfitters", "aliases": [ "Peak" ], "domains": [ "peakoutfitters.example" ] } ], "competitor_domains": [ "peakoutfitters.example" ], "prompts": [ "best running store in Boulder", "where to get fitted for trail shoes in Boulder" ], "providers": [ "openai", "anthropic" ], "schedule_daily": true, "is_active": true, "project_id": null, "last_run_at": "2026-12-03T10:42:18Z", "created_at": "2026-11-12T10:42:18Z", "latest_run": { "id": "vr_744695e7dd8a5016bb2b2d314ea9ef81", "status": "completed", "answer_count": 12, "failed_answer_count": 0, "billed_usd": 0.264, "created_at": "2026-12-03T10:42:18Z", "completed_at": "2026-12-03T10:42:18Z" } }, "currency": "USD", "brand_name": "Summit Running Co.", "days": 30, "since": "2026-11-03T10:42:18Z", "run_count": 4, "billed_usd": 1.056, "provider_labels": { "anthropic": "Claude", "openai": "ChatGPT", "perplexity": "Perplexity" }, "answers": 4, "mention_rate": 0.75, "citation_rate": 0.5, "providers": [ { "provider": "anthropic", "answers": 2, "mention_rate": 1, "citation_rate": 0.5 }, { "provider": "openai", "answers": 2, "mention_rate": 0.5, "citation_rate": 0.5 } ], "series": [ { "provider": "anthropic", "day": "2026-12-03", "answers": 2, "mention_rate": 1, "citation_rate": 0.5 }, { "provider": "openai", "day": "2026-12-03", "answers": 2, "mention_rate": 0.5, "citation_rate": 0.5 } ], "top_domains": [ { "domain": "summitrunning.example", "answers": 4 }, { "domain": "example-guide.com", "answers": 2 } ], "prompts": [ { "prompt": "best running store in Boulder", "answers": 2, "mention_rate": 1, "citation_rate": 1, "absent": false, "providers_absent": [], "tracked": true }, { "prompt": "where to get fitted for trail shoes in Boulder", "answers": 2, "mention_rate": 0.5, "citation_rate": 0, "absent": false, "providers_absent": [ "openai" ], "tracked": true } ], "share_of_voice": { "brand_name": "Summit Running Co.", "answers": 4, "total_mentions": 7, "total_citations": 2, "brand_mention_share": 0.4286, "brand_citation_share": 1, "brand_avg_position": 1, "brands": [ { "name": "Summit Running Co.", "is_brand": true, "mentions": 3, "citations": 2, "mention_share": 0.4286, "citation_share": 1, "avg_position": 1 }, { "name": "Peak Outfitters", "is_brand": false, "mentions": 4, "citations": 0, "mention_share": 0.5714, "citation_share": 0, "avg_position": 1.75 } ], "providers": [ { "provider": "anthropic", "answers": 2, "total_mentions": 4, "total_citations": 1, "mention_share": 0.5, "citation_share": 1, "avg_position": 1, "brands": [ { "name": "Summit Running Co.", "is_brand": true, "mentions": 2, "citations": 1, "mention_share": 0.5, "citation_share": 1, "avg_position": 1 }, { "name": "Peak Outfitters", "is_brand": false, "mentions": 2, "citations": 0, "mention_share": 0.5, "citation_share": 0, "avg_position": 2 } ] }, { "provider": "openai", "answers": 2, "total_mentions": 3, "total_citations": 1, "mention_share": 0.3333, "citation_share": 1, "avg_position": 1, "brands": [ { "name": "Summit Running Co.", "is_brand": true, "mentions": 1, "citations": 1, "mention_share": 0.3333, "citation_share": 1, "avg_position": 1 }, { "name": "Peak Outfitters", "is_brand": false, "mentions": 2, "citations": 0, "mention_share": 0.6667, "citation_share": 0, "avg_position": 1.5 } ] } ], "prompts": [ { "prompt": "best running store in Boulder", "answers": 2, "total_mentions": 4, "total_citations": 2, "mention_share": 0.5, "citation_share": 1, "avg_position": 1 }, { "prompt": "where to get fitted for trail shoes in Boulder", "answers": 2, "total_mentions": 3, "total_citations": 0, "mention_share": 0.3333, "citation_share": null, "avg_position": 1 } ], "series": [ { "day": "2026-12-03", "mention_share": { "Summit Running Co.": 0.4286, "Peak Outfitters": 0.5714 }, "citation_share": { "Summit Running Co.": 1, "Peak Outfitters": 0 } } ] }, "sentiment": { "scored": 3, "positive": 3, "neutral": 0, "negative": 0, "positive_rate": 1, "negative_rate": 0, "providers": [ { "provider": "anthropic", "scored": 2, "positive": 2, "neutral": 0, "negative": 0 }, { "provider": "openai", "scored": 1, "positive": 1, "neutral": 0, "negative": 0 } ] } } ``` ## Errors | Code | When | |---|---| | invalid_request | HTTP 400. `days` isn't a whole number. | | unauthorized | HTTP 401. Missing, malformed or revoked API key. | | not_found | HTTP 404. No tracker with that id in your organization. | | rate_limited | HTTP 429. Too many requests, or too many inline requests in flight for your organization. Honor `Retry-After`. | ## Related - [List visibility trackers](https://dataforgaio.com/docs/api/visibility-trackers.md): Your organization's AI visibility trackers, each with its latest run. --- # User Data `GET /v1/account/user_data` Your login, organization, rate limit, wallet balance and the price list. Family: Account ## Price Unit: request Free. Account routes never charge your wallet. ## Description Call it to check the key works and see your balance before a large run. Free. Account routes never charge your wallet. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/account/user_data" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry. | | `tasks.result.login` | string | Email of the user who owns the API key. | | `tasks.result.timezone` | string | Always `UTC`. Every time in the API is UTC. | | `tasks.result.organization` | string | Organization the key belongs to. | | `tasks.result.rates` | object | Rate limits. | | `tasks.result.rates.limits` | object | Limits by window. | | `tasks.result.rates.limits.minute` | object | Per-minute limit. | | `tasks.result.rates.limits.minute.total` | integer | Requests per minute allowed for this key. | | `tasks.result.money` | object | Wallet. | | `tasks.result.money.balance` | number | Wallet balance in USD. | | `tasks.result.money.currency` | string | Always `USD`. | | `tasks.result.money.auto_top_up` | boolean | True when automatic top-up is on. | | `tasks.result.price` | object | Your list prices for every supported paid route, keyed by route (`/v1/...`), then by mode or queue (`live`, `standard`, `priority`), in USD per unit. Routes priced by fetch level add `fetch_level` with the `rendered` and `protected` prices. Free routes aren't listed. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "account", "user_data" ], "data": {}, "result": [ { "login": "dev@summitrunning.example", "timezone": "UTC", "organization": "Summit Running Co.", "rates": { "limits": { "minute": { "total": 120 } } }, "money": { "balance": 24.8731, "currency": "USD", "auto_top_up": true }, "price": { "/v1/ads/meta": { "live": 0.00018 }, "/v1/ads/yelp": { "live": 0.00045 }, "/v1/ai/chat_gpt/llm_responses/live": { "live": 0.00054 }, "/v1/ai/chat_gpt/llm_responses/task_post": { "standard": 0.00018, "priority": 0.00054 } } } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | ## Migrating Replaces DataForSEO `/v3/appendix/user_data`. Same request body and response envelope; change the base URL and the key. ## Related - [Errors](https://dataforgaio.com/docs/api/account-errors.md): Tasks that failed in the last 7 days, newest first. - [Status](https://dataforgaio.com/docs/api/account-status.md): A health check that also confirms your key. - [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md): Send a finished task's pingback and postback again. - [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md): Every route we mirror, whether it's supported yet, and its list price. - [Receipt](https://dataforgaio.com/docs/api/account-receipts.md): Look up the receipt behind any response's `receipt_id`. --- # Errors `POST /v1/account/errors` Tasks that failed in the last 7 days, newest first. Family: Account ## Price Unit: request Free. Account routes never charge your wallet. ## Description Lists queued tasks that ended in an error, with the request you sent, so you can fix and resend them. Live requests return their errors directly and aren't listed. Free. Account routes never charge your wallet. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 1 per request). | Field | Type | Required | Description | |---|---|---|---| | `limit` | integer | no | Most failed tasks to return. default `1000`; min 1; max 1000 | | `offset` | integer | no | Number of failed tasks to skip, for paging. default `0`; min 0 | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/account/errors" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "limit": 10, "offset": 0 } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry. | | `tasks.result.total_count` | integer | Failed tasks in the last 7 days. | | `tasks.result.items_count` | integer | Entries in `items`. | | `tasks.result.items` | array<object> | The failed tasks. | | `tasks.result.items.id` | string | Task id. | | `tasks.result.items.status_code` | integer | The error code the task ended with. | | `tasks.result.items.status_message` | string | The error message. | | `tasks.result.items.function` | string | The route the task was posted to, `/v1/...`. | | `tasks.result.items.data` | object | The task as you sent it. | | `tasks.result.items.datetime` | string\|null | When the task was posted, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "account", "errors" ], "data": { "limit": 10, "offset": 0 }, "result": [ { "total_count": 1, "items_count": 1, "items": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "status_code": 40501, "status_message": "Invalid Field: 'keyword'.", "function": "/v1/serp/google/organic/task_post", "data": { "keyword": "", "location_code": 2840, "language_code": "en" }, "datetime": "2026-12-03 10:42:18 +00:00" } ] } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40501 | `limit` or `offset` isn't a whole number. | ## Migrating Replaces DataForSEO `/v3/appendix/errors`. Same request body and response envelope; change the base URL and the key. ## Related - [User Data](https://dataforgaio.com/docs/api/account-user-data.md): Your login, organization, rate limit, wallet balance and the price list. - [Status](https://dataforgaio.com/docs/api/account-status.md): A health check that also confirms your key. - [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md): Send a finished task's pingback and postback again. - [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md): Every route we mirror, whether it's supported yet, and its list price. - [Receipt](https://dataforgaio.com/docs/api/account-receipts.md): Look up the receipt behind any response's `receipt_id`. --- # Status `GET /v1/account/status` A health check that also confirms your key. Family: Account ## Price Unit: request Free. Account routes never charge your wallet. ## Description Returns `ok` and the server time when the API is up and the key is valid. Free. Account routes never charge your wallet. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. _None._ ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/account/status" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry. | | `tasks.result.status` | string | Always `ok`. | | `tasks.result.checked_at` | string | Server time, `YYYY-MM-DD HH:MM:SS +00:00`. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "account", "status" ], "data": {}, "result": [ { "status": "ok", "checked_at": "2026-12-03 10:42:18 +00:00" } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | ## Migrating Replaces DataForSEO `/v3/appendix/status`. Same request body and response envelope; change the base URL and the key. ## Related - [User Data](https://dataforgaio.com/docs/api/account-user-data.md): Your login, organization, rate limit, wallet balance and the price list. - [Errors](https://dataforgaio.com/docs/api/account-errors.md): Tasks that failed in the last 7 days, newest first. - [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md): Send a finished task's pingback and postback again. - [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md): Every route we mirror, whether it's supported yet, and its list price. - [Receipt](https://dataforgaio.com/docs/api/account-receipts.md): Look up the receipt behind any response's `receipt_id`. --- # Webhook Resend `POST /v1/account/webhook_resend` Send a finished task's pingback and postback again. Family: Account ## Price Unit: request Free. Account routes never charge your wallet. ## Description Use it when your endpoint was down when the task finished. The task must be completed or failed, and must have had a `pingback_url` or `postback_url` when posted; calls go to those same URLs. Free. Account routes never charge your wallet. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send a JSON array of task objects (up to 1 per request). | Field | Type | Required | Description | |---|---|---|---| | `id` | string | yes | The task id. | ### Example request ```bash curl -X POST "https://api.dataforgaio.com/v1/account/webhook_resend" \ -u "api:$DATAFORGAIO_API_KEY" \ -H "Content-Type: application/json" \ -d '[ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009" } ]' ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry. | | `tasks.result.id` | string | The task id. | | `tasks.result.resent` | boolean | Always true. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "account", "webhook_resend" ], "data": { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009" }, "result": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "resent": true } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | | 40401 | No task with this id in your organization. | | 40602 | The task hasn't finished yet. | ## Migrating Replaces DataForSEO `/v3/appendix/webhook_resend`. Same request body and response envelope; change the base URL and the key. ## Related - [User Data](https://dataforgaio.com/docs/api/account-user-data.md): Your login, organization, rate limit, wallet balance and the price list. - [Errors](https://dataforgaio.com/docs/api/account-errors.md): Tasks that failed in the last 7 days, newest first. - [Status](https://dataforgaio.com/docs/api/account-status.md): A health check that also confirms your key. - [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md): Every route we mirror, whether it's supported yet, and its list price. - [Receipt](https://dataforgaio.com/docs/api/account-receipts.md): Look up the receipt behind any response's `receipt_id`. --- # Support Matrix `GET /v1/account/support_matrix` Every route we mirror, whether it's supported yet, and its list price. Family: Account ## Price Unit: request Free. Account routes never charge your wallet. ## Description The machine-readable version of the support table in these docs. Filter with `family` and `supported`. Free. Account routes never charge your wallet. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request Send the fields as query parameters. | Field | Type | Required | Description | |---|---|---|---| | `family` | string | no | Only routes in this family. one of `account`, `ads`, `ai`, `app_data`, `backlinks`, `business`, `content_analysis`, `dataforseo_labs`, `domain_analytics`, `keywords_data`, `merchant`, `pages`, `serp` | | `supported` | boolean | no | `true` (or `1`, `yes`) lists supported routes only. default `false` | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/account/support_matrix" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry. | | `tasks.result.total_count` | integer | Routes listed. | | `tasks.result.supported_count` | integer | Of those, how many are supported. | | `tasks.result.items_count` | integer | Entries in `items`. | | `tasks.result.items` | array<object> | One entry per route. | | `tasks.result.items.path` | string | The route, `/v1/...`. | | `tasks.result.items.family` | string | Family the route belongs to. | | `tasks.result.items.source_format` | string | Request and response shape: `dataforseo`, `scaleserp`, `outscraper` or `apify`. one of `dataforseo`, `scaleserp`, `outscraper`, `apify` | | `tasks.result.items.method` | string | HTTP method. one of `GET`, `POST` | | `tasks.result.items.mode` | string\|null | `live`, `task_post`, `tasks_ready`, `task_get`, or null for lists and account routes. | | `tasks.result.items.supported` | boolean | True when the route returns data today. Unsupported routes return 40400. | | `tasks.result.items.price_usd` | object\|null | List price by mode or queue, as decimal strings. Null when the route is free or unsupported. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "account", "support_matrix" ], "data": { "family": "serp", "supported": "true" }, "result": [ { "total_count": 23, "supported_count": 23, "items_count": 23, "items": [ { "path": "/v1/serp/bing/languages", "family": "serp", "source_format": "dataforseo", "method": "GET", "mode": null, "supported": true, "price_usd": null }, { "path": "/v1/serp/bing/locations", "family": "serp", "source_format": "dataforseo", "method": "GET", "mode": null, "supported": true, "price_usd": null }, { "path": "/v1/serp/bing/organic/live/advanced", "family": "serp", "source_format": "dataforseo", "method": "POST", "mode": "live", "supported": true, "price_usd": { "live": "0.0018" } }, { "path": "/v1/serp/bing/organic/live/regular", "family": "serp", "source_format": "dataforseo", "method": "POST", "mode": "live", "supported": true, "price_usd": { "live": "0.0018" } }, { "path": "/v1/serp/bing/organic/task_get/advanced", "family": "serp", "source_format": "dataforseo", "method": "GET", "mode": "task_get", "supported": true, "price_usd": null } ] } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40503 | The body isn't a JSON array of task objects, or the method isn't POST (HTTP 400 or 405). | | 40006 | More than 100 tasks in one POST (HTTP 400). | | 40210 | Wallet balance below the worst case this POST could cost (HTTP 402). | | 40501 | A task field failed validation. Returned per task; other tasks still run. | | 50000 | The task returned no data because of an error on our side or upstream. $0. | ## Related - [User Data](https://dataforgaio.com/docs/api/account-user-data.md): Your login, organization, rate limit, wallet balance and the price list. - [Errors](https://dataforgaio.com/docs/api/account-errors.md): Tasks that failed in the last 7 days, newest first. - [Status](https://dataforgaio.com/docs/api/account-status.md): A health check that also confirms your key. - [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md): Send a finished task's pingback and postback again. - [Receipt](https://dataforgaio.com/docs/api/account-receipts.md): Look up the receipt behind any response's `receipt_id`. --- # Receipt `GET /v1/account/receipts/{receipt_id}` Look up the receipt behind any response's `receipt_id`. Family: Account ## Price Unit: request Free. Account routes never charge your wallet. ## Description Every SERP, Pages, AI, Business and Ads API response carries a `receipt_id`. This route returns what that request was charged and how its data was fetched. Only receipts from your organization are found. `/v1/receipts/{receipt_id}` is the same route. Free. Account routes never charge your wallet. ## Authentication HTTP Basic auth: any login, with your `dg_` API key as the password. A `Bearer` token header with the key also works. ## Request No request body. | Field | Type | Required | Description | |---|---|---|---| | `receipt_id` | string | yes | The `receipt_id` from a response. | ### Example request ```bash curl -X GET "https://api.dataforgaio.com/v1/account/receipts/RECEIPT_ID" \ -u "api:$DATAFORGAIO_API_KEY" ``` ## Response | Field | Type | Description | |---|---|---| | `version` | string | Response format version, for example `0.1.20261203`. | | `status_code` | integer | Status of the request as a whole. 20000 when it was accepted; each task has its own `status_code`. | | `status_message` | string | Plain-language request status. | | `time` | string | Time the whole request took, for example `1.8410 sec.` | | `cost` | number | Sum of every task's `cost`, in USD. | | `tasks_count` | integer | Number of tasks in `tasks`. | | `tasks_error` | integer | Tasks whose `status_code` is 40000 or higher. | | `tasks` | array<object> | One entry per task you sent, in the order you sent them. | | `tasks.id` | string | Task id (a UUID). For task_post, use it with task_get. | | `tasks.status_code` | integer | Outcome of this task. 20000 means data came back; 20100 means queued. See the status codes table. | | `tasks.status_message` | string | Plain-language status. For 40501 it names the field that failed. | | `tasks.time` | string | Time this task took on our side, for example `1.8203 sec.` | | `tasks.cost` | number | What this task was charged, in USD. 0 when it returned no data. | | `tasks.result_count` | integer | Number of entries in `result`. | | `tasks.path` | array<string> | The route this task ran on, split into segments, starting with `v1`. | | `tasks.data` | object | The task you sent, echoed back. Utility routes echo their query parameters. | | `tasks.result` | array<object>\|null | One entry. | | `tasks.result.receipt_id` | string | The receipt id you looked up. | | `tasks.result.product` | string | Product key, for example `serp.google.organic`. | | `tasks.result.mode` | string\|null | `live`, `standard`, `priority`, or null. | | `tasks.result.status` | string | `settled` (charged, possibly $0), `failed` ($0) or `open` (still running). one of `open`, `settled`, `failed` | | `tasks.result.charged_usd` | number | What the request was charged, USD. | | `tasks.result.currency` | string | Always `USD`. | | `tasks.result.fetch_level` | string\|null | Fetch level that delivered the data: `standard`, `rendered` or `protected`. one of `standard`, `rendered`, `protected`, `` | | `tasks.result.upgraded` | boolean | True when Auto-upgrade moved the request to a higher level. | | `tasks.result.upgrade_reason` | string\|null | Why it was upgraded, in fetch-level terms and HTTP facts. | | `tasks.result.cache_hit` | boolean | True when a cached result answered. | | `tasks.result.fetched_at` | string\|null | When the data was fetched, `YYYY-MM-DD HH:MM:SS +00:00`, where known. | | `tasks.result.created_at` | string\|null | When the request arrived. | | `tasks.result.settled_at` | string\|null | When the charge was settled. Null while open. | | `tasks.receipt_id` | string\|null | Id of the ledger receipt for this task: what was fetched, at which level, and what was charged. Null for utility routes and failed checks. | | `tasks.fetch_level` | string\|null | The fetch level that delivered the data: `standard`, `rendered` or `protected`. Null when the route doesn't fetch pages or nothing was fetched. one of `standard`, `rendered`, `protected` | | `tasks.upgraded` | boolean | True when Auto-upgrade moved the request past the included level (or, for SERP, to the live path) and the charge reflects that. | | `tasks.upgrade_reason` | string\|null | Why the request upgraded, in our level names and HTTP facts, for example `403 at standard; challenge page at rendered`. Null when it didn't upgrade. | | `tasks.cache_hit` | boolean | True when the data came from the shared result cache instead of a new fetch. | ### Example response ```json { "version": "0.1.20261203", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "tasks_count": 1, "tasks_error": 0, "tasks": [ { "id": "8cbb5b5c-8e15-5c82-9959-45f93cdad009", "status_code": 20000, "status_message": "Ok.", "time": "0.4210 sec.", "cost": 0, "result_count": 1, "path": [ "v1", "account", "receipts" ], "data": {}, "result": [ { "receipt_id": "744695e7-dd8a-5016-bb2b-2d314ea9ef81", "product": "serp.google.organic", "mode": "live", "status": "settled", "charged_usd": 0.0018, "currency": "USD", "fetch_level": "standard", "upgraded": false, "upgrade_reason": null, "cache_hit": false, "fetched_at": "2026-12-03 10:42:18 +00:00", "created_at": "2026-12-03 10:42:18 +00:00", "settled_at": "2026-12-03 10:42:18 +00:00" } ], "receipt_id": null, "fetch_level": null, "upgraded": false, "upgrade_reason": null, "cache_hit": false } ] } ``` ## Errors | Code | When | |---|---| | 40100 | No credentials were sent (HTTP 401). | | 40101 | The API key is missing, malformed or revoked (HTTP 401). | | 40202 | Too many requests for this key (HTTP 429, with `Retry-After`). | | 40401 | No receipt with this id in your organization (or not a receipt id). | ## Related - [User Data](https://dataforgaio.com/docs/api/account-user-data.md): Your login, organization, rate limit, wallet balance and the price list. - [Errors](https://dataforgaio.com/docs/api/account-errors.md): Tasks that failed in the last 7 days, newest first. - [Status](https://dataforgaio.com/docs/api/account-status.md): A health check that also confirms your key. - [Webhook Resend](https://dataforgaio.com/docs/api/account-webhook-resend.md): Send a finished task's pingback and postback again. - [Support Matrix](https://dataforgaio.com/docs/api/account-support-matrix.md): Every route we mirror, whether it's supported yet, and its list price. ---