POST
/
action
/
get_youtube_transcript
curl --request POST \
  --url https://api-lr.agent.ai/v1/action/get_youtube_transcript \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "https://youtube.com/watch?v=example"
}'
{
  "status": 200,
  "metadata": {
    "author": "Sequoia Capital",
    "category": "People & Blogs",
    "channel_id": "UCWrF0oN6unbXrWsTN7RctTw",
    "channel_link": "http://www.youtube.com/@sequoiacapital",
    "channel_name": "Sequoia Capital",
    "description": "The landscape is wide open. The opportunity set is massive. At our second Sequoia Capital AI Ascent, Sonya Huang, Pat Grady, and Konstantine Buhler discuss the way AI is already providing glimpses of enduring value, and how this technology will help us do more with less so that we can solve more problems, create more, and build a better future.\n\n#AI #AIAscent #Sequoia #Startup #Founder #entrepreneur",
    "id": "TDPqt7ONUCY",
    "key_moments": [],
    "length_seconds": 1616,
    "likes": 1800,
    "published_time": "Mar 26, 2024",
    "thumbnail": "https://i.ytimg.com/vi_webp/TDPqt7ONUCY/maxresdefault.webp",
    "title": "The AI opportunity: Sequoia Capital's AI Ascent 2024 opening remarks",
    "views": 101403
  },
  "response": "The AI opportunity: Sequoia Capital's AI Ascent 2024 opening remarks\nmy name is pack Rady I'm one of the members..."
}

Authorizations

Authorization
string
header
required

Bearer token from your account (https://agent.ai/user/settings#credits)

Body

application/json
url
string
required

URL of the YouTube video.

Response

200
application/json
Transcript of the YouTube video
status
integer

HTTP status code of the action response

metadata
object

Video metadata from the action

response
object

Response data from the action