YouTube video
Fetch a single YouTube video by URL or id, with its top comments. Returns title, channel, view/like/comment counts, length, and publish date. Use when the user shares a video link or asks about a specific video's engagement. To transcribe a video, use create_transcript instead.
Authorization
bearerAuth JWT token from authentication
In: header
Header Parameters
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_video" \ -H "Content-Type: application/json" \ -d '{ "organization_id": "string", "input": { "url": "string" } }'{ "operation": "instagram_profile", "result": { "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", "summary": "string", "comments": [ { "text": "string", "author": "string", "likes": "string", "reply_count": 0, "published_at": "string", "is_verified": true } ] }, "requests": 0, "credits_charged": 0}