Manual and auto-generated captions

YouTube Video Captions API

Get available YouTube caption links by video URL or ID. Each track includes its language, kind and URL. Videos without captions return an empty list.

1 credit per successful request, empty results and failures are free.

POSTExample response
https://api.goanyapi.com/api/v1/youtube/video/captions
Visual

Run a request to see the visual result

The response is organized into metrics, lists and tables that match the JSON on the right.

Run a request to see the response here

Fill in the demo parameters to preview an example response for free. Sign in to send live requests with your own parameters.

Choose a caption language

Read data.result.captions[].lang to select a language. kind identifies manual or auto-generated tracks.

Saved caption example

The sample contains one English auto-generated track. url points to the caption track.

Videos without captions

The API returns an empty array when captions are unavailable. Only nonempty successful queries use credits.