EcoBici CDMX Trip Data Scraper avatar

EcoBici CDMX Trip Data Scraper

Pricing

Pay per event

Go to Apify Store
EcoBici CDMX Trip Data Scraper

EcoBici CDMX Trip Data Scraper

Scrapes historical trip CSVs (back to 2010) and live GBFS station feeds from EcoBici — CDMX's Lyft-operated bike-share with 480+ stations and 10M+ trips per year.

Pricing

Pay per event

Rating

0.0

(0)

Developer

BowTiedRaccoon

BowTiedRaccoon

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

4 days ago

Last modified

Categories

Share

Extract historical trip records and live station data from EcoBici — Mexico City's Lyft-operated public bike-share network with 480+ stations and over 10 million trips per year.

What this actor does

  • Downloads and stream-parses historical monthly trip CSVs going back to 2010 (97 MB+ per monthly file)
  • Fetches live GBFS station data — station names, coordinates, dock capacity, and real-time service status
  • Enriches trip records with origin and destination station details (lat/lng, capacity, operational status)
  • Respects memory constraints via streaming CSV parsing — files are never buffered in full

Input

FieldTypeDefaultDescription
modestringbothWhat to fetch: trips (historical CSVs), stations (live GBFS), or both
yearFromintegercurrent yearEarliest year to include in historical trip data
yearTointegercurrent yearLatest year to include in historical trip data
maxItemsintegerunlimitedCap on total output records

Output

Each record contains:

FieldDescription
trip_idRow-level identifier (YYYY-MM-<index>)
bike_idBike identifier from the source CSV
user_genderRider gender (M/F)
user_ageRider age in years
origin_station_idNumeric station ID (origin)
destination_station_idNumeric station ID (destination)
origin_station_nameStation name from GBFS
destination_station_nameStation name from GBFS
origin_lat / origin_lngStation coordinates
destination_lat / destination_lngStation coordinates
depart_atDeparture datetime (ISO 8601)
arrive_atArrival datetime (ISO 8601)
duration_secondsTrip duration in seconds
trip_typedocked (standard docked bike)
monthSource month (YYYY-MM)
yearSource year
source_csv_urlURL of the CSV file
station_capacityTotal dock slots at origin station
station_statusIN_SERVICE or NOT_IN_SERVICE
source_urlEcoBici open data page URL
scraped_atISO 8601 scrape timestamp

Use cases

  • Urban mobility research and transportation policy analysis
  • Last-mile connectivity studies (Roma, Condesa, Polanco, Centro Historico)
  • Station-level demand forecasting and rebalancing optimization
  • Academic research on bike-share systems in Latin America
  • Housing density and real estate proximity signals

Notes

  • Monthly CSV files for recent years are approximately 97 MB each. Runs that request multiple years will take proportionally longer.
  • Station enrichment relies on the live GBFS feed at the time of each run. Decommissioned stations may not appear in the GBFS but will still appear in historical CSVs.
  • The actor uses streaming CSV parsing with no in-memory buffering — memory usage stays well below 1 GB even for large historical downloads.