Heyo, I upgraded my plan to Pro to get the 30,000 request limit, however, the API still thinks I’m on the basic Plan when using the GET Basic call. I updated my API key, but not sure why its not recognizing my new subscription?
Here is my current code:
`function getStreamAvailability (mediaId) {
try{
return fetch(“https://streaming-availability.p.rapidapi.com/get/ultra?imdb_id=” + mediaId + “&output_language=en”, {
“method”: “GET”,
“headers”: {
“x-rapidapi-host”: “streaming-availability.p.rapidapi.com”,
“x-rapidapi-key”: " "
}
}).then(function (response){
if(response.status === 404){
console.log(‘sorry this movie isn’t availible’);
} else {
return response.json().then(function (data) {
console.log(“streamAvail:”, data);
var banner = data.posterURLs.original;
var desc = data.overview;
var cast = data.cast;
var strmSrvc = data.streamingInfo;
}).catch(err => {
console.error('error in .json: ', err)
})
}
})
.catch(err => {
console.error('error in fetchL ', err);
});
} catch(err) {
console.log('error in catch block', err)
}
}
This is what the output looks like:
Aşağıya yorum ekleyerek tartışmaya katılın:
I updated to the Ultra Plan in order to use the Ultra Endpoint thinking that would do that trick and still no luck, very weird.
The code snippet you posted exposes your API key, it’d be better if you remove it from the post as other people can use it to send requests over your quota.
Also the in the code snippet you use get/ultra endpoint, which is only available for Ultra and Mega plans. That might be the cause of your issues.
Thank you! I’ll reach out to RapidAPI support as well!
Hi, RapidAPI itself handles the request quotas, we don’t have any control over it as the API owners. Sometimes it takes awhile for RapidAPI to adjust the subscription changes but if it has been going on more than an hour you can try to contact RapidAPI support.