Skip to content

Get map statistics

Aggregates across approved, non-disputed spots. Used by the public map's insights panel.

GET
https://deathspot.org/api/stats

Returns

200

Statistics.

JSON
  • totalsobjectrequired
    4 properties
    • totalintegerrequired

      Approved spots on the map.

    • confirmedintegerrequired

      Community-confirmed or moderator-verified spots.

    • unverifiedintegerrequired
    • this_weekintegerrequired

      Spots reported through the app in the last 7 days (excluding seed data).

  • byCategoryarray ofobjectrequired
    2 properties
    • categorymurderormob_actionorboda_gangorrobberyorstabbingorkidnapping+1 morerequired

      What happens at the spot: murder (killing), mob_action, boda_gang, robbery (robbery or snatching), stabbing (stabbing or hacking), kidnapping, other.

    • countintegerrequired
  • byAreaarray ofobjectrequired

    The 8 areas with the most spots.

    3 properties
    • areastringrequired
    • countintegerrequired
    • max_severityintegerrequired
      maximum: 5, minimum: 1

429

The caller exceeded a rate limit. Wait Retry-After seconds before retrying.

JSON
  • errorstringrequired

    A human-readable message you can show to users.

500

Unexpected server error, usually because the database is unreachable.

Navigation

Type to search…

↑↓ navigate↵ selectEsc close