Skip to content
Docs

Download a small table as one Parquet file

The whole of a small table in a single Parquet file.

GET https://data.transitlab.nyc/v1/{table}.parquet No key

The catalog lists the same URL in the table’s files. Supports HTTP Range requests, so a client such as DuckDB can read only the parts it needs.

curl https://data.transitlab.nyc/v1/subway_slow_zones.parquet \
-o subway_slow_zones.parquet
import requests
r = requests.get(
"https://data.transitlab.nyc/v1/subway_slow_zones.parquet",
stream=True,
timeout=60,
)
r.raise_for_status()
with open("subway_slow_zones.parquet", "wb") as f:
for chunk in r.iter_content(1 << 20):
f.write(chunk)
const res = await fetch("https://data.transitlab.nyc/v1/subway_slow_zones.parquet")
if (!res.ok) throw new Error(`HTTP ${res.status}`)
const bytes = new Uint8Array(await res.arrayBuffer())

No key needed.

  • table string path required

    Table name. One of subway_slow_zones, subway_slow_zones_weekly, bus_route_speeds, bus_lanes, bus_lane_streets, subway_trains_delayed, subway_terminal_on_time, subway_wait_assessment, mta_daily_ridership.

The Parquet file.

Headers:

  • Accept-Ranges string

  • ETag string

Body:

  • application/vnd.apache.parquet: The file.
  • application/octet-stream: The file.
StatusWhen
404Not found. No such table.