AI teacher by YouTube

AI teacher by YouTube · GPT アクション

YouTube Data API

Interface for interacting with YouTube to retrieve video, channel, and playlist information.

  • GET /searchyoutubeSearch

    Returns a collection of search results that match the query parameters specified in the API request.

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "YouTube Data API",
    "description": "Interface for interacting with YouTube to retrieve video, channel, and playlist information.",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://www.googleapis.com/youtube/v3"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "description": "Returns a collection of search results that match the query parameters specified in the API request.",
        "operationId": "youtubeSearch",
        "parameters": [
          {
            "name": "part",
            "in": "query",
            "description": "The part parameter specifies a comma-separated list of one or more search resource properties that the API response will include.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "The q parameter specifies the query term to search for.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "maxResults",
            "in": "query",
            "description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Sorts API response. Default: 'date' (newest first). Options: 'rating' (highest first), 'relevance' (most relevant), 'title' (alphabetical), 'videoCount' (most videos), 'viewCount' (most views).",
            "required": false,
            "schema": {
              "type": "string",
              "default": "date"
            }
          },
          {
            "name": "regionCode",
            "in": "query",
            "description": "The regionCode parameter instructs the API to return search results for videos that can be viewed in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string"
                    },
                    "etag": {
                      "type": "string"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "prevPageToken": {
                      "type": "string"
                    },
                    "regionCode": {
                      "type": "string"
                    },
                    "pageInfo": {
                      "type": "object",
                      "properties": {
                        "totalResults": {
                          "type": "integer"
                        },
                        "resultsPerPage": {
                          "type": "integer"
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string"
                          },
                          "etag": {
                            "type": "string"
                          },
                          "id": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              },
                              "videoId": {
                                "type": "string"
                              },
                              "channelId": {
                                "type": "string"
                              },
                              "playlistId": {
                                "type": "string"
                              }
                            }
                          },
                          "snippet": {
                            "type": "object",
                            "properties": {
                              "publishedAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "channelId": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "thumbnails": {
                                "type": "object"
                              },
                              "channelTitle": {
                                "type": "string"
                              },
                              "liveBroadcastContent": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}

YouTube Data API

Interface for interacting with YouTube to retrieve video, channel, and playlist information.

  • GET /searchyoutubeSearch

    Returns a collection of search results that match the query parameters specified in the API request.

元の API スキーマ
{
  "openapi": "3.1.0",
  "info": {
    "title": "YouTube Data API",
    "description": "Interface for interacting with YouTube to retrieve video, channel, and playlist information.",
    "version": "v3"
  },
  "servers": [
    {
      "url": "https://www.googleapis.com/youtube/v3"
    }
  ],
  "paths": {
    "/search": {
      "get": {
        "description": "Returns a collection of search results that match the query parameters specified in the API request.",
        "operationId": "youtubeSearch",
        "parameters": [
          {
            "name": "part",
            "in": "query",
            "description": "The part parameter specifies a comma-separated list of one or more search resource properties that the API response will include.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "q",
            "in": "query",
            "description": "The q parameter specifies the query term to search for.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "maxResults",
            "in": "query",
            "description": "The maxResults parameter specifies the maximum number of items that should be returned in the result set.",
            "required": false,
            "schema": {
              "type": "integer"
            }
          },
          {
            "name": "key",
            "in": "query",
            "description": "",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "order",
            "in": "query",
            "description": "Sorts API response. Default: 'date' (newest first). Options: 'rating' (highest first), 'relevance' (most relevant), 'title' (alphabetical), 'videoCount' (most videos), 'viewCount' (most views).",
            "required": false,
            "schema": {
              "type": "string",
              "default": "date"
            }
          },
          {
            "name": "regionCode",
            "in": "query",
            "description": "The regionCode parameter instructs the API to return search results for videos that can be viewed in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.",
            "required": false,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "kind": {
                      "type": "string"
                    },
                    "etag": {
                      "type": "string"
                    },
                    "nextPageToken": {
                      "type": "string"
                    },
                    "prevPageToken": {
                      "type": "string"
                    },
                    "regionCode": {
                      "type": "string"
                    },
                    "pageInfo": {
                      "type": "object",
                      "properties": {
                        "totalResults": {
                          "type": "integer"
                        },
                        "resultsPerPage": {
                          "type": "integer"
                        }
                      }
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "kind": {
                            "type": "string"
                          },
                          "etag": {
                            "type": "string"
                          },
                          "id": {
                            "type": "object",
                            "properties": {
                              "kind": {
                                "type": "string"
                              },
                              "videoId": {
                                "type": "string"
                              },
                              "channelId": {
                                "type": "string"
                              },
                              "playlistId": {
                                "type": "string"
                              }
                            }
                          },
                          "snippet": {
                            "type": "object",
                            "properties": {
                              "publishedAt": {
                                "type": "string",
                                "format": "date-time"
                              },
                              "channelId": {
                                "type": "string"
                              },
                              "title": {
                                "type": "string"
                              },
                              "description": {
                                "type": "string"
                              },
                              "thumbnails": {
                                "type": "object"
                              },
                              "channelTitle": {
                                "type": "string"
                              },
                              "liveBroadcastContent": {
                                "type": "string"
                              }
                            }
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}