Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How to get data from an API?

Asked by 3 years ago

I am making a COIVID-19 reporter game which will get information about the cases, deaths,... from an API but I don't really know how to do that.

Is this a right script to do that? And how do I extract information from the API?

local URL = "https://api.covid19api.com/summary"

game:GetService("HttpService"):RequestAsync(
{   
    Url = URL;
    Method = "GET"

}
)

Answer this question