#!/usr/bin/env Rscript
library(jsonlite)
library(httr)
library(dplyr)
library(tidyr)
td <- GET("https://monitor.statnipokladna.cz/api/transakcni-data?aktivni=true",accept_json()) %>%
content(as = "text") %>%
fromJSON()
xx <- td %>%
unnest(dataExtracts, .name_repair = "universal")
xx %>%
group_by(titleCS) %>%
filter(!deleted, year == max(year)) %>%
filter(month == max(month)) %>%
select(titleCS, year, month, filenamePeriod)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.