Ir al contenido
Documentación de Endless

YouTube search

POST
/social/youtube_search

Search YouTube for videos, channels, or playlists by topic or keyword. Set type to narrow the result kind, sort_by:'date' + upload_date for recency-first monitoring, and duration to filter video length. For one channel's own uploads use the youtube_channel_* tools.

Authorization

bearerAuth
AuthorizationBearer <token>

JWT token from authentication

In: header

Header Parameters

Endless-Api-Version?string

Pin the caller to an API major (1). Omit to accept the current version. A major this deployment cannot serve is refused with 400 unsupported_api_version.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/social/youtube_search" \  -H "Content-Type: application/json" \  -d '{    "organization_id": "string",    "input": {      "query": "string"    }  }'
{  "operation": "instagram_profile",  "result": {    "summary": "string",    "query": "string",    "count": -9007199254740991,    "estimated_results": 0,    "results": [      {        "id": "string",        "url": "string",        "title": "string",        "description": "string",        "channel": {          "id": "string",          "title": "string",          "handle": "string",          "url": "string"        },        "published_at": "string",        "published_text": "string",        "length": "string",        "view_count": 0,        "view_count_text": "string",        "like_count": 0,        "comment_count": 0,        "thumbnail": "string",        "kind": "video"      }    ]  },  "requests": 0,  "credits_charged": 0}