Metro Lisboa API

Free to Use Varies (check documentation)

Overview

Metro Lisboa API provides real-time delay information for Lisbon subway lines. It requires no authentication, making it a great starting point for transit app development. Simply call the endpoint and parse the JSON response to display current line statuses.

💡

Beginner Tip

The endpoint returns JSON with line status data — no API key needed. Parse the response and check each line object for delay information.

Available Data

Use case: Integrate delays in subway lines data into web and mobile applications
Metro Lisboa data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "route": "Line 1",
  "origin": "Station A",
  "destination": "Station B",
  "departure": "08:30",
  "arrival": "09:15",
  "status": "On Time",
  "delays_min": 0
}

Field Reference

linha Name or code of the subway line (e.g., "amarela", "azul")
estado Current operational status of the line (e.g., "normal", "perturbado")
descricao Human-readable description of any delays or disruptions on the line

Implementation Example

const url = "http://app.metrolisboa.pt/status/";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

Empty or unexpected response The server may be temporarily unavailable or returning HTML instead of JSON
Check the response Content-Type header and add error handling for non-JSON responses
Connection timeout HTTP (not HTTPS) endpoint may be blocked by some networks or browsers
If using in a browser, note that mixed-content policies may block HTTP requests from HTTPS pages; consider a server-side proxy
CORS error in browser The server may not send CORS headers for browser-based requests
Make requests server-side (Node.js, Python) rather than directly from the browser

Matrix Score Breakdown

🌐 Reachability 15/30
⚡ Speed 15/20
🔒 Security 5/15
🛠 Developer XP 12/20
✓ Reliability 7/15
Response Time 357ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS NO
CORS NO
Category Transportation
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →