APIMaster.ai

How to Use DataForSEO API: Features, Categories and First Request

Learn what DataForSEO API does, how its 11 categories differ, which API to choose, and how to make your first request with APIMaster.

DataForSEO APISEO APIKeyword ResearchSERP APIAPIMaster

Published

Quick Answer

DataForSEO API provides structured data for search results, keyword demand, competitors, backlinks, websites, apps, businesses, products and AI search visibility. Choose an API by the question you want to answer: SERP for ranking results, Keywords Data for search volume, DataForSEO Labs for keyword and competitor research, and On-Page for technical website audits.

On APIMaster, open the DataForSEO API catalog, choose a category, read the API's purpose in your language, and request a free estimate before execution. Use your APIMaster Bearer key with https://apimaster.ai/v1. Data requests use wallet balance; GPT trial credit and model subscriptions do not cover them. This guide describes the public capabilities available on December 1, 2026; use each API page for current availability and parameters.

You do not need to learn every operation. Start with one task, such as getting Google's organic results for a keyword in the United States, and expand only when another question requires different data.

GPT Trial(GPT-6 Astra, GPT-6 Sol, GPT-5.6, GPT-5.5, gpt-5.6-luna, gpt-5.6-sol, gpt-5.6-terra, gpt-6.1-sol, gpt-6-astra, gpt-6-sol, gpt-6-luna, gpt-6.2-astra, and gpt-6.2-sol available)

Sign up and claim a $10 GPT trial

Claim now

Choose a DataForSEO API by the question

The catalog's category labels describe different datasets. The number beside a category counts operations, including task submission, result retrieval, language lists and other supporting calls. It is not a count of separate products, nor evidence of which capabilities customers use most.

What you want to know Start with What you receive
Which pages rank for this keyword in this country? Search Engine Results / SERP Search results, URLs, titles and ranking positions
How often do people search this keyword? Keywords Data Search-volume estimates, monthly history and advertising metrics
Which keywords and pages help a competitor appear in search? Keyword & Competitor Research / DataForSEO Labs Ranked keywords, related terms, competing domains and estimated search visibility
Who links to this website? Backlinks Referring domains, linking pages, anchor text and link metrics
Why does this website have technical SEO problems? Website SEO Audit / On-Page Crawl findings, page checks, links and performance audits
Where is a brand mentioned or cited in AI answers? AI Search Visibility Supported AI-response, mention and citation data

Search volume, rankings, estimated traffic and actual conversions are different measurements. Search volume does not tell you a competitor's visits. A traffic estimate does not reveal its registrations, paying customers or revenue. Those outcomes require the site's own analytics and payment records.

What do the 11 DataForSEO API categories do?

1. AI Search Visibility: AI answers, brand mentions and citations

The ai_optimization family includes AI keyword-demand estimates, supported ChatGPT and Gemini search-response collection, LLM response operations, and mention-analysis APIs. Mention tools can search responses, aggregate metrics, compare targets and identify cited domains or pages, subject to the selected platform and coverage.

Use it to investigate whether an AI answer mentions your brand, which sources appear around a topic, or how competing brands are represented. AI mention search is one starting point. A mention count is not all AI users' exposure, and an AI keyword estimate is not Google search volume. Check supported platforms and dates rather than assuming every AI product is covered.

2. App Store Data: app listings, search results and reviews

The app_data family covers Apple App Store and Google Play data. Operations include app details, app-search results, lists and reviews. Depending on the API, fields can include an app's identifier, description, rating, review count and images.

Use this for app-store optimization research, competitor listing comparisons or review monitoring. Google Play app information starts an asynchronous task using an app ID. Store listing and review data do not establish an app's active users, paid subscribers or exact revenue.

3. Backlinks: referring domains, anchors and link opportunities

The backlinks family provides link summaries, individual backlinks, referring domains, anchor text, page-level information and historical or new/lost-link metrics. Intersection operations help compare which sites link to different targets.

Start with Backlinks Summary for a domain overview; retrieve individual links when you need examples. Domain targets and page targets can require different URL formats. These results describe the link index's coverage, not every link that exists or a guaranteed ranking improvement. A backlink competitor is not necessarily the same as a business competitor.

4. Business Information & Reviews: local businesses and reputation

The business_data family includes business listings, Google business-profile information, supported reviews and questions, hotel data, and selected Tripadvisor or Trustpilot operations. Some URL-level social-sharing data also sits in this category.

Use business listings search to research businesses by supported location and category, or collect review information for reputation analysis. This is useful for local SEO and business research. It does not manage a company's private business account, create reviews, or provide a general analytics dashboard for every social network.

5. Content Analysis: find topic mentions and compare content trends

The content_analysis family searches indexed content for a phrase and provides summaries, sentiment analysis, phrase or category trends, and rating distributions. Filters help narrow the available content dataset.

Use content search to investigate coverage of a brand or topic, then examine individual results before drawing editorial conclusions. This category studies content across an index. It differs from On-Page, which inspects your chosen website, and from SERP, which returns a search engine's results. Its summaries and trends are not proof of readership or factual accuracy.

