YouTube Video info

Retrieve video metadata, views, and engagement metrics

Starting price
$0.0017 /record
Offers
2 same output format
Max URLs per request
1000

Endpoint

One endpoint for every offer below. Omit provider and the router picks with automatic failover — the response's served_by tells you which one ran.

POSThttps://api.socialrouter.io/v1/extract/youtube/video.info

Offers

Every offer below returns the same normalized output, in failover order — the first one serves unless you pin another with the provider field.

  • brightdata/youtubevia Bright Datadefault route

    Up to 1000 URLs per request

    $0.0017per record
  • apify/streamersvia Apify

    Up to 100 URLs per request

    $0.0055per record

Parameters

JSON body of the request. Unknown fields and unknown options are rejected with the valid list, so a wrong guess costs nothing.

ParameterTypeDescription
urlsRequiredstring[]One URL per record to process. Accepted shapes:https://www.youtube.com/watch?v=<video_id> — youtu.be and /shorts/ URLs are accepted too.Example: https://www.youtube.com/watch?v=dQw4w9WgXcQA single url string is accepted too.
providerOptionalstringPin one offer, e.g. brightdata/youtube. Omit it and the router picks with failover.
limitOptionalintegerMax records to return per URL.
optionsOptionalobjectService-specific options, listed below.
options.downloadSubtitlesOptionalbooleanAlso fetch the video's subtitles. Defaults to false.
options.subtitlesLanguageOptionalstringSubtitle language code, e.g. "en".
options.preferAutoGeneratedSubtitlesOptionalbooleanPrefer auto-generated subtitles over uploaded ones.
options.subtitlesFormatOptionalstringSubtitle format (e.g. srt, vtt).

Output

Each record has the fields below, whichever offer serves the request. Offers may include additional platform-specific fields on top.

  • titlestring

    Video title

  • descriptionstring

    Video description / caption

  • channel_namestring

    Name of the channel / creator

  • views_countnumber

    View count

  • likes_countnumber

    Like count

  • comments_countnumber

    Comment count

  • duration_secondsnumber

    Length of the video in seconds

  • posted_atiso8601

    When the video was published

  • sourcestring

    Platform the record was extracted from (e.g. "linkedin")

  • extracted_atiso8601

    UTC timestamp when the record was produced

Going further

Auth, error semantics, and every other endpoint live in the API reference — including the machine-readable OpenAPI spec at /v1/openapi.json.

Frequently asked questions

How much does YouTube video info cost?

Prices start at $0.0017 per record, depending on the offer that serves the request. You are only charged for records actually returned.

Which offers serve youtube/video.info?

brightdata/youtube, apify/streamers — 2 offers are available behind the same endpoint. Pin one with the optional "provider" field, or omit it and the router picks with automatic failover. The response's "served_by" field names the offer that ran.

What input does it need?

The "urls" field of the JSON body, as an array of strings: https://www.youtube.com/watch?v=<video_id> — youtu.be and /shorts/ URLs are accepted too.. For example: https://www.youtube.com/watch?v=dQw4w9WgXcQ

Is the output format the same for every offer?

Yes. Every offer returns the normalized record schema documented on this page; some add extra platform-specific fields on top, but the documented fields are always present.

How many URLs can I send per request?

Up to 1000 URLs in a single request, depending on the offer.

What happens if an offer fails?

SocialRouter automatically fails over to the next offer serving the same service, so a single upstream outage doesn't break your integration.

What options does it take?

downloadSubtitles (boolean): Also fetch the video's subtitles. subtitlesLanguage (string): Subtitle language code, e.g. "en". preferAutoGeneratedSubtitles (boolean): Prefer auto-generated subtitles over uploaded ones. subtitlesFormat (string): Subtitle format (e.g. srt, vtt).

Related services

Get youtube video info into your app or your AI agent

$1 in free credits to test it — no credit card, no commitment.