数据 API / DataForSEO / Keywords Data
Setting Live ‘DataForSEO Search Volume’ Tasks
Search volume derived from clickstream panels rather than the ad platforms, for a list of keywords. use_clickstream toggles the blend. Returns location_code, language_code, use_clickstream, items_count and items. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. Clickstream volume often disagrees with post_dataforseo_keywords_gads_search_volume_live, which is the point: one measures what advertisers are shown, the other what people did.
参数
没有路径、查询或请求头参数。
请求体
keywordsstring[]必填target keywords required field UTF-8 encoding maximum number of keywords you can specify in this array: 1000 the keywords will be converted to lowercase format Note: certain symbols and characters (e.g., UTF symbols, emojis) are not allowed to learn more about which symbols and characters can be used, please refer to this article learn more about rules and limitations of keyword and keywords fields in DataForSEO APIs in this Help Center article
location_namestring可选full name of search engine location required field if you don’t specify location_code you can receive the list of available locations with location_name by making a separate request to https://api.dataforseo.com/v3/keywords_data/clickstream_data/locations_and_languages example: United Kingdom
location_codeinteger可选search engine location code required field if you don’t specify location_name if you use this field, you can receive the list of available locations with location_code by making a separate request to the https://api.dataforseo.com/v3/keywords_data/clickstream_data/locations_and_languages example: 2826
language_namestring可选full name of search engine language required field if don’t specify language_code you can receive the list of available languages with their language_name by making a separate request to the https://api.dataforseo.com/v3/keywords_data/clickstream_data/locations_and_languages example: English
language_codestring可选search engine language code required field if don’t specify language_name you can receive the list of available languages with their language_code by making a separate request to the https://api.dataforseo.com/v3/keywords_data/clickstream_data/locations_and_languages example: en
use_clickstreamboolean可选use clickstream data to provide results optional field if set to true, you will get DataForSEO search volume values based on clickstream data; if set to false, Bing search volume data will be used to calculate DataForSEO search volume; default value: true; Note: Bing search volume is available for locations provided in Bing Search Volume History Locations and Bing Ads Locations endpoints; search volume values for any other location are calculated based on clickstream data even if you set this parameter to false
tagstring可选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 specified tag value in the data object of the response
请求示例
curl -X POST "https://openapi.felo.ai/v1/beta/dataforseo/keywords_data/clickstream_data/dataforseo_search_volume/live" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keywords": [
"<string>"
],
"location_name": "<string>",
"location_code": 0,
"language_name": "<string>",
"language_code": "<string>",
"use_clickstream": false,
"tag": "<string>"
}'响应
响应字段
versionstring可选the current version of the API
status_codeinteger可选general status code you can find the full list of the response codes here Note: we strongly recommend designing a necessary system for handling related exceptional or error conditions
status_messagestring可选general informational message you can find the full list of general informational messages here
timestring可选execution time, seconds
costnumber可选total tasks cost, USD
tasks_countinteger可选the number of tasks in the tasks array
tasks_errorinteger可选the number of tasks in the tasks array returned with an error
tasksstring[]可选array of tasks
idstring可选task identifier unique task identifier in our system in the UUID format
status_codeinteger可选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
status_messagestring可选informational message of the task you can find the full list of general informational messages here
timestring可选execution time, seconds
costnumber可选cost of the task, USD
result_countinteger可选number of elements in the result array
pathstring[]可选URL path
datastring[]可选contains the same parameters that you specified in the POST request
resultstring[]可选array of results
location_codeinteger可选location code in a POST array if there is no data, then the value is null
language_codestring可选language code in a POST array if there is no data, then the value is null
items_countstring可选ithe number of results returned in the items array
itemsstring[]可选array of keywords contains keywords and their search volume rates
keywordstring可选keyword provided in the POST array
use_clickstreamboolean可选indicates if the use_clickstream parameter is active possible values: true, false
search_volumeinteger可选current search volume rate of a keyword
monthly_searchesstring[]可选monthly search volume rates array of objects with search volume rates in a certain month of a year
yearinteger可选year
monthinteger可选month
search_volumeinteger可选search volume rate in a certain month of a year