6. Keyword & Competitor Research: discover keywords and competing pages

The dataforseo_labs family helps expand a seed topic, inspect ranked keywords, find relevant pages, compare overlapping domains or pages, assess search intent, and obtain supported keyword-difficulty or traffic estimates. It also includes selected Amazon and app-related research operations.

For a content plan, start with related keywords, then inspect competing pages and demand. Use ranked keywords to investigate a target's search presence. Labs uses indexed datasets; its estimates are not a competitor's Google Analytics or Search Console records. Country, language, dataset coverage and update time affect comparisons.

7. Domain Analysis: website technologies and domain records

The domain_analytics family identifies website technologies, finds domains using a technology, aggregates technology adoption and offers WHOIS-related domain information where available.

Use domain technologies to research a site's detectable technology stack, or find sites using a particular platform for market research. WHOIS data may be limited by privacy and availability. This category is not a Similarweb-style breakdown of total visits, traffic channels or audience demographics. For search visibility estimates, look at Labs instead.

8. Keywords Data: search volume, CPC and demand trends

The keywords_data family includes Google Ads and Bing keyword metrics and suggestions, supported clickstream search-volume datasets, and trend operations. Choose the dataset explicitly: values from different sources or scopes are not interchangeable.

For a known keyword list, Google Ads Search Volume Live returns available average monthly search volume, monthly history, CPC and advertiser competition. Advertising competition is not organic keyword difficulty. Monthly data can lag, and missing values should remain missing. The keyword search volume API tutorial explains these fields with real examples and Python.

9. Shopping & Product Data: products, sellers and shopping results

The merchant family includes supported Google Shopping and Amazon product, seller and product-search operations. Some APIs collect product details or reviews; others return structured search results or HTML. Identifiers such as an ASIN or Google product ID depend on the operation.

Use Google Shopping product search for product research and offer comparisons in a selected market. An observed offer can vary by location and collection time. A listed price or review count is not proof of sales volume, inventory availability or a seller's profit.

10. Website SEO Audit: crawl pages and diagnose technical issues

The on_page family provides website crawling, crawl summaries, page and link checks, duplicate-content or duplicate-tag checks, non-indexable-page findings, resource analysis and supported Lighthouse audits. Many findings belong to a crawl task you create first.

Start with an On-Page crawl task, set an intentional crawl scope, and retrieve its summary and detailed findings. This helps investigate technical SEO; it does not repair pages or request Google indexing for you. Check each operation's availability and prerequisites, and avoid a large unrestricted crawl for your first test.

11. Search Engine Results: Google rankings, maps, news and YouTube

The serp family returns supported search-engine results for a specified query, location, language and device. Google operations include organic results and selected maps, news, images or AI Mode results. Other supported families include Bing and YouTube, with their own parameters and result types.

Use Google Organic Live for ranking pages. Use YouTube Organic Live to find videos for a topic, then inspect video metrics separately. Search order is not a universal viral-video ranking. A Google organic response can contain ads and other SERP features alongside organic items, so filter result types before making a top-ten list.

How to use DataForSEO API on APIMaster

Register an account, add wallet balance, and create an API key. If your key restricts models, allow dataforseo. The base is https://apimaster.ai/v1; this integration uses APIMaster Bearer authentication. A separate provider's credentials or base URL cannot be substituted into these examples.

In the catalog, search by the task, API name or path. Read the localized purpose, required fields, example and response schema. Match the exact HTTP method and response format. Many POST APIs accept an array of task objects, but other operations use different bodies or query/path parameters; do not copy one shape across the entire catalog.

API names describe the workflow:

Name or suffix What it does What to do next
live Runs an operation and returns its task response directly Check both HTTP and task status; inspect the API's result shape
task_post Submits an asynchronous task and returns its task ID Save the native task ID and use the matching result operation
task_get Retrieves a task's result Use a task created by your account, with the correct result format
tasks_ready Lists completed tasks available for collection Retrieve the listed tasks with their matching result API
locations / languages Lists supported geographic or language values Use values accepted by that particular family
advanced / regular / html Selects an available response representation Use structured results for analysis or HTML when you need page markup

These suffixes are conventions, not a guarantee that every family offers every variant. “Live” does not make monthly keyword history current to the second. On APIMaster, retrieve asynchronous results through the supported result operations rather than supplying postback_url or pingback_url callbacks.

First request: get Google organic results for a keyword

This example looks for large language models in the United States, English, on desktop. It illustrates the request format; no ranking results or new paid execution are claimed here. For Japan or South Korea, choose the relevant country and language and supply Japanese or Korean search terms when researching those audiences.

Set your server-side environment variables. Use a new request key for a new logical execution and retain it with the original payload:

export APIMASTER_API_KEY="YOUR_APIMASTER_API_KEY"
export DATAFORSEO_REQUEST_KEY="serp-us-en-job-001"

Request a free estimate first. This returns pricing information, not search results:

