HTTP 426 (Upgrade Required)

Thank you for pointing this out,

but why did it work at first?

It seems like the API you’re using is paid, and has a free trial of 200 requests per month. 426 Upgrade Required - HTTP Status Code Glossary - WebFX says that you need to ā€œupgradeā€, and by upgrade, the website probably means to pay them.

The error doesn’t come from your script neither does it come from Roblox - it comes from your plan that has probably expired.

The website is not very clear about it. This could be the reason tho.

but no 200 requests yet:

image

1 Like

I tried this exact code on Studio:

local hs = game:GetService("HttpService")
print(hs:GetAsync("https://newsapi.org/v2/everything?q=bitcoin&apiKey=XXXXXXXX"))

Would you mind trying it to see if it outputs anything? Mine successfully ran.

1 Like

That results the expected output…
wait what

Sorry for the deleted post, had accidentally put my API key in it.
May you send your code?

Apparently, removing the &from=2020-11-10&sortBy=published worked.

1 Like

You could leave it at &from=2020-11-10 published is not a value that can be used for sortBy image

1 Like