Nycgovparks APInycgovparks.org ↗
Access NYC Parks events, park details, amenities, and youth programs via 6 endpoints. Filter by borough, category, or park ID from nycgovparks.org.
What is the Nycgovparks API?
The NYC Parks API provides 6 endpoints covering upcoming events, park details, and recreational programs from the New York City Department of Parks & Recreation. Use get_all_events to retrieve paginated event listings with title, borough, location, and description fields, or drill into a specific event with get_event_detail to get full descriptions, categories, and admission info. Park lookups and borough-filtered park lists are also available.
curl -X GET 'https://api.parse.bot/scraper/7824c9e5-dfae-47db-bad1-81503bbaf631/get_all_events?page=1' \ -H 'X-API-Key: $PARSE_API_KEY'
Typed, relational, agent-ready
A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.
- Fully typed · autocompletes
- Objects link to objects
- Typed errors & pagination
Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:
uv add parse-sdk uv run parse init uv run parse add --marketplace nycgovparks-org-api
uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.
"""Walkthrough: NYC Parks SDK — discover events, parks, and youth programs."""
from parse_apis.nyc_parks_api import NYCParks, Borough, EventCategory, NotFoundError
client = NYCParks()
# List upcoming events across all boroughs, capped at 5 items.
for event in client.eventsummaries.list(limit=5):
print(event.title, event.date_label, event.borough)
# Filter events by category using the EventCategory enum.
kids_event = client.eventsummaries.by_category(category=EventCategory.KIDS, limit=1).first()
if kids_event:
# Drill into full event detail via the summary's navigation op.
detail = kids_event.details()
print(detail.title, detail.categories, detail.location_name)
# List parks in Manhattan using the Borough enum.
for park in client.parks.list(borough_code=Borough.MANHATTAN, limit=3):
print(park.name, park.id)
# Fetch a specific park by ID and inspect amenities.
try:
central = client.parks.get(park_id="M010")
print(central.name, central.amenities[:5])
except NotFoundError as exc:
print(f"Park not found: {exc}")
# Browse youth programs.
for program in client.programs.list(limit=5):
print(program.name, program.url)
print("exercised: eventsummaries.list / eventsummaries.by_category / details / parks.list / parks.get / programs.list")
Retrieve all upcoming NYC Parks events. Returns paginated results with 50 events per page. Paginates by page number; results include title, date, location, borough, and description snippet for each event.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination. |
{
"type": "object",
"fields": {
"page": "integer indicating current page number",
"events": "array of event objects with title, url, date_label, location_text, borough, description_snippet, and optionally park_name and admission"
},
"sample": {
"data": {
"page": 1,
"events": [
{
"url": "https://www.nycgovparks.org/events/2026/06/11/summer-sports-experience-basketball1",
"title": "Summer Sports Experience: Basketball",
"borough": "Staten Island",
"date_label": "Jun 11",
"location_text": "atArts and Crafts Room(in Greenbelt Recreation Center),Staten Island",
"description_snippet": "The Summer Sports Experience program engages children in active outdoor play."
}
]
},
"status": "success"
}
}About the Nycgovparks API
Events
get_all_events returns paginated arrays of 50 events per page. Each event object includes title, url, date_label, location_text, borough, and description_snippet, with optional park_name and admission fields where present. get_kids_family_events accepts a category slug — confirmed values are kids, family, fitness, and free — and returns the same event shape plus a category echo field. Pass a full or relative URL to get_event_detail to retrieve the complete event record: park_name, categories array, full description, and location_name.
Parks
get_parks_list returns park name, url, and id for every NYC park, optionally filtered by borough_code (M, B, Q, X, or R for Staten Island). Park IDs follow a letter-plus-number convention (e.g. X034, M010) or named slugs like central-park. Pass any valid ID to get_park_details to get the park's official name, description, amenities array, and canonical url.
Programs
get_programs_for_kids returns an array of program objects — each with a name and url — covering offerings like camps, afterschool activities, fitness classes, and other recreational programming run by NYC Parks. No filter parameters are accepted; the endpoint returns the full current program listing.
The Nycgovparks API is a managed, monitored endpoint for nycgovparks.org — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when nycgovparks.org changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.
This isn't an official nycgovparks.org API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.
Will this API break when the source site changes?+
Is this an official API from the source site?+
Can I fix or extend this API myself if I need a new endpoint or field?+
What happens if I call an endpoint that has an issue?+
- Build a weekend event finder that filters NYC Parks events by borough and category slug
- Display park amenities on a neighborhood guide using get_park_details with a known park ID
- Aggregate all free or family-friendly events using the 'free' and 'family' category slugs in get_kids_family_events
- Populate a directory of NYC youth programs using the name and url fields from get_programs_for_kids
- List all parks in a specific borough by passing a borough_code to get_parks_list
- Show full event details including categories and admission info on an event calendar app using get_event_detail
- Cross-reference park IDs from get_parks_list with amenity data from get_park_details to map accessible or featured parks
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 100 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.