Välkommen till Krisinformations API Version 3!

Tillgängligt:

/v3/news GET

Hämta nyheter från krisinformation

Parameter Type Notes
language string Optional. Used for fetching news by language. Default sv
counties string Optional. Used for filtering news by counties. Default is no filter
days int Optional. How many days to fetch (there is a default number of days configured in the API (7 or 120?))
includeTest bool Optional. A flag indicating if you want to include the pagetype "Test" in the result or not. Default "False".

/v3/news/123 GET

Hämta nyheten med id = 123 från krisinformation

Parameter Type Notes
id string Required. Used for pointing out the id of the news page to get. (corresponds to 123 above)
language string Optional. Used for fetching news by language. Default sv
includeTest bool Optional. A flag indicating if you want to include the pagetype "Test" in the result or not. Default "False".

/v3/vmas GET

Hämta VMA från krisinformation

Parameter Type Notes
language string Optional. Used for fetching VMA by language. Default sv
counties string Optional. Used for filtering VMA by counties. Default is no filter

/v3/rightnows GET

Hämta "Just nu"-block från krisinformation

Parameter Type Notes
language string Optional. Used for fetching "right nows" by language. Default sv
counties string Optional. Used for filtering "right nows" by counties. Default is no filter

/v3/customfeeds GET

Hämta "custom feeds" från krisinformation

Parameter Type Notes
feeds string Optional. Comma separated string list used for filtering custom feeds by feed source id. Default is "0" (Krisinformation)
days int Optional. How many days to fetch (there is a default number of days configured in the API (7 or 120?))

/v3/features GET

Hämta "förbered dig"-sidor

Parameter Type Notes
language string Optional. Used for fetching feature pages by language. Default sv
counties string Optional. Used for filtering feature pages by counties. Default is no filter
time (Not fully implemented yet. Subject for discussion between parties.) string Provide a last fetch time to only get the feature pages that are updated. Empty returns full objects for all

/v3/features/123 GET

Hämta "förbered dig"-sidan med id = 123

Parameter Type Notes
id string Required. Provide an id of a feature page to get its information (corresponds to 123 above)
language string Optional. Used for fetching feature pages by language. Default sv

/v3/topstories GET

Hämta huvudhändelser

Parameter Type Notes
language string Optional. Used for fetching top stories by language. Default sv
counties string Optional. Used for filtering top stories by counties. Default is no filter
time (Not fully implemented yet. Subject for discussion between parties.) string Provide a last fetch time to only get the top stories that are updated. Empty returns full objects for all

/v3/notices GET

Hämta notiser

Parameter Type Notes
language string Optional. Used for fetching notices by language. Default sv
counties string Optional. Used for filtering notices by counties. Default is no filter
time (Not fully implemented yet. Subject for discussion between parties.) string Provide a last fetch time to only get the notices that are updated. Empty returns full objects for all

/v3/pushedfeatures GET

Get a list of pushed featurepages

Parameter Type Notes

/v3/feedsources GET

Get a list of sources that are imported to aggregatedfeed (Not used anymore??? All info comes from Krisinfo?)

Parameter Type Notes

/v3/pushentities GET

Get all items for push

Parameter Type Notes
time string Get all items that are published or modified after this timestamp.
includeTestVma bool Optional. A flag indicating if you want to include test-VMAs from the "testvmaindex" in the result or not. Default "False".
language string Optional. Used for fetching VMA by language. Default sv

/v3/rssendpoints GET

(Not used anymore???)

Parameter Type Notes