Transport for Finland API
Overview
Digitransit is Finland's national open public transport platform, offering a GraphQL API for routing, stop information, and real-time data across Finnish cities. No API key is required, and the GraphQL interface lets you request exactly the data you need. It is a great modern API for learning GraphQL while working with real transit data.
Beginner Tip
This API uses GraphQL instead of REST — you send POST requests with a query body to the endpoint. Use the GraphQL playground at api.digitransit.fi/graphiql to explore and test queries interactively before writing code.
Available Data
Example Response
{
"route": "Line 1",
"origin": "Station A",
"destination": "Station B",
"departure": "08:30",
"arrival": "09:15",
"status": "On Time",
"delays_min": 0
} Field Reference
data.stops List of transit stops matching your query gtfsId GTFS-format unique identifier for the stop name Human-readable name of the stop lat Latitude coordinate of the stop lon Longitude coordinate of the stop Implementation Example
const url = "https://digitransit.fi/en/developers/";
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
Matrix Score Breakdown
Fully tested on Apr 5, 2026
Technical Specifications
Related Tags
Similar APIs
View All →ADS-B Exchange
⭐ Beginner's PickADS-B Exchange is a community-driven API that provides real-time and historical position data for aircraft around the world.
airportsapi
⭐ Beginner's PickThe airportsapi lets you look up airport names and official website URLs by providing an ICAO code.
AviationAPI
⚠ UnavailableAviationAPI provides programmatic access to faa aeronautical charts and publications, airport information, and airport weather via REST API.
BC Ferries
⭐ Beginner's PickThe BC Ferries API is a free, open API providing real-time sailing schedules, capacity, and current conditions for BC Ferries routes in British Columbia, Canada.
Community Transit
⭐ Beginner's PickCommunity Transit (Transitland) is a free, open API that aggregates public transit data from hundreds of agencies worldwide including routes, stops, and schedules.