Get keyword metrics
get_keyword_metricsHydrate up to 700 known keywords with search volume, keyword difficulty (KD), search intent, CPC, competition, and monthly trends in a single call. Use it to score candidate or known keywords — including Search Console striking-distance queries — by real demand and ranking difficulty. For countries served from Google Ads data (e.g. Iceland), KD and intent are null.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| sortBy | No | Sort order for returned rows. Defaults to search_volume. | |
| keywords | Yes | Keywords to fetch metrics for (1-700). | |
| projectId | Yes | Required. The HarborRank project ID to scope this call to. Get one from list_projects. | |
| languageCode | No | Language code (e.g. 'en', 'es', 'vi'). Defaults to the project's default market language (see list_projects). | |
| locationCode | No | DataForSEO location code. Defaults to the project's default market (see list_projects; editable in project settings). See dataforseo.com/help-center/locations. Some countries (e.g. Iceland, 2352) are served from Google Ads data: keyword volume/CPC/trends work, but keyword difficulty, search intent, and domain analytics are unavailable. | |
| includeMonthlyTrends | No | Include monthly search-volume trend rows. Defaults to true. | |
| includeClickstreamData | No | Refine search volumes with clickstream data, which disaggregates Google Ads' grouped close-variant volumes (plurals/misspellings). Use only when plural or misspelling variants need separate volumes. Default false. No effect for countries served from Google Ads data. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| meta | No | ||
| keywords | Yes |