Apimetro

Mexico City transit geodata: metro lines, stations and GeoJSON

🚆 TransportHEALTHYchecked 12h ago
AUTH NONECORS ✓AGENT ✓HTTPS ✓COMMERCIAL ?

Apimetro maps Mexico City's public transport, Metro, Metrobús, Cablebús, RTP and more, into structured geospatial JSON. Keyless endpoints return lines, stations, ridership analytics and GeoJSON geometry, using Spanish field names. All routes hang off the /movilidad base path.

94HOW IT'S SCORED ⓘ
Status badge · for your READMEshipapis health badge: 94 · healthy
Uptime history
99.44%90 days
100%30 days
368P50 · ms
2869P95 · ms
operationalpartialdownno data
Response time · last 48 checks
Fastest 48 ms, slowest 1111 ms, most recent 369 ms.
Live response samplecaptured by our last successful check
GET https://apimetro.dev/movilidad/metro/linea

{
  "linea_id": 301,
  "route_gtfs": "B_CMX020L12",
  "nombre": "Metro Línea L12",
  "num_comercial": "L12",
  "sistema": "METRO",
  "color_esp": "B99E51",
  "tam_km": 24.0285920400801,
  "existe": true
}
Call itcurl · fetch · python
curl "https://apimetro.dev/movilidad/metro/linea"
const res = await fetch("https://apimetro.dev/movilidad/metro/linea");
const data = await res.json();
console.log(data);
import requests

res = requests.get("https://apimetro.dev/movilidad/metro/linea")
print(res.json())
Endpoints · 5HealthyFULL DOCS ↗
Monitored path responding — GET /metro/linea368 mschecked 12h ago
GET/metro/lineaPROBED

Mexico City transit geodata: metro lines, stations and GeoJSON

GET/metro

Metro — documented GET route.

GET/metro/1

Metro details by ID (example: 1).

GET/metro?limit=10

Metro — documented GET route.

GET/metro/search?q=test

Search by query parameters.

Machine-readable spec

We probe a documented GET and expect 2xx JSON — full uptime and health score. Export includes every documented route below.

Response-shape history

Stable. No schema drift observed since monitoring began — the response shape has not changed under our checks.

Apimetro: common questions

Is Apimetro free to use?

Yes — Apimetro is a free transport API. Free tier: Free — no key. Whether the free tier allows commercial use is unclear — check the provider docs.

Does Apimetro need an API key?

No — Apimetro needs no API key or signup. You can call it straight away; rate limits still apply (Unpublished).

Can I call Apimetro from the browser?

Yes — Apimetro returns CORS headers over HTTPS, so front-end code can fetch it directly with no backend proxy. Use the fetch snippet on this page, or hit "Run live" to try it now.

Is Apimetro up right now?

As of our last scheduled check, Apimetro is healthy with 99.44% uptime over 90 days and a 368 ms median response. We re-probe it every sweep — the status badge and uptime chart above always show the latest.