It appears to use Socrata to manage the data. I have no experience with this API, but it appears you can access it using this form of the URL:
https://www.datos.gov.co/Salud-y-Protecci-n-Social/Casos-positivos-de-COVID-19-en-Colombia/gt2j-8ykr
According to the Socrata documentation, you can request this data at a particular $offset
and $limit
by providing these as parameters in the URL. This is a bit niche, and beyond the scope of Mathematica Stack Exchange, but this will hopefully get you started:
(* fetch 10 records starting from offset 0 *)
request =
HTTPRequest["https://www.datos.gov.co/resource/gt2j-8ykr.json",
<| Method -> "GET", "Query" -> {"$limit" -> 10, "$offset" -> 0},
CharacterEncoding -> "UTF8"|>];
response = URLExecute[request];
We can then query properties of the response JSON by forming an Association
:
(* of our 10 records, get the first 5 cities of location *)
Association[#]["ciudad_de_ubicaci_n"] & /@ response[[1 ;; 5]]
(* {"Bogotá D.C.", "Guadalajara de Buga", "Medellín", "Medellín", "Medellín"} *)
If you want the total number of entries in the database (cases) then I reckon you could use the API like this $select=count(id_de_caso)
:
request =
HTTPRequest["https://www.datos.gov.co/resource/gt2j-8ykr.json",
<| Method -> "GET",
"Query" -> {"$select" -> "count(id_de_caso)", "$offset" -> 0},
CharacterEncoding -> "UTF8"|>];
response = URLExecute[request];
numberOfCases = ToExpression@Values[First[response]][[1]]
(* 456689 *)
This matches up exactly with the data for Columbia at https://www.trackcorona.live/map as of 16th August 2020.