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
allCounties bool Optional. Used for determining if an empty counties list means all counties or none. Default is false
days int Optional. How many days to fetch (there is a default number of days configured in the API (7))
numberOfNewsArticles int? Optional. How many news articles to fetch (if this parameter is included, it will override the days parameter!). Default value is null.
useCentralizedNoOfArticles bool Optional. If the number of news articles to fetch should be centrally controlled, or not (if this parameter is included and set to true, it will override both the "days" and "numberOfNewsArticles" parameters! If a central value has not been set it will use "numberOfNewsArticles" as a fallback, and if that is also not set, the default number is 5!). Default value is false.
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
allCounties bool Optional. Used for determining if an empty counties list means all counties or none. Default is false

/v3/testvmas GET

Hämta Test-VMA från krisinformation

Parameter Type Notes

/v3/notifications GET

Hämta redaktionella notiser (push-notiser i appen) från krisinformation

Parameter Type Notes
includeDraftNotifications bool Optional. A flag indicating if you want to include notifications which has not been published in the result or not. Default is to not include, i.e. "False".
includeTestNotifications bool Optional. A flag indicating if you want to include notifications marked as "test-notification" in the result or not. Default is to not include, i.e. "False".

/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 (SMHI (1) och/eller Trafikverket (2))

Parameter Type Notes
feeds string Optional. Comma separated string list used for filtering custom feeds by feed source id (SMHI = 1, TrV = 2). Default is empty, i.e. nothing is fetched.
days int Optional. How many days to fetch (there is a default number of days configured in the API (7))

/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 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
allCounties bool Optional. Used for determining if an empty counties list means all counties or none. Default is false
time (Not 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
allCounties bool Optional. Used for determining if an empty counties list means all counties or none. Default is false
time (Not 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 produce information (0: Krisinformation, 1: SMHI, 2: Trafikverket). Info from Krisinformation is fetched by GetNews() and info from SMHI and TrV from GetCustomFeeds(). (Previous versions of the API included this info in the "aggregatedfeed".)

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