# Norway Transit Departures

> Norway Transit Departures is a paid API for AI agents from nordata.hihat.workers.dev, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-28).

Returns real-time public transport departures for any Norwegian stop or station, including line, destination, scheduled/expected times, delay, and platform.

## Facts

- Endpoint: GET https://nordata.hihat.workers.dev/avganger?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/norway-transit-departures-4897658f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_v3sfcKq_hIpb85vZ3PERT

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability norway-transit-departures-4897658f
```

Example prompt: What are the next 10 departures from Nationaltheatret station in Oslo right now — show me the line, destination, expected time, and any delays?

## When to prefer this

Use this endpoint when you need live or near-live departure times for a specific stop or station anywhere in Norway, covering all public transport modes (bus, tram, metro, train, ferry). It is simpler and faster than the Norway Journey Planner sibling endpoint when you only need departures from a known stop rather than a full door-to-door route. Prefer it for departure board displays, delay checking, and 'next vehicle' queries.

## Known failure modes

- Stop name not found or ambiguous — returns empty departures array or error
- No departures within the next query window — empty avganger array
- Entur API temporarily unavailable — upstream error propagated
- Invalid antall value (outside 1-30 range) — may return default or error
- Norwegian stop names with special characters (æ, ø, å) may need proper encoding

## How this service works

Real-time public transport departures for any stop or station in Norway from Entur, the national travel data hub. Give a stop name and get the next departures with line number, transport mode, destination, scheduled and expected time, delay in minutes, platform and whether real-time data is available. Covers trains, buses, trams, metro and ferries nationwide. Use it for travel planning and live departure boards. Compact JSON.

## Output

A compact JSON object containing the matched stop ID and name, a timestamp of when data was fetched, the data source (Entur), and an array of departure objects each with: line identifier, transport mode (bus/tram/metro/train/ferry), destination, scheduled departure time, expected departure time, delay in minutes, platform, and a boolean indicating whether real-time tracking data is available.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input",
  "output"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method",
    "queryParams"
   ],
   "properties": {
    "type": {
     "const": "http"
    },
    "method": {
     "const": "GET"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "stopp",
      "antall"
     ],
     "properties": {
      "stopp": {
       "type": "string",
       "description": "Stop or station name anywhere in Norway (bus, tram, metro, train, ferry)."
      },
      "antall": {
       "type": "string",
       "description": "Number of departures, 1-30 (default 10)."
      }
     },
     "additionalProperties": false
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type",
    "example"
   ],
   "properties": {
    "type": {
     "const": "json"
    },
    "example": {
     "type": "object",
     "properties": {
      "id": {
       "type": "string"
      },
      "kilde": {
       "type": "string"
      },
      "stopp": {
       "type": "string"
      },
      "hentet": {
       "type": "string"
      },
      "avganger": {
       "type": "array",
       "items": {
        "type": "object",
        "properties": {
         "til": {
          "type": "string"
         },
         "linje": {
          "type": "string"
         },
         "modus": {
          "type": "string"
         },
         "sanntid": {
          "type": "boolean"
         },
         "planlagt": {
          "type": "string"
         },
         "forventet": {
          "type": "string"
         },
         "plattform": {
          "type": "string"
         },
         "forsinket_min": {
          "type": "number"
         }
        }
       }
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/norway-transit-departures-4897658f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from nordata.hihat.workers.dev](https://www.zero.xyz/host/nordata.hihat.workers.dev/llms.txt)
