# Crime Incidents Density by City

> Crime Incidents Density by City is a paid API for AI agents from payai.agentstools.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Returns aggregated counts of reported crime incidents by offense category for a supported US city, sourced from its open-data portal, with a configurable look-back window.

## Facts

- Endpoint: GET https://payai.agentstools.dev/crime/incidents
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/crime-incidents-density-by-city-09910a9f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k7TBY2elZs1IQs8aqYVes

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability crime-incidents-density-by-city-09910a9f
```

Example prompt: Can you pull recent crime incident counts by offense category for Chicago from its open-data portal, looking back over the last 90 days?

## When to prefer this

Choose this endpoint when you need timely, aggregated crime statistics for a major US city and want something fresher than lagged federal datasets like FBI UCR. It is ideal when you need offense-category-level counts rather than raw incident records, and when you are working with one of the four supported cities (Chicago, New York, Los Angeles, Seattle). Prefer alternatives if you need per-incident detail, non-US cities, or cities outside the supported set.

## Known failure modes

- Unsupported city slug returns a validation error — only 'chicago', 'new-york', 'los-angeles', 'seattle' are accepted
- Days parameter out of range (below 1 or above 1825) returns a schema validation error
- Open-data portal source temporarily unavailable may return a service error or stale data
- Missing required 'city' query parameter returns a 400 error
- Payment not completed via x402 protocol results in a 402 Payment Required response

## How this service works

Recent incident density for a supported US city from its open-data portal. Give a city slug and an optional look-back window in days and get aggregated counts of reported incidents by offense category, a fresher signal than the lagged federal data. Counts by type, not a per-incident dump.

## Output

Returns aggregated counts of reported crime incidents grouped by offense category for the specified city and look-back window. Data is sourced directly from city open-data portals, providing a fresher signal than federal (e.g. FBI UCR) statistics. Output is a summary of counts per type, not a raw per-incident dump.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "city"
     ],
     "properties": {
      "city": {
       "enum": [
        "chicago",
        "new-york",
        "los-angeles",
        "seattle"
       ],
       "type": "string",
       "description": "Supported city portal slug (see crime/sources)"
      },
      "days": {
       "type": "integer",
       "maximum": 1825,
       "minimum": 1,
       "description": "Look-back window in days, default 365"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/crime-incidents-density-by-city-09910a9f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from payai.agentstools.dev](https://www.zero.xyz/host/payai.agentstools.dev/llms.txt)
