Jump to content

Recommended Posts

Ikke helt on-topic, men jeg låner APIet til VG for corona-tilfeller i Norge

 

https://redutv-api.vg.no/corona/v1/sheets/norway-region-data

 

$total = $json->metadata->confirmed->total;
$newToday = $json->metadata->confirmed->newToday;
$newYesterday = $json->metadata->confirmed->newYesterday;

$dead = $json->metadata->dead->total;
$deadToday = $json->metadata->dead->newToday;
$deadYesterday = $json->metadata->dead->newYesterday;

 

  • Like 1
Link to post
Share on other sites
On 09/04/2020 at 08:35, Moskus said:

Hvordan har du brukt denne?

Den ble brukt av en modul (Covid-19 -statistikk) til Magic Mirror, så jeg så litt nærmere på den og de hadde jo en mildt sagt imponerende samling og (såvidt jeg kunne forstå) en enkel tilgang til dem.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...