DataForSEO has several powerful APIs that can supply all the data you need for efficient keyword research – Google Keyword Data API, Bing Keyword Data API, and DataForSEO Labs API. Besides that, we offer extensive Keyword Databases, enriched with essential up-to-date metrics, and historical search volume stats.
If you’re interested in our Keyword Database, please refer to this article to learn more or feel free to download data samples from the Database page.
For more information on getting Search Volume, CPC & Competition with our API, keep on reading.
Google Keyword Data API
Google Keyword Data API has a set of endpoints, and each of them can assist you with a specific task. Namely, you can get:
In any endpoint, the returned or specified keywords will be provided with their average CPC, Competition, and Search Volume, as well as a 12-month search volume trend, and related product and service categories. The data source for this API is Google Ads.
Sample Request
POST: https://api.dataforseo.com/v3/keywords_data/google_ads/search_volume/live
[
{
"location_name": "United States",
"language_name": "English",
"keywords": [
"gaming laptop"
]
}
]
Sample Response
{
"version": "0.1.20211130",
"status_code": 20000,
"status_message": "Ok.",
"time": "3.5930 sec.",
"cost": 0.075,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "12011357-2806-0093-0000-0244df1cc736",
"status_code": 20000,
"status_message": "Ok.",
"time": "3.5136 sec.",
"cost": 0.075,
"result_count": 1,
"path": [
"v3",
"keywords_data",
"google_ads",
"search_volume",
"live"
],
"data": {
"api": "keywords_data",
"function": "search_volume",
"se": "google_ads",
"location_name": "United States",
"language_name": "English",
"keywords": [
"gaming laptop"
]
},
"result": [
{
"keyword": "gaming laptop",
"spell": null,
"location_code": 2840,
"language_code": "en",
"search_partners": false,
"competition": "HIGH",
"competition_index": 100,
"search_volume": 368000,
"low_top_of_page_bid": 14.13,
"high_top_of_page_bid": 144.3,
"monthly_searches": [
{
"year": 2021,
"month": 10,
"search_volume": 368000
},
{
"year": 2021,
"month": 9,
"search_volume": 301000
},
{
"year": 2021,
"month": 8,
"search_volume": 368000
},
{
"year": 2021,
"month": 7,
"search_volume": 368000
},
{
"year": 2021,
"month": 6,
"search_volume": 368000
},
{
"year": 2021,
"month": 5,
"search_volume": 301000
},
{
"year": 2021,
"month": 4,
"search_volume": 368000
},
{
"year": 2021,
"month": 3,
"search_volume": 450000
},
{
"year": 2021,
"month": 2,
"search_volume": 368000
},
{
"year": 2021,
"month": 1,
"search_volume": 450000
},
{
"year": 2020,
"month": 12,
"search_volume": 450000
},
{
"year": 2020,
"month": 11,
"search_volume": 550000
}
]
}
]
}
]
}
You can retrieve both local and global results. For more information on the supported locations and languages, please check the Lists of Supported Locations and Languages.
If you’re interested in historical search volume, refer to DataForSEO Labs API part.
Bing Keyword Data API
Bing Keyword Data API supplies data on search queries specific to Bing search engine, and the data is based on Bing Ads API. Importantly, Bing returns search volumes that are precise to the nearest tens and allows retrieving device-specific data.
Bing Keyword Data API also has a set of endpoints, and each returns keywords with average Search Volume, CPC, Competition, and search volume trend for the past 12 months:
Sample Request
POST: https://api.dataforseo.com/v3/keywords_data/bing/search_volume/live
[
{
"location_name": "United States",
"language_code": "en",
"device": "desktop",
"keywords": [
"iphone",
"apple watch"
]
}
]
Sample Response
{
"version": "0.1.20210818",
"status_code": 20000,
"status_message": "Ok.",
"time": "8.5607 sec.",
"cost": 0.075,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "08251903-1535-0093-0000-386e1f6568db",
"status_code": 20000,
"status_message": "Ok.",
"time": "8.4785 sec.",
"cost": 0.075,
"result_count": 2,
"path": [
"v3",
"keywords_data",
"bing",
"search_volume",
"live"
],
"data": {
"api": "keywords_data",
"function": "search_volume",
"se": "bing",
"location_name": "United States",
"language_code": "en",
"device": "desktop",
"keywords": [
"iphone",
"apple watch"
]
},
"result": [
{
"keyword": "apple watch",
"location_code": 2840,
"language_code": "en",
"search_partners": false,
"device": "desktop",
"competition": 0.9,
"cpc": 0.47,
"search_volume": 49950,
"categories": null,
"monthly_searches": [
{
"year": 2021,
"month": 7,
"search_volume": 35100
},
{
"year": 2021,
"month": 6,
"search_volume": 40940
},
{
"year": 2021,
"month": 5,
"search_volume": 49710
},
{
"year": 2021,
"month": 4,
"search_volume": 43150
},
{
"year": 2021,
"month": 3,
"search_volume": 39800
},
{
"year": 2021,
"month": 2,
"search_volume": 34090
},
{
"year": 2021,
"month": 1,
"search_volume": 40230
},
{
"year": 2020,
"month": 12,
"search_volume": 93950
},
{
"year": 2020,
"month": 11,
"search_volume": 84360
},
{
"year": 2020,
"month": 10,
"search_volume": 51300
},
{
"year": 2020,
"month": 9,
"search_volume": 55160
},
{
"year": 2020,
"month": 8,
"search_volume": 41860
},
{
"year": 2020,
"month": 7,
"search_volume": 39730
}
]
},
{
"keyword": "iphone",
"location_code": 2840,
"language_code": "en",
"search_partners": false,
"device": "desktop",
"competition": 0.9,
"cpc": 1.17,
"search_volume": 54100,
"categories": null,
"monthly_searches": [
{
"year": 2021,
"month": 7,
"search_volume": 40830
},
{
"year": 2021,
"month": 6,
"search_volume": 41940
},
{
"year": 2021,
"month": 5,
"search_volume": 48620
},
{
"year": 2021,
"month": 4,
"search_volume": 48480
},
{
"year": 2021,
"month": 3,
"search_volume": 59020
},
{
"year": 2021,
"month": 2,
"search_volume": 50360
},
{
"year": 2021,
"month": 1,
"search_volume": 60260
},
{
"year": 2020,
"month": 12,
"search_volume": 61160
},
{
"year": 2020,
"month": 11,
"search_volume": 64290
},
{
"year": 2020,
"month": 10,
"search_volume": 69650
},
{
"year": 2020,
"month": 9,
"search_volume": 57850
},
{
"year": 2020,
"month": 8,
"search_volume": 52200
},
{
"year": 2020,
"month": 7,
"search_volume": 48700
}
]
}
]
}
]
}
Learn more about using Bing Keyword Data API in this article on our blog. If you’re interested in historical search volume, refer to DataForSEO Labs API part.
DataForSEO Labs API
DataForSEO Labs API is based on our in-house Keyword Database of over 3.5 billion keywords. This API returns search terms with Search Volume for the last months and last 12 months, current CPC and Competition for both Google and Bing, as well as min/max/avg values for daily impressions, clicks, and CPC for Google.
All of this data is available to you through four endpoints tailor-made for keyword research:
- Related Keywords
- Keyword Suggestions
- Keyword Ideas
- Historical Search Volume (back to the beginning of 2019)
Sample Request
POST: https://api.dataforseo.com/v3/dataforseo_labs/google/historical_search_volume/live
[
{
"keywords": [
"buy iphone"
],
"language_name": "English",
"location_code": 2840,
"include_serp_info": true
}
]
Sample Response
{
"version": "0.1.20220216",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0790 sec.",
"cost": 0.0101,
"tasks_count": 1,
"tasks_error": 0,
"tasks": [
{
"id": "03211350-2806-0401-0000-9ee7104017c5",
"status_code": 20000,
"status_message": "Ok.",
"time": "0.0331 sec.",
"cost": 0.0101,
"result_count": 1,
"path": [
"v3",
"dataforseo_labs",
"google",
"historical_search_volume",
"live"
],
"data": {
"api": "dataforseo_labs",
"function": "historical_search_volume",
"se_type": "google",
"keywords": [
"buy iphone"
],
"language_name": "English",
"location_code": 2840,
"include_serp_info": true
},
"result": [
{
"se_type": "google",
"location_code": 2840,
"language_code": "en",
"items_count": 1,
"items": [
{
"se_type": "google",
"keyword": "buy iphone",
"location_code": 2840,
"language_code": "en",
"search_partners": false,
"keyword_info": {
"se_type": "google",
"last_updated_time": "2022-03-18 05:12:26 +00:00",
"competition": 1,
"cpc": 4.248751,
"search_volume": 14800,
"categories": [
10007,
10019,
10167,
10878,
11511,
12161,
13054,
13381,
13419
],
"monthly_searches": [
{
"year": 2022,
"month": 2,
"search_volume": 14800
},
{
"year": 2022,
"month": 1,
"search_volume": 14800
},
{
"year": 2021,
"month": 12,
"search_volume": 14800
},
{
"year": 2021,
"month": 11,
"search_volume": 14800
},
{
"year": 2021,
"month": 10,
"search_volume": 18100
},
{
"year": 2021,
"month": 9,
"search_volume": 18100
},
{
"year": 2021,
"month": 8,
"search_volume": 14800
},
{
"year": 2021,
"month": 7,
"search_volume": 18100
},
{
"year": 2021,
"month": 6,
"search_volume": 14800
},
{
"year": 2021,
"month": 5,
"search_volume": 14800
},
{
"year": 2021,
"month": 4,
"search_volume": 12100
},
{
"year": 2021,
"month": 3,
"search_volume": 12100
},
{
"year": 2021,
"month": 2,
"search_volume": 9900
},
{
"year": 2021,
"month": 1,
"search_volume": 12100
},
{
"year": 2020,
"month": 12,
"search_volume": 14800
},
{
"year": 2020,
"month": 11,
"search_volume": 14800
},
{
"year": 2020,
"month": 10,
"search_volume": 14800
},
{
"year": 2020,
"month": 9,
"search_volume": 12100
},
{
"year": 2020,
"month": 8,
"search_volume": 14800
},
{
"year": 2020,
"month": 7,
"search_volume": 14800
},
{
"year": 2020,
"month": 6,
"search_volume": 14800
},
{
"year": 2020,
"month": 5,
"search_volume": 14800
},
{
"year": 2020,
"month": 4,
"search_volume": 14800
},
{
"year": 2020,
"month": 3,
"search_volume": 12100
},
{
"year": 2020,
"month": 2,
"search_volume": 12100
},
{
"year": 2020,
"month": 1,
"search_volume": 12100
},
{
"year": 2019,
"month": 12,
"search_volume": 14800
},
{
"year": 2019,
"month": 11,
"search_volume": 14800
},
{
"year": 2019,
"month": 10,
"search_volume": 18100
},
{
"year": 2019,
"month": 9,
"search_volume": 18100
},
{
"year": 2019,
"month": 8,
"search_volume": 14800
},
{
"year": 2019,
"month": 7,
"search_volume": 14800
},
{
"year": 2019,
"month": 6,
"search_volume": 14800
},
{
"year": 2019,
"month": 5,
"search_volume": 14800
},
{
"year": 2019,
"month": 4,
"search_volume": 12100
},
{
"year": 2019,
"month": 3,
"search_volume": 12100
},
{
"year": 2019,
"month": 2,
"search_volume": 12100
}
]
},
"keyword_properties": {
"se_type": "google",
"core_keyword": null,
"keyword_difficulty": 100
},
"impressions_info": {
"se_type": "google",
"last_updated_time": "2022-03-20 21:51:17 +00:00",
"bid": 999,
"match_type": "exact",
"ad_position_min": 1.45,
"ad_position_max": 1,
"ad_position_average": 1.32,
"cpc_min": 319.83,
"cpc_max": 390.9,
"cpc_average": 355.36,
"daily_impressions_min": 766.2,
"daily_impressions_max": 936.47,
"daily_impressions_average": 851.34,
"daily_clicks_min": 47.24,
"daily_clicks_max": 57.73,
"daily_clicks_average": 52.49,
"daily_cost_min": 16786.53,
"daily_cost_max": 20516.87,
"daily_cost_average": 18651.7
},
"serp_info": {
"se_type": "google",
"check_url": "https://www.google.com/search?q=buy%20iphone&num=100&hl=en&gl=US&gws_rd=cr&ie=UTF-8&oe=UTF-8&uule=w+CAIQIFISCQs2MuSEtepUEUK33kOSuTsc",
"serp_item_types": [
"shopping",
"organic",
"people_also_ask",
"local_pack",
"popular_products",
"top_stories",
"images",
"related_searches"
],
"se_results_count": 90,
"last_updated_time": "2022-03-13 15:14:03 +00:00",
"previous_updated_time": "2022-01-13 23:45:29 +00:00"
}
}
]
}
]
}
]
}
With DataForSEO Labs API, you can refine the data that will be retrieved using extensive filtering and sorting rules. To learn more about using DataForSEO Labs API and applying filters, check out this article on our blog.
Recommended read: