Earthquake Alert Map

Render one per earthquake from your alert feed, with magnitude, location, depth and a map centred on it.

Image, 1080 × 1080, 1 credit

Output

Earthquake Alert Map, rendered by oJo with its first sample

Variables

  • earthquake.depthtext
    28 km
  • earthquake.latitudenumber
    -33.0472
  • earthquake.locationNametext
    Near the coast of Central Chile
  • earthquake.longitudenumber
    -71.6127
  • earthquake.magnitudenumber
    6.8
  • earthquake.regiontext
    Valparaíso, Chile
  • earthquake.timetext
    2025-06-22T10:30:15Z
  • mapConfig.attributiontext
  • mapConfig.tileLayerUrltext
    https://services.arcgisonline.com/ArcGIS/rest/services/Canvas/World_Dark_Gray_Base/MapServer/tile/{z}/{y}/{x}
  • mapConfig.zoomnumber
    6
  • theme.backgroundColortext
    #1F2937
  • theme.primaryColortext
    #FF8C00
  • theme.textColortext
    #E5E7EB
  • uiTexts.footerNoticetext
    Preliminary data. Confirm with Centro Sismológico Nacional (CSN), U. de Chile.

Send any of these in modify. Anything you leave out prints the sample value, and the response lists it in warnings.

Render it

Save the template to your account first. Saving gives you its ID.

curl --request POST \
  --url https://api.ojo.so/v1/image/template \
  --header 'Authorization: Bearer <your API key>' \
  --header 'Content-Type: application/json' \
  --data '{
  "templateId": "<YOUR_TEMPLATE_ID>",
  "modify": {
    "earthquake": {
      "locationName": "Near the coast of Central Chile",
      "region": "Valparaíso, Chile",
      "magnitude": 6.8,
      "depth": "28 km"
    }
  },
  "viewportWidth": 1080,
  "viewportHeight": 1080
}'

What's included

Related templates

All templates
Earthquake Alert Map - oJo