youtube

Video › Transcript

Returns the spoken transcript of a video as timestamped segments, each with text, start time and duration, plus language, word count, and speech rate.

Use it for a single video URL; when the video has no captions the reply is a 404 naming the reason, which is expected rather than a failure.

30 credits per call.

get/v1/youtube/video/transcript

Request

  • Base URL: https://api.insightsocial.app
  • URL: https://api.insightsocial.app/v1/youtube/video/transcript
  • Auth: API key in header x-api-key

Query parameters

urlstring required
Example:https://www.youtube.com/watch?v=dQw4w9WgXcQ

Full URL of the YouTube video

languagestring

Two-letter language code, such as en, es or fr. If no caption track matches the language you specify, the request returns 404 RESOURCE_NOT_FOUND (reason no_captions).

dry_run'1'

Set to 1 to get the price of this call without making it: data.dry_run carries credits_min and credits_max. Nothing is charged.

Response

Success.

successtrue required
platformstring required
endpointstring required
schema_version'2' required
unavailablestring[] required
credits_usedinteger required
credits_remaininginteger required
request_idstring required
cachedboolean required
idempotent_replayboolean required
charge_reasonstring required
free_callboolean required

Changes

No recorded changes to this operation across all 1 revision of this API.