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
Example 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
const url = "https://opendata.cityofnewyork.us/";
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
Matrix Score Breakdown
Fully tested on Apr 5, 2026
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).