DataForSEO Labs Google Historical Keyword Data
From 14.4 credits/call
ae_dataforseo_labs_google_historical_keyword_data
Get historical Google keyword data from DataForSEO, including search volume, CPC, competition, and trends since August 2021.
From 14.4 credits/call
Pricing
From 14.4 credits/call
| Condition | Charge |
|---|---|
| Base processing fee per call | 14.4 credits |
| Per record | 0.2 credits |
Charges depend on the actual returned results.
The starting price is the base query fee; returned records add the listed charges.
Parameters
Optional parameters use the platform defaults when omitted.
| Parameter | Type | Required | Description | Default |
|---|---|---|---|---|
tasks | array | Yes | No parameter description. | — |
tasks[].tag | string | null | No | No parameter description. | — |
tasks[].keywords | array | No | <em>keywords</em><br><strong>required field</strong><br>The maximum number of keywords you can specify: 700<br>The maximum number of characters for each keyword: 80<br>The maximum number of words for each keyword phrase: 10<br>the specified keywords will be converted to lowercase format, data will be provided in a separate array<p><strong>note</strong> that if some of the keywords specified in this array are omitted in the results you receive, then our database doesn't contain such keywords and cannot return data on them<br>you will not be charged for the keywords omitted in the results<p>learn more about rules and limitations of <code>keyword</code> and <code>keywords</code> fields in DataForSEO APIs in this <a href="https://dataforseo.com/help-center/rules-and-limitations-of-keyword-and-keywords-fields-in-dataforseo-apis" rel="noopener noreferrer" target="_blank">Help Center article</a> | — |
tasks[].language_code | string | null | No | No parameter description. | — |
tasks[].language_name | string | No | <em>full name of the language</em><br><strong>required field if you don't specify</strong> <code>language_code</code><br><strong>Note:</strong> it is required to specify either <code>language_name</code> or <code>language_code</code><br>you can receive the list of available locations with their <code>language_name</code> by making a separate request to the <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code><br>example:<br><code class="long-string">English</code> | — |
tasks[].location_code | integer | No | <em>location code</em><br><strong>required field if you don't specify</strong> <code>location_name</code><br><strong>Note:</strong> it is required to specify either <code>location_name</code> or <code>location_code</code><br>you can receive the list of available locations with their <code>location_code</code> by making a separate request to the <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code><br>example:<br><code class="long-string">2840</code> | — |
tasks[].location_name | string | No | <em>full name of the location</em><br><strong>required field if you don't specify</strong> <code>location_code</code><br><strong>Note:</strong> it is required to specify either <code>location_name</code> or <code>location_code</code><br>you can receive the list of available locations with their <code>location_name</code> by making a separate request to the <br><code>https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages</code><br>example:<br><code class="long-string">United Kingdom</code> | — |
Invocation example
Copy the request and explore its response example.
POST
/agent-api/v1/tool/executeX-Api-KeyRequest coderequest.sh
curl --request POST \
--url 'https://agentearth.ai/agent-api/v1/tool/execute?tool_name=ae_dataforseo_labs_google_historical_keyword_data' \
--header "X-Api-Key: $AGENTEARTH_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"params": {
"tasks": [
{
"keywords": [
"custom towels",
"cooling towels"
],
"language_code": "en",
"location_code": 2840
}
]
}
}'Response exampleresponse.json
{
"cost": 0.01224,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0.01224,
"data": {
"api": "dataforseo_labs",
"function": "historical_keyword_data",
"keywords": [
"custom towels"
],
"language_code": "en",
"location_code": 2840,
"se_type": "google"
},
"id": "11180216-2802-0608-0000-b6a7425083f5",
"path": [
"v3"
],
"result": [
{
"items_count": 2,
"language_code": "en",
"location_code": 2840,
"se_type": "google"
}
],
"result_count": 1
}
],
"tasks_count": 1,
"tasks_error": 0
}This example shows part of the response. Copied content is valid JSON.

