import Influship from 'influship';const client = new Influship({ apiKey: process.env['INFLUSHIP_API_KEY'], // This is the default and can be omitted});const response = await client.raw.youtube.getTranscript('dQw4w9WgXcQ');console.log(response.data);
Fetch YouTube video transcript/captions. Returns timestamped segments and full text. Useful for content analysis and brand safety checks.
Supported sources:
Manual captions (highest quality)
Auto-generated captions
Multiple language tracks
Pricing: $0.005 per transcript
GET
/
v1
/
raw
/
youtube
/
transcript
/
{video_id}
JavaScript
Copy
import Influship from 'influship';const client = new Influship({ apiKey: process.env['INFLUSHIP_API_KEY'], // This is the default and can be omitted});const response = await client.raw.youtube.getTranscript('dQw4w9WgXcQ');console.log(response.data);