Why does the soundcloud stream URL is not permanent? I get 403 Forbidden error when try to play the stream again after a few minutes - stream

I'm trying to stream soundcloud tracks in my own player using the API and it plays the first time I make the request but after a few minutes if I try to stream from the same URL I get 403 error "Forbidden". Does the stream URL expire?

Related

Youtube oembed 401 unauthorized for some videos

I'm currently facing a 401 Unauthorized error using the ruby gem "ruby-oembed" which use oEmbed and noembed libs.
I tried it directly with oembed and noembed and I got the following result
$> https://noembed.com/embed?url=https://www.youtube.com/watch?v=3xlegeyULX8
$> {"error":"401 Unauthorized","url":"https://www.youtube.com/watch?v=3xlegeyULX8"}
and you can try it with oembed here with this youtube video https://www.youtube.com/watch?v=3xlegeyULX8
I tried to check if the video is private or has different settings but I can't find any settings different with working cases.
Any idea why it could cause it?
The video you shared 3xlegeyULX8 isn't embeddable, as YouTube Data API v3 Videos: list#status.embeddable is false for this video (cf https://www.googleapis.com/youtube/v3/videos?part=status&id=3xlegeyULX8&fields=items(status/embeddable)&key=API_KEY)
status.embeddable
boolean
This value indicates whether the video can be embedded on another website.

Error 20002 on Video Query function in TikTok's Login Kit API

I noticed that there's very few documentation about error handling on TikTok's login kit, so here's my problem:
I'm using the Video Query function, but i'm getting a error 20002 for a certain user
Here's a screenshot
The access token is brand new, the video is online and public but nothing works..

Eventbrite Events API now returning 404

I was previously using the following code to retrieve data about Eventbrite events:
file_get_contents('https://www.eventbriteapi.com/v3/users/me/events?status=live&token=xxxxxx');
This was working just fine a few months ago. However when I've tried it again, I now get a "failed to open stream: HTTP request failed! HTTP/1.1 404 NOT FOUND" error. I've checked the Eventbrite API documentation https://www.eventbrite.com/platform/docs/events and it seems that the URL structure is still correct.
This user and token definitely exists, as I can run the following code which does give valid results:
file_get_contents('https://www.eventbriteapi.com/v3/users/me/organizations?token=xxxxx')
What is wrong with my Events code?

Instagram Basic Display returns media url with Bad Url Timestamp message

Integrated the Instagram Basic display API with my website. It was working fine. From last few days some of the media url throws error code 403 with the message Bad Url Timestamp(these media were working fine earlier). I have tried refreshing the access token and creating a new one but it was not of any help. Not all the media but few of them are giving this error.
The url which is giving error
https://scontent-lht6-1.cdninstagram.com/v/t51.2885-15/128209372_3881072401959620_4985839256926707810_n.jpg?_nc_cat=108&ccb=2&_nc_sid=8ae9d6&_nc_ohc=KduPs8x3j9QAX944ddk&_nc_ht=scontent-lht6-1.cdninstagram.com&oh=3917991f8e3aaffbcf5f3017a9d78f26&oe=6002114
Can anyone help? TIA!
Instagram Basic display API have been updated. We need to stop using old API and switch to use new Instagram Basic display API.
Please refer these links:
https://embedsocial.com/blog/instagram-api-changes-2020/
https://www.instagram.com/developer/

How to fetch the processingDetails,fileDetails,suggestions information from the youtube api

I am unable to fetch the processingDetails,fileDetails,suggestions information from the youtube api call. I had used API key to fetch these details but it's not working
First I tried this API Call mentioned below, It's working
https://www.googleapis.com/youtube/v3/videos?id=Skk6MBoejgU&key={API_KEY}&part=snippet,statistics,contentDetails,player
When I tried to fetch processingDetails,fileDetails,suggestions information, It's throwing error message
https://www.googleapis.com/youtube/v3/videos?id=Skk6MBoejgU&key={API_KEY}&part=processingDetails,fileDetails,suggestions
Error message: forbidden
Can anyone help me to solve this issue ?
Because you need to be connected with your YouTube Channel to get this informations.
In fact, this is private informations, you can only get this informations only from your videos.
We can find this information in the doc of YouTube API V3
forbidden (403) forbidden
The request cannot access user rating information. This error may
occur because the request is not properly authorized to use the
myRating parameter.

Resources