NYCTrip Data

API Reference

All endpoints return JSON with Cache-Control headers. CORS is enabled for all origins. Base URL: https://nyctripdata.com

GET/api/v1/stats

Overall platform statistics (dataset count, total records, latest month)

GET/api/v1/datasets

List all available datasets with metadata

GET/api/v1/taxi/zones

Taxi zone-level monthly statistics

Query Parameters

typeTaxi type: yellow, green, fhvhv
monthYear-month filter: YYYY-MM
GET/api/v1/taxi/hourly

Hourly taxi demand patterns

Query Parameters

typeTaxi type
monthYear-month
GET/api/v1/taxi/borough

Taxi trips aggregated by borough

Query Parameters

typeTaxi type
monthYear-month
GET/api/v1/subway/stations

Subway station monthly ridership

Query Parameters

monthYear-month
GET/api/v1/subway/hourly

Hourly subway ridership patterns

Query Parameters

monthYear-month
dayTypeweekday or weekend
GET/api/v1/citibike/stations

Citi Bike station monthly activity

Query Parameters

monthYear-month
GET/api/v1/citibike/hourly

Hourly Citi Bike usage patterns

Query Parameters

monthYear-month
memberTypemember or casual
GET/api/v1/air/monthly

Monthly airport operations

Query Parameters

airportAirport code: JFK, LGA, EWR
monthYear-month
GET/api/v1/weather/daily

Daily weather observations

Query Parameters

stationWeather station ID
fromStart date: YYYY-MM-DD
toEnd date: YYYY-MM-DD
GET/api/v1/weather/monthly

Monthly weather summaries

Query Parameters

stationWeather station ID
monthYear-month
GET/api/v1/geo/zones

Taxi zone boundaries (GeoJSON)

GET/api/v1/geo/subway-stations

Subway station locations (GeoJSON)

GET/api/v1/geo/citibike-stations

Citi Bike station locations (GeoJSON)

GET/api/v1/download/:filename

Download raw parquet file from R2

Query Parameters

filenameParquet filename (URL param)