Setting Live ‘DataForSEO Trends Merged Data’ Tasks
DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Setting Live ‘DataForSEO Trends Merged Data’ Tasks
Explore, demography and subregion data for the same keywords in one response, rather than three calls. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. Prefer it when you want the whole picture: the three siblings each cost a call, and this returns what all three would.
Pricing reference
- Metering: Reported response cost.
- Reference request estimate: USD 0.09.
- Reference customer multiplier: 1.0. Do not apply it again to a settled customer amount.
Reference metadata only, not an account quote, a guaranteed price or a spending cap. Resource credits are not Felo credits. Final charges follow Felo billing records.
- Type: array (object | null)[]
- dateType: string | null
_from starting date of the time range
optional field
if you don't specify this field, the current day and month of the preceding year will be used by default
minimal value for thewebtype:2004-01-01
minimal value for other types:2008-01-01
date format:"yyyy-mm-dd"
example:"2019-01-15" - dateType: string | null
_to ending date of the time range
optional field
if you don't specify this field, the today's date will be used by default
date format:"yyyy-mm-dd"
example:"2019-01-15" - keywordsType: array string[]
keywords
required field
the maximum number of keywords you can specify: 5
avoid symbols and special characters (e.g., UTF symbols, emojis);
specifying non-Latin characters, you’ll get data for the countries where they are usedlearn more about rules and limitations of
keywordandkeywordsfields in DataForSEO APIs in this Help Center article - locationType: integer | null
_code search engine location code
optional field
if you don't use this field, you will recieve global results
if you use this field, you don't need to specifylocation_name
you can receive the list of available locations of the search engines with theirlocation_codeby making a separate request tohttps://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations
note that the data will be provided for the country the specifiedlocation_codebelongs to;
example:2840 - locationType: string | null
_name full name of search engine location
optional field
if you don't use this field, you will recieve global results
if you use this field, you don't need to specifylocation_code
you can receive the list of available locations of the search engine with theirlocation_nameby making a separate request tohttps://api.dataforseo.com/v3/keywords_data/dataforseo_trends/locations
note that the data will be provided for the country the specifiedlocation_namebelongs to;
example:United Kingdom - tagType: string | null
user-defined task identifier
optional field
the character limit is 255
you can use this parameter to identify the task and match it with the result
you will find the specifiedtagvalue in thedataobject of the response - timeType: string | null
_range preset time ranges
optional field
if you specifydate_fromordate_toparameters, this field will be ignored when setting a task
possible values for alltypeparameters:past_4_hours,past_day,past_7_days,past_30_days,past_90_days,past_12_months,past_5_years - typeType: string | null
type of element
- Type: object | null · Response36Afe1097B20_KeywordsDataDataforseoTrendsMergedDataLiveResponseInfo200
- Type: number | null Format: doublecost
total tasks cost, USD
- Type: integer | nullstatus
_code general status code you can find the full list of the response codes here
- Type: string | nullstatus
_message general informational message you can find the full list of general informational messages here
- Type: array (object | null)[] | nulltasks
array of tasks
- Type: object | null · Response36Afe1097B20_KeywordsDataDataforseoTrendsMergedDataLiveTaskInfo
- costType: number | null Format: double
total tasks cost, USD
- dataType: object | null
contains the same parameters that you specified in the POST request
- propertyType: object | null
Name
- idType: string | null
task identifier unique task identifier in our system in the UUID format
- pathType: array (string | null)[] | null
URL path
- resultType: array (object | null)[] | null
array of results
- datetimeType: string | null
date and time when the result was received
in the UTC format: “yyyy-mm-dd hh-mm-ss +00:00”
example:2019-11-15 12:57:46 +00:00 - itemsType: array (object | null)[] | null
contains keyword popularity and related data
- keywordsType: array (string | null)[] | null
keywords in a POST array
- positionType: integer | null
the alignment of the element
can take the following values:1,2,3,4, etc. - typeType: string | null
type of element
- itemsType: integer | null Format: int64
_count the number of results returned in the
itemsarray - keywordsType: array (string | null)[] | null
keywords in a POST array
- languageType: string | null
_code language code in a POST array
if there is no data, then the value is_nulln - locationType: integer | null
_code location code in a POST array
if there is no data, then the value is_nulln - typeType: string | null
type of element
- resultType: integer | null Format: int64
_count number of elements in the result array
- statusType: integer | null
_code status code of the task generated by DataForSEO, can be within the following range: 10000-60000 you can find the full list of the response codes here
- statusType: string | null
_message informational message of the task you can find the full list of general informational messages here
- timeType: string | null
execution time, seconds
- Type: integer | null Format: int64tasks
_count the number of tasks in the tasks array
- Type: integer | null Format: int64tasks
_error the number of tasks in the tasks array returned with an error
- Type: string | nulltime
total execution time, seconds
- Type: string | nullversion
the current version of the API
application/json - 400
The request could not be processed. Check the request parameters.
- 401
A valid Felo API key is required.
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
A request or spending limit has been reached.
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
Error response; upstream passthrough responses may use provider formats
application/json
curl https://openapi.felo.ai/v1/beta/dataforseo/keywords_data/dataforseo_trends/merged_data/live \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"keywords": [
"rugby",
"cricket"
],
"date_from": "2023-01-01",
"date_to": "2024-01-01",
"type": "web",
"location_name": "United States"
}
]'
{
"version": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"tasks_count": null,
"tasks_error": null,
"tasks": [
{
"id": null,
"status_code": null,
"status_message": null,
"time": null,
"cost": null,
"result_count": null,
"path": [
null
],
"data": null,
"result": [
{
"keywords": [
null
],
"type": null,
"location_code": null,
"language_code": null,
"datetime": null,
"items_count": null,
"items": [
{
"type": null,
"position": null,
"keywords": [
"[Max Depth Exceeded]"
]
}
]
}
]
}
]
}