SafetyService

GetTorontoSafety

Explore one Toronto Police Service dataset with area, offence and year filters, plus source attribution, data semantics and freshness for local safety analysis.

get/api/safety/v1/get-toronto-safety

Request

  • Base URL: https://api.worldmonitor.app
  • URL: https://api.worldmonitor.app/api/safety/v1/get-toronto-safety
  • Auth: one of:
    • API key in header X-WorldMonitor-Key
    • API key in header X-Api-Key

Query parameters

datasetstring

Dataset selector. Accepted values: reported_occurrence, annual_aggregate.

limitinteger

Maximum rows to return. The service defaults to 50 and caps this value at 100.

divisionstring

Optional case-insensitive police-division filter.

neighbourhoodstring

Optional case-insensitive neighbourhood filter.

offencestring

Optional case-insensitive offence filter for tps_mci.

yearinteger

Optional event-year filter for tps_calls_attended.

jmespathstring

Optional JMESPath expression applied server-side to project or reduce the JSON response before it is returned (mirrors the MCP jmespath argument). Invalid expressions, expressions larger than 1024 UTF-8 bytes, or projections that exceed the 256 KB output cap return HTTP 400 with a {_jmespath_error, original_keys} envelope. Grammar and worked examples: https://www.worldmonitor.app/docs/mcp-jmespath.

Response

OK

semanticstring
sourcestring
sourceLabelstring
attributionstring
disclaimerstring
sourceUrlstring
fetchedAtinteger

Warning: Values > 2^53 may lose precision in JavaScript

sourceEditedAtinteger

Warning: Values > 2^53 may lose precision in JavaScript

newestContentAtinteger

Warning: Values > 2^53 may lose precision in JavaScript

newestContentYearinteger
degradedboolean
unavailableboolean
matchedinteger
truncatedboolean

Changes

No recorded changes to this operation across all 1 revision of this API.