youtube/
videos

The YouTube Videos API retrieves public metadata for known YouTube video or Short URLs, returning normalized titles, channel context, thumbnails, duration, and visible engagement.

YouTube Videos API

Video details
Known URLs
Public metrics
0.5 credits / result
Ready
Ready

Enter parameters and send a request. The task status and normalized results will appear here.

README

YouTube Videos

YouTube Videos are public uploads with titles, descriptions, channel context, thumbnails, duration, publication details, hashtags, source classification, and visible engagement. These metadata and performance signals support video enrichment, content research, monitoring, and comparative analysis.

YouTube Videos API Features

  • Known URL batch lookupLook up multiple known public video and Short URLs in one request.
  • Stable video identityReturn a stable video ID, canonical URL, title, public description, and publishing channel for every result.
  • Content metadataInclude thumbnails, duration, hashtags, publication date, and normalized content type.
  • Point-in-time engagement metricsCapture public view, like, and comment counts with collected_at for point-in-time comparison.
  • Consistent video schemaProvide the same normalized video structure for regular videos and supported Short URLs.

YouTube Videos API Parameters

ParametersRequiredDescription
urlsRequiredPublic YouTube video or Short URLs, separated by commas or new lines.

How to Use the YouTube Videos API

Turn a link inbox into records your application can join, search, and refresh. The request is asynchronous, so keep the task ID until every accessible URL has been resolved.

  1. Collect and deduplicate public watch or Shorts URLs; channel and search-result URLs belong to other endpoints.
  2. POST the urls array to /v1/youtube/videos and store the returned task_id beside your source batch.
  3. Poll /v1/tasks/{task_id}; queued and running mean the batch is still being processed.
  4. On success, index data.results.items by id and continue with next_cursor while has_more is true.
curl -X POST "https://api.socq.ai/v1/youtube/videos" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls":["https://www.youtube.com/watch?v=arj7oStGLkU"]}'

# Poll GET /v1/tasks/{task_id}
# Read GET /v1/tasks/{task_id}?limit=50

YouTube Videos API Use Cases

  • URL list enrichment: Add titles, channel information, thumbnails, duration, publication dates, and public metrics to an existing list of YouTube URLs.
  • Selected video comparison: Compare public views, likes, comments, duration, and publishing information across a chosen set of videos or Shorts.
  • Campaign and competitor monitoring: Collect repeated metadata snapshots for known campaign, creator, or competitor videos.
  • Content catalogs: Supply normalized video records to internal search, reporting, moderation, summarization, or analytics workflows.

YouTube Videos API Pro Tips

  • Make id your primary key. Titles can change and the same video can arrive through several valid URL formats.
  • Keep canonical_url for outbound links, but retain input_url when you need to trace where a record came from.
  • Metrics describe the page at collected_at. Comparing two snapshots is useful; overwriting the old one removes that history.
  • Treat description links as untrusted external input before rendering, crawling, or importing them.
  • A missing result is not proof that a URL never existed. Private, deleted, restricted, or temporarily inaccessible items can disappear from a batch.
  • Comments and transcript text are intentionally separate. Request them only for items that reach those stages in your workflow.
  • For discovery by topic, begin with Search. Use Videos when you already know which URL matters.

Beyond the YouTube Videos API, use these APIs when you need a different type of public YouTube data.

  • YouTube Channel Videos API — Collect regular public videos from channel URLs, excluding Shorts and live streams.
  • YouTube Comments API — Collect public comments, authors, engagement, source videos, and conversation context.
  • YouTube Transcripts API — Retrieve available plain-text transcripts with optional language selection.
  • YouTube Channels API — Retrieve public channel identity, images, verification, and visible audience statistics.
  • YouTube Shorts API — Collect public Shorts, thumbnails, duration, publication details, and engagement by channel.
  • YouTube Related Videos API — List the videos recommended next to a video URL, with titles, channels, views, and thumbnails.

Explore other platforms

Combine YouTube data with public data from other supported social platforms.

YouTube Videos API — FAQ

YouTube Videos API retrieves public metadata for known YouTube video or Short URLs. It returns normalized identity, titles, descriptions, channel information, thumbnails, duration, publication dates, engagement metrics, and collection time.

Submit one or more public YouTube video or Short URLs in the urls array.

Yes. Public Short URLs are supported and use the same normalized video structure with their content type preserved.

No. The metrics are public values observed at collection time. Store collected_at and collect the same URLs again when historical comparisons are required.

The video result includes the public comment count, not comment text or transcript text. Use Comments for comment records and Transcripts for available captions.

The YouTube Videos API costs 0.5 credits for each normalized video result returned.

By SocQ · Updated

From the official YouTube API documentation:

“Projects that enable the YouTube Data API have a default quota allocation of 100 search.list calls, 100 videos.insert calls, and 10,000 units per day combined for all other endpoints.”
Google for Developers: YouTube Data API quota costs · accessed November 2026