Bring SEO data into your own tools
Research keywords, check search positions, and collect data for your reports. Use live API requests to get the metrics your workflow needs.
Choose the data behind your report
For keyword planning, start with search volume and advertising metrics. For ranking reports, request search results for each keyword and find your domain’s position. Backlink and page-analysis endpoints provide other parts of an SEO audit.
Choose a location and language that match your audience. A weekly ranking report also needs a schedule and somewhere to store previous results; an API request gives you the data for that run.
NativePort supports DataForSEO’s synchronous live endpoints. These return results in the request itself. Queued tasks that you submit and collect later are not supported on this route. For larger workloads, split your input into supported batches and account for request limits.
Try it step by step
Try a request
Get search volume, Google Ads competition, and cost-per-click for a list of keywords.
curl https://api.nativeport.ai/dataforseo/v3/keywords_data/google_ads/search_volume/live \
-H "Authorization: Bearer $NATIVEPORT_API_KEY" \
-H "Content-Type: application/json" \
--data '[{"keywords": ["serp api", "ocr api"],
"location_code": 2840, "language_code": "en"}]'{
"cost": 0.005,
"tasks": [{
"result": [
{"keyword": "serp api", "search_volume": 12100,
"competition": "MEDIUM", "cpc": 7.83},
{"keyword": "ocr api", "search_volume": 1600,
"competition": "LOW", "cpc": 4.02}
]
}]
}Compare providers
Compare starting prices and the tasks each provider supports. Features and usage affect the total cost. For measured results, see the benchmarks and how we test.
| Provider | Best suited for | Starting price |
|---|---|---|
| DataForSEO | Get keyword metrics, rankings, and supported SEO datasets. | metered by DataForSEO |
| SerpApi | Read search results for ranking reports. | $0.025 per call |
| SearchAPI.io | Collect structured results from supported search engines. | $0.004 per call |
| Serper | Get Google results to inspect positions and listings. | $0.001 per call |
| Bright Data | Collect search results for your own reports. | $0.003 per call |
Build on an example
Set your NativePort API key and adapt an example to your own data. Outputs below illustrate the response format.
Track where a domain ranks for a keyword set
One live search-results request per keyword. Each response reports its cost.import json, os, urllib.request
DOMAIN = "example.com"
TERMS = ["web scraping api", "serp api", "ocr api"]
URL = ("https://api.nativeport.ai/dataforseo/v3/serp/google"
"/organic/live/regular")
def rank(term):
req = urllib.request.Request(
URL,
data=json.dumps([{"keyword": term, "location_code": 2840,
"language_code": "en"}]).encode(),
headers={
"Authorization": f"Bearer {os.environ['NATIVEPORT_API_KEY']}",
"Content-Type": "application/json",
},
)
with urllib.request.urlopen(req) as r:
items = json.load(r)["tasks"][0]["result"][0]["items"]
for it in items:
if DOMAIN in (it.get("domain") or ""):
return it.get("rank_absolute")
return None
for t in TERMS:
pos = rank(t)
print(f"{t:<20} {pos if pos else 'not in top results'}")$ python ranks.py web scraping api not in top results serp api 14 ocr api 31
More ways to use these APIs
Collect the data for an SEO report
Use the supported live endpoints for the data your report needs, such as search results, keyword metrics, or a backlink summary. Each dataset has its own request. Keep the results in your application if you want to compare them over time.
DataForSEO · /dataforseo/v3/…/live
Use it with NativePort
Use SEO data and search APIs through the same NativePort account. Pay for the requests you make from a shared balance, without a separate provider subscription.
Before you start
Do I get the result in the same request?
Yes, for the supported DataForSEO live endpoints. The asynchronous task flow is not available through this route. Check that the endpoint you want includes live in its path.
Where can I see the cost of a request?
DataForSEO reports it in the response’s top-level cost field. NativePort uses that reported amount with nothing added per call. You can log it alongside the result.
Can I use this for my own SEO dashboard?
Yes. You can build reports from supported keyword, search, backlink, and page-analysis endpoints. Scheduling, alerts, and historical storage belong in your application. An SEO suite may be more suitable if you want those features already built.