Utelly

FREEMIUM
Verified
Par utelly | Mise à jour 5 days ago | Entertainment
Popularité

9.6 / 10

Latence

405ms

Niveau de service

100%

Health Check

N/A

Retour à toutes les discussions

API Info Export Not Showing Urls

Rapid account: Rbrooks V Ri 4 Bo Qp
rbrooks--vRi4boQp
2 years ago

Reaching out because we’ve run into an issue with one of the api’s and need your assistance.

Based on the the description and code for Utelly, if a request is made to get the information for a piece of content, one of piece of information it is suppose to provide is to display the links where someone can find that content.

Based on the tests, it does do this as part of the end results , however, on the front user end of the information, these links are not displayed. Instead, it only shows the name and image of the show

Is this intentional, or is there something we are doing wrong?

If it intentional, can you advise how we can get access to test the api to ensure it is working correctly? If it was an error that we are doing, can you advise on what we need to do to correct this?

Rapid account: Utelly
utelly Commented 2 years ago

Hi,

Sorry for the slow reply, didn’t receive a notification.

For the links you should be looking on the following path:

collections.collection.locations.location.url

What is maybe confusing things is that in our terminology “locations” === “services”.

You can see that the locations array contains all the places you can watch the content with links.

Does this make sense?

Ben

Rapid account: Rbrooks V Ri 4 Bo Qp
rbrooks--vRi4boQp Commented 2 years ago

Hello, following up to see if you have any feedback on this?

Rapid account: Rbrooks V Ri 4 Bo Qp
rbrooks--vRi4boQp Commented 2 years ago

Ok sounds good. We still couldn’t get it to work.

Please see code and attachments

<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com/lookup?term=bojack&country=uk”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com”,
“X-RapidAPI-Key: 5cb1326abdmsh7d996eec570ab3ap1911e5jsn4ff7147ea9f2”
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}
Test Endpoint:

Body

{5 items
"variant":“rapidapi_basic”
“results”:[1 item
0:{…}7 items
]
“updated”:"2022-04-21T05:09:14+0100"
“term”:“bojack”
“status_code”:200
}
Header

{
“access-control-allow-credentials”: “true”,
“access-control-allow-origin”: “*”,
“cache-control”: “max-age=3600”,
“connection”: “keep-alive”,
“content-type”: “application/json”,
“date”: “Thu, 21 Apr 2022 08:42:51 GMT”,
“expires”: “Thu, 21 Apr 2022 09:42:51 GMT”,
“server”: “RapidAPI-1.2.8”,
“transfer-encoding”: “chunked”,
“vary”: “Accept-Encoding”,
“via”: “1.1 c49128c626a54e52d9677041ba76a534.cloudfront.net (CloudFront), 1.1 17fb84bf4d70f7e6db47eb138f34fc8a.cloudfront.net (CloudFront)”,
“x-amz-apigw-id”: “Q7DZwHvpjoEFVzw=”,
“x-amz-cf-id”: “7J91h8SbnBTidMP4yR3Qs4JhhyQbTKX68cFuO8fjBtqLQd7ewGBtpw==”,
“x-amz-cf-pop”: “SIN52-C2, SIN2-C1”,
“x-amzn-remapped-content-length”: “1043”,
“x-amzn-requestid”: “a81e3b83-e26a-4893-a3c0-642c1b8f31e1”,
“x-amzn-trace-id”: “Root=1-6261190b-5bbd640c7a592fc80d257e25;Sampled=0”,
“x-cache”: “Miss from cloudfront”,
“x-phoenix-time”: “0.24624395370483398”,
“x-rapidapi-region”: “AWS - ap-southeast-1”,
“x-rapidapi-version”: “1.2.8”,
“x-ratelimit-requests-limit”: “1000”,
“x-ratelimit-requests-remaining”: “994”,
“x-ratelimit-requests-reset”: “992293”
}

Here’s the other code:

idlook up:
Code Snipate

<?php

$curl = curl_init();

curl_setopt_array($curl, [
CURLOPT_URL => “https://utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com/idlookup?source_id=tt3398228&source=imdb&country=us”,
CURLOPT_RETURNTRANSFER => true,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_ENCODING => “”,
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => “GET”,
CURLOPT_HTTPHEADER => [
“X-RapidAPI-Host: utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com”,
“X-RapidAPI-Key: 5cb1326abdmsh7d996eec570ab3ap1911e5jsn4ff7147ea9f2”
],
]);

response=curlexec(response = curl_exec(curl);
err=curlerror(err = curl_error(curl);

curl_close($curl);

if ($err) {
echo “cURL Error #:” . $err;
} else {
echo $response;
}

Test Endpoint: Result

{5 items
"variant":“rapidapi_basic”
“id”:“tt3398228"
“collection”:{6 items
"locations”:[…]1 item
"source_ids":{…}1 item
"id":“5d914028302b840050acbe62"
“weight”:5635
"picture”:“https://utellyassets9-4.imgix.net/api/Images/4e4d50a0040fd4500193202edbafce6a/Redirect?fit=crop&auto=compress&crop=faces,top
“name”:“BoJack Horseman”
}
“status_code”:200
"type":“imdb”
}

{5 items
"collection":{7 items
"id":“5d914028302b840050acbe62"
“locations”:[…]1 item
"name”:“BoJack Horseman”
“picture”:“https://utellyassets9-1.imgix.net/api/Images/4e4d50a0040fd4500193202edbafce6a/Redirect
“provider”:“iva”
“source_ids”:{…}1 item
"weight":9919
}
“id”:“tt3398228"
“status_code”:200
"type”:“imdb”
“variant”:“ivafull”
}

Rapid account: Utelly
utelly Commented 2 years ago

Sounds like an issue with your Front End integration. The content contained in the response, including links, should not be any different between the tests you are running programmatically and those returned to the client application.

If you are still having issues pls share some example requests and I can try to help.

Participez à la discussion - ajoutez un commentaire ci-dessous:

Connectez-vous / Inscrivez-vous pour publier de nouveaux commentaires