Get a Free Trial
GrabzIt's Online Community

Random error when creating gif from Youtube

Ask questions on how to capture or convert web pages or HTML into images, MP4. CSV, PDF or DOCX documents as well on how to convert videos into animated GIF's using our API.

There are no forum posts on this topic! Why don't you write one?

Hello!

When i try to create gif from Youtube, i have random response from your API.

curl -i "https://api.grabz.it/services/convert?format=gif&key=xxxxxxxx&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DW4xIjA7lKk8&start=0&duration=3&width=480&height=270"
HTTP/2 200
content-length: 1319797
content-type: image/gif
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: DENY
referrer-policy: no-referrer
access-control-allow-origin: *
date: Tue, 29 Oct 2024 09:14:02 GMT

Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: <FILE>" to save to a file.

curl -i "https://api.grabz.it/services/convert?format=gif&key=xxxxxxxxxxxx&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DW4xIjA7lKk8&start=0&duration=3&width=480&height=270"
HTTP/2 200
content-type: application/json
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: DENY
referrer-policy: no-referrer
access-control-allow-origin: *
date: Tue, 29 Oct 2024 09:16:33 GMT

{"Result":"False","ID":"","Message":"Critical error: YouTube video has been removed, has an age restriction or is not available in the country it is being taken from.","Code":"400"}%

curl -i "https://api.grabz.it/services/convert?format=gif&key=xxxxxxxxxxxxxxx&url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DW4xIjA7lKk8&start=0&duration=3&width=480&height=270"
HTTP/2 200
content-type: application/json
x-content-type-options: nosniff
x-xss-protection: 1; mode=block
x-frame-options: DENY
referrer-policy: no-referrer
access-control-allow-origin: *
date: Tue, 29 Oct 2024 09:17:08 GMT

{"Result":"False","ID":"","Message":"Critical error: Unable to resolve YouTube URL","Code":"400"}%

Can you help me?

Asked by Sysadmin on the 29th of October 2024

Sorry you are experiencing this. Fundamentally this is caused by YouTube blocking our proxy IP's. However, we have identified a potential problem in how we use the proxies and have released a fix which seems to solved the problem. 

Answered by GrabzIt Support on the 29th of October 2024

Thanks!

Answered by Sysadmin on the 29th of October 2024