CSV
The csv files for the date YYYY-MM-DD can be downloaded at the url:
https://subwaydata.nyc/data/subwaydatanyc_YYYY-MM-DD_csv.tar.xz
For example, the data for 2023-09-15 is at
https://subwaydata.nyc/data/subwaydatanyc_2023-09-15_csv.tar.xz
Note that month and day numbers always have two digits.
To download all csv data for September 2023, you can run a Python script like this:
import requests for i in range(1, 30): file_name = f"subwaydatanyc_2023-09-{i:02}_csv.tar.xz" url = f"https://subwaydata.nyc/data/{file_name}" response = requests.get(url) with open(file_name, "wb") as f: f.write(response.content)