# Crime Incident Density by US City

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

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

## Facts

- Endpoint: GET https://api.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-incident-density-by-us-city-378a13c7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_qb981onhZc4duH2BQ405t

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-incident-density-by-us-city-378a13c7
```

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

## When to prefer this

Use this endpoint when you need fresher, more timely crime statistics than lagged federal datasets (e.g. FBI UCR), specifically for aggregated offense-category counts in Chicago, New York, Los Angeles, or Seattle. Ideal for city-level safety analysis, neighborhood risk assessments, or trend monitoring over a custom time window without needing to process raw incident-level data.

## Known failure modes

- Unsupported city slug returns an error — only 'chicago', 'new-york', 'los-angeles', 'seattle' are valid
- days parameter out of range (must be 1–1825) returns a validation error
- City open-data portal temporarily unavailable or data not refreshed may return stale or error response
- Missing required 'city' query parameter returns a 400 bad request
- x402 payment failure if wallet lacks sufficient USDC balance

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

A JSON object containing aggregated counts of reported incidents grouped by offense/crime category for the specified city, covering the requested look-back window. This is a summary count per type, not a raw per-incident dump, sourced from the city's open-data portal.

## 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-incident-density-by-us-city-378a13c7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentstools.dev](https://www.zero.xyz/host/api.agentstools.dev/llms.txt)
