Content Types
By default the Petabencana API returns JSON for all calls and expects any POST requests to supply JSON formatted bodies unless otherwise advised. UTF-8 encoding is used on all requests and responses.
Where Geographic data is returned this is will be encoded as TopoJSON by default. GeoJson is also supported if required, by supplying format=topojson in the API call. More details of this can be found in the specific API route documentation. In addition to TopoJSON and GeoJson we provide a public feed of real-time flood information using the
Common Alerting Protocol
standard.
Last updated