Social Fetch
YouTube

Get YouTube video

Get a single YouTube video.

GET/v1/youtube/videos
1credit
x-api-key*stringheader

API key (`sfk_...`)

Parameters
2
url*stringquery

Link to the YouTube video. Shorts URLs are also supported.

min 1 chars · max 4096 chars

languagestringoptionalquery

Optional preferred language for returned text when the source supports localization.

min 2 chars · max 16 chars

Response fields
57

Endpoint-specific response payload.

datalookupStatus
string

Whether the video was resolved for this request.

one of: found, not_found

Video details when found.

datavideoid
string

YouTube video identifier.

min 1 chars

datavideourl
string

Canonical public YouTube URL.

min 1 chars

datavideotitle
string

Video title.

datavideodescription
stringnullable

Video description text when available.

URLs extracted from the description when available.

datavideodescriptionLinks[]
stringoptional

min 1 chars

datavideothumbnailUrl
string

Best available thumbnail image URL.

min 1 chars

datavideopublishedAt
stringnullable

Publish timestamp when available.

datavideopublishDateText
stringnullable

Human-readable publish date label when available.

datavideodurationMs
integernullable

Video duration in milliseconds when available.

≥ 0

datavideodurationFormatted
stringnullable

Human-readable duration label when available.

datavideogenre
stringnullable

Category or genre label when available.

Keyword tags associated with the video when available.

datavideokeywords[]
stringoptional

min 1 chars

datavideoisPaidPromotion
boolean

Whether the video is marked as paid promotion.

Uploader channel when found.

datachannelplatform
string

Social platform for this channel.

one of: youtube

datachannelhandle
string

YouTube channel handle without a leading @.

min 1 chars

datachanneldisplayName
stringnullable

Public display name for the YouTube channel.

datachannelprofileUrl
string

Canonical public YouTube channel URL.

min 1 chars

datachannelplatformUserId
stringoptional

YouTube channel id when available.

Engagement metrics when found.

datametricsviews
integernullable

View count when available.

≥ 0

datametricslikes
integernullable

Like count when available.

≥ 0

datametricscomments
integernullable

Comment count when available.

≥ 0

Chapter markers when available.

datachapters[]title
string

Chapter title.

datachapters[]startTimeText
stringnullable

Human-readable chapter start time when available.

datachapters[]startTimeSeconds
number

Chapter start offset in seconds.

≥ 0

Caption and subtitle tracks when available.

datacaptions[]label
string

Caption track label.

datacaptions[]languageCode
string

BCP-47 style language code when available.

datacaptions[]kind
stringnullable

Caption kind when available.

datacaptions[]isTranslatable
boolean

Whether the track can be translated in the player.

Related videos suggested after playback when available.

datarelatedVideos[]id
string

Related video id.

min 1 chars

datarelatedVideos[]url
stringnullable

Canonical watch URL when available.

datarelatedVideos[]title
string

Related video title.

datarelatedVideos[]thumbnailUrl
stringnullable

Thumbnail image URL when available.

datarelatedVideos[]publishedAt
stringnullable

Resolved publish timestamp when available.

datarelatedVideos[]publishedTimeText
stringnullable

Human-readable relative publish time when available.

datarelatedVideos[]viewCount
integernullable

View count when available.

≥ 0

datarelatedVideos[]viewCountText
stringnullable

Human-readable view count when available.

datarelatedVideos[]durationSeconds
integernullable

Duration in seconds when available.

≥ 0

datarelatedVideos[]durationText
stringnullable

Human-readable duration label when available.

Uploader channel summary when available.

datarelatedVideos[]channeldisplayName
stringnullable

Related video channel title when available.

datarelatedVideos[]channelhandle
stringnullable

Related video channel handle when available.

datarelatedVideos[]channelprofileUrl
stringnullable

Related video channel URL when available.

datarelatedVideos[]channelplatformUserId
stringoptional

Related video channel id when available.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

Code example

curl "https://api.socialfetch.dev/v1/youtube/videos?url=https://www.youtube.com/watch?v=dQw4w9WgXcQ" \
  -H "x-api-key: YOUR_API_KEY"

Responses

YouTube video metadata. Check `data.lookupStatus` for `found` vs `not_found`.

On this page

No Headings