数据 API / DataForSEO / DataForSEO Labs
Historical Bulk Traffic Estimation
Estimated organic traffic for many domains at each point in the available history - the time series behind post_dataforseo_labs_google_bulk_traffic_estimation_live. This one takes no limit parameter, but it is priced per call rather than per item, so send the whole list at once. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. ⚠️ Response size multiplies domains by dates; keep both lists short. Available dates come from get_dataforseo_labs_google_available_history.
参数
没有路径、查询或请求头参数。
请求体
targetsstring[]必填target domains and subdomains required field you can specify domains and subdomains in this field; domains and subdomains should be specified without https:// and www.; you can set up to 1000 domains or subdomains
location_namestring可选full name of the location if you use this field, you don’t have to specify location_code you can receive the list of available locations with their location_name by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages ignore this field to get the results for all available locations example: United Kingdom
location_codeinteger可选location code if you use this field, you don’t have to specify location_name you can receive the list of available locations with their location_code by making a separate request to the https://api.dataforseo.com/v3/dataforseo_labs/locations_and_languages ignore this field to get the results for all available locations example: 2840
language_namestring可选full name of the language if you use this field, you don’t need to 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/dataforseo_labs/locations_and_languages ignore this field to get the results for all available languages example: English
language_codestring可选language code if you use this field, you don’t need to 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/dataforseo_labs/locations_and_languages ignore this field to get the results for all available languages example: en
date_fromstring可选starting date of the time range optional field if you don’t specify this field, the data will be provided for the previous 12 months minimal possible value: 2020-10-01 date format: "yyyy-mm-dd"
date_tostring可选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: "2021-04-01"
ignore_synonymsboolean可选ignore highly similar keywords optional field if set to true, only core keywords will be returned, all highly similar keywords will be excluded; default value: false
item_typesstring[]可选display results by item type optional field indicates the type of search results included in the response; Note: if the item_types array contains item types that are different from organic, the results will be ordered by the first item type in the array; possible values: ["organic", "paid", "featured_snippet", "local_pack"] default value: ["organic", "paid"]
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/dataforseo_labs/google/historical_bulk_traffic_estimation/live" \
-H "Authorization: Bearer $FELO_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"targets": [
"<string>"
],
"location_name": "<string>",
"location_code": 0,
"language_name": "<string>",
"language_code": "<string>",
"date_from": "<string>",
"date_to": "<string>",
"ignore_synonyms": false
}'响应
响应字段
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
dataobject可选contains the same parameters that you specified in the POST request
resultstring[]可选array of results
se_typestring可选search engine type
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
total_countinteger可选total amount of results in our database relevant to your request
items_countinteger可选the number of results returned in the items array
itemsstring[]可选array of items with relevant traffic estimation data
se_typestring可选search engine type
targetstring可选target domain in a POST array
metricsobject可选traffic data relevant to the specified domain
organicstring[]可选traffic data from organic search
yearinteger可选year for which the data is provided
monthinteger可选month for which the data is provided
etvnumber可选estimated traffic volume estimated organic monthly traffic to the domain calculated as the product of CTR (click-through-rate) and search volume values of all keywords the domain ranks for learn more about how the metric is calculated in this help center article
countinteger可选total count of organic SERPs that contain the domain
paidstring[]可选traffic data from paid search
yearinteger可选year for which the data is provided
monthinteger可选month for which the data is provided
etvnumber可选estimated traffic volume estimated paid monthly traffic to the domain calculated as the product of CTR (click-through-rate) and search volume values of all keywords the domain ranks for learn more about how the metric is calculated in this help center article
countinteger可选total count of paid SERPs that contain the domain
featured_snippetstring[]可选traffic data from the featured snippet results in Google SERP
yearinteger可选year for which the data is provided
monthinteger可选month for which the data is provided
etvnumber可选estimated traffic volume estimated paid monthly traffic to the domain calculated as the product of CTR (click-through-rate) and search volume values of all keywords in the category that the domain ranks for learn more about how the metric is calculated in this help center article
countinteger可选total count of featured snippet items that contain the domain
local_packstring[]可选traffic data from the local pack results in SERP
yearinteger可选year for which the data is provided
monthinteger可选month for which the data is provided
etvnumber可选estimated traffic volume estimated paid monthly traffic to the domain calculated as the product of CTR (click-through-rate) and search volume values of all keywords in the category that the domain ranks for learn more about how the metric is calculated in this help center article
countinteger可选total count of local pack items that contain the domain