資料 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