Välkommen till Krisinformations API Version 2!

Tillgängligt:

/v2/feed GET

Hämta nyheter från krisinformation

Parameter Type Notes
days int How many days to fetch
language string Optional. Used for fetching VMA by language. Default sv

/v2/aggregatedfeed GET

Hämta nyheter från krisinformation och importerade källor (/v2/feedsources)

Parameter Type Notes
days int How many days to fetch. Default: 7
feeds string comma-separated list of id's from /v2/feedsources
counties string comma-separated list of county id
language string Optional. Used for fetching VMA by language. Default sv

/v2/features GET

Hämta "förbered dig" sidor

Parameter Type Notes
time string Provide a last fetch time to only get the featurepages that are updated. Empty returns full objects for all

/v2/pushed GET

Get a list of pushed featurepages

Parameter Type Notes

/v2/feedsources GET

Get a list of sources that are imported to aggregatedfeed

Parameter Type Notes

/v2/single GET

Get A single item

Parameter Type Notes
id int id for item in aggregated feed
language string Optional. Used for searching the item in VMAs in the specified language. Default sv

/v2/pushentities GET

Get all items for push

Parameter Type Notes
time string Get all items that are published or modified after this timestamp.
language string Optional. Used for fetching VMA by language. Default sv