---
title: "GetTorontoSafety"
method: GET
path: "/api/safety/v1/get-toronto-safety"
tags: ["SafetyService"]
---

# GetTorontoSafety

`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`

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

## Query parameters

- `dataset` string
- `limit` integer
- `division` string
- `neighbourhood` string
- `offence` string
- `year` integer
- `jmespath` string

## Response `200`

OK

- WorldmonitorSafetyV1GetTorontoSafetyResponse
  - `semantic` string
  - `source` string
  - `sourceLabel` string
  - `attribution` string
  - `disclaimer` string
  - `sourceUrl` string
  - `fetchedAt` integer: Warning: Values > 2^53 may lose precision in JavaScript
  - `sourceEditedAt` integer: Warning: Values > 2^53 may lose precision in JavaScript
  - `newestContentAt` integer: Warning: Values > 2^53 may lose precision in JavaScript
  - `newestContentYear` integer
  - `degraded` boolean
  - `unavailable` boolean
  - `matched` integer
  - `truncated` boolean
  - `occurrences` WorldmonitorSafetyV1TorontoReportedOccurrence[]
    - `id` string
    - `objectId` integer: Warning: Values > 2^53 may lose precision in JavaScript
    - `eventUniqueId` string
    - `reportDate` string
    - `occurrenceDate` string
    - `division` string
    - `locationType` string
    - `premisesType` string
    - `offence` string
    - `csiCategory` string
    - `neighbourhood` string
    - `longitude` number, double
    - `latitude` number, double
    - `approximate` boolean
  - `aggregates` WorldmonitorSafetyV1TorontoAnnualAggregate[]
    - `id` string
    - `objectId` integer: Warning: Values > 2^53 may lose precision in JavaScript
    - `eventYear` integer
    - `divisionOriginal` string
    - `divisionFinal` string
    - `neighbourhood` string
    - `eventCount` number, double
    - `incidentPoint` boolean

## Other responses

- `400`: Validation error
- `401`: Missing or invalid API key.
- `403`: API access requires an active subscription (the API key's subscription is inactive or expired).
- `429`: Rate limit exceeded.
- `503`: Service unavailable. Billing-verification responses include code and X-Billing-Verification; other gateway infrastructure failures use the generic GatewayError shape.
- `default`: Gateway or handler error response.

---

[API](https://skmtc.dev/worldmonitor/apis/worldmonitor-api.md) · [All operations](https://skmtc.dev/worldmonitor/apis/worldmonitor-api/llms.txt) · [OpenAPI document](https://skmtc.dev/worldmonitor/apis/worldmonitor-api/revisions/e3dc8463a5c9?raw)
