Hey, i`m always getting an “url expired” Response from the https://yt-api.p.rapidapi.com/subtitle endpoint.
im getting an subltitle url from the https://yt-api.p.rapidapi.com/video/info? enpoint, then next api call i
m passing this to the endpoint mentioned above, but always the response is
{
“error”: “URL expired.”,
“code”: “403”
}
What am i missing here ?
Thanks in advance!
Nehmen Sie an der Diskussion teil - fügen Sie unten einen Kommentar hinzu:
And subtitle links have expiry so use them within expiry timeframe mentioned in the link param “expire”
Tested the subtitle link and it is working fine for me.
https://prnt.sc/ipFCQBB33v-s
https://prnt.sc/9mJHmhZ_5jp-
Are you not getting the same result?
it does not seem to work with any video so far, but here is an example : https://www.youtube.com/watch?v=VwKwy9ILN7I
The url i`m getting back from the https://yt-api.p.rapidapi.com/video/info?id= endpoint is :
“url”: “https://www.youtube.com/api/timedtext?v=VwKwy9ILN7I&ei=0lE7ZvbTEv7Y6dsPr4Yn&caps=asr&opi=112496729&xoaf=4&hl=en&ip=0.0.0.0&ipbits=0&expire=1715188802&sparams=ip%2Cipbits%2Cexpire%2Cv%2Cei%2Ccaps%2Copi%2Cxoaf&signature=255059AC6097C849EC20731859D942EA07047DE9.552BFD4B9103D2EC1A9C191B9F80477112AFADF7&key=yt8&kind=asr&lang=en&fmt=srv1”
Maybe it
s a misconception on my part : this is autogenerated subtitles i
m trying to get , maybe thats why it does not work?{
“subtitles”: [
{
“languageName”: “English (auto-generated)”,
“languageCode”: “en”,
“isTranslatable”: true,
“url”: “https://www.youtube.com/api/timedtext?v=VwKwy9ILN7I&ei=0lE7ZvbTEv7Y6dsPr4Yn&caps=asr&opi=112496729&xoaf=4&hl=en&ip=0.0.0.0&ipbits=0&expire=1715188802&sparams=ip%2Cipbits%2Cexpire%2Cv%2Cei%2Ccaps%2Copi%2Cxoaf&signature=255059AC6097C849EC20731859D942EA07047DE9.552BFD4B9103D2EC1A9C191B9F80477112AFADF7&key=yt8&kind=asr&lang=en&fmt=srv1”
}
],
Please share the video id