← Back to Fiber AI
Fetch YouTube video details
Fetches details for a specific YouTube video.
Fiber AI·$0.04 per call
Example code
// Using @orth/sdk - The simplest way to call APIs
// Install: npm install @orth/sdk
import Orthogonal from "@orth/sdk";
const orthogonal = new Orthogonal({
apiKey: process.env.ORTHOGONAL_API_KEY,
});
const output = await orthogonal.run({
api: "fiber",
path: "/v1/youtube/video-details",
body: {
"videoId": "example"
}
});
console.log(output);Body parameters
videoIdrequired
string
YouTube video ID or full URL.
Response
output.id
string
output.title
string
output.author
string
output.channel.id
string
output.channel.url
string
output.channel.name
string
output.channel.subscriberCount
number
output.category
string
output.chapters
array
output.likeCount
number
output.viewCount
number
output.keyMoments
array
output.description
string
output.publishedAt.date
string
output.publishedAt.estimated
boolean
output.commentCount
number
output.thumbnailUrl
string
output.durationSeconds
number
output.availableTranscriptLanguages.0.code
string
output.availableTranscriptLanguages.0.name
string
chargeInfo.method
string
chargeInfo.creditsCharged
number