curl --request GET \
--url https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_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://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_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 => [
"X-API-Key: <api-key>"
],
]);
$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://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"channel_id": "<string>",
"channel_name": "<string>",
"channel_url": "<string>",
"cover_object": "<string>",
"cover_url": "<string>",
"description": "<string>",
"duplicate_of": "<string>",
"duration_ms": 123,
"id": "<string>",
"published_at": "<string>",
"resolved_speakers": {},
"screenshots": [
{
"id": "<string>",
"is_cover": true,
"object": "<string>",
"reason": "<string>",
"timestamp_ms": 123,
"url": "<string>"
}
],
"speakers": [
{
"attribution_source": "<string>",
"confidence": 123,
"evidence": "<string>",
"label": "<string>",
"name": "<string>",
"role": "<string>",
"status": "<string>"
}
],
"status": "transcribed",
"title": "<string>",
"transcript": [
{
"end_ms": 123,
"screenshot_ids": [
"<string>"
],
"speaker": "<string>",
"start_ms": 123,
"text": "<string>"
}
],
"turns": [
{
"end_sec": 123,
"speaker": "Arthur Hayes",
"start_sec": 123,
"text": "<string>",
"voice": "spk 3"
}
],
"updated_at": "<string>",
"video_url": "<string>"
}
],
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}Get YouTube video content
OpenAPI JSON Spec Returns the current extraction result for one YouTube video. Set include_content=true for the transcript, speaker matches and, on a video processed before screenshots stopped, screenshots. A transcript segment’s speaker is the voice that talks most during it: its name when the audio speaker identification is at least 0.4 sure of it, otherwise “spk N”. speakers has one entry per voice the identification listed, labeled as the segments are, with name, role, confidence and attribution_source; a name below 0.4 stays there. A video not yet identified keeps the captions’ own name labels. If no voice is named with confidence 0.4 or more, the captions’ own name labels are kept when they have any, and the segments show “spk N” when they have none. updated_at is an RFC3339 UTC timestamp with millisecond precision. The list endpoint rejects offset, including offset=0, because an update window is always required. With include_content, turns and resolved_speakers are the audio transcript and who each voice is, in the /api/v1/persons/channel-commentary format without person_id; they are absent until speaker identification finishes. No person_id is served anywhere on this endpoint. cover_url and screenshots[].url are public image URLs. The lane no longer takes screenshots: it downloads a video’s audio and captions only, so screenshots and screenshot_ids appear only on videos processed before it stopped. See docs/api/youtube-videos-updates.md and docs/api/update-polling.md for the complete update-polling contract.
curl --request GET \
--url https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_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://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_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 => [
"X-API-Key: <api-key>"
],
]);
$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://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://data-tools.prd.arrays.org/api/v1/other/youtube/videos/{video_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": [
{
"channel_id": "<string>",
"channel_name": "<string>",
"channel_url": "<string>",
"cover_object": "<string>",
"cover_url": "<string>",
"description": "<string>",
"duplicate_of": "<string>",
"duration_ms": 123,
"id": "<string>",
"published_at": "<string>",
"resolved_speakers": {},
"screenshots": [
{
"id": "<string>",
"is_cover": true,
"object": "<string>",
"reason": "<string>",
"timestamp_ms": 123,
"url": "<string>"
}
],
"speakers": [
{
"attribution_source": "<string>",
"confidence": 123,
"evidence": "<string>",
"label": "<string>",
"name": "<string>",
"role": "<string>",
"status": "<string>"
}
],
"status": "transcribed",
"title": "<string>",
"transcript": [
{
"end_ms": 123,
"screenshot_ids": [
"<string>"
],
"speaker": "<string>",
"start_ms": 123,
"text": "<string>"
}
],
"turns": [
{
"end_sec": 123,
"speaker": "Arthur Hayes",
"start_sec": 123,
"text": "<string>",
"voice": "spk 3"
}
],
"updated_at": "<string>",
"video_url": "<string>"
}
],
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}{
"data": "<unknown>",
"error": {
"code": "RESOURCE_NOT_FOUND",
"details": [
{
"field": "<string>",
"got": "<string>",
"reason": "<string>"
}
],
"docs_url": "<string>",
"examples": [
"<string>"
],
"hint": "<string>",
"message": "The requested resource was not found.",
"suggestions": [
"<string>"
]
},
"metadata": "<unknown>",
"pagination": "<unknown>",
"request_id": "<string>",
"success": true
}Authorizations
API Key authentication. Example: "your-api-key-here"
Path Parameters
YouTube video id
Query Parameters
Include transcript, speaker matches, description and, on videos processed before screenshots stopped, screenshots

