API documentation
Requests, responses, and what each one cost.
63 documented operations across the SERP, Pages, AI answers, Business and Ads APIs, plus the Crawl API. Every task reports its fetch level, any upgrade and its reason, and the amount billed.
Quickstart
- 1. Create a key under Dashboard → Developers. It starts with
dg_and is shown once. - 2. Export it as
DATAFORGAIO_API_KEYand run the request. Basic auth: any login, the key as the password. - 3. Read
tasks[0].costand the receipt to see what was billed and why.
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",
"device": "desktop",
"depth": 10
}
]'API reference
All endpoints- SERP API23 opsGoogle and Bing organic results and Google Maps listings for a keyword, location, language and device, in the DataForSEO request and response shape.Google Organic SERP · Bing Organic SERP · Google Maps SERP · Google SERP · +1 more
- Pages API2 opsOn-page checks and the readable content of one URL, fetched at the cheapest level that works and billed by the level that returned the page.Instant Pages · Content Parsing
- AI answers API14 opsOne answer from a ChatGPT, Claude or Perplexity model for your prompt, with the sources it cited and the tokens it used.ChatGPT LLM Responses · Claude LLM Responses · Perplexity LLM Responses
- Business API7 opsGoogle business profiles, the products a profile lists, and place photos, in the DataForSEO, Scale SERP and Outscraper shapes.Google Business Profile · Google Business Products · Google Business Photos
- Ads API2 opsMeta Ad Library ads and Yelp search results with paid placements flagged, in the Apify actor input and dataset item shape.Meta Ad Library · Yelp Search Ads
- Crawl API7 opsOur native routes: crawl one URL or a batch of up to 100, map a site's URLs, run a search, and read your usage. Every task carries a receipt.Crawls · Map a site · Search results · Usage
- AI visibility2 opsRead the AI visibility trackers you set up in the dashboard: mention and citation rates, share of voice and sentiment across AI answer engines.Visibility
- Account6 opsBalance and prices, failed tasks, service status, callback resends, the route list, and the location and language lists SERP tasks accept. All free.Account
Guides
Get started
- IntroductionWhat the DataForGAIO API covers, how its endpoint families are organized, and how billing works.
- QuickstartCreate an API key, send your first Google SERP request with cURL, Python or Node, and read the response.
- AuthenticationAuthenticate 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 aliasThe /v1 base URL, how mirrored paths map to it, and the /v1/v3 alias for DataForSEO SDKs.
- Making requestsSend JSON arrays of up to 100 tasks, set per-task controls, and understand request-level and task-level limits.
Concepts
- Live and queued tasksThe 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-upgradeThe 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_ageThe 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 billingPublished 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 errorsEvery status code the API returns, whether it was billed, and how to handle each one, including retries with backoff.
- Rate limits and concurrencyThe per-key request rate, the per-organization limit on inline Crawl API requests, and how to stay under both.
- Locations and languagesCountry location codes, city targeting with location_name, map coordinates, language codes, and the free lists that enumerate them.
- Receipts and fetch factsWhat 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 retentionHow long we keep queued task results, raw HTML, cached results, billing records and AI answers.
Guides
- Handling webhooks securelyReceive pingback, postback and Crawl API batch webhooks, verify them by reading the result back with your key, and handle missed deliveries.
- Retrying safelyWhich 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 batchesRun 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 speedWhen to use the standard queue, the priority queue or live, with worked costs for common workloads.
Migrate
- Migrate from DataForSEOMove 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)Move Scale SERP search_type=place_products calls to /v1/business/google/products, with parameter and response mapping.
- Migrate from Outscraper (photos)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)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 queueTrack 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 MapsMeasure 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_responsesAsk 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)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 RAGList 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 auditAudit 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 agentMachine-readable versions of these docs for AI agents and coding assistants, including llms.txt, Markdown pages, the OpenAPI spec and the reference JSON.
- MCP serverConnect Claude, LiteLLM or any MCP client to the hosted DataForGAIO MCP server, with its tools, connection settings, costs and limits.
- SDKsWhat 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 tipsHow 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.
For agents and tools
- OpenAPI 3.1 specGenerate a client or import into Postman.
- llms.txtIndex of every page as Markdown, for agents.
- llms-full.txtAll guides and the full reference in one file.
- Reference JSONEvery endpoint, field, price and status code.
- MCP serverConnect Claude, Cursor and other MCP clients to the API.
- SDKsPython (dataforgaio) and TypeScript (@dataforgaio/sdk) clients for the native routes.
Every docs page is also available as Markdown: add .md to its URL.