API reference & agent specs

Every parameter, response field, status code, /mcp tool, and SKILL.md bundle for software engineers and coding agents.

Base URL
https://dataforapi.com/v1
Auth
Bearer dfa_live_...
MCP Server
https://dataforapi.com/mcp

Quickstart

Three steps from Google sign-in to your first parsed response. Every endpoint on this page follows the same envelope.

  1. 1
    Create a key

    Sign in with Google and open Console. Mint unlimited dfa_test_... ($0 Sandbox) or dfa_live_... keys.

  2. 2
    Send it as a Bearer token

    Put Authorization: Bearer dfa_live_... on every POST request to https://dataforapi.com/v1/*.

  3. 3
    Read exact cost & items

    Read tasks[0].result for rows and cost for exact USD debited. Upstream 5xx errors are never charged.

curl -X POST "https://dataforapi.com/v1/serp/google/organic/live/advanced" \
  -H "Authorization: Bearer dfa_test_YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '[{"keyword":"serp api","location_code":2840,"language_code":"en","depth":10}]'
{
  "version": "1.0",
  "status_code": 20000,
  "status_message": "Ok.",
  "cost": 0.002,
  "tasks": [
    {
      "status_code": 20000,
      "result": [
        {
          "keyword": "serp api",
          "items_count": 10,
          "items": [
            { "rank_group": 1, "title": "DataForAPI", "url": "https://dataforapi.com/" }
          ]
        }
      ]
    }
  ]
}

Authentication, Precision Billing & Status Codes

Pass your key via Authorization: Bearer dfa_live_..., X-API-Key, or HTTP Basic Auth. Balances are stored as integer micro-USD (1 USD = 1,000,000 micro-USD).

CodeHTTPMeaningBilling
20000200Ok — synchronous response or completed task retrieved.Exact settled USD
20100200Task Created — async task queued via /task_post.Task queue rate
40000400Validation error — invalid JSON array, parameter out of range, or SSRF blocked.$0.00
40100401Unauthorized — missing, revoked, or malformed API key.$0.00
40102200No Search Results — valid query returned zero SERP listings.Standard SERP rate
40200402Insufficient USD balance for worst-case request pre-authorization.$0.00
40203429Per-key UTC daily USD spending limit reached; resets at 00:00 UTC.$0.00
40400404Endpoint path not found under /v1/<family>/<endpoint>.$0.00
40401404Async task ID not found or belongs to a different account/environment.$0.00
40602200Task In Queue — async task still processing; retry /task_get shortly.$0.00 (free poll)
42900429Edge burst rate limit exceeded.$0.00
50000502Upstream execution error or timeout — 100% of reserved balance auto-refunded.$0.00 (refunded)

SERP API (/v1/serp/*)

Structured search engine results across Google, Bing, Google Maps, YouTube, and Google News.

POST/v1/serp/google/organic/live/advanced

Google Organic & AI Overview SERP (Live)

Try in Playground

Returns real-time desktop or mobile Google search results including organic listings, AI Overviews with cited URLs, People Also Ask trees, Local 3-Packs, and Knowledge Graph modules.

Rate: $0.00195 / SERP (10 results) · $0.0039 when load_async_ai_overview=true · 5× advanced operators · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query (up to 700 characters; advanced operators like site:/intitle: are 5×, -site: stays 1×).
location_codeintegerCountry, state, city, or postal geo code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code ("en", "de", "ja", "es", "fr").
device"desktop" | "mobile"Viewport and user-agent profile.
depthinteger (1–100)Number of results to retrieve (billed per 10-result SERP page).
load_async_ai_overviewbooleanExpand dynamically rendered AI Overview markdown and source citations ($0.0039 total).
people_also_ask_click_depthinteger (0–4)Expand nested People Also Ask accordions.
tagstringOptional caller correlation tag echoed back in tasks[].data.tag.

Key response fields

tasks[].result[].se_results_countintegerTotal estimated results reported by the search engine.
tasks[].result[].items[].typestringModule type: organic, ai_overview, people_also_ask, local_pack, knowledge_graph.
tasks[].result[].items[].rank_groupinteger1-based position inside its module type.
tasks[].result[].items[].urlstringDestination URL, root domain, title, and description snippet.
tasks[].result[].items[].markdownstringClean Markdown text + references[] array on ai_overview items.
[
  {
    "keyword": "serp api",
    "location_code": 2840,
    "language_code": "en",
    "device": "desktop",
    "depth": 10,
    "load_async_ai_overview": true
  }
]
POST/v1/serp/google/organic/task_post

Async SERP Queue (task_post → tasks_ready → task_get)

Try in Playground

For high-volume rank tracking that does not need sub-3-second latency, submit up to 100 tasks per POST to /task_post at 72% lower cost ($0.54 per 1,000 SERPs). Poll GET /v1/serp/google/organic/tasks_ready and retrieve via GET /v1/serp/google/organic/task_get/advanced/{id} at $0.00.

Rate: $0.00054 Standard (priority=1) · $0.00108 Priority (priority=2) · $0.00 polling

Request parameters

FieldTypeDescription
keywordreqstringSearch query per task object (1–100 tasks per POST array).
priority1 | 21 = Standard Queue (~45–180s, $0.00054); 2 = Priority Queue (~10–45s, $0.00108).
location_codeintegerTarget geo location code.
language_codestringTarget language code.

Key response fields

tasks[].idUUIDv7Tenant-isolated task identifier used to fetch results from /task_get/advanced/{id}.
tasks[].status_codeinteger20100 = Task Created.
[
  {
    "keyword": "cloud database benchmark",
    "location_code": 2840,
    "language_code": "en",
    "priority": 1
  },
  {
    "keyword": "postgres vector index",
    "location_code": 2840,
    "language_code": "en",
    "priority": 1
  }
]
POST/v1/serp/google/organic/live/advanced

Google Search + AI Overview

Try in Playground

Organic rankings plus full Google AI Overview markdown summary and cited source URLs.

Rate: $0.0039 / SERP · $0.00118 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").
load_async_ai_overviewbooleanExpand dynamically rendered AI Overview summary markdown and source citations.
depthintegerMaximum number of ranked results or listings to retrieve (10–100).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "ai agent search infrastructure",
    "location_code": 2840,
    "language_code": "en",
    "load_async_ai_overview": true,
    "depth": 10
  }
]
POST/v1/serp/bing/organic/live/advanced

Bing Organic SERP

Try in Playground

Live Bing web search rankings, featured answers, and rich citations.

Rate: $0.0018 / SERP · $0.00054 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").
depthintegerMaximum number of ranked results or listings to retrieve (10–100).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "web search grounding api",
    "location_code": 2840,
    "language_code": "en",
    "depth": 10
  }
]
POST/v1/serp/google/maps/live/advanced

Google Maps Local SERP

Try in Playground

Local business listings, star ratings, review counts, phone numbers, and GPS coordinates.

Rate: $0.00195 / SERP · $0.00059 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "specialty coffee roasters san francisco",
    "location_code": 2840,
    "language_code": "en",
    "depth": 10
  }
]
POST/v1/serp/youtube/organic/live/advanced

YouTube Video SERP

Try in Playground

Ranked YouTube video results, channel metadata, view counts, and publish timestamps.

Rate: $0.0018 / SERP · $0.00054 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "mcp server tutorial",
    "location_code": 2840,
    "language_code": "en"
  }
]
POST/v1/serp/google/news/live/advanced

Google News SERP

Try in Playground

Breaking news headlines, publisher domains, snippets, and publication timestamps.

Rate: $0.0018 / SERP · $0.00054 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "artificial intelligence agents",
    "location_code": 2840,
    "language_code": "en",
    "depth": 10
  }
]
POST/v1/serp/google/images/live/advanced

Google Images SERP

Try in Playground

Visual search rankings with source page URLs, image dimensions, alt text, and host domains.

Rate: $0.0018 / SERP · $0.00054 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "architecture diagram cloud",
    "location_code": 2840,
    "language_code": "en",
    "depth": 10
  }
]
POST/v1/serp/yahoo/organic/live/advanced

Naver, Baidu, Yahoo & DuckDuckGo SERP

Try in Playground

Regional search engine rankings across Naver, Baidu, Yahoo, Seznam, and DuckDuckGo.

Rate: $0.0018 / SERP · $0.00054 / SERP Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "cloud database",
    "location_code": 2840,
    "language_code": "en",
    "depth": 10
  }
]

Keywords & Trends API (/v1/keywords_data/*)

Bulk monthly search volume, advertiser CPC bounds, domain keyword discovery, and live Google Trends curves.

POST/v1/keywords_data/google_ads/search_volume/live

Keyword Planner Search Volume

Try in Playground

Batch monthly search volume, CPC bids, competition score, and 12-month history for up to 1,000 keywords.

Rate: $0.088 / task · $0.059 / task Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordsreqstring[]Array of keyword strings per task (up to 1,000 on search volume, 1–5 on Trends).
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[]object[]Structured metric payload objects corresponding to each submitted task.
[
  {
    "keywords": [
      "serp api",
      "keyword research api",
      "backlink api"
    ],
    "location_code": 2840,
    "language_code": "en"
  }
]
POST/v1/keywords_data/google_ads/keywords_for_site/live

Keywords For Site Discovery

Try in Playground

Discover high-intent seed keywords associated with any target domain or URL.

Rate: $0.088 / task · $0.059 / task Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
targetreqstringRoot domain ("linear.app") or full page URL to inspect.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[]object[]Structured metric payload objects corresponding to each submitted task.
[
  {
    "target": "stripe.com",
    "location_code": 2840,
    "language_code": "en"
  }
]
POST/v1/keywords_data/bing/search_volume/live

Bing Ads Search Volume

Try in Playground

Microsoft Advertising monthly search volume, CPC, and competition across Bing search markets.

Rate: $0.088 / task · $0.059 / task Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordsreqstring[]Array of keyword strings per task (up to 1,000 on search volume, 1–5 on Trends).
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[]object[]Structured metric payload objects corresponding to each submitted task.
[
  {
    "keywords": [
      "enterprise rag",
      "ai copilot",
      "vector search"
    ],
    "location_code": 2840,
    "language_code": "en"
  }
]
POST/v1/keywords_data/clickstream_data/global_search_volume/live

Clickstream Global Search Volume

Try in Playground

Real-user clickstream search volume without Google Ads keyword grouping or bucketing.

Rate: $0.178 / task · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordsreqstring[]Array of keyword strings per task (up to 1,000 on search volume, 1–5 on Trends).
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[]object[]Structured metric payload objects corresponding to each submitted task.
[
  {
    "keywords": [
      "claude code",
      "cursor ide",
      "mcp server"
    ],
    "location_code": 2840
  }
]

Search Labs & On-Page Audit (/v1/labs/*, /v1/on_page/*)

Competitor organic keyword footprints, domain intersections, search intent, site crawls, and Lighthouse audits.

POST/v1/labs/google/ranked_keywords/live

Domain Ranked Keywords

Try in Playground

Every organic keyword a competitor domain ranks for, with position, URL, and search volume.

Rate: $0.0118 + $0.000118/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
targetreqstringRoot domain ("linear.app") or full page URL to inspect.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "target": "raycast.com",
    "location_code": 2840,
    "language_code": "en",
    "limit": 10
  }
]
POST/v1/labs/google/keyword_ideas/live

Keyword Ideas Expansion

Try in Playground

Semantically clustered keyword expansions with search volume, difficulty, and intent.

Rate: $0.0118 + $0.000118/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordsreqstring[]Array of keyword strings per task (up to 1,000 on search volume, 1–5 on Trends).
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keywords": [
      "serp api",
      "web scraping api"
    ],
    "location_code": 2840,
    "language_code": "en",
    "limit": 10
  }
]
POST/v1/labs/google/serp_competitors/live

SERP Domain Competitors

Try in Playground

Identify domains competing across a keyword set with visibility score and average rank.

Rate: $0.0118 + $0.000118/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordsreqstring[]Array of keyword strings per task (up to 1,000 on search volume, 1–5 on Trends).
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keywords": [
      "serp api",
      "google search api",
      "keyword research api"
    ],
    "location_code": 2840,
    "language_code": "en",
    "limit": 10
  }
]
POST/v1/labs/google/domain_intersection/live

Competitor Content Gap (Domain Intersection)

Try in Playground

Find keywords where competitor A ranks in top results while domain B is missing or outranked.

Rate: $0.0118 + $0.000118/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
target1reqstringPrimary competitor root domain to compare.
target2stringBaseline domain intersected against target1.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "target1": "vercel.com",
    "target2": "netlify.com",
    "location_code": 2840,
    "language_code": "en",
    "limit": 10
  }
]
POST/v1/labs/google/search_intent/live

Keyword Search Intent Classification

Try in Playground

Classify up to 1,000 keywords into informational, commercial, transactional, or navigational intent.

Rate: $0.00118 + $0.000011/kw · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordsreqstring[]Array of keyword strings per task (up to 1,000 on search volume, 1–5 on Trends).
language_codestringISO 639-1 language code (for example "en", "de", "ja", "zh").

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keywords": [
      "buy serp api",
      "what is mcp protocol",
      "stripe login"
    ],
    "language_code": "en"
  }
]
POST/v1/on_page/instant_pages

On-Page Instant SEO Audit

Try in Playground

Real-time technical SEO inspection of any public URL: status, meta tags, H1–H6, word count, and On-Page score.

Rate: $0.000145 / page · $0.000145 / page Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
urlreqstringPublic HTTP/HTTPS URL to crawl or audit (private/loopback IPs blocked by SSRF guard).
enable_javascriptbooleanExecute headless browser JavaScript before extracting DOM metrics.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "url": "https://stripe.com/docs",
    "enable_javascript": false
  }
]
POST/v1/on_page/lighthouse/live/json

Google Lighthouse Core Web Vitals

Try in Playground

Live Lighthouse performance, accessibility, best-practices, and SEO audit scores with LCP/CLS/INP metrics.

Rate: $0.0049 / audit · $0.0049 / audit Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
urlreqstringPublic HTTP/HTTPS URL to crawl or audit (private/loopback IPs blocked by SSRF guard).
for_mobilebooleanRun audit using the mobile Lighthouse emulation profile.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "url": "https://dataforapi.com",
    "for_mobile": true
  }
]
POST/v1/on_page/content_parsing/live

Structured Web Page Content Parser

Try in Playground

Extract clean article sections, headings, links, tables, and structured markdown-ready text from any URL.

Rate: $0.000145 / page · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
urlreqstringPublic HTTP/HTTPS URL to crawl or audit (private/loopback IPs blocked by SSRF guard).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "url": "https://developers.cloudflare.com/workers/"
  }
]

Domain Tech, Content Analysis & AI Optimization (GEO)

Detect domain tech stacks and Whois profiles, monitor web citations and sentiment, generate meta tags, and track LLM citations across ChatGPT, Claude, Gemini, and Perplexity.

POST/v1/domain_analytics/technologies/domain_technologies/live

Domain Tech Stack Lookup

Try in Playground

Detect frameworks, CDN, analytics, payment providers, CMS, and hosting stack running on any domain.

Rate: $0.0118 / domain · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
targetreqstringRoot domain ("linear.app") or full page URL to inspect.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[]object[]Structured metric payload objects corresponding to each submitted task.
[
  {
    "target": "linear.app"
  }
]
POST/v1/domain_analytics/whois/overview/live

Domain Whois & Traffic Overview

Try in Playground

Query domain registration dates, registrar, expiry window, organic traffic metrics, and backlink counts.

Rate: $0.118 + $0.00118/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
limitreqintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "limit": 10,
    "filters": [
      [
        "domain",
        "like",
        "%ai%"
      ]
    ]
  }
]
POST/v1/content_analysis/sentiment_analysis/live

Brand & Topic Sentiment Analysis

Try in Playground

Aggregate positive, neutral, and negative polarity scores plus emotional connotations across web citations.

Rate: $0.0235 / call · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[]object[]Structured metric payload objects corresponding to each submitted task.
[
  {
    "keyword": "cloudflare workers"
  }
]
POST/v1/content_generation/generate_meta_tags/live

SEO Meta Title & Description Generator

Try in Playground

Generate SERP-ready title tags and meta descriptions from page copy, subtopics, or seed text.

Rate: $0.0029 / call · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
textreqstringSource page copy or article body used to generate metadata.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].title / descriptionstringGenerated SERP-ready meta title and meta description strings.
[
  {
    "text": "Real-time search engine results, keyword volume, trends, and backlink JSON API for AI agents.",
    "creativity_index": 0.7
  }
]
POST/v1/ai_optimization/llm_mentions/search_mentions/live

LLM Brand Mentions & Citations (GEO)

Try in Playground

Track how often ChatGPT, Claude, Gemini, and Perplexity cite a domain or brand across AI prompts.

Rate: $0.098 + $0.00098/row · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
targetreqstringRoot domain ("linear.app") or full page URL to inspect.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "target": [
      {
        "domain": "supabase.com"
      }
    ],
    "location_code": 2840,
    "language_code": "en",
    "limit": 10
  }
]
POST/v1/ai_optimization/chat_gpt/llm_responses/live

ChatGPT, Claude, Gemini & Perplexity Responses

Try in Playground

Execute web-grounded prompts on ChatGPT, Claude, Gemini, or Perplexity and extract cited URLs & markdown.

Rate: $0.00059 + tokens · $0.00118 / scraper Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
user_promptreqstringNatural-language prompt evaluated on the target LLM.
model_namestringTarget LLM identifier (for example "gpt-4o-mini", "claude-haiku-4-5", "gemini-2.5-flash-lite", "sonar").
web_searchbooleanEnable live web search grounding and citation URL extraction.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].markdownstringWeb-grounded LLM response rendered as clean Markdown with citation counts.
[
  {
    "user_prompt": "What are the best developer SERP APIs for AI agents?",
    "model_name": "gpt-4o-mini",
    "max_output_tokens": 256,
    "web_search": true
  }
]

Merchant, App Data, Business Data & Account Appendix

Google Shopping & Amazon marketplace listings, App Store & Google Play ASO rankings, Google/Trustpilot reviews, hotel rates, and free balance inspection.

POST/v1/merchant/google/products/task_post

Google Shopping Products Search (Queue)

Try in Playground

Queue Google Shopping product listings, seller prices, ratings, review counts, and merchant stock status.

Rate: $0.0018 / priority · $0.0009 / page Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
depthintegerMaximum number of ranked results or listings to retrieve (10–100).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20100 indicates async task queued; poll /task_get at $0.00 to retrieve results.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "mechanical keyboard wireless",
    "location_code": 2840,
    "language_code": "en",
    "depth": 10
  }
]
POST/v1/merchant/amazon/products/task_post

Amazon Products & ASIN Rankings (Queue)

Try in Playground

Queue Amazon marketplace search rankings, ASINs, Buy Box prices, Prime badges, and verified review scores.

Rate: $0.0027 / priority · $0.00135 / page Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).
depthintegerMaximum number of ranked results or listings to retrieve (10–100).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20100 indicates async task queued; poll /task_get at $0.00 to retrieve results.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "usb c thunderbolt dock",
    "location_code": 2840,
    "language_code": "en_US",
    "depth": 10
  }
]
POST/v1/app_data/apple/app_listings/search/live

Apple App Store Listings Database

Try in Playground

Search indexed iOS apps on Apple App Store by title, category, rating threshold, and developer metadata.

Rate: $0.098 + $0.00098/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
titlereqstringIndexed app title or local business entity name to search.
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "title": "ai note taking",
    "limit": 10
  }
]
POST/v1/app_data/google/app_listings/search/live

Google Play App Listings Database

Try in Playground

Search indexed Android apps on Google Play by category, install count, rating threshold, and pricing model.

Rate: $0.098 + $0.00098/item · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
titlereqstringIndexed app title or local business entity name to search.
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "title": "authenticator",
    "limit": 10
  }
]
POST/v1/business_data/business_listings/search/live

Google Maps Business Listings (Live)

Try in Playground

Search real-time local business entities, star ratings, review counts, phone numbers, and geo coordinates.

Rate: $0.0118 + $0.00035/row · Real-time synchronous · $0.00 Sandbox

Request parameters

FieldTypeDescription
titlereqstringIndexed app title or local business entity name to search.
limitintegerMaximum rows/items to return (1–1,000); unused pre-authorized headroom auto-refunds.

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "title": "Tartine Bakery",
    "location_coordinate": "37.7614,-122.4241,15",
    "limit": 10
  }
]
POST/v1/business_data/trustpilot/reviews/task_post

Trustpilot & Tripadvisor Reviews (Queue)

Try in Playground

Queue public SaaS and hospitality reviews, TrustScore ratings, and customer feedback velocity.

Rate: $0.00148 / priority · $0.00074 / page Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
domainreqstringTarget brand domain for verified review queue extraction.
depthintegerMaximum number of ranked results or listings to retrieve (10–100).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20100 indicates async task queued; poll /task_get at $0.00 to retrieve results.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "domain": "linear.app",
    "depth": 10
  }
]
POST/v1/business_data/google/hotel_searches/live

Google Hotels Rates & Availability

Try in Playground

Search hotel nightly prices, OTA booking links, star classes, amenities, and geo coordinates.

Rate: $0.0036 / page · $0.00072 / page Standard Queue · $0.00 Sandbox

Request parameters

FieldTypeDescription
keywordreqstringUTF-8 search query, product keyword, or topic phrase.
location_codeintegerNumeric geo location code (2840 = US, 2826 = UK, 2276 = DE, 2392 = JP).

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].items[]object[]Structured result rows returned for this endpoint (rankings, metrics, links, or listings).
[
  {
    "keyword": "boutique hotels tokyo shibuya",
    "location_code": 2392,
    "language_code": "en"
  }
]
GET/v1/appendix/user_data

Account Balance, Status & Geo Dictionaries

Try in Playground

Returns your real-time prepaid USD balance, active key environment (live or sandbox), per-key UTC daily spend limit, and gateway health across all 12 API families (dictionary GETs like /locations and /languages are also $0.00).

Rate: $0.0000 (Always free)

Key response fields

money.balancenumber (USD)Current prepaid USD account balance.
money.limits.day{ limit, spent }Optional per-key UTC daily spend cap and amount spent today.
{
  "version": "1.0",
  "status_code": 20000,
  "cost": 0,
  "tasks": [
    {
      "status_code": 20000,
      "path": [
        "v1",
        "appendix",
        "user_data"
      ],
      "result": [
        {
          "environment": "live",
          "money": {
            "balance": 50,
            "limits": {
              "day": {
                "limit": 25,
                "spent": 0.042
              }
            }
          }
        }
      ]
    }
  ]
}
GET/v1/appendix/status

Gateway Edge Health Status

Try in Playground

Check real-time availability and median response latency across all 12 DataForAPI families.

Rate: $0.00 (Free) · $0.00 (Free) Standard Queue · $0.00 Sandbox

Key response fields

costnumber (USD)Exact USD settled from your prepaid wallet ($0.00 with Sandbox keys).
tasks[].status_codeinteger20000 indicates synchronous execution succeeded.
tasks[].result[].status / p50_latency_msstring / integerEdge gateway operational status and median latency in milliseconds.
{
  "version": "1.0",
  "status_code": 20000,
  "status_message": "Ok.",
  "time": "0.0842 sec.",
  "cost": 0,
  "tasks_count": 1,
  "tasks_error": 0,
  "tasks": [
    {
      "id": "0194b8f0-7c2a-7000-8000-000000000001",
      "status_code": 20000,
      "status_message": "Ok.",
      "time": "0.0090 sec.",
      "cost": 0,
      "result_count": 12,
      "path": [
        "v1",
        "appendix",
        "status"
      ],
      "data": {
        "api": "appendix",
        "function": "status",
        "simulated": true
      },
      "result": [
        {
          "api": "serp",
          "status": "operational",
          "p50_latency_ms": 820
        },
        {
          "api": "keywords_data",
          "status": "operational",
          "p50_latency_ms": 490
        },
        {
          "api": "labs",
          "status": "operational",
          "p50_latency_ms": 410
        },
        {
          "api": "backlinks",
          "status": "operational",
          "p50_latency_ms": 340
        },
        {
          "api": "on_page",
          "status": "operational",
          "p50_latency_ms": 680
        },
        {
          "api": "domain_analytics",
          "status": "operational",
          "p50_latency_ms": 390
        },
        {
          "api": "content_analysis",
          "status": "operational",
          "p50_latency_ms": 450
        },
        {
          "api": "content_generation",
          "status": "operational",
          "p50_latency_ms": 610
        },
        {
          "api": "merchant",
          "status": "operational",
          "p50_latency_ms": 880
        },
        {
          "api": "app_data",
          "status": "operational",
          "p50_latency_ms": 740
        },
        {
          "api": "business_data",
          "status": "operational",
          "p50_latency_ms": 790
        },
        {
          "api": "ai_optimization",
          "status": "operational",
          "p50_latency_ms": 920
        }
      ]
    }
  ]
}

Remote MCP Server (https://dataforapi.com/mcp)

DataForAPI hosts a stateless Streamable HTTP MCP server (2025-03-26) at the edge. Connect Claude Code, Cursor, Codex, or Windsurf with zero local process setup.

claude mcp add --transport http dataforapi https://dataforapi.com/mcp \
  --header "Authorization: Bearer dfa_live_YOUR_KEY"
Tool nameRequired inputLive costBehavior
serp_google_organickeyword: string$0.00195
Real-time Google Organic rankings, snippets, and AI Overviews (compact=true cuts ~80% context tokens).
Optional: location_code=2840, language_code="en", depth=10, compact=true
serp_bing_organickeyword: string$0.0018
Live Bing Organic search rankings and snippets.
Optional: location_code=2840, language_code="en", compact=true
keywords_search_volumekeywords: string[] (1–1,000)$0.0880 / batch
Batch Google Ads monthly search volume, CPC bids, and competition score for up to 1,000 keywords.
Optional: location_code=2840, language_code="en"
google_trends_explorekeywords: string[] (1–5)$0.0108
Normalized 0–100 Google Trends interest-over-time series for up to 5 comparison terms.
Optional: location_code=2840, time_range="past_12_months"
backlinks_summarytarget: string$0.023535
Domain authority rank, total backlinks, referring domains, subnets, and link spam score.
Optional: include_subdomains=true
onpage_instant_auditurl: string (public HTTP/S)$0.000145
Instant technical SEO inspection: HTTP status, title, meta description, H1–H6, word count, and On-Page score.
Optional: —
search_api_docs—$0.00 (Free)
Search DataForAPI v1 endpoint paths, pricing rules, and your live USD account balance.
Optional: query?: string
call_v1_endpointpath: stringEndpoint rate
Universal caller for every /v1/* route (Labs ranked keywords, referring domains, Maps, YouTube, appendix/user_data).
Optional: method="POST", payload?: object[], compact=true

Agent Skills (SKILL.md) & Zero-Dependency CLI

Drop SKILL.md into your workspace so coding agents learn every /v1 route, batching rule, and error code without consuming MCP tool slots.

# Install SKILL.md into Claude Code, Codex, or Antigravity
mkdir -p ~/.claude/skills/dataforapi
curl -fsSL https://dataforapi.com/skills/dataforapi/SKILL.md \
  -o ~/.claude/skills/dataforapi/SKILL.md

# Optional: download zero-dependency Node CLI
curl -fsSL https://dataforapi.com/skills/dataforapi/dfa.mjs -o dfa.mjs
export DATAFORAPI_KEY="dfa_test_YOUR_KEY"
node dfa.mjs serp "serp api"

Run your first request

Sign in with Google for $1.00 free balance, send one Bearer header, and get structured JSON back.

curl -X POST "https://dataforapi.com/v1/serp/google/organic/live/advanced" -H "Authorization: Bearer $DATAFORAPI_KEY" -d '[{"keyword":"dataforapi","location_code":2840}]'