Loading page
Railway lines, stations and halts across Ghana, with gauge and usage where recorded. Derived from OpenStreetMap. 230 records.
Every column this dataset returns, with its type. This is the shape of the API response.
| Field | Type |
|---|---|
| name | TEXT |
| railway_type | TEXT |
| gauge_mm | INTEGER |
| usage | TEXT |
| operator | TEXT |
| region | TEXT |
| district | TEXT |
| locality | TEXT |
| latitude | DECIMAL(9,6) |
| longitude | DECIMAL(9,6) |
| phone | TEXT |
| website | TEXT |
| osm_id | TEXT |
| source | TEXT |
| nameTEXT | railway typeTEXT | gauge mmINTEGER | usageTEXT | operatorTEXT | regionTEXT | districtTEXT | localityTEXT | latitudeDECIMAL(9,6) | longitudeDECIMAL(9,6) | phoneTEXT | websiteTEXT | osm idTEXT | sourceTEXT |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Accra | Station | — | — | — | Greater Accra Region | Accra Metropolis | — | 5.548916 | -0.21102 | — | — | node/1375249822 | OpenStreetMap contributors (ODbL) |
| Amasaman | Station | — | — | — | Greater Accra Region | Ga North Municipal | — | 5.704925 | -0.302686 | — | — | node/2360467122 | OpenStreetMap contributors (ODbL) |
| Tarkwa | Station | — | — | — | Western Region | Tarkwa Nsuaem | — | 5.304918 | -1.995982 | — | — | node/5308750742 | OpenStreetMap contributors (ODbL) |
| Ketan | Station | — | — | — | Western Region | Sekondi Takoradi Metropolis | — | 4.951108 | -1.728859 | — | — | node/6244498213 | OpenStreetMap contributors (ODbL) |
| Bakado | Station | — | — | — | Western Region | Sekondi Takoradi Metropolis | — | 4.937928 | -1.729519 | — | — | node/6244517711 | OpenStreetMap contributors (ODbL) |
225 more rows — see the plans
See the plansGET connect.apighana.com/api/data/railways
Cite this dataset and the organisation its records come from (OpenStreetMap contributors). Datasets are updated, so keep the date you accessed it in the citation. Last updated from the source on Sep 26, 2026.
API Ghana. (2026). Railways (Version 1.0) [Data set, compiled from OpenStreetMap contributors]. Retrieved October 1, 2026, from https://apighana.com/datasets/railways
curl "https://connect.apighana.com/api/data/railways?page=1&limit=20" \ -H "X-API-Key: $APIGHANA_KEY"
const response = await fetch(
"https://connect.apighana.com/api/data/railways?page=1&limit=20",
{ headers: { "X-API-Key": process.env.APIGHANA_KEY } },
);
const { data, meta } = await response.json();import os, requests
response = requests.get(
"https://connect.apighana.com/api/data/railways",
headers={"X-API-Key": os.environ["APIGHANA_KEY"]},
params={"page": 1, "limit": 20},
)
rows = response.json()["data"]