Cinephile Critique
Cinephile Critique · GPT 작업
Tenor GIF Search API
GET /searchSearch for GIFs
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"title": "Tenor GIF Search API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://g.tenor.com/v1"
}
],
"paths": {
"/search": {
"get": {
"summary": "Search for GIFs",
"operationId": "searchGifs",
"parameters": [
{
"name": "q",
"in": "query",
"required": true,
"description": "Search query term or phrase.",
"schema": {
"type": "string"
}
},
{
"name": "key",
"in": "query",
"required": true,
"description": "Your Tenor API Key.",
"schema": {
"type": "string"
}
},
{
"name": "limit",
"in": "query",
"required": false,
"description": "The maximum number of objects to return. (Default is 20)",
"schema": {
"type": "integer",
"format": "int32"
}
}
],
"responses": {
"200": {
"description": "A list of GIFs matching the query",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"results": {
"type": "array",
"items": {
"$ref": "#/components/schemas/Gif"
}
},
"next": {
"type": "string"
}
}
}
}
}
},
"400": {
"description": "Bad request - Invalid parameters or request format"
},
"401": {
"description": "Unauthorized - API key missing or incorrect"
},
"500": {
"description": "Internal Server Error"
}
}
}
}
},
"components": {
"schemas": {
"Gif": {
"type": "object",
"properties": {
"id": {
"type": "string"
},
"url": {
"type": "string"
},
"media": {
"type": "array",
"items": {
"type": "object",
"properties": {
"gif": {
"type": "object",
"properties": {
"url": {
"type": "string"
},
"preview": {
"type": "string"
},
"dims": {
"type": "array",
"items": {
"type": "integer"
}
},
"size": {
"type": "integer"
}
}
}
}
}
}
}
}
}
}
}