DataForSEO
SEO, search-engine results, keyword research, backlinks and AI visibility data.
Setting YouTube Video Info Tasks
Queues one YouTube video's metadata on YouTube, returning a task id in tasks[0].id. Wrapped in DataForSEO's envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. The live twin answers immediately and is simpler for a single query; queue when the batch would outlast a tool call.
- 類型: array object[]
- video類型: string
_id 必填ID of the video
- device類型: string
Device type; only desktop is supported
- language類型: string
_code Search engine language code
- language類型: string
_name Full name of search engine language
- location類型: integer
_code Search engine location code
- location類型: string
_name Full name of search engine location
- pingback類型: string
_url Notification URL of a completed task
- postback類型: string
_data Postback datatype; possible value: advanced
- postback類型: string
_url URL for sending task results
- priority類型: integer
Task priority
- 類型: object200
Successful response
- 類型: numbercost
Total tasks cost, USD
- 類型: integerstatus
_code General status code
- 類型: stringstatus
_message General informational message
- 類型: array string[]tasks
Array of task objects
- 類型: integertasks
_count The number of tasks in the tasks array
- 類型: integertasks
_error The number of tasks in the tasks array returned with an error
- 類型: numbertasks[]
.cost Cost of the task, USD
- 類型: stringtasks[]
.id Task identifier in UUID format
- 類型: integertasks[]
.result _count Number of elements in the result array
- 類型: integertasks[]
.status _code Task status code
- 類型: stringtasks[]
.status _message Task status message
- 類型: stringtime
Execution time, seconds
- 類型: 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/serp/youtube/video_info/task_post \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '[
{
"video_id": "",
"location_name": "",
"location_code": 1,
"language_name": "",
"language_code": "",
"device": "",
"priority": 1,
"postback_url": "",
"pingback_url": "",
"postback_data": ""
}
]'
{
"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[].cost": 1,
"tasks[].result_count": 1
}