データ API / DataForSEO / AI Optimization
Get LLM Responses ChatGPT Completed Tasks
Lists finished ChatGPT 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.
パラメータ
パス・クエリ・ヘッダーのパラメータはありません。
リクエスト例
curl -X GET "https://openapi.felo.ai/v1/beta/dataforseo/ai_optimization/chat_gpt/llm_responses/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 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 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 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任意LLM model specified when setting the task
functionstring任意type of the task
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