SLF - Bulletin API (5.0)

Download OpenAPI specification:

API for querying the bulletin.

V3

Explicit v3 endpoints for active bulletins in JSON and GeoJSON format. No bulletin-list endpoints are available for v3. Unversioned endpoints use v5.

Active v3 bulletin as JSON

Returns the bulletin active at the specified time in v3 format. If no time is specified, now is used. If no active bulletin exists, the bulletins list is empty. V3 supports single-bulletin requests only; bulletin-list endpoints are available in v4 and v5.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Active v3 bulletin as GeoJSON

Returns the bulletin active at the specified time in v3 format. If no time is specified, now is used. If no active bulletin exists, the features list is empty. V3 supports single-bulletin requests only; bulletin-list endpoints are available in v4 and v5.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

V4

Active bulletins and lists of released bulletins in v4 format. Release Notes

  • The value type of elevation lower and upper bound is now a string instead of number.
  • The full montain is now represented as an empty elevation object "elevation": {} instead of "elevation": {"lowerBound": 0, "upperBound":null}
  • With the exception of the empty elevation object, all empty values such as empty strings "" , null or empty objects ({}) have been removed recursively
    For example:
    {"mainValue": "low", "elevation": null, "aspects": [], "validTimePeriod": "all_day", "customData": {"CH": {"subdivision": null}}}
    is now renderd as
    {"mainValue": "low", "validTimePeriod": "all_day"}

Active bulletin as geojson

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the features list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Active bulletin as caamlV6

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the bulletins list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

List of v4 bulletins as JSON

Returns a paginated list of released bulletin collections in v4 format.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
limit
integer >= 1
Default: 10
Example: limit=10

Number of bulletins to return

offset
integer >= 0
Default: 0
Example: offset=10

Number of bulletins to skip

Responses

Response samples

Content type
application/json
[
  • {
    }
]

List of v4 bulletins as GeoJSON

Returns a paginated list of released bulletin collections in v4 format.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
limit
integer >= 1
Default: 10
Example: limit=10

Number of bulletins to return

offset
integer >= 0
Default: 0
Example: offset=10

Number of bulletins to skip

Responses

Response samples

Content type
application/json
[
  • {
    }
]

V5

Explicit v5 endpoints for active bulletins and lists of released bulletins. Unversioned aliases are listed under Default endpoints. Release Notes

  • problemType is optional for avalanche problems.
  • Weather information is available under customData.CH.weather.
  • Daily danger rating evolution is available under customData.CH.dangerRatingEvolution.

Active bulletin as GeoJSON

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the features list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Active bulletin as CAAMLv6

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the bulletins list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

List of v5 bulletins as JSON

Returns a paginated list of released bulletin collections in v5 format.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
limit
integer >= 1
Default: 10
Example: limit=10

Number of bulletins to return

offset
integer >= 0
Default: 0
Example: offset=10

Number of bulletins to skip

Responses

Response samples

Content type
application/json
[
  • {
    }
]

List of v5 bulletins as GeoJSON

Returns a paginated list of released bulletin collections in v5 format.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
limit
integer >= 1
Default: 10
Example: limit=10

Number of bulletins to return

offset
integer >= 0
Default: 0
Example: offset=10

Number of bulletins to skip

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Default endpoints

Unversioned aliases for active bulletins and lists of released bulletins in JSON and GeoJSON format. Currently uses V5. Use an explicit version for a stable response format; the default version may change in the future.

Active bulletin as geojson (v5 default)

Returns the active bulletin in v5 format. Currently equivalent to the explicit /v5/ endpoint. Use an explicit version for a stable response format; the default version may change in the future. If no time is specified, now is used. If no active bulletin exists, the features list is empty.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Active bulletin as caamlV6 (v5 default)

Returns the active bulletin in v5 format. Currently equivalent to the explicit /v5/ endpoint. Use an explicit version for a stable response format; the default version may change in the future. If no time is specified, now is used. If no active bulletin exists, the bulletins list is empty.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

List of bulletins as JSON (v5 default)

Returns a paginated list of released bulletin collections in v5 format. Currently equivalent to the explicit /v5/ endpoint. Use an explicit version for a stable response format; the default version may change in the future. Use /v4/ for the v4 response format.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
limit
integer >= 1
Default: 10
Example: limit=10

Number of bulletins to return

offset
integer >= 0
Default: 0
Example: offset=10

Number of bulletins to skip

Responses

Response samples

Content type
application/json
[
  • {
    }
]

List of bulletins as GeoJSON (v5 default)

Returns a paginated list of released bulletin collections in v5 format. Currently equivalent to the explicit /v5/ endpoint. Use an explicit version for a stable response format; the default version may change in the future. Use /v4/ for the v4 response format.

path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
limit
integer >= 1
Default: 10
Example: limit=10

Number of bulletins to return

offset
integer >= 0
Default: 0
Example: offset=10

Number of bulletins to skip

Responses

Response samples

Content type
application/json
[
  • {
    }
]

Bulletin Preview

Preview of unreleased avalanche bulletins

Bulletin preview as caamlV6

Returns the bulletin preview active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no bulletin draft exists, the bulletins list will be empty.
Authorizations:
bearer_auth
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for bulletins preview.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Bulletin preview as geojson

Returns the bulletin preview active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the bulletins list will be empty.
Authorizations:
bearer_auth
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for bulletin preview.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}