Data 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