Keyword Explorer API — SemRush / Ahrefs / Moz Alternative
Pricing
from $10.00 / 1,000 dataforseo keyword results
Keyword Explorer API — SemRush / Ahrefs / Moz Alternative
Request bounded Google Ads metrics, matching terms, related terms, or keyword suggestions through DataForSEO. Returns normalized rows with endpoint provenance and terminal outcomes.
Pricing
from $10.00 / 1,000 dataforseo keyword results
Rating
0.0
(0)
Developer
Khadin Akbar
Maintained by CommunityActor stats
0
Bookmarked
1
Total users
0
Monthly active users
16 days ago
Last modified
Categories
Share
Keyword Explorer — DataForSEO Research
This private Actor runs bounded Google keyword research through the DataForSEO Labs API. It returns normalized dataset rows for exact-keyword metrics (overview), matching keyword terms, related Google searches, and keyword ideas. The configured DataForSEO account is used only through encrypted Actor secrets; credentials never appear in dataset rows, OUTPUT, or RUN_SUMMARY.
Best fit
Use this Actor when an SEO team needs repeatable, budget-bounded Google keyword research inside an Apify workflow. Every persisted row carries its research report, DataForSEO location and language targeting, seed terms, collection time, endpoint, task ID, and provider-cost attribution.
Use the adjacent Keyword Rank Tracker after selecting target terms to measure a domain’s observed Google position. This Actor discovers and evaluates keywords; it does not track a domain’s ranking.
Workflow
- Add one or more seed keywords, a DataForSEO location code, and a language code.
- Choose
overviewfor metrics on exact terms,matching_termsfor phrases containing the seed,related_termsfor searches related to the seed, orsearch_suggestionsfor category-based keyword ideas. - The Actor removes blanks and duplicates, caps retained seeds, and persists no more than
maxResultsrows (maximum 100). - Each schema-valid row is written and charged as one
keyword-explorer-resultevent. Duplicates and malformed provider rows are never billed. - Read the
keyword_overviewdataset view for prioritization andRUN_SUMMARYfor endpoints, provider cost, output count, and terminal outcome.
Quick start and inputs
| Input | Purpose |
|---|---|
report | overview, matching_terms, related_terms, or search_suggestions. |
keywords | One or more seed phrases; blanks and duplicates are removed. |
locationCode | DataForSEO numeric market code, such as 2840 for the United States. |
languageCode | Language code such as en. |
maxResults | Hard persisted-row cap from 1–100; default 50. |
maxSeedKeywords | Hard retained-seed cap from 1–10; default 3. Discovery reports can make one provider request per retained seed. |
Example: matching terms
{"report": "matching_terms","keywords": ["web scraping"],"locationCode": 2840,"languageCode": "en","maxResults": 25,"maxSeedKeywords": 1}
Example: exact keyword metrics
{"report": "overview","keywords": ["web scraping", "data extraction"],"locationCode": 2840,"languageCode": "en","maxResults": 10,"maxSeedKeywords": 2}
Dataset output
Each row identifies the exact report, locationCode, languageCode, and seedKeywords used. Core fields include:
keyword,searchVolume,monthlySearches,cpcUsd, competition fields, and, where supplied,keywordDifficulty;mainIntent,serpFeatures, andsearchVolumeTrendwhen the selected DataForSEO Labs endpoint supplies them;retrievedAtplusprovenancewith the DataForSEO endpoint, provider task ID, and per-request provider cost.
{"runId": "abc123XYZ","report": "matching_terms","keyword": "web scraping tools","locationCode": 2840,"languageCode": "en","seedKeywords": ["web scraping"],"searchVolume": 1200,"keywordDifficulty": 42,"mainIntent": "commercial","retrievedAt": "2026-08-10T00:00:00.000Z","provenance": {"source": "DataForSEO","endpoint": "dataforseo_labs/google/keyword_suggestions/live","taskId": "provider-task-id","providerCostUsd": 0.01}}
Terminal outcomes
Every terminal path writes both OUTPUT and RUN_SUMMARY.
COMPLETE: all returned valid rows up to the chosen cap were persisted.PARTIAL: at least one row was persisted, but later persistence or provider work could not finish.VALID_EMPTY: DataForSEO completed the selected query with no rows.INVALID_INPUT: correct the report, keywords, location code, or language code.CONFIG_ERROR: configure validDATAFORSEO_LOGINandDATAFORSEO_PASSWORDActor secrets, or resolve account access/balance.UPSTREAM_FAILED: DataForSEO exhausted its bounded retries, or returned only rows outside the dataset contract.
Pricing and provider usage
Apify Pay per event charges $0.01 for each persisted keyword-explorer-result row, plus $0.00005 for Actor start. Platform usage is passed through according to the Pricing tab. The Actor announces the maximum result-event amount before it queries the provider.
DataForSEO bills its API usage separately to the configured account. DataForSEO documents that Labs Keyword Overview provides metrics for specified keywords, while Keyword Suggestions, Related Keywords, and Keyword Ideas return discovery datasets through their own live endpoints. Start with one seed and a small result cap; inspect RUN_SUMMARY.providerCostUsd before scaling a workflow.
API and MCP
curl -X POST "https://api.apify.com/v2/acts/khadinakbar~ahrefs-keyword-explorer/runs?token=$APIFY_TOKEN" \-H "Content-Type: application/json" \-d '{"report": "related_terms","keywords": ["web scraping"],"locationCode": 2840,"languageCode": "en","maxResults": 25,"maxSeedKeywords": 1}'
Prompt card for an Apify MCP workflow:
Run
khadinakbar/ahrefs-keyword-explorerwithmatching_termsforweb scraping, US location code2840, languageen, and at most 25 rows. Readkeyword_overviewandRUN_SUMMARY, then report keyword, volume, difficulty when available, intent, provenance, provider cost, and terminal outcome.
Best-results guidance
- Begin with one seed and 10–25 rows to validate targeting and account costs.
- Keep location and language consistent when comparing scheduled research runs.
- Choose
overviewfor known terms,matching_termsfor phrase expansion,related_termsfor Google related-search expansion, andsearch_suggestionsfor category-based keyword ideas. - Treat volumes, CPC, competition, difficulty, and intent as provider estimates, then combine them with first-party analytics for traffic and conversion decisions.
- Keep provider credentials in encrypted Actor secrets; public task inputs and API examples use only research parameters.
Responsible use and data access
Use DataForSEO credentials from an account you are authorized to access, follow the applicable DataForSEO terms and your organization’s data-access rules, and retain research outputs according to your privacy and compliance obligations. This Actor processes keyword research data rather than personal data.
Source documentation
- DataForSEO Labs Keyword Overview
- DataForSEO Labs Keyword Ideas
- DataForSEO Labs Keyword Suggestions
- DataForSEO Labs Related Keywords
Builder's note
I designed this Actor around DataForSEO Labs because a keyword-research workflow benefits from one credentialed provider that can return both exact Google keyword metrics and Google keyword-discovery data. The Actor preserves a small, explicit row cap, records endpoint provenance and provider cost, and couples the Apify result event to the schema-valid dataset write. Its terminal records keep useful data, valid empty research, account configuration, and upstream availability distinct for downstream workflows.