# SF Open Data Police Incident Reports

> SF Open Data Police Incident Reports is a paid API for AI agents from api.companyrecords-api.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-24).

Returns San Francisco police incident reports from the city's open data portal (data.sf.gov), including date, category, description, resolution, and police district, sorted newest first.

## Facts

- Endpoint: GET https://api.companyrecords-api.workers.dev/api/gov/sf-open-data?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-24
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sf-open-data-police-incident-reports-7e4c1a03
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_tL-TtIvu5Esgd-tE3ci0q

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 sf-open-data-police-incident-reports-7e4c1a03
```

Example prompt: Pull the 10 most recent San Francisco police incident reports from the open data portal — filter them to the Lost Property category so I can see what's being filed.

## When to prefer this

Choose this endpoint when you need structured, near-real-time San Francisco police incident data sourced directly from the official city open data portal. It is the right choice for monitoring SF-specific public safety trends, filtering incidents by category, or building dashboards around SF crime reports. It is not suitable for other cities, aggregated national crime data, or verified criminal records.

## Known failure modes

- Invalid or unrecognized category string returns empty reports array
- Limit outside 1–20 range may be clamped or return an error
- data.sf.gov upstream unavailability results in a fetch error
- Stale or delayed data if the city portal hasn't updated recently
- Reports reflect as-filed status only — resolutions may not reflect final outcomes

## How this service works

San Francisco police incident reports from the city open data portal (data.sf.gov, dataset wg3w-h783): date and time, category, subcategory, description, resolution and police district. Newest reports first; reports as filed, not verified outcomes.

## Output

A JSON object containing the data.sf.gov source URL, the timestamp of the check, the filtered category (if any), and an array of incident report objects each with: incident number, datetime, category, subcategory, description, resolution status, and police district.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "limit": {
       "type": "string",
       "description": "Reports to return, 1 to 20 (default 5)"
      },
      "category": {
       "type": "string",
       "description": "Optional incident category, exact text, e.g. Lost Property"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "source": "https://data.sf.gov/resource/wg3w-h783.json",
  "reports": [
   {
    "category": "Lost Property",
    "datetime": "2026-10-21T17:00:00.000",
    "resolution": "Open or Active",
    "description": "Lost Property",
    "subcategory": "Lost Property",
    "incidentNumber": "260622666",
    "policeDistrict": "Central"
   },
   {
    "category": "Lost Property",
    "datetime": "2026-10-20T20:00:00.000",
    "resolution": "Open or Active",
    "description": "Lost Property",
    "subcategory": "Lost Property",
    "incidentNumber": "260622600",
    "policeDistrict": "Mission"
   }
  ],
  "category": "Lost Property",
  "checkedAt": "2026-10-23T09:37:14.549Z"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sf-open-data-police-incident-reports-7e4c1a03/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.companyrecords-api.workers.dev](https://www.zero.xyz/host/api.companyrecords-api.workers.dev/llms.txt)
