youtube/
search

With the YouTube Search API, search public YouTube videos by keyword with sort, date, duration, and caption filters, returning normalized metadata, channel context, thumbnails, and engagement.

YouTube Search API

Video search
Discovery
Portable filters
0.5 credits / result
Ready
Ready

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

README

YouTube Search

YouTube Search results are regular public videos matched to a keyword or phrase, with titles, channels, thumbnails, duration, publication details, and visible engagement. These records support topic discovery, content research, competitor tracking, and opportunity analysis.

YouTube Search API Features

  • URL-free video discoveryThe YouTube Search API discovers public regular videos without knowing their URLs in advance.
  • Result sortingSort results by relevance, publication date, rating, or public view count.
  • Publication windowsFilter results by hour, day, week, month, or year publication windows.
  • Duration and caption filtersFilter by short, medium, or long duration and require caption availability when needed.
  • Normalized video resultsReturn normalized video metadata, channel information, thumbnails, duration, publication data, and public metrics.

YouTube Search API Parameters

ParametersRequiredDescription
queryRequiredKeyword or phrase used to discover public videos.
results_limitOptionalMaximum number of public video results to request. Must be a positive integer and defaults to 100.
sort_byOptionalResult ordering. Defaults to relevance.
published_withinOptionalOptional publication window measured from the current request time.
durationOptionalOptional YouTube duration category.
has_captionsOptionalOptional caption-availability filter. Leave untouched to omit this filter.

How to Use the YouTube Search API

Write the query as a retrieval strategy, not just a keyword. Begin broad enough to inspect the landscape, then add one filter at a time so you can see which decision removed candidates.

  1. Define the topic and the question: best topical matches, newest coverage, highly viewed items, or transcript-ready candidates.
  2. POST query and results_limit plus only the sort and filters needed for that question to /v1/youtube/search.
  3. Store the full request with task_id, then poll /v1/tasks/{task_id} until discovery succeeds or fails.
  4. Deduplicate results by video ID, preserve rank context and collected_at, and paginate while has_more is true.
curl -X POST "https://api.socq.ai/v1/youtube/search" \
  -H "Authorization: Bearer $SOCQ_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query":"NASA Artemis","results_limit":10,"sort_by":"date","published_within":"month","duration":"medium","has_captions":true}'

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

YouTube Search API Use Cases

  • Topic and market research: Discover public videos about products, industries, organizations, events, or emerging topics.
  • Creator and competitor discovery: Use search results and publishing channel information to identify relevant creators, brands, or competitors.
  • Recent video monitoring: Combine date sorting and publication windows to collect recent videos for review or analysis.
  • Transcript-ready datasets: Require caption availability to find videos for transcript collection, summarization, classification, or search.

YouTube Search API Pro Tips

  • Test two or three precise query variants instead of hiding every concept inside one long phrase. The overlap is often as informative as the differences.
  • Add filters progressively. If you specify publication window, duration, and captions at once, an empty result gives little clue which constraint was too narrow.
  • Use date with published_within for monitoring; relevance with no window answers a different, broader research question.
  • Ranking is not stable. Save the request, task ID, video ID, and collected_at whenever the position or composition of the sample matters.
  • results_limit is a ceiling, not a completeness guarantee. Public eligibility and the selected filters can yield fewer records.
  • Deduplicate across query variants by video ID, but retain which query produced each match for later relevance analysis.
  • Once a URL is known, use Videos for refreshed details and Transcripts for available caption text rather than repeatedly searching for it.

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

  • 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 Videos API — Retrieve metadata, thumbnails, duration, and engagement for known video or Short URLs.
  • YouTube Hashtag Search API — Find public videos from hashtag feeds with all-content or Shorts-only collection.
  • YouTube Channel Search API — Find channels by keyword, with names, subscriber counts, avatars, and description snippets.

Explore other platforms

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

YouTube Search API — FAQ

YouTube Search API finds regular public videos from a keyword or phrase with supported sorting and filters. It returns normalized metadata, channel information, thumbnails, duration, publication dates, engagement metrics, and collection time.

Submit a non-empty keyword or phrase such as a topic, person, product, organization, brand, campaign, or event.

sort_by accepts relevance, date, rating, or view_count. relevance is the default.

You can filter by published_within, duration, and has_captions. Publication windows are hour, day, week, month, or year; duration values are short, medium, or long.

No. Results are a limited public sample and can change with ranking, freshness, region, language, availability, and the selected filters.

No. has_captions filters for caption availability. Use Transcripts to retrieve available plain-text captions for selected video URLs.

The YouTube Search API costs 0.5 credits for each normalized search 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