insurance

Read the official severe weather warnings in force, the way the Insurance map shows them: from MeteoAlarm (Europe's national weather services), the US National Weather Service, Environment and Climate Change Canada and GDACS (tropical cyclones), refreshed every two minutes. Each warning has its level (yellow, orange or red), hazard, the text as published, when it starts and ends, a link to the publisher, and the user's sites on the Insurance board inside its areas. Use scope sites for which sites are under a warning now, and all for everything in force. Credit the publisher wherever a warning is shown, as each one's credit says.

post/api/rpc/queryWeatherWarnings

Request

  • Base URL: https://21risk.com
  • URL: https://21risk.com/api/rpc/queryWeatherWarnings
  • Auth: OAuth 2 (client credentials, token URL /api/v1/oauth/token)

Request body

tenantunknown required
scope'sites' | 'all' required

sites: the warnings in force at the user's active sites on the Insurance board. all: every warning in force from every source, worldwide; often thousands.

outlinesboolean

Also return the outlines of the warnings' areas as GeoJSON, simplified to about a kilometre, to draw them on a map. Large: up to a megabyte for all.

Response

Successful response

scope'sites' | 'all' required
outlinesCreditstring

Only with outlines: show it wherever the outlines are drawn.

totalinteger required

Every warning in force, worldwide.

awarenessNotestring required

Show it with the warnings.

Changes

No recorded changes to this operation across all 2 revisions of this API.