Data stories: real numbers from the open-data catalogue
fetch_datasetReal numbers for a data story, never from memory: open data (World Bank, SCB, Eurostat, Our World in Data) and their own channel's statistics. Returns a preview and a ref for the story.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | No | Last year. | |
| top | No | How many series by last value (default 12, at most 60; for a map leave it out — every region, up to 250). | |
| from | No | First year. | |
| pick | No | Series to keep: country or kommun names (any language) or ISO codes. | |
| query | Yes | What the story is about, in the person's words: 'Sveriges befolkning sedan 1960', 'CO2 per person i Norden'. | |
| region | No | ||
| dataset | No | A dataset id from an earlier answer when you already know which one. |