YouTube general search

Search for general with the YouTube API. Result type filters, sorting, query syntax and raw/formatted responses remain implementation-specific. Use it to surface relevant records in a search or discovery tool. Choose an implementation and check its published request fields, examples, and usage pricing before integrating.

Selected price
$0.00188 / callPublished pricing
Sellers / implementations
2 / 3
Requests · 30d
—Loading...
Success rate · 30d
—Loading...

Run sends a real API request. Charges follow the published API contract.

Request parameters
Search query. For stricter title matching, use YouTube's intitle: operator, for example intitle:"Foursquare Swarm". Quoted queries by themselves may still be broadened by YouTube when no fresh exact matches are available.
Optional parameters (7)
Upload date
Sort by
Type of content to search for
Duration of the video. Only applies to videos (not shorts).
2 letter country code of the country to put the proxy in.
Continuation token to get more videos. Get 'continuationToken' from previous response.
This will get you the like + comment count and the description. To get the full details of the video, use the /v1/youtube/video endpoint. *This will slow down the response slightly.*

Sample response

{
  "channels": [],
  "continuationToken": "EooDEg...",
  "credits_charged": 1,
  "credits_remaining": 1000000,
  "lives": [],
  "playlists": [],
  "shelves": [
    {
      "items": [
        {
          "id": "LLBR5nO05tE",
          "thumbnail": "https://i.ytimg.com/vi/LLBR5nO05tE/oardefault.jpg?sqp=-oaymwEoCJUDENAFSFqQAgHyq4qpAxcIARUAAIhC2AEB4gEKCBgQAhgGOAFAAQ==&rs=AOn4CLCYYIIDmBllgkLP68AjVs25UpyevQ",
          "title": "running through walls gone wrong",
          "type": "short",
          "url": "https://www.youtube.com/watch?v=LLBR5nO05tE",
          "viewCountInt": 750000,
          "viewCountText": "750K"
        }
      ],
      "title": "Shorts",
      "type": "shelf"
    }
  ],
  "shorts": [
    {
      "badges": [],
      "channel": {
        "handle": "abbyandryan",
        "id": "UCGRdcRxpJWi5Q2oDCrMDUuQ",
        "thumbnail": "https://yt3.ggpht.com/8UdUEesepx1Ry_rFUPJOJgndTCKno9VTkSysnuJpFjMj63N6av0pNwnqoiKh_7PN2dw7PGIp=s68-c-k-c0x00ffffff-no-rj",
        "title": "Abby and Ryan"
      },
      "id": "uMNvF-lSCHg",
      "lengthSeconds": 44,
      "lengthText": "0:44",
      "publishedTime": "2024-07-28T17:08:46.498Z",
      "publishedTimeText": "10 months ago",
      "thumbnail": "https://i.ytimg.com/vi/uMNvF-lSCHg/hq720.jpg?sqp=-oaymwFBCNAFEJQDSFryq4qpAzMIARUAAIhCGADYAQHiAQoIGBACGAY4AUAB8AEB-AG2CIACgA-KAgwIABABGFsgXyhlMA8=&rs=AOn4CLA_P-5ExEn9EGLJDNeJedsxb3k1eQ",
      "title": "LONG RUN ROUTINE #run #runvlog #runner #shorts #morning",
      "type": "short",
      "url": "https://www.youtube.com/watch?v=uMNvF-lSCHg",
      "viewCountInt": 462705,
      "viewCountText": "462,705 views"
    }
  ],
  "success": true,
  "videos": [
    {
      "badges": [],
      "channel": {
        "handle": "channel/UCoRR6OLuIZ2-5VxtnQIaN2w",
        "id": "UCoRR6OLuIZ2-5VxtnQIaN2w",
        "thumbnail": "https://yt3.ggpht.com/J1_Si0TYNZ-991v09y8RpCh4_Z_ALwKmPgMYnJqjNhoglVtipf3oEN8LpzG1kS0qsv8Jptpmmg=s88-c-k-c0x00ffffff-no-rj",
        "title": "NFrealmusic"
      },
      "id": "BzSzwqb-OEE",
      "lengthSeconds": 254,
      "lengthText": "4:14",
      "publishedTime": "2023-05-28T17:08:46.499Z",
      "publishedTimeText": "2 years ago",
      "thumbnail": "https://i.ytimg.com/vi/BzSzwqb-OEE/hq720.jpg?sqp=-oaymwEnCNAFEJQDSFryq4qpAxkIARUAAIhCGAHYAQHiAQoIGBACGAY4AUAB&rs=AOn4CLCasEKav1CLqeSSE2IYDqjGiIMBGw",
      "title": "NF - RUNNING (Audio)",
      "type": "video",
      "url": "https://www.youtube.com/watch?v=BzSzwqb-OEE",
      "viewCountInt": 14860541,
      "viewCountText": "14,860,541 views"
    }
  ]
}

Response result

Response structure

Inferred from examples
  • channelsunknown[]
  • continuationTokenstring
  • credits_chargedinteger
  • credits_remaininginteger
  • livesunknown[]
  • playlistsunknown[]
  • shelvesobject[]
    • itemsobject[]
      • idstring
      • thumbnailstring
      • titlestring
      • typestring
      • urlstring
      • viewCountIntinteger
      • viewCountTextstring
    • titlestring
    • typestring
  • shortsobject[]
    • badgesunknown[]
    • channelobject
      • handlestring
      • idstring
      • thumbnailstring
      • titlestring
    • idstring
    • lengthSecondsinteger
    • lengthTextstring
    • publishedTimestring
    • publishedTimeTextstring
    • thumbnailstring
    • titlestring
    • typestring
    • urlstring
    • viewCountIntinteger
    • viewCountTextstring
  • successboolean
  • videosobject[]
    • badgesunknown[]
    • channelobject
      • handlestring
      • idstring
      • thumbnailstring
      • titlestring
    • idstring
    • lengthSecondsinteger
    • lengthTextstring
    • publishedTimestring
    • publishedTimeTextstring
    • thumbnailstring
    • titlestring
    • typestring
    • urlstring
    • viewCountIntinteger
    • viewCountTextstring

Common questions

Do I need a separate key for every provider?

Use your OpenAny API key for standard API access. Read it from OPENANY_API_KEY in your environment and keep it out of prompts, source code and logs.

Are these providers interchangeable?

No. Each offering has its own inputs, pricing and response contract. Selecting a catalog offering does not establish automatic routing or fallback. Confirm the service contract before calling.

How is this API billed?

API-key calls use your shared balance at the selected implementation's published rate. Check the billing unit and request-specific pricing rules before making a paid call. Recorded usage determines the final charge under that contract.

Where do the price and contract come from?

The selected implementation publishes its provider, request contract, revision and billing rules through OpenAny's public API catalog. A revision number identifies a contract version, not a price update date. A price update timestamp is not supplied; do not treat a page date as one.

How do OpenAny Balance and x402 differ?

OpenAny Balance uses an API key and one shared balance. Card, USDC and x402 top-ups, card auto top-up and USDC subscriptions fund that balance; available routes appear on the Credits page. Direct x402 is a separate pay-per-request flow, available only on listings that show it and requiring an authorized payment client.

Does Playground send a paid request?

Yes. After you sign in, Run sends a real API request using an active OpenAny API key. Charges follow the published API contract and use your shared balance. Selecting an implementation, editing inputs and viewing sample responses do not send requests.

Use YouTube general search with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.