YouTube Search API

The Search API from YouTube — 1 operation(s) for search.

GitHub OpenAPI

Operations 1

Each operation below carries the questions people ask an LLM about it and the instructions they give an agent to run it. Generated by API Evangelist overlay

GET /youtube/v3/search Search videos, channels and playlists · List search #
Ask an LLM
“How do I find videos matching a keyword?”
“Can I search only videos with captions or a specific license?”
Tell an agent
Search {part} for {q}.
Find {type} matching {q} in region {regionCode}.

Documentation

📖
Documentation
https://developers.google.com/youtube/v3/docs/activities/list
📖
GettingStarted
https://developers.google.com/youtube/v3/getting-started
📖
Authentication
https://developers.google.com/youtube/v3/guides/authentication
📖
Documentation
https://developers.google.com/youtube/v3/docs/channels/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/comments/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/commentThreads/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlists/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/playlistItems/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/search/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/subscriptions/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/videos/list
📖
Documentation
https://developers.google.com/youtube/v3/docs/captions
📖
Documentation
https://developers.google.com/youtube/v3/docs/videoCategories
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nLanguages
📖
Documentation
https://developers.google.com/youtube/v3/docs/i18nRegions
📖
Documentation
https://developers.google.com/youtube/analytics
📖
GettingStarted
https://developers.google.com/youtube/reporting/guides/authorization
📖
APIReference
https://developers.google.com/youtube/analytics/reference
📖
Authentication
https://developers.google.com/youtube/reporting/guides/authorization
📖
Documentation
https://developers.google.com/youtube/reporting
📖
APIReference
https://developers.google.com/youtube/reporting/v1/reference/rest
📖
Documentation
https://developers.google.com/youtube/reporting/v1/reports
📖
GettingStarted
https://developers.google.com/youtube/v3/live/getting-started
📖
Documentation
https://developers.google.com/youtube/v3/live/docs
📖
APIReference
https://developers.google.com/youtube/v3/live/docs

Specifications

Code Examples

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/youtube:youtube-search-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

youtube-search-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: YouTube Data API v3 Search API
  version: v3
  description: Generated from Google's published Discovery document for YouTube Data API v3 (youtube v3, revision 20261111). 1 operation(s).
  contact:
    name: Google
    url: https://developers.google.com/
  termsOfService: https://developers.google.com/terms
servers:
- url: https://youtube.googleapis.com
tags:
- name: Search
paths:
  /youtube/v3/search:
    get:
      operationId: youtube.search.list
      summary: List search
      description: Retrieves a list of search resources
      parameters:
      - name: channelId
        in: query
        required: false
        description: Filter on resources belonging to this channelId. (Force TAP rebuild)
        schema:
          type: string
      - name: channelType
        in: query
        required: false
        description: Add a filter on the channel search.
        schema:
          enum:
          - channelTypeUnspecified
          - any
          - show
          type: string
      - name: eventType
        in: query
        required: false
        description: Filter on the livestream status of the videos.
        schema:
          type: string
          enum:
          - none
          - upcoming
          - live
          - completed
      - name: forContentOwner
        in: query
        required: false
        description: Search owned by a content owner.
        schema:
          type: boolean
      - name: forDeveloper
        in: query
        required: false
        description: Restrict the search to only retrieve videos uploaded using the project id of the authenticated user.
        schema:
          type: boolean
      - name: forMine
        in: query
        required: false
        description: Search for the private videos of the authenticated user.
        schema:
          type: boolean
      - name: location
        in: query
        required: false
        description: Filter on location of the video
        schema:
          type: string
      - name: locationRadius
        in: query
        required: false
        description: Filter on distance from the location (specified above).
        schema:
          type: string
      - name: maxResults
        in: query
        required: false
        description: The *maxResults* parameter specifies the maximum number of items that should be returned in the result set.
        schema:
          maximum: 50
          format: uint32
          type: integer
          minimum: 0
          default: '5'
      - name: onBehalfOfContentOwner
        in: query
        required: false
        description: '*Note:* This parameter is intended exclusively for YouTube content partners. The *onBehalfOfContentOwner* parameter indicates that the request''s authorization credentials identify a YouTube CMS user who is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The CMS account that the user authenticates with must be linked to the specified YouTube content owner.'
        schema:
          type: string
      - name: order
        in: query
        required: false
        description: Sort order of the results.
        schema:
          enum:
          - searchSortUnspecified
          - date
          - rating
          - viewCount
          - relevance
          - title
          - videoCount
          type: string
          default: relevance
      - name: pageToken
        in: query
        required: false
        description: The *pageToken* parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
        schema:
          type: string
      - name: part
        in: query
        required: true
        description: The *part* parameter specifies a comma-separated list of one or more search resource properties that the API response will include. Set the parameter value to snippet.
        schema:
          type: array
          items:
            type: string
      - name: publishedAfter
        in: query
        required: false
        description: Filter on resources published after this date.
        schema:
          type: string
          format: google-datetime
      - name: publishedBefore
        in: query
        required: false
        description: Filter on resources published before this date.
        schema:
          format: google-datetime
          type: string
      - name: q
        in: query
        required: false
        description: Textual search terms to match.
        schema:
          type: string
      - name: regionCode
        in: query
        required: false
        description: Display the content as seen by viewers in this country.
        schema:
          type: string
      - name: relevanceLanguage
        in: query
        required: false
        description: Return results relevant to this language.
        schema:
          type: string
      - name: safeSearch
        in: query
        required: false
        description: Indicates whether the search results should include restricted content as well as standard content.
        schema:
          enum:
          - safeSearchSettingUnspecified
          - none
          - moderate
          - strict
          type: string
          default: moderate
      - name: topicId
        in: query
        required: false
        description: Restrict results to a particular topic.
        schema:
          type: string
      - name: type
        in: query
        required: false
        description: Restrict results to a particular set of resource types from One Platform.
        schema:
          type: array
          items:
            type: string
      - name: videoCaption
        in: query
        required: false
        description: Filter on the presence of captions on the videos.
        schema:
          type: string
          enum:
          - videoCaptionUnspecified
          - any
          - closedCaption
          - none
      - name: videoCategoryId
        in: query
        required: false
        description: Filter on videos in a specific category.
        schema:
          type: string
      - name: videoDefinition
        in: query
        required: false
        description: Filter on the definition of the videos.
        schema:
          enum:
          - any
          - standard
          - high
          type: string
      - name: videoDimension
        in: query
        required: false
        description: Filter on 3d videos.
        schema:
          type: string
          enum:
          - any
          - 2d
          - 3d
      - name: videoDuration
        in: query
        required: false
        description: Filter on the duration of the videos.
        schema:
          type: string
          enum:
          - videoDurationUnspecified
          - any
          - short
          - medium
          - long
      - name: videoEmbeddable
        in: query
        required: false
        description: Filter on embeddable videos.
        schema:
          enum:
          - videoEmbeddableUnspecified
          - any
          - 'true'
          type: string
      - name: videoLicense
        in: query
        required: false
        description: Filter on the license of the videos.
        schema:
          enum:
          - any
          - youtube
          - creativeCommon
          type: string
      - name: videoPaidProductPlacement
        in: query
        required: false
        schema:
          enum:
          - videoPaidProductPlacementUnspecified
          - any
          - 'true'
          type: string
      - name: videoSyndicated
        in: query
        required: false
        description: Filter on syndicated videos.
        schema:
          type: string
          enum:
          - videoSyndicatedUnspecified
          - any
          - 'true'
      - name: videoType
        in: query
        required: false
        description: Filter on videos of a specific type.
        schema:
          type: string
          enum:
          - videoTypeUnspecified
          - any
          - movie
          - episode
      responses:
        '200':
          description: Successful response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SearchListResponse'
        4XX:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: 'Client error (google.rpc.Status: INVALID_ARGUMENT, PERMISSION_DENIED, NOT_FOUND ...)'
        default:
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/GoogleRpcError'
          description: Error response (google.rpc.Status)
      security:
      - oauth2:
        - https://www.googleapis.com/auth/youtube
        - https://www.googleapis.com/auth/youtube.force-ssl
        - https://www.googleapis.com/auth/youtube.readonly
        - https://www.googleapis.com/auth/youtubepartner
      - apiKey: []
      tags:
      - Search
components:
  schemas:
    ResourceId:
      type: object
      description: A resource id is a generic reference that points to another YouTube resource.
      properties:
        videoId:
          type: string
          description: The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
        playlistId:
          type: string
          description: The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
        channelId:
          type: string
          description: The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
        kind:
          description: The type of the API resource.
          type: string
    PageInfo:
      description: Paging details for lists of resources, including total number of items available and number of resources returned in a single page.
      properties:
        resultsPerPage:
          format: int32
          description: The number of results included in the API response.
          type: integer
        totalResults:
          description: The total number of results in the result set.
          type: integer
          format: int32
      type: object
    SearchResultSnippet:
      description: Basic details about a search result, including title, description and thumbnails of the item referenced by the search result.
      type: object
      properties:
        publishedAt:
          type: string
          description: The creation date and time of the resource that the search result identifies.
          format: date-time
        liveBroadcastContent:
          description: It indicates if the resource (video or channel) has upcoming/active live broadcast content. Or it's "none" if there is not any upcoming/active live broadcasts.
          enum:
          - none
          - upcoming
          - live
          - completed
          type: string
        description:
          description: A description of the search result.
          type: string
        channelId:
          description: The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies.
          type: string
        title:
          description: The title of the search result.
          type: string
        thumbnails:
          $ref: '#/components/schemas/ThumbnailDetails'
          description: A map of thumbnail images associated with the search result. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
        channelTitle:
          description: The title of the channel that published the resource that the search result identifies.
          type: string
    GoogleRpcError:
      type: object
      description: The error envelope every Google API returns.
      properties:
        error:
          type: object
          properties:
            code:
              type: integer
            message:
              type: string
            status:
              type: string
            details:
              type: array
              items:
                type: object
    SearchResult:
      type: object
      description: A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request. While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.
      properties:
        snippet:
          $ref: '#/components/schemas/SearchResultSnippet'
          description: The snippet object contains basic details about a search result, such as its title or description. For example, if the search result is a video, then the title will be the video's title and the description will be the video's description.
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#searchResult".'
          type: string
          default: youtube#searchResult
        etag:
          type: string
          description: Etag of this resource.
        id:
          $ref: '#/components/schemas/ResourceId'
          description: The id object contains information that can be used to uniquely identify the resource that matches the search request.
    Thumbnail:
      description: A thumbnail is an image representing a YouTube resource.
      properties:
        width:
          type: integer
          description: (Optional) Width of the thumbnail image.
          format: uint32
        url:
          type: string
          description: The thumbnail image's URL.
        height:
          format: uint32
          description: (Optional) Height of the thumbnail image.
          type: integer
      type: object
    ThumbnailDetails:
      properties:
        standard:
          $ref: '#/components/schemas/Thumbnail'
          description: The standard quality image for this resource.
        default:
          $ref: '#/components/schemas/Thumbnail'
          description: The default image for this resource.
        high:
          $ref: '#/components/schemas/Thumbnail'
          description: The high quality image for this resource.
        maxres:
          $ref: '#/components/schemas/Thumbnail'
          description: The maximum resolution quality image for this resource.
        shortsAspectRatio:
          $ref: '#/components/schemas/Thumbnail'
          description: The Shorts aspect ratio (9:16) image for this resource.
        qhd:
          $ref: '#/components/schemas/Thumbnail'
          description: The quad high definition (1440p / 2K) quality image for this resource.
        uhd:
          $ref: '#/components/schemas/Thumbnail'
          description: The ultra-high resolution (4K) quality image for this resource.
        fhd:
          $ref: '#/components/schemas/Thumbnail'
          description: The full high definition (1080p) quality image for this resource.
        medium:
          $ref: '#/components/schemas/Thumbnail'
          description: The medium quality image for this resource.
      description: Internal representation of thumbnails for a YouTube resource.
      type: object
    TokenPagination:
      properties: {}
      description: Stub token pagination template to suppress results.
      type: object
    SearchListResponse:
      properties:
        items:
          items:
            $ref: '#/components/schemas/SearchResult'
          description: Pagination information for token pagination.
          type: array
        tokenPagination:
          $ref: '#/components/schemas/TokenPagination'
        visitorId:
          description: The visitor ID identifies the visitor.
          type: string
        etag:
          description: Etag of this resource.
          type: string
        prevPageToken:
          description: The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
          type: string
        pageInfo:
          $ref: '#/components/schemas/PageInfo'
          description: General pagination information.
        nextPageToken:
          description: The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
          type: string
        regionCode:
          type: string
        kind:
          description: 'Identifies what kind of resource this is. Value: the fixed string "youtube#searchListResponse".'
          default: youtube#searchListResponse
          type: string
        eventId:
          description: Serialized EventId of the request which produced this response.
          type: string
      type: object
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: key
      description: API key; accepted by methods that do not need user data.
    oauth2:
      type: oauth2
      flows:
        authorizationCode:
          authorizationUrl: https://accounts.google.com/o/oauth2/auth
          tokenUrl: https://oauth2.googleapis.com/token
          scopes:
            https://www.googleapis.com/auth/youtube: Manage your YouTube account
            https://www.googleapis.com/auth/youtubepartner: View and manage your assets and associated content on YouTube
            https://www.googleapis.com/auth/youtube.channel-memberships.creator: See a list of your current active channel members, their current level, and when they became a member
            https://www.googleapis.com/auth/youtubepartner-channel-audit: View private information of your YouTube channel relevant during the audit process with a YouTube partner
            https://www.googleapis.com/auth/youtube.force-ssl: See, edit, and permanently delete your YouTube videos, ratings, comments and captions
            https://www.googleapis.com/auth/youtube.readonly: View your YouTube account
            https://www.googleapis.com/auth/youtube.upload: Manage your YouTube videos
externalDocs:
  url: https://developers.google.com/youtube/
x-provenance:
  method: harvested
  publisher: Google
  source: https://youtube.googleapis.com/$discovery/rest?version=v3
  note: converted by discovery-to-openapi.py from Google's Discovery document (revision 20261111)