{
"found": true,
"data": {
"language": "en",
"transcript": "[♪♪♪]\n♪ We're no strangers to love ♪\n♪ You know the rules\nand so do I ♪\n♪ A full commitment's\nwhat I'm thinking of ♪\n♪ You wouldn't get this\nfrom any other guy ♪\n♪ I just wanna tell you\nhow I'm feeling ♪\n♪ Gotta make you understand ♪\n♪ Never gonna give you up ♪\n♪ Never gonna let you down ♪\n♪ Never gonna run around\nand desert you ♪\n♪ Never gonna make you cry ♪\n♪ Never gonna say goodbye ♪\n♪ Never gonna tell a lie\nand hurt you ♪\n♪ We've known each other\nfor so long ♪\n♪ Your heart's been aching\nbut you're too shy to say it ♪\n♪ Inside we both know\nwhat's been going ♪\n♪ We know the game\nand we're go...",
"segments": [
{
"text": "[♪♪♪]",
"startSeconds": 1.36,
"durationSeconds": 1.68
},
{
"text": "♪ We're no strangers to love ♪",
"startSeconds": 18.64,
"durationSeconds": 3.24
}
]
}
}
curl --location --request GET 'https://zylalabs.com/api/15581/youtube+captions+to+text+api/41930/get+video+transcript?id=dQw4w9WgXcQ' --header 'Authorization: Bearer YOUR_API_KEY'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a Legendas do YouTube para texto API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
Obtenha a transcrição de qualquer vídeo do YouTube por ID ou URL em texto limpo, com o idioma das legendas Funciona com legendas automáticas e manuais
Uma pesquisa sem resultados retorna HTTP 404 com found false
Não Envie a solicitação e receba JSON estruturado de volta