Query City Public Data
query_city_dataFetch recent crime or 311 data for a chosen US city, returning category breakdowns and sample records for analysis.
Instructions
Query publicly available data for a US city by category. US only (Socrata open data portals).
Supported cities: NYC, Chicago, San Francisco, Los Angeles, Seattle Supported categories: crime, 311
Returns recent data with category breakdown and sample records.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| city | Yes | City name or abbreviation (e.g., 'NYC', 'Chicago', 'SF', 'LA', 'Seattle') | |
| limit | No | Maximum number of records to fetch (default 50) | |
| category | Yes | Data category to query | |
| daysBack | No | How many days of recent data to include (default 30) |