API Bouncer

Buy me a coffee

Apimetro

Geospatial data for Mexico City public transport system (Metro, Metrobús, Cablebús, RTP, etc.)

TransportationAuth: NoneHTTPS: YesCORS: yesStatus: unknown

Getting Started

This API requires no authentication — you can start making requests immediately with no sign-up or API key needed.

  1. Find the endpoint — Check the API's documentation for available endpoints and what data they return.
  2. Make a request — Use fetch() in JavaScript, curl in your terminal, or any HTTP client to call the API.
  3. Use the data — The API will return data (usually JSON) that you can parse and use in your application.

No-auth APIs are the easiest to get started with — perfect for learning, prototyping, and building side projects.

CORS Support

This API supports CORS (Cross-Origin Resource Sharing), meaning you can call it directly from browser-based JavaScript applications without running into cross-origin errors.

Quick Example

// Using cURL curl https://apimetro.dev/swagger/index.html
// Using JavaScript fetch() const response = await fetch(apiUrl); const data = await response.json();

About Apimetro

Apimetro is a free, no-authentication API in the Transportation category. You can start using it immediately without creating an account or obtaining an API key — just send an HTTP request and receive data back. This API supports HTTPS for secure connections and supports CORS, making it suitable for direct browser-based requests.

What You Can Build With Apimetro

Apimetro fits naturally into projects that touch the Transportation space. Here are a few directions developers commonly take when working with APIs in this category — any of them could be a fit depending on the specific endpoints Apimetro exposes:

  • Public transit planners — pull data from Apimetro, transform it into a UI-friendly shape, and surface it to users in a dashboard, mobile app, or browser extension.
  • Flight tracking apps — pull data from Apimetro, transform it into a UI-friendly shape, and surface it to users in a dashboard, mobile app, or browser extension.
  • Traffic and commute monitors — pull data from Apimetro, transform it into a UI-friendly shape, and surface it to users in a dashboard, mobile app, or browser extension.
  • Ride-sharing integrations — pull data from Apimetro, transform it into a UI-friendly shape, and surface it to users in a dashboard, mobile app, or browser extension.

If a specific use case isn't listed, scroll back to the code examples above and adapt the request shape to match the endpoint you need. Most Transportation APIs follow similar request/response patterns, so the snippet that works for one endpoint usually works for the rest with small tweaks.

Integrating Apimetro Step by Step

1. Skim the documentation first. Open the link above and look for two things: the base URL pattern and a list of available endpoints. Knowing both up front saves you from guessing parameter names or formats. Most providers also publish example responses next to each endpoint — copy one into your editor as a reference for the JSON shape your code will be parsing.

2. No authentication needed. Apimetro is one of the no-auth APIs in our directory, which means you can skip account creation entirely. Just point a request at the endpoint and you'll get data back. This makes it ideal for prototypes, learning exercises, and demos where you want to see something working in under a minute.

3. Make a request from the command line. Before wiring an API into your application, send a single request with curl or your HTTP client of choice. Confirm that the response shape matches what the docs promised. If it doesn't, your application code would have hit the same surprise — better to find out now while you only have one terminal window to debug.

4. Wire it into your code. Once a manual request works, copy that request into your application as a function. Add error handling: APIs return 4xx and 5xx codes for client and server errors respectively, and your code needs to behave reasonably when one comes back. Our error-handling guide covers the patterns that make this less painful.

5. Calling from the browser is fine. Apimetro supports CORS, so a frontend-only project can hit it directly with fetch(). Watch out for two gotchas: never embed an API key in client-side code (anyone can read it from devtools), and remember that browser requests count against the same rate limit as server requests.

Common Issues and How to Fix Them

  • Unexpected 404 or 400 response: with no-auth APIs, errors usually point at malformed URLs or missing query parameters. Compare the request you're sending byte-for-byte against the example in the docs.
  • "CORS policy" error in the browser: Apimetro is listed as supporting CORS, but headers can change. If you hit a CORS error, double-check that you're sending only allowed headers (no custom X- headers unless documented) and that you're not setting credentials: 'include' unnecessarily.
  • Status unknown: we haven't recently verified Apimetro. Send a test request before building anything substantial on it.
  • Rate limiting (429 Too Many Requests): if you start seeing 429s, you've crossed the API's per-minute or per-day quota. Add exponential backoff with retries, cache responses where possible, and consider whether a paid tier or alternative API is warranted. Our rate limit guide covers this in depth.
  • Inconsistent response shape: if Apimetro's response sometimes includes a field and sometimes doesn't, that's normal — APIs often omit null values. Defensive code that checks for property existence before reading it survives schema changes far better than code that assumes everything is always present.

Apimetro in the Transportation Ecosystem

Transportation APIs provide public transit schedules, ride-sharing data, flight information, and traffic conditions. Build travel planners, commute trackers, or mobility platforms.

Apimetro is one of dozens of free Transportation APIs we've catalogued. Some are nearly interchangeable; others have distinct strengths and weaknesses that only become clear when you read their docs side-by-side. If Apimetro doesn't quite fit your project, the Transportation category page lists every alternative we know about, with auth and CORS columns so you can compare at a glance.

When evaluating Transportation APIs, the criteria that matter most are typically: rate limits on the free tier, freshness of the underlying data, regional coverage (does it work for your users' geography?), and how active the provider's maintenance schedule is. APIs that haven't been updated in years tend to drift out of sync with the underlying data sources, even if they technically still respond.

Frequently Asked Questions

What kind of data does Apimetro return?

Apimetro is an API in the Transportation category. The specific data it returns depends on its endpoints — this could include structured records, search results, media files, or computed values. Visit the official documentation for a complete list of endpoints and response schemas.

What can I build with Apimetro?

As a Transportation API, Apimetro can be integrated into web apps, mobile apps, browser extensions, chatbots, data dashboards, or backend services. Common use cases include displaying live data on a website, automating data collection, building comparison tools, or enriching your own database with external information.

Are there similar APIs to Apimetro?

Yes — browse our Transportation category to see all available APIs in the same space. Using multiple APIs can help with redundancy (if one goes down) and provide richer data by combining different sources.

Is Apimetro free to use?

Yes, Apimetro is listed as a free public API. It requires no sign-up or API key — you can start making requests immediately. Some APIs have rate limits on their free tier, so check the official documentation for current limits.

Is Apimetro still working in 2026?

We have not recently verified the status of Apimetro. Try visiting the API URL directly or making a test request to check if it is currently online.