InsightSocial API
Unified schema

Transcript

The schema-2 transcript object, one shape on every platform, and which endpoints return it.

Endpoints that turn the speech in a video or audio post into text return one shape on every platform, at data.transcript. This page describes schema 2, which every key gets from October 4, 2026; before it, the transcript was a string on some platforms and a list on others. See Schema 2.

Example

/v1/youtube/video/transcript, shortened:

Response
{
  "success": true,
  "platform": "youtube",
  "endpoint": "/v1/youtube/video/transcript",
  "schema_version": "2",
  "data": {
    "transcript": {
      "language": "en",
      "text": "[♪♪♪] ♪ We're no strangers to love ♪ ♪ You know the rules and so do I ♪ …",
      "segments": [
        { "text": "[♪♪♪]", "start_seconds": 1.36, "duration_seconds": 1.68 },
        { "text": "♪ We're no strangers to love ♪", "start_seconds": 18.64, "duration_seconds": 3.24 }
      ]
    }
  },
  "unavailable": [],
  "credits_used": 30,
  "credits_remaining": 9970,
  "request_id": "req_5cace944c435",
  "cached": false,
  "idempotent_replay": false,
  "charge_reason": "miss",
  "free_call": false
}

Fields

FieldTypeNullableDescription
transcript.languagestringYesThe transcript's language as the platform states it, such as en. null when it gives none.
transcript.textstringYesThe whole transcript as one string. Where the platform sends timed cues, this is their text joined with spaces. null when there is no transcript text; the response then lists transcript.text in unavailable.
transcript.segmentsobject[]YesTimed cues, when the platform has them (YouTube). null when the platform sends the transcript as plain text only.
transcript.segments[].textstringNoThe text of one cue.
transcript.segments[].start_secondsnumberYesWhen the cue starts, in seconds from the start of the video.
transcript.segments[].duration_secondsnumberYesHow long the cue lasts, in seconds.

Read transcript.text for the words. Read segments only when you need timing, and check it for null first.

Where it is used

Seven platforms return this shape, on eight endpoints.

Prices differ per endpoint; see Endpoint pricing. A worked example is in Video transcription.

On this page