City, New York Open Data API
Overview
City, New York Open Data is one of the largest municipal open data portals in the world, offering thousands of free datasets on topics like 311 complaints, restaurant inspections, traffic, and public safety. No API key is required to get started. It uses the Socrata Open Data API (SODA), making it straightforward to query with standard HTTP.
Beginner Tip
Use the Socrata SODA API with and parameters to filter large NYC datasets—for example, add ?=10 to get just a few rows while testing.
Available Data
The kind of data this API exposes, based on its documentation. We could not call the endpoint to confirm the exact field names.
Example Response
Illustrative shape only — we were not able to call this endpoint (it requires credentials or exposes no public sample URL), so the fields below show the kind of data this API returns rather than a recorded response.
{
"status": "success",
"data": {
"result": "Data from City, New York Open Data",
"description": "New York (US) City Open Data",
"timestamp": "2025-01-15T10:00:00Z"
}
} Field Reference
unique_key Unique identifier for each record in the dataset. created_date ISO 8601 timestamp of when the record was created. complaint_type Category of the 311 complaint or service request. status Current status of the request (e.g., Open, Closed). borough New York City borough where the issue was reported. Implementation Example
Calls a real endpoint of this API. Replace any placeholder credentials with your own key.
const url = "https://data.cityofnewyork.us/resource/erm2-nwe9.json?=5";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data); What Can You Build?
Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.
Common Errors & Troubleshooting
Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.
Metadata Score Breakdown
Estimated from metadata — endpoint not independently tested
Metadata estimate · endpoint not independently tested
Technical Specifications
Related Tags
Similar APIs
View All →Bank Negara Malaysia Open Data
⭐ Beginner's PickBank Negara Malaysia Open Data provides free access to official financial data published by Malaysia's central bank, including exchange rates, interest rates, and key economic indicators.
BCLaws
BCLaws gives you free access to the full text of British Columbia's laws and regulations.
Brazil
⭐ Beginner's PickBrasilAPI is a free, community-driven API that centralizes public data about Brazil in one easy-to-use place.
Brazil Central Bank Open Data
The Brazil Central Bank Open Data API provides free access to official financial and economic data from Brazil s central bank (Banco Central do Brasil).
Brazil Receita WS
Brazil Receita WS lets you look up official information about Brazilian companies using their CNPJ (tax registration number).