Setting Live ‘DataForSEO Trends Demography’ Tasks
DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Setting Live ‘DataForSEO Trends Demography’ Tasks
The Google Trends audience behind a keyword: age and gender splits over the same window post_dataforseo_keywords_trends_explore_live uses, with the same type and date arguments. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. Cheap like its sibling. For where rather than who, use post_dataforseo_keywords_trends_subregion_interests_live.
Pricing reference
- Metering: Reported response cost.
- Reference request estimate: USD 0.0024.
- 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_KeywordsDataDataforseoTrendsDemographyLiveResponseInfo200
- 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_KeywordsDataDataforseoTrendsDemographyLiveTaskInfo
- 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
- Type: object | null · Response36Afe1097B20_DataforseoTrendsDemographyElementItem
- Type: object · Response36Afe1097B20_DataforseoTrendsDemographyElementItem
- typeDiscriminatorType: string | null
type of element
- demographyType: object | null · Response36Afe1097B20_Demography
demographic breakdown of keyword popularity data per each specified term
conains keyword popularity data by age and gender- ageType: array (object | null)[] | null
distribution of keyword popularity by age
- keywordType: string | null
relevant keyword for which demographic data is provided
- valuesType: array (object | null)[] | null
contains age range and corresponding keyword popularity values
- typeType: string | null
type of element
- valueType: integer | null
keyword popularity rate within the specified age range
using thisvalueyou can understand how popular a keyword is within each age range;
calculation: we determine the highest popularity value for the relevant keyword across all age groups, and then express all other values as a percentage of that highest value (100);
a value of100is the highest popularity for the term
a value of0means there was not enough data for this term
- genderType: array (object | null)[] | null
distribution of keyword popularity by gender
- keywordType: string | null
relevant keyword for which demographic data is provided
- valuesType: array (object | null)[] | null
contains age range and corresponding keyword popularity values
- typeType: string | null
type of element
- valueType: integer | null
keyword popularity rate within the specified age range
using thisvalueyou can understand how popular a keyword is within each age range;
calculation: we determine the highest popularity value for the relevant keyword across all age groups, and then express all other values as a percentage of that highest value (100);
a value of100is the highest popularity for the term
a value of0means there was not enough data for this term
- demographyType: object | null · Response36Afe1097B20_DemographyComparisonInfo
_comparison comparison of demographic data on keyword popularity for the specified parameters
conains keyword popularity data by age and gender
if you specified a single keyword, the value will benull- ageType: object | null
type of element
- propertyType: array (integer | null)[] | null
Name
- genderType: object | null
type of element
- propertyType: array (integer | null)[] | null
Name
- 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.
- 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/demography/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": "[Max Depth Exceeded]",
"position": "[Max Depth Exceeded]",
"keywords": "[Max Depth Exceeded]",
"demography": "[Max Depth Exceeded]",
"demography_comparison": "[Max Depth Exceeded]"
}
]
}
]
}
]
}