curl --fail-with-body \
  "https://apimaster.ai/v1/dataforseo/serp/google/organic/live/advanced" \
  -H "Authorization: Bearer $APIMASTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "X-APIMaster-Cost-Mode: quote" \
  --data '[{"keyword":"large language models","location_code":2840,"language_code":"en","device":"desktop","depth":10}]'

Read estimated_cost_usd and currency. When you choose to execute, remove the quote header and add Idempotency-Key. The following command executes a potentially paid lookup and saves its response and headers:

curl --fail-with-body -D serp-headers.txt -o serp.json \
  "https://apimaster.ai/v1/dataforseo/serp/google/organic/live/advanced" \
  -H "Authorization: Bearer $APIMASTER_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $DATAFORSEO_REQUEST_KEY" \
  --data '[{"keyword":"large language models","location_code":2840,"language_code":"en","device":"desktop","depth":10}]'

For this SERP Advanced API, inspect tasks[].result[].items[]. The Python snippet below reads the saved file without making another API call, filters organic items and prints up to ten returned results:

import json

with open("serp.json", encoding="utf-8") as source:
    data = json.load(source)
if data.get("status_code") != 20000:
    raise RuntimeError(data.get("status_message", "Request failed"))

for task in data.get("tasks") or []:
    if task.get("status_code") != 20000:
        raise RuntimeError(task.get("status_message", "Task failed"))
    for result in task.get("result") or []:
        organic = [item for item in result.get("items") or []
                   if item.get("type") == "organic"]
        organic.sort(key=lambda item: item.get("rank_group") or 9999)
        for item in organic[:10]:
            print(item.get("rank_group"), item.get("title"), item.get("url"))

rank_group is the position within its result type; rank_absolute counts across result types. A short result set should stay short: do not invent missing entries. This JSON path is specific to the example. The keyword-volume API instead returns keyword rows in tasks[].result[], so its parser is different.

Pricing, request recovery and useful workflows

The catalog's sample-request prices are reference estimates, not a fixed price for every keyword, page or operation. Request a new quote for your real parameters. Depth, scope, batch size, priority and account pricing can affect the charge, and a quote is not a spending cap. A GET method alone does not establish that an operation is free.

Save X-APIMaster-Request-ID, X-APIMaster-Settlement-Status, and X-APIMaster-Cost-USD when settled. The native JSON cost field is not your APIMaster billing receipt. Settled usage appears under dataforseo in usage logs. Free quotes do not produce paid consumption records.

After a timeout, recover the original platform request by its saved request ID:

curl --fail-with-body "https://apimaster.ai/v1/data-requests/YOUR_REQUEST_ID" \
  -H "Authorization: Bearer $APIMASTER_API_KEY"

If the ID was not received, use GET /v1/data-requests/by-key/{request_key} with the original idempotency key. Do not generate a new key just to retry an uncertain execution. The APIMaster request ID identifies execution and settlement; a native task ID identifies an asynchronous data task. They are different identifiers. Reusing an idempotency key with changed parameters returns a conflict.

For a practical SEO workflow, discover topics with Labs, validate demand with Keywords Data, inspect ranking pages with SERP, and use Backlinks or On-Page when those questions arise. For local research, combine Maps results with Business Data. For ecommerce, combine Merchant offers with the relevant keyword dataset. For AI visibility, inspect mentions and citations separately from Google organic rankings. Each operation can have its own cost.

Start with one API in the catalog. Create your APIMaster account, fund your wallet, create a key, and use https://apimaster.ai/v1 with dataforseo allowed. Expand your workflow after the first result answers a useful question.

FAQ

What is DataForSEO API used for?

It supplies structured search, keyword, backlink, website, business, app, product and AI-visibility data for research tools, dashboards and automated workflows. Each category answers a different question; the API does not automatically implement your SEO changes.

Which DataForSEO API should a beginner use first?

Use Google Organic Live for ranking pages, Google Ads Search Volume Live for a known keyword list, or Labs for keyword discovery and competitor research. Choose one outcome before choosing an API.

What is the difference between Keywords Data and DataForSEO Labs?

Keywords Data focuses on source-specific keyword metrics and suggestions, including advertising and trend datasets. Labs supports broader indexed keyword and competitor research, such as ranked keywords, overlaps, search intent and visibility estimates. Their source coverage and update schedules can differ.

Does Domain Analysis show a competitor's actual traffic or users?

No. The Domain Analysis category covers detectable website technologies and available domain records. Labs can provide supported search-traffic estimates, but those are not first-party visits, registrations, paying customers or revenue.

Do I need a different API key for each category?

For this APIMaster integration, use your APIMaster Bearer key and the public API base. A model-restricted key must allow dataforseo. Wallet balance and key quota must cover execution; GPT trial credit and model subscriptions do not pay for data calls.

Can I try the API for free and safely retry a timeout?

Quote mode provides a free cost estimate, not free paid results. Some reference or retrieval operations may be free, as indicated by their API and quote. After an uncertain execution, recover the original request using its request ID or original idempotency key rather than starting a fresh execution.

Documentation and next steps

DataForSEO API catalog · Google SERP API · Keyword search volume tutorial · API key setup