API catalogue
Open APIs
- Emissions CalculatorThis API from Entur calculates the CO2e emission of a trip for different transport modes. You can read more about the basis for the calculations at [miljokalkulator.entur.no/about](https://miljokalkulator.entur.no/about). For most transport modes, the SINTEF Multi-modal Energy and Emissions Calculation model ([SMEC](https://energimodul.sintef.no/)), also called the SINTEF energy module, calculates the emission. It uses the route and a typical vehicle for the transport mode. The emission includes the full lifecycle of the vehicle: production of the fuel or energy, manufacture, maintenance and tailpipe emission. For bike, electrical bike and electrical scooter, the API uses a fixed emission factor for each passenger kilometre. SINTEF supplies these factors. The API keeps each answer from the SINTEF energy module for up to 12 hours. A change in the SINTEF model can therefore take up to 12 hours to show, and during that time two equal requests can give different values. ## Limitations The emissions are estimates. SMEC calculates them for a typical vehicle from SINTEF, not for the vehicle that actually runs. The API chooses which typical vehicle to use. For train, the line decides if the vehicle is a diesel or an electric train. For tram, the city decides the vehicle. For train, plane, bus, metro, tram and ferry, the API divides the emission of the vehicle by the number of passengers the vehicle can carry, not by the actual number of passengers. ## Terms of use Anyone can use the API. The results are published under the [Norwegian Licence for Open Government Data (NLOD)](https://data.norge.no/nlod/en/2.0). You can use them for any purpose, including commercial use. NLOD requires that you credit Entur, see [Attribution for open data](https://developer.entur.no/terms-of-service#attribution-for-open-data). The default attribution text is: *Inneholder data under Norsk lisens for offentlige data (NLOD) tilgjengeliggjort av Entur AS.* ## Client identification Send the header `ET-Client-Name` in all requests. Use the format `<party>-<application>`, for example `mycompany-travelplanner`. If a client does not send the header, Entur can apply a stricter rate limit to it or block it. ## Rate limits Each client has a limit for the number of requests each minute and for the highest rate. The API identifies the client from `ET-Client-Name`. A client without the header, or with a name that Entur has not agreed a limit for, can send 60 requests each minute and 5 requests each second. Without the header, the limit applies to each IP address. If a client is over its limit, the API answers with status 429. Wait the number of seconds in the `Retry-After` header before you send more requests. Contact Entur if your client needs a higher limit. ## Correlation ID Each response has the header `X-Correlation-Id`. You can send your own value in this header. Use only letters, digits and the characters `.`, `_`, `:` and `-`, with a maximum of 128 characters. Otherwise the API makes a new value. An error response also gives the correlation ID in `instance`. Give this value when you contact Entur about a request.
- GeocoderGeocoding and reverse geocoding for Norwegian addresses and points of interest.
- Journey PlannerThis API is the core service for journey planning and uses OpenTripPlanner software to provide departure boards for individual stops, and point-to-point journey planning for all public transport in Norway, including real-time information, regardless of transport mode, or operator. All data is presented as a Transmodel-based GraphQL-API. **Query URL** (HTTP POST): <code>https://api.entur.io/journey-planner/v3/graphql</code> All queries must include the header <code>ET-Client-Name</code>. [Read more.](/docs/getting-started#client-identification-et-client-name) [Go to interactive GraphQL explorer](https://api.entur.io/graphql-explorer/journey-planner-v3)
- MobilityThe Mobility API is an aggregation service for shared mobility data in Norway. It provides access to real-time information about shared bikes, e-scooters, and other mobility services from multiple operators across Norwegian cities. **Query URL** (HTTP POST): <code>https://api.entur.io/mobility/v2/graphql</code> All queries must include the header <code>ET-Client-Name</code>. [Read more.](/docs/getting-started#client-identification-et-client-name) [Go to interactive GraphQL explorer](https://api.entur.io/graphql-explorer/mobility)
- Journey Planner MCPJourney Planner MCP is a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server in front of Entur's public travel APIs: the [Journey Planner](https://developer.entur.org/pages-journeyplanner-journeyplanner) (OpenTripPlanner transmodel GraphQL), the Geocoder and the Mobility API. Connect it to an MCP-capable AI client (Claude, ChatGPT, GitHub Copilot, Cursor, …) and the assistant can plan trips, show live departure boards, find stops and rental vehicles near a place, and report service disruptions across Norway. ### Connecting Point your MCP client at `https://api.entur.io/journey-planner-mcp/v1/mcp`. The endpoint is public and needs no authentication. It serves Entur's open travel data only, holds no user data, and reads nothing on the caller's behalf. ### Interactive UIs (MCP Apps) `trip`, `departures`, `nearby-stops` and `nearby-mobility` are [MCP Apps](https://modelcontextprotocol.io/docs/extensions/apps) tools: each names a `ui://` HTML resource in `_meta.ui.resourceUri` (a trip map, a departure board, a nearby-stops map and a shared-mobility map). Hosts that support MCP Apps render it in a sandboxed iframe; other hosts simply show the tool's text result. The UIs call two app-only tools, `poll-departures` and `poll-trip`, to refresh a departure board or re-plan a trip. Their `_meta.ui.visibility` is `["app"]`, so hosts do not offer them to the model. The apps load no third-party script: their libraries (Leaflet and the MCP Apps SDK) are inlined into the HTML. Each resource declares a content-security policy in `_meta.ui.csp` that admits only OpenStreetMap tiles and the Entur API hosts (plus their WebSocket endpoints for live vehicle positions on the trip map). ### Tool results The UI tools return a slim JSON document as `content[0].text` for the model and carry the fields only the UI needs (geometry, styling data and the like) under `_meta["org.entur/ui"]`, so they do not consume the model's context. A UI degrades gracefully when a host strips `_meta`. `geocode` and `alerts` return plain JSON text. `trip`, `departures`, `nearby-stops` and `nearby-mobility` take a required `language` parameter (`en`, `nb` or `nn`; anything else falls back to `en`), which the model detects from the conversation and which sets the UI language. An empty `trip` result carries a top-level `noTripsFound` advisory: the query was valid and repeating it will not help. When a search with a `departureTime` finds nothing, the server asks once more with a day-long search window and reports the next available `nextDepartureTime`. Tool errors are returned as a JSON error document in the tool result (`error`, `message`, `type`, `details`), never as internal stack traces. See the [opentripplanner-mcp repository](https://github.com/entur/opentripplanner-mcp) for the source, configuration and local development.
- Distances and zonesCalculates distances between Stop Places
- Stop Place RegisterThe Stop Place Register provides access to public transportation infrastructure data across Norway, including stop places, quays, parkings, and related NeTEx entities. This API enables developers to query stop place information with details on location, accessibility features, transport modes, fare zones, and hierarchical relationships. Ideal for journey planning applications, transportation analysis, mobility services, and public transit integrations.
- Timetable Import InfoAPI for checking the status of timetable data imports. The endpoint returns the date of the latest successful import of timetable data into Entur's systems for each data provider. Data providers are identified by their [codespaces](https://enturas.atlassian.net/wiki/spaces/PUBLIC/pages/637370434/List+of+current+Codespaces) This import date is also displayed in the list of NeTEx files available on Entur Open Data Portal. Additionally, the import date is stored in each NeTEx archive available on this page, in the "created" timestamp of the CompositeFrame. For example: created="2019-05-29T12:59:32.202" The date returned by this service is the original import date, i.e. the date Entur received the source dataset from the data provider. It may be different from the creation date of the archives listed on open data page, since these archives are regenerated every day through a filtering process that removes obsolete data. ## Authentication This API is open under NLOD licence, however, it is required that all consumers identify themselves by using the header ET-Client-Name. Entur will deploy strict rate-limiting policies on API-consumers who do not identify with a header and reserves the right to block unidentified consumers. The structure of ET-Client-Name should be: "company-application" *Header examples:* - "brakar-journeyplanner" - "fosen_utvikling-departureboard" - "nor_way_bussekspress-nwy-app"
- Transit DataThe Transit Data API gives read access to Norwegian public transport data from NeTEx, such as lines, stop places, quays, service journeys, operators, and authorities. It is available as a GraphQL API and as an MCP server for AI assistants. The API is in beta. **Query URL** (HTTP POST): <code>https://api.entur.io/transit-data/v1beta/graphql</code> All queries must include the header <code>ET-Client-Name</code>. [Read more.](/docs/getting-started#client-identification-et-client-name)
- Transit Data MCPTransit Data MCP is a [Model Context Protocol](https://modelcontextprotocol.io) (MCP) server over Entur's NeTEx-derived transit reference data. Connect it to an MCP-capable AI client and the assistant can look up lines, service journeys, the quays they call at, stop places, operators and authorities, and page through any of them. ### Connecting Point your MCP client at `https://api.entur.io/transit-data/v1beta/mcp`. The endpoint is public and needs no authentication. Identify your client with the `ET-Client-Name` header, in the form `<company>-<application>` (lowercase, no spaces); see [Client identification](https://developer.entur.org/docs/getting-started#client-identification-et-client-name). ### Tools Each kind of entity has a read-only tool that looks up one entity by identifier (`serviceJourney`, `quay`, `line`, ...) and one that pages through them (`serviceJourneys`, `quays`, `lines`, ...). Experimental data (real-time departures, geo-queries, `activeDates`) is not offered as tools and is rejected if requested through `fields`. A tool takes its own arguments, plus an optional `fields`: - `fields` is a GraphQL selection set for the entity the tool returns, such as `id line { id name }`. Without it, a tool returns the entity's scalar and enum fields. Each tool's `fields` description lists what can be selected on that entity, one level deep. - A tool that returns a page (`quays`, `lines`, ...) takes `first` and `after`. The result has the entities under `nodes` (under `edges { node }` for `datedServiceJourneys`) and a `pageInfo` with `hasNextPage` and `endCursor`; pass `endCursor` as `after` for the next page. For these tools `fields` describes one entity, not the page. ### Tool results A tool result carries the GraphQL response as JSON text in `content[0].text`: `{"data": ...}` on success. When the call did not do what it asked for (a missing required argument, an unknown or experimental field, an invalid `fields`), the result has `isError: true` and the text is `{"errors": [...]}` or a plain message. An unknown tool name is reported the same way, not as a JSON-RPC error. ### Transport The server speaks Streamable HTTP in stateless mode, so any replica can answer any request. See the `/mcp` operation for the details and the status codes.
- Vehicle PositionsThe Vehicle Positions API is a GraphQL service that provides real-time positions and status for public transport vehicles across Norway. It enables fetching and streaming live vehicle data including location, delays, occupancy, and journey information. **Query URL** (HTTP POST): <code>https://api.entur.io/realtime/v2/vehicles/graphql</code> All queries must include the header <code>ET-Client-Name</code>. [Read more.](/docs/getting-started#client-identification-et-client-name) **Subscription URL** (Websockets): <code>wss://api.entur.io/realtime/v2/vehicles/subscriptions</code> [Go to interactive GraphQL explorer](https://api.entur.io/graphql-explorer/vehicles-v2)
Last modified on
Did you find what you were looking for?