Yummly

免费增值
通过 Api Dojo | 已更新 3 months ago | Food
人气

9.6 / 10

延迟

2,200ms

服务等级

100%

返回所有讨论

Video

avatar
lukas.viliams
3 months ago
Hello, why I am not allowed to access the video. 

This is messsage in browser:

This XML file does not appear to have any style information associated with it. The document tree is shown below.

<Error>
<Code>AccessDenied</Code>
<Message>Access Denied</Message>
<RequestId>TF9VYA5QZPBDC9QK</RequestId>
<HostId>TjpbjHkBFBTNp/AlFLIxRFw8n4WB79ARRKauf/kdLP9ovAcUmHOSAZD0I8BUsOy97hFfwGwM8xE=</HostId>
</Error>

avatar
apidojo commented 3 months ago

Hello,

What was the url? How did you access the video? Did you simply open the link in a web browser?

Regards.

avatar
lukas.viliams commented 2 months ago

Thank you, for reply.

For instance this one:
https://s3.amazonaws.com/videos-yummly/uIND283Qpqzcwir6rpoJ_Montage_Sheet_Pan_Chicken_Nachos-dash.mpd.mp4
I have tried to open new tab and also another browser but response is always the same.

avatar
apidojo commented 2 months ago

Hello,

I believe you need to use some HTTP client library and video player to load the link with some header information included. You cannot access the link directly by using web browser.

Regards.

avatar
lukas.viliams commented 2 months ago

Hello,
unfortunately this is not the case. If you use html Element video and define source you get 403 forbidden response and this one means that you do not have sufficient rights to access the content. In another words, you need to login before consuming content.
It’s pity anyway…

avatar
apidojo commented 2 months ago

Hello,

You should differ the two cases. There are Yummly URLs required Premium account to access the video. These URLs belong to recipes requiring Premium account to access. The others do not.

Ex :
These are url extracted from ‘originalVideoUrl’ field returned in …/feeds/list endpoint.
https://s3.amazonaws.com/videos-yummly/LiZUf4nQTdOi9d9VeC9V_E109_Orecchiette_with_Broccoli_Rabe_and_Sweet_Italian_Sausage_Montage.mp4
https://s3.amazonaws.com/videos-yummly/h0T7BnRDQRqMZnYHBhlH_Fried_Chicken_Montage.mp4
https://s3.amazonaws.com/videos-yummly/CcQzyAnvTbGdkio9EmFd_Montage_Creamy_Tomato_Alphabet_Pasta.mp4

I can open the URL directly in a web browser.

Regards.

加入讨论 - 在下面添加评论:

登录/注册以发布新的评论
打分:5 - 投票:1