Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/00000000-0000-0000-0000-000000000000 \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>",
"tasks": [
{
"cost": 123,
"data": {},
"id": "<string>",
"path": [
"<string>"
],
"result_count": 123,
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"result": [
{
"check_url": "<string>",
"datetime": "<string>",
"item_types": [
"<string>"
],
"items": [
{
"category": "<string>",
"channel_id": "<string>",
"channel_logo": "<string>",
"channel_name": "<string>",
"channel_subscribers_count": {
"count": 123,
"displayed_count": "<string>"
},
"channel_url": "<string>",
"comments_count": 123,
"description": "<string>",
"duration_time": "<string>",
"duration_time_seconds": 123,
"is_embeddable": true,
"is_live": true,
"keywords": [
"<string>"
],
"likes_count": 123,
"publication_date": "<string>",
"rank_absolute": 123,
"rank_group": 123,
"streaming_quality": [
{
"bitrate": 123,
"fps": 123,
"height": 123,
"label": "<string>",
"mime_type": "<string>",
"type": "<string>",
"width": 123
}
],
"subtitles": [
{
"is_auto_generated": true,
"is_translatable": true,
"language": "<string>"
}
],
"thumbnail_url": "<string>",
"timestamp": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>",
"video_id": "<string>",
"views_count": 123
}
],
"items_count": 123,
"language_code": "<string>",
"location_code": 123,
"se_domain": "<string>",
"spell": {
"keyword": "<string>",
"type": "<string>"
},
"video_id": "<string>"
}
]
}
]
}YouTube
Get YouTube Video Info Results by id
Retrieves a queued YouTube video info result by id.
GET
https://api.aisa.one
/
apis
/
v1
/
dataforseo
/
serp
/
youtube
/
video_info
/
task_get
/
advanced
/
{id}
Reference example
# Fixed reference example. Playground inputs do not update this sample.
curl --request GET \
--url https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/00000000-0000-0000-0000-000000000000 \
--header 'Authorization: Bearer <token>'curl --request GET \
--url https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>",
"tasks": [
{
"cost": 123,
"data": {},
"id": "<string>",
"path": [
"<string>"
],
"result_count": 123,
"status_code": 123,
"status_message": "<string>",
"time": "<string>",
"result": [
{
"check_url": "<string>",
"datetime": "<string>",
"item_types": [
"<string>"
],
"items": [
{
"category": "<string>",
"channel_id": "<string>",
"channel_logo": "<string>",
"channel_name": "<string>",
"channel_subscribers_count": {
"count": 123,
"displayed_count": "<string>"
},
"channel_url": "<string>",
"comments_count": 123,
"description": "<string>",
"duration_time": "<string>",
"duration_time_seconds": 123,
"is_embeddable": true,
"is_live": true,
"keywords": [
"<string>"
],
"likes_count": 123,
"publication_date": "<string>",
"rank_absolute": 123,
"rank_group": 123,
"streaming_quality": [
{
"bitrate": 123,
"fps": 123,
"height": 123,
"label": "<string>",
"mime_type": "<string>",
"type": "<string>",
"width": 123
}
],
"subtitles": [
{
"is_auto_generated": true,
"is_translatable": true,
"language": "<string>"
}
],
"thumbnail_url": "<string>",
"timestamp": "<string>",
"title": "<string>",
"type": "<string>",
"url": "<string>",
"video_id": "<string>",
"views_count": 123
}
],
"items_count": 123,
"language_code": "<string>",
"location_code": 123,
"se_domain": "<string>",
"spell": {
"keyword": "<string>",
"type": "<string>"
},
"video_id": "<string>"
}
]
}
]
}Retrieves a queued YouTube video info result by
id. Returns keyword, type, se_domain, location_code, language_code, check_url, datetime, spell, refinement_chips, item_types, items_count and items. Free - the charge was on the submit. Wrapped in DataForSEO’s envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200.
Example
curl -X GET "https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}" \
-H "Authorization: Bearer YOUR_API_KEY"
Request contract
- Method and path: GET /apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}
- Availability: enabled
- Request URL template: https://api.aisa.one/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}
- id: path; required
- Runtime facts: 6ab8fec17df1d5dcdff2e036dd1eb40587752b774ec040ab4eb0cc6946c3dd3c
{
"operationId": "get_dataforseo_serp_youtube_video_info_fetch",
"method": "GET",
"path": "/apis/v1/dataforseo/serp/youtube/video_info/task_get/advanced/{id}",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"description": "<em>task identifier</em><br><strong>unique task identifier in our system in the <a href=\"https://en.wikipedia.org/wiki/Universally_unique_identifier\">UUID</a> format</strong><br>you will be able to use it within <strong>30 days</strong> to request the results of the task at any time",
"example": "00000000-0000-0000-0000-000000000000",
"in": "path",
"name": "id",
"required": true,
"schema": {
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"x-aisa-pricing": {
"cost_contract": "explicit_zero",
"customer_pricing": "fixed_success",
"default_request_estimate_usd": 0.0,
"estimate_source": "customer_pricing_fixed",
"evidence_source": "request_snapshot"
},
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Published reference price: $0 USD per successful request. Account-specific pricing and final settlement may differ. Published reference values are not an account-specific quote or a settled charge. For endpoints supporting X-AISA-Cost-Mode: quote, obtain a free quote for your exact request before execution; reconcile the settled cost with response metadata and Usage Logs. USD amounts use 1,000,000 integer micro-USD per dollar.- Default request reference estimate (USD): 0.0
- Cost contract: explicit_zero
- Settlement evidence source: request_snapshot
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
Response
object | null
Successful operation
total tasks cost, USD
general status code you can find the full list of the response codes here
general informational message you can find the full list of general informational messages here
the number of tasks in the tasks array
the number of tasks in the tasks array returned with an error
total execution time, seconds
the current version of the API
array of tasks
Show child attributes
Show child attributes