Felo API PlatformFelo API Platform
v0.1.0-beta
OpenAPI 3.1.0

YouTube Search

伺服器:https://openapi.felo.ai
用戶端程式庫

YouTube Search

​

Search YouTube for videos, channels and playlists. engine=youtube and q are required. Use gl and hl for country and language, or sp for pagination and advanced filters.

查詢參數
  • engine
    列舉
    常數:  
    youtube
    必填

    SearchApi engine identifier. Use youtube for this YouTube endpoint.

    值
    • youtube
  • q
    類型: string
    必填

    Search query. Required by runtime and upstream SearchApi.

  • sp
    類型: string

    YouTube filter token (pagination or advanced filters)

  • gl
    類型: string

    Country code (e.g. us, jp)

  • hl
    類型: string

    Interface language

回應
  • 200
    類型: object

    Successful YouTube search response

    YouTube search result payload.

    • ads
      類型: array object[]
      • propertyName
        類型: anything
    • channels
      類型: array object[]
      • description
        類型: string
      • id
        類型: string
      • link
        類型: string
      • position
        類型: integer

        Integer numbers.

      • subscribers
        類型: string
      • thumbnail
        類型: string
      • title
        類型: string
      • propertyName
        類型: anything
    • pagination
      類型: object
      • next_page_token
        類型: string
      • propertyName
        類型: anything
    • playlists
      類型: array object[]
      • propertyName
        類型: anything
    • search_information
      類型: object
      • total_results
        類型: integer

        Integer numbers.

      • propertyName
        類型: anything
    • search_metadata
      類型: object
      • created_at
        類型: string
      • html_url
        類型: string
      • id
        類型: string
      • json_url
        類型: string
      • parsing_time_taken
        類型: number
      • request_time_taken
        類型: number
      • request_url
        類型: string
      • status
        類型: string
      • total_time_taken
        類型: number
      • propertyName
        類型: anything
    • search_parameters
      類型: object
      • propertyName
        類型: anything
    • sections
      類型: array object[]
      • items
        類型: array object[]
        • propertyName
          類型: anything
      • position
        類型: integer

        Integer numbers.

      • section_title
        類型: string
      • propertyName
        類型: anything
    • shorts
      類型: array object[]
      • items
        類型: array object[]
        • propertyName
          類型: anything
      • position
        類型: integer

        Integer numbers.

      • section_title
        類型: string
      • propertyName
        類型: anything
    • videos
      類型: array object[]
      • badges
        類型: array string[]
      • channel
        類型: object
        • propertyName
          類型: anything
      • description
        類型: string
      • id
        類型: string
      • is_live
        類型: boolean
      • length
        類型: string
      • link
        類型: string
      • position
        類型: integer

        Integer numbers.

      • published_time
        類型: string
      • thumbnail
        類型: string
      • title
        類型: string
      • views
        • 類型: integer

          Integer numbers.

      • propertyName
        類型: anything
    • propertyName
      類型: anything
    application/json
  • 400

    Invalid request parameters

  • 401

    Unauthorized / Invalid API key

  • 402

    The request cannot proceed because a billing requirement is not met.

  • 403

    The account is not permitted to perform this operation.

  • 429

    A request or spending limit has been reached.

  • 502

    The service could not complete the request.

  • 503

    The API or billing service is temporarily unavailable.

  • 504

    The service timed out while processing the request.

  • default

    The operation failed. Keep the response request ID when contacting Felo support.

Request Example for get/v1/beta/youtube/search
curl 'https://openapi.felo.ai/v1/beta/youtube/search?engine=youtube&q=' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN'
{
  "search_metadata": {
    "id": "string",
    "status": "string",
    "created_at": "string",
    "request_time_taken": 1,
    "parsing_time_taken": 1,
    "total_time_taken": 1,
    "request_url": "string",
    "html_url": "string",
    "json_url": "string",
    "additionalProperty": "anything"
  },
  "search_parameters": {
    "additionalProperty": "anything"
  },
  "search_information": {
    "total_results": 1,
    "additionalProperty": "anything"
  },
  "videos": [
    {
      "position": 1,
      "id": "string",
      "title": "string",
      "link": "string",
      "description": "string",
      "thumbnail": "string",
      "published_time": "string",
      "length": "string",
      "views": 1,
      "channel": {
        "additionalProperty": "anything"
      },
      "is_live": true,
      "badges": [
        "string"
      ],
      "additionalProperty": "anything"
    }
  ],
  "channels": [
    {
      "position": 1,
      "id": "string",
      "title": "string",
      "link": "string",
      "description": "string",
      "thumbnail": "string",
      "subscribers": "string",
      "additionalProperty": "anything"
    }
  ],
  "shorts": [
    {
      "position": 1,
      "section_title": "string",
      "items": [
        {
          "additionalProperty": "anything"
        }
      ],
      "additionalProperty": "anything"
    }
  ],
  "sections": [
    {
      "position": 1,
      "section_title": "string",
      "items": [
        {
          "additionalProperty": "anything"
        }
      ],
      "additionalProperty": "anything"
    }
  ],
  "playlists": [
    {
      "additionalProperty": "anything"
    }
  ],
  "ads": [
    {
      "additionalProperty": "anything"
    }
  ],
  "pagination": {
    "next_page_token": "string",
    "additionalProperty": "anything"
  },
  "additionalProperty": "anything"
}
YouTube Search