YouTube Search API reference

Public YouTube videos matching a keyword, with a continuation cursor. Takes a keyword, returns a cursor page, 1 credit a call.

This named API keeps YouTube fields in YouTube's own vocabulary. For a higher-level product page, see YouTube Search API.

Endpoint

GET /v1/youtube/search
Authorization: Bearer sv_live_...

`POST` is also accepted with the same parameters in the request body. Send the key in the `Authorization` header, never in the query string.

Parameters

NameTypeRequiredNotes
q string yes Search term or hashtag, up to 100 characters. Trimmed and lowercased before the lookup.
cursor string no Cursor returned by the previous page.
limit integer no Maximum items to return, up to 50.

Sample Request

This is a copyable request shape. Replace the sample values with the public YouTube target or parameters your workflow uses.

curl -G 'https://api.sourcevine.io/v1/youtube/search' \
  -H 'Authorization: Bearer sv_live_...' \
  --data-urlencode 'q=latte art' \
  --data-urlencode 'limit=20'

Sample Response

A response this API returned, against the target above. Your values depend on the resource you ask about and when you ask.

{
  "data": {
    "items": [
      {
        "url": "https://www.youtube.com/watch?v=l_XiIR4EqLI",
        "likes": null,
        "title": "How to Pour Latte Art: A Beginner’s Guide",
        "views": 8080,
        "cached": false,
        "videoId": "l_XiIR4EqLI",
        "comments": null,
        "fetchedAt": "2026-09-02T07:02:29Z",
        "channelName": "Mr.24",
        "contentType": "video",
        "publishedAt": null,
        "cacheAgeSeconds": null,
        "sourceTimestamp": null
      },
      {
        "url": "https://www.youtube.com/watch?v=SgJ_W1Nop20",
        "likes": null,
        "title": "The Complete Beginner's Guide to Latte Art Mechanics",
        "views": 35181,
        "cached": false,
        "videoId": "SgJ_W1Nop20",
        "comments": null,
        "fetchedAt": "2026-09-02T07:02:29Z",
        "channelName": "Artisti Coffee Roasters.",
        "contentType": "video",
        "publishedAt": null,
        "cacheAgeSeconds": null,
        "sourceTimestamp": null
      },
      {
        "url": "https://www.youtube.com/watch?v=RREsn41scvo",
        "likes": null,
        "title": "Froth milk better than 97% of baristas in under 5 minutes",
        "views": 247047,
        "cached": false,
        "videoId": "RREsn41scvo",
        "comments": null,
        "fetchedAt": "2026-09-02T07:02:29Z",
        "channelName": "Clayman",
        "contentType": "video",
        "publishedAt": null,
        "cacheAgeSeconds": null,
        "sourceTimestamp": null
      }
    ],
    "cached": false,
    "fetchedAt": null,
    "nextCursor": null,
    "cacheAgeSeconds": null
  },
  "success": true,
  "available": true
}

Fields

FieldTypeNotes
items array A page of public YouTube posts or videos.
nextCursor string | null Pass as cursor to request the next page.
items[].views integer | null Present only where the platform reports it.
items[].likes integer | null Per-item public like count.
items[].cached boolean Matches the page provenance on cached reads.
fetchedAt ISO datetime When Sourcevine read the public page.
sourceTimestamp ISO datetime | null The platform timestamp when it is available.
cached boolean True when this answer repeats an identical request made moments earlier.
cacheAgeSeconds integer Seconds since the reading was taken.

Availability States

StatusChargedClient behavior
availableyes for live readsUse data.
not_foundyesStore the state and stop polling.
privateyesStore the state and stop polling.
unsupportednoFix the URL or call the matching API.
upstream_unavailablenoRetry later with backoff.

Unavailable resources return `success: true`, `available: false`, `availability`, and `data: null`. API or authentication failures return `success: false` with an `error` object.

Billing

A call costs 1 credit. A deleted, private or empty resource is charged like any lookup and says so. An unsupported URL or a read we could not complete is not charged. The `X-Credits-Charged` response header is the source of truth for what happened on that request.

Successful responses include `fetchedAt`, the time we read the platform.

What This API Does Not Return

  • No contact or bio fields: Bios, email addresses, phone numbers, postal addresses and messenger handles are outside the response contract.
  • No private data: Private accounts, restricted content and unavailable resources return typed availability instead of guessed data.
  • No comments or downloads: List APIs return recent public post metadata and metrics. They do not return comment bodies, media files or hidden analytics.

Related

Last updated 1 September 2026