Skip to main content
YouTube search is one of the endpoints in Supadata’s YouTube Data API alternative, with no quota headaches.

Quick Start

Request

Response

Specification

Endpoint

GET https://api.supadata.ai/v1/youtube/search Each request requires an x-api-key header with your API key available after signing up. Get your API key here.

Query Parameters

Pagination

The search endpoint supports two different pagination modes depending on whether you use the limit parameter.
Supadata SDKs automatically handle pagination for you. Please use the API if you need to control pagination.

Automatic Pagination (with limit)

When you provide a limit parameter, the API automatically handles pagination for you:
How it works:
  • The API fetches multiple pages behind the scenes until it reaches your desired limit or runs out of results
  • You receive all results in a single response
  • The request costs ceil(limit / 20) credits (so requesting 100 results consumes 5 credits)
  • No nextPageToken is returned since all requested results are included
Use this when:
  • You need a specific number of results
  • You want convenience over credit control
  • You’re building bulk data collection tools

Manual Pagination (without limit)

When you don’t provide a limit parameter, you get manual control over pagination:
How it works:
  • You receive one page of results (~20 items) per request
  • Each request consumes exactly 1 credit
  • A nextPageToken is included in the response for fetching additional pages
  • When using nextPageToken, filters other than query are ignored (query is still required)
Use this when:
  • You want precise credit control
  • You’re implementing infinite scroll or “Load More” functionality
  • You only need the first page of results
  • You’re building interactive applications where users control pagination

Error Codes

The API returns HTTP status codes and error codes. See this page for more details.

Pricing

  • 1 search request without limit = 1 credit (one page of ~20 results)
  • With limit set: ceil(limit / 20) credits per request