Access the DataForSEO API with managed authentication. Read the account's balance and prices, list completed tasks and fetch their results, look up supported locations and languages, and run live queries or post tasks for SERP, keyword, Labs, backlink, On-Page, and other SEO data. Every live query and new task is billed to the account's balance. All access runs through the Maton gateway and the maton CLI.
Permissions
Suggested read access
In the Console, Read limits the connection to these 324 read-only endpoints, plus deny rules for any write endpoint a broader rule would otherwise match. Endpoints Maton has found to return credentials, start jobs, or spend credits are left out; a few reads that can change state or return a secret depending on their parameters stay in, and their descriptions say how. It is a suggestion: the saved rules are exactly the ones you see, and you can change them with Custom. See Access policy.
Reference
Response Format
All paths start with v3/. Every response, including errors, has the same envelope:
{
"version": "0.1.20261117",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0412 sec.",
"cost": 0,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "12010057-3344-0121-0000-0dd5a6856b35",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0389 sec.",
"cost": 0,
"result_count": 1,
"path": ["v3", "appendix", "user_data"],
"data": {},
"result": []
}
]
}status_code 20000 means success, at the top level and per task; check both, since an HTTP 200 can carry a failed task (for example 40501 for an invalid field). cost is what the call charged in USD.
How Requests Work
DataForSEO offers each data endpoint in one or both of two forms:
- Standard:
POST .../task_postwith up to 100 tasks queues them (billed per task);GET .../tasks_readylists the ones that finished;GET .../task_get/{mode}/{task_id}returns each result. Results are kept for 30 days, and fetching them costs nothing. - Live:
POST .../live/{mode}with one task returns the result in the same response (billed per request). Nothing is stored.
{mode} is regular, advanced (every SERP feature), or html where the endpoint offers it. Request bodies are always a JSON array of task objects, even for a single task.
Account
Get Account Data
maton api '/dataforseo/v3/appendix/user_data'Response (inside tasks[0].result[0]):
{
"login": "{login}",
"timezone": "UTC",
"rates": {
"limits": {"day": {"total": 0}, "minute": {"total": 10000}},
"statistics": {"day": {"total": 12}, "minute": {"total": 1}}
},
"money": {
"total": 50.0,
"balance": 49.998,
"limits": {"day": {"total": 0}, "minute": {"total": 0}},
"statistics": {"day": {"total": 0.002}}
},
"price": {
"serp": {"live": {"regular": {"priority_normal": [{"cost_type": "per_request", "cost": 0.002}]}}}
},
"backlinks_subscription_expiry_date": "2027-01-15 00:00:00 +00:00",
"llm_mentions_subscription_expiry_date": null
}Free. money.balance is what is left to spend, price lists the cost of every endpoint for this account, and the *_subscription_expiry_date fields say whether the Backlinks and LLM Mentions APIs are enabled. Check price before an unfamiliar billed call.
List Error Codes
maton api '/dataforseo/v3/appendix/errors'Returns every status code with its message, such as {"code": 40501, "message": "Invalid Field: ..."}. Free.
API Status
maton api '/dataforseo/v3/appendix/status'Returns each API with its endpoints' status ("status": "ok"). Free.
List Recent Task IDs
maton api '/dataforseo/v3/serp/id_list' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"datetime_from": "2026-11-30 00:00:00 +00:00", "datetime_to": "2026-12-01 01:30:00 +00:00", "limit": 10}]
JSONResponse (tasks[0].result):
[
{
"id": "12010057-3344-0121-0000-0dd5a6856b35",
"url": "v3/serp/google/organic/live/regular",
"datetime_posted": "2026-12-01 00:57:36 +00:00",
"datetime_done": "2026-12-01 00:57:47 +00:00",
"status": 20000,
"cost": 0.002,
"metadata": null
}
]Free despite the POST. Each API has its own id_list and errors (for example v3/keywords_data/id_list, v3/on_page/errors); datetime_to must be in the past.
SERP
Live Google Results
maton api '/dataforseo/v3/serp/google/organic/live/regular' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"keyword": "patch management software", "location_code": 2840, "language_code": "en", "depth": 10}]
JSONBody fields:
keyword(string, required): The search query.location_codeorlocation_name(required): Fromserp/google/locations, such as2840(United States).language_codeorlanguage_name(required): Fromserp/google/languages, such asen.depth(integer, optional): Number of results to collect, 10 by default; deeper results cost more.device(desktopormobile) andos(optional).resolve_goto_urls(boolean, optional): Google sometimes links results throughgoogle.com/goto; set this to get the destination URLs instead.
Response (a live call):
{
"status_code": 20000,
"cost": 0.002,
"tasks": [
{
"id": "12010057-3344-0121-0000-0dd5a6856b35",
"status_code": 20000,
"cost": 0.002,
"path": ["v3", "serp", "google", "organic", "live", "regular"],
"data": {"api": "serp", "function": "live", "se": "google", "se_type": "organic", "keyword": "patch management software", "location_code": 2840, "language_code": "en", "depth": 10, "device": "desktop", "os": "windows"},
"result": [
{
"keyword": "patch management software",
"se_domain": "google.com",
"location_code": 2840,
"language_code": "en",
"check_url": "https://www.google.com/search?q=patch%20management%20software&hl=en&gl=US&ie=UTF-8",
"datetime": "2026-12-01 00:57:46 +00:00",
"item_types": ["ai_overview", "organic", "people_also_ask", "video"],
"se_results_count": 81,
"items_count": 8,
"items": [
{
"type": "organic",
"rank_group": 1,
"rank_absolute": 2,
"page": 1,
"domain": "google.com",
"title": "Best Patch Management Software (2024)",
"description": "Dec 23, 2024 — Patch administration software program gives a centralized place for IT directors to determine recognized vulnerabilities and deploy patches",
"url": "https://google.com/goto?url=...",
"breadcrumb": "https://www.roosho.com › News"
}
]
}
]
}
]
}rank_group is the position among results of the same type; rank_absolute counts every SERP element. live/advanced returns the same with every feature (AI overview, People Also Ask, maps, videos) as typed items; live/html returns the raw page.
Queue Searches and Fetch Results
maton api '/dataforseo/v3/serp/google/organic/task_post' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[
{"keyword": "patch management software", "location_code": 2840, "language_code": "en"},
{"keyword": "endpoint management", "location_code": 2840, "language_code": "en"}
]
JSON
maton api '/dataforseo/v3/serp/google/organic/tasks_ready'
maton api '/dataforseo/v3/serp/google/organic/task_get/regular/{task_id}'task_post returns one task per keyword with its id and status 20100 (Task Created.). tasks_ready lists finished task IDs (each is returned once); task_get returns the same result shape as Live. Standard tasks cost less than Live ones (for this account $0.0006 against $0.002 per Google organic search); "priority": 2 runs them sooner at double the Standard price.
Locations and Languages
maton api '/dataforseo/v3/serp/google/locations/us'
maton api '/dataforseo/v3/serp/google/languages'Response item: {"location_code": 2840, "location_name": "United States", "location_code_parent": null, "country_iso_code": "US", "location_type": "Country"}. Filtering by country code keeps the list manageable; the full list has over 60,000 locations. Free.
The same pattern covers Bing (serp/bing/organic), YouTube (serp/youtube/organic, video_info, video_comments, video_subtitles), Yahoo, Baidu, Naver, Seznam, and Google's other result types (maps, local_finder, news, images, jobs, autocomplete, ai_mode, finance_*, events, ads_*).
Keywords Data
Google Ads Search Volume
maton api '/dataforseo/v3/keywords_data/google_ads/search_volume/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"keywords": ["patch management", "rmm software"], "location_code": 2840, "language_code": "en"}]
JSONResponse item (from DataForSEO's documentation):
{
"keyword": "patch management",
"location_code": 2840,
"language_code": "en",
"competition": "LOW",
"competition_index": 18,
"search_volume": 6600,
"low_top_of_page_bid": 4.2,
"high_top_of_page_bid": 21.37,
"cpc": 14.85,
"monthly_searches": [{"year": 2026, "month": 10, "search_volume": 6600}]
}Up to 1,000 keywords per task, billed per task.
Keyword Suggestions
maton api '/dataforseo/v3/keywords_data/google_ads/keywords_for_site/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com", "location_code": 2840, "language_code": "en"}]
JSONkeywords_for_site takes a domain or URL as target; keywords_for_keywords takes keywords. ad_traffic_by_keywords estimates ad clicks and cost. Bing (keywords_data/bing/...), Google Trends (keywords_data/google_trends/explore), DataForSEO Trends, and clickstream volumes follow the same pattern.
DataForSEO Labs
Labs endpoints answer from DataForSEO's own keyword and ranking database, Live only.
maton api '/dataforseo/v3/dataforseo_labs/google/keyword_ideas/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"keywords": ["patch management"], "location_code": 2840, "language_code": "en", "limit": 20}]
JSON
maton api '/dataforseo/v3/dataforseo_labs/google/ranked_keywords/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com", "location_code": 2840, "language_code": "en", "limit": 50}]
JSON
maton api '/dataforseo/v3/dataforseo_labs/google/domain_rank_overview/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com", "location_code": 2840, "language_code": "en"}]
JSONkeyword_ideas,keyword_suggestions,related_keywords: keyword research from seed keywords, each withkeyword_info(search volume, CPC, competition) and optional SERP info.ranked_keywords: the keywords a domain or page ranks for, with positions and estimated traffic.domain_rank_overview,competitors_domain,domain_intersection,serp_competitors: domain-level visibility and competitor comparisons.bulk_keyword_difficulty,search_intent,historical_*: per-keyword metrics.
Labs bills per request plus per returned item, so limit sets most of the cost. filters (for example [["keyword_info.search_volume", ">", 100]]) and order_by (["keyword_info.search_volume,desc"]) narrow results; dataforseo_labs/available_filters lists the fields. Amazon, Google Play, and App Store variants live under dataforseo_labs/amazon, google_play, and app_store.
Backlinks
The Backlinks API needs a Backlinks subscription; appendix/user_data shows it in backlinks_subscription_expiry_date. Live only.
maton api '/dataforseo/v3/backlinks/summary/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com", "include_subdomains": true}]
JSON
maton api '/dataforseo/v3/backlinks/backlinks/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com", "mode": "one_per_domain", "limit": 100}]
JSONsummary returns totals (backlinks, referring_domains, rank, backlinks_spam_score); backlinks, referring_domains, anchors, domain_pages, and competitors list details, billed per returned row. bulk_* endpoints take up to 1,000 targets. Page with limit and offset, or search_after_token past 20,000 rows.
On-Page
On-Page crawls a website and audits its pages. The crawl is the billed part; reading its results is free.
Start a Crawl
maton api '/dataforseo/v3/on_page/task_post' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com", "max_crawl_pages": 50}]
JSONmax_crawl_pages caps the pages crawled and therefore the cost (billed per crawled page); enable_javascript and load_resources cost extra per page. The response's task id identifies the crawl.
Read Crawl Results
maton api '/dataforseo/v3/on_page/tasks_ready'
maton api '/dataforseo/v3/on_page/summary/{task_id}'
maton api '/dataforseo/v3/on_page/pages' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"id": "{task_id}", "limit": 100, "filters": [["checks.no_title", "=", true]]}]
JSONsummary reports crawl progress (crawl_progress, crawl_status.pages_crawled) and site-wide checks. pages, resources, links, duplicate_tags, duplicate_content, redirect_chains, non_indexable, keyword_density, microdata, raw_html, and content_parsing each take the crawl id in a POST body and are free. instant_pages (one URL, Live), page_screenshot, and lighthouse are billed. on_page/force_stop ends a crawl early.
Domain Analytics
maton api '/dataforseo/v3/domain_analytics/technologies/domain_technologies/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"target": "example.com"}]
JSONReturns the technologies a domain uses, grouped by category. domains_by_technology finds domains that use a technology; whois/overview/live searches WHOIS records with filters. technologies/technologies lists the technology names (free).
Content Analysis
maton api '/dataforseo/v3/content_analysis/search/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"keyword": "patch management", "limit": 20}]
JSONFinds pages that mention a keyword or brand, with sentiment and connotation data. summary/live, sentiment_analysis/live, rating_distribution/live, and phrase_trends/live aggregate the same mentions.
Merchant, App Data, and Business Data
These use the Standard pattern (task_post, tasks_ready, task_get/advanced/{task_id}):
- Merchant: Google Shopping products, sellers, and reviews (
merchant/google/products,sellers,reviews); Amazon products, ASINs, and sellers (merchant/amazon/...). - App Data: Google Play and App Store search results, app info, reviews, and listings (
app_data/google/...,app_data/apple/...). - Business Data: Google Business profiles, reviews, Q&A, and hotels (
business_data/google/...); Trustpilot and Tripadvisor search and reviews;business_listings/search/livefor business directories.
Reviews and Q&A contain people's names and words; extract only what the task needs.
AI Optimization
maton api '/dataforseo/v3/ai_optimization/chat_gpt/llm_responses/live' -X POST -H 'Content-Type: application/json' --input - <<'JSON'
[{"user_prompt": "What are the best patch management tools?", "model_name": "gpt-4.1-mini"}]
JSONSends a prompt to ChatGPT, Claude, Gemini, or Perplexity (ai_optimization/{model}/llm_responses) and returns the answer with cited sources; llm_responses/models lists the model names (free). llm_scraper captures the consumer chat interface's answer, llm_mentions (subscription) tracks how often a brand is mentioned, and ai_keyword_data/keywords_search_volume/live estimates AI search volume. Every prompt is billed, including the model's own token cost.
Notes
- Connection. The connection holds the account's API login and API password, which DataForSEO shows at
app.dataforseo.com/api-access. The API password is generated by DataForSEO and differs from the password used to sign in to the dashboard. The gateway sends them as HTTP Basic authentication. The connection's metadata names the account (login). - Dates are
YYYY-MM-DD HH:MM:SS +00:00. Task IDs are UUID-like strings. - Errors come in the envelope:
40100(the API login or password is wrong, with HTTP401),40104(the account isn't verified yet),40200(balance too low; top up in the dashboard),40203(the cost limit set in the dashboard was reached),40204(the API needs a subscription, such as Backlinks),40401(no such task),40501(an invalid field, with its name),40102(the search returned no results).appendix/errorslists them all. - Rate limits: up to 10,000 calls a minute per account (
rates.limits.minuteinappendix/user_data), shown inX-RateLimit-LimitandX-RateLimit-Remaining; a Live call carries one task and a Standardtask_postup to 100. Going over returns40202. Daily cost limits set in the dashboard return40203. tasks_readyreturns each finished task once; keep the IDs, or useid_listto find them again.postback_urlandpingback_urlmake DataForSEO call a URL when a task finishes; Maton doesn't receive them, so polltasks_readyinstead.- The read-only access policy allows the free calls: every
GET(results,tasks_ready, locations, languages, account data), plus thePOSTendpointsid_list,errors, and On-Page crawl results. Everytask_postandlivecall, screenshots, AI summaries, andforce_stopare writes.