数据 API / DataForSEO / Business Data
Get Hotel Searches Completed Tasks
Lists finished Google Hotels search tasks awaiting collection. Free. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. ⚠️ Rarely the tool you want: a caller holds the id its own submit returned and can fetch that directly. This answers what is ready across the whole account, which is a different question, and it returns an empty result with status 20000 when nothing is - an empty queue, not an error.
参数
没有路径、查询或请求头参数。
请求示例
curl -X GET "https://openapi.felo.ai/v1/beta/dataforseo/business_data/google/hotel_searches/tasks_ready" \
-H "Authorization: Bearer $FELO_API_KEY"响应
响应字段
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
tasksarray*tasks_errorinteger可选*the number of tasks in the
tasksarray 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
resultarraypathstring[]可选URL path
dataobject可选contains the parameters passed in the request’s URL
resultstring[]可选array of results
idstring可选task identifier of the completed task unique task identifier in our system in the UUID format
sestring可选search engine specified when setting the task can take the following values:
googlese_typestring可选search engine type
date_postedstring可选date when the task was posted (in the UTC format)
tagstring可选user-defined task identifier
endpointstring可选URL for collecting the results of the task