DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Get LLM Responses Gemini Completed Tasks
Lists finished Gemini response 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. A caller that holds its own task id can fetch directly and skip this.
- Type: object200
Successful response
- Type: numbercost
total tasks cost, USD
- Type: array string[]result
array of results
- Type: stringresult
.date _posted date when the task was posted (in the UTC format)
- Type: stringresult
.endpoint URL for collecting the results of the task
- Type: stringresult
.function type of the task
- Type: stringresult
.id task identifier of the completed task unique task identifier in our system in the UUID format
- Type: stringresult
.se LLM model specified when setting the task
- Type: stringresult
.tag user-defined task identifier
- Type: integerstatus
_code 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
- Type: stringstatus
_message general informational message you can find the full list of general informational messages here
- Type: array string[]tasks
array of tasks
- Type: integertasks
_count the number of tasks in the tasks array
- Type: integertasks
_error the number of tasks in the tasks array returned with an error
- Type: numbertasks
.cost cost of the task, USD
- Type: objecttasks
.data contains the parameters passed in the request's URL
- Type: stringtasks
.id task identifier unique task identifier in our system in the UUID format
- Type: array string[]tasks
.path URL path
- Type: integertasks
.result _count number of elements in the result array
- Type: integertasks
.status _code status code of the task generated by DataForSEO; can be within the following range: 10000-60000 you can find the full list of response codes here
- Type: stringtasks
.status _message informational message of the task you can find the full list of general informational messages here
- Type: stringtasks
.time execution time, seconds
- Type: stringtime
execution time, seconds
- Type: stringversion
the current version of the API
application/json - 400
Bad request
- 401
Unauthorized
- 402
The request cannot proceed because a billing requirement is not met.
- 403
The account is not permitted to perform this operation.
- 429
Rate limit exceeded
- 500
Internal server error
- 502
The service could not complete the request.
- 503
The API or billing service is temporarily unavailable.
- 504
The service timed out while processing the request.
- default
The operation failed. Keep the response request ID when contacting Felo support.
curl https://openapi.felo.ai/v1/beta/dataforseo/ai_optimization/gemini/llm_responses/tasks_ready \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
"version": "string",
"status_code": 1,
"status_message": "string",
"time": "string",
"cost": 1,
"tasks_count": 1,
"tasks_error": 1,
"tasks": [
"string"
],
"tasks.id": "string",
"tasks.status_code": 1,
"tasks.status_message": "string",
"tasks.time": "string",
"tasks.cost": 1,
"tasks.result_count": 1,
"tasks.path": [
"string"
],
"tasks.data": {},
"result": [
"string"
],
"result.id": "string",
"result.se": "string",
"result.function": "string",
"result.date_posted": "string",
"result.tag": "string",
"result.endpoint": "string"
}