Bus terminals All docs

Bus terminals API Reference

4 routes. Base URL https://api.apifor.dev, authenticated with x-api-key. Failed calls are not charged. Overview, limits and sources are on the Bus terminal API page.

GET/v1/bus-terminals1 credit

Bus terminals with class (where a regulation publishes it), managing authority, coordinates and region codes. 1 credit.

ParameterInTypeRules
qquerystringmax 100 chars · Search text, 2 to 100 characters
countryquerystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2, optional (default: all covered countries, ID rows first). Covered: ID and GB (NaPTAN bus and coach stations); other codes return an empty page. province_id, regency_id, class, validation and has_coordinates=false apply to ID rows only.
province_idquerystringProvince code, e.g. 32
regency_idquerystringRegency or city code, e.g. 32.73
classquerystringone of A · Terminal class. Only A is published in an open national list
validationquerystringone of verified, partial, no_coordinates · How the record was checked
has_coordinatesquerystringone of true, false · Only rows with (true) or without (false) coordinates
pagequeryintegerdefault 1 · Page number
limitqueryinteger1 to 200 · default 50 · Results per page
GET/v1/bus-terminals
curl 'https://api.apifor.dev/v1/bus-terminals' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "terminal-kalideres-kota-jakarta-barat",
      "name": "Terminal Kalideres",
      "country": "ID",
      "class": "A",
      "managing_authority": null,
      "address": "Jl. Daan Mogot No. 15, Kota Jakarta Barat",
      "province": "Daerah Khusus Ibukota Jakarta",
      "province_id": "31",
      "regency": "Kota Administrasi Jakarta Barat",
      "regency_id": "31.73",
      "lat": -6.154418,
      "lng": 106.705839,
      "validation": "verified",
      "coordinate_source": "km175",
      "legal_basis": "KM Perhubungan No. 175 Tahun 2019 (Terminal Tipe A Jabodetabek)"
    },
    {
      "id": "terminal-kampung-rambutan-kota-jakarta-timur",
      "name": "Terminal Kampung Rambutan",
      "country": "ID",
      "class": "A",
      "managing_authority": null,
      "address": "Jl. Term. Simatupang, Kel. Rambutan, Kec. Ciracas, Kota Jakarta Timur",
      "province": "Daerah Khusus Ibukota Jakarta",
      "province_id": "31",
      "regency": "Kota Administrasi Jakarta Timur",
      "regency_id": "31.75",
      "lat": -6.309526,
      "lng": 106.882281,
      "validation": "verified",
      "coordinate_source": "km175",
      "legal_basis": "KM Perhubungan No. 175 Tahun 2019 (Terminal Tipe A Jabodetabek)"
    }
  ],
  "meta": {
    "total": 2,
    "page": 1,
    "per_page": 2,
    "total_pages": 1,
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025); KM 175 Tahun 2019; © OpenStreetMap contributors; Wikidata",
      "license": "Regulations: not subject to copyright (Indonesian Copyright Law 28/2014, Art. 42); coordinates: ODbL 1.0 (OpenStreetMap); Wikidata CC0",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://www.openstreetmap.org/copyright",
      "notice": "Modified: the official class A list from regulation merged with open sources; coordinates only where they passed validation. Compiled by ...",
      "sources": [
        {
          "name": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025)",
          "url": "https://jdih.kemenhub.go.id",
          "licence": "Regulation, not copyrighted",
          "used_for": "class A terminals, managing authority"
        },
        {
          "name": "KM 175 Tahun 2019 (class A terminals in Greater Jakarta)",
          "url": "https://jdih.kemenhub.go.id",
          "licence": "Regulation, not copyrighted",
          "used_for": "address and coordinates of 7 Greater Jakarta terminals"
        }
      ]
    }
  }
}
  • 200Matching terminals
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
GET/v1/bus-terminals/nearby1 credit

Closest terminals with coordinates first, with distance in metres. 1 credit.

ParameterInTypeRules
lat *querynumber-90 to 90 · Latitude
lng *querynumber-180 to 180 · Longitude
radiusqueryinteger1 to 100000 · Radius in metres
limitqueryinteger1 to 50 · default 10 · Max results
countryquerystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2, optional (default: all covered countries, ID rows first). Covered: ID and GB (NaPTAN bus and coach stations); other codes return an empty page. province_id, regency_id, class, validation and has_coordinates=false apply to ID rows only.
GET/v1/bus-terminals/nearby
curl 'https://api.apifor.dev/v1/bus-terminals/nearby?lat=&lng=' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "terminal-manggarai-kota-jakarta-selatan",
      "name": "Terminal Manggarai",
      "country": "ID",
      "class": null,
      "managing_authority": null,
      "address": null,
      "province": "Daerah Khusus Ibukota Jakarta",
      "province_id": "31",
      "regency": "Kota Administrasi Jakarta Selatan",
      "regency_id": "31.74",
      "lat": -6.209,
      "lng": 106.847555,
      "validation": "verified",
      "coordinate_source": "osm",
      "legal_basis": null,
      "distance_m": 217
    },
    {
      "id": "terminal-kampung-melayu-kota-jakarta-timur",
      "name": "Terminal Kampung Melayu",
      "country": "ID",
      "class": null,
      "managing_authority": null,
      "address": null,
      "province": "Daerah Khusus Ibukota Jakarta",
      "province_id": "31",
      "regency": "Kota Administrasi Jakarta Timur",
      "regency_id": "31.75",
      "lat": -6.224915,
      "lng": 106.866882,
      "validation": "verified",
      "coordinate_source": "osm",
      "legal_basis": null,
      "distance_m": 2957
    }
  ],
  "meta": {
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025); KM 175 Tahun 2019; © OpenStreetMap contributors; Wikidata",
      "license": "Regulations: not subject to copyright (Indonesian Copyright Law 28/2014, Art. 42); coordinates: ODbL 1.0 (OpenStreetMap); Wikidata CC0",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://www.openstreetmap.org/copyright",
      "notice": "Modified: the official class A list from regulation merged with open sources; coordinates only where they passed validation. Compiled by ...",
      "sources": [
        {
          "name": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025)",
          "url": "https://jdih.kemenhub.go.id",
          "licence": "Regulation, not copyrighted",
          "used_for": "class A terminals, managing authority"
        },
        {
          "name": "KM 175 Tahun 2019 (class A terminals in Greater Jakarta)",
          "url": "https://jdih.kemenhub.go.id",
          "licence": "Regulation, not copyrighted",
          "used_for": "address and coordinates of 7 Greater Jakarta terminals"
        }
      ]
    }
  }
}
  • 200Terminals by distance
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
GET/v1/bus-terminals/{id}1 credit

Adds Wikidata id, validation notes and sources. 1 credit.

ParameterInTypeRules
id *pathstringTerminal id
GET/v1/bus-terminals/{id}
curl 'https://api.apifor.dev/v1/bus-terminals/terminal-sigli-pidie' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "terminal-sigli-pidie",
    "name": "Terminal Sigli",
    "country": "ID",
    "class": null,
    "managing_authority": null,
    "address": null,
    "province": "Aceh",
    "province_id": "11",
    "regency": "Kabupaten Pidie",
    "regency_id": "11.07",
    "lat": 5.370615,
    "lng": 95.957875,
    "validation": "verified",
    "coordinate_source": "osm",
    "legal_basis": null,
    "wikidata": null,
    "validation_notes": [
      "sumber: osm (1 objek)",
      "satu jenis sumber"
    ],
    "sources": [
      {
        "name": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025)",
        "url": "https://jdih.kemenhub.go.id",
        "licence": "Regulation, not copyrighted",
        "used_for": "class A terminals, managing authority"
      },
      {
        "name": "KM 175 Tahun 2019 (class A terminals in Greater Jakarta)",
        "url": "https://jdih.kemenhub.go.id",
        "licence": "Regulation, not copyrighted",
        "used_for": "address and coordinates of 7 Greater Jakarta terminals"
      }
    ]
  },
  "meta": {
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025); KM 175 Tahun 2019; © OpenStreetMap contributors; Wikidata",
      "license": "Regulations: not subject to copyright (Indonesian Copyright Law 28/2014, Art. 42); coordinates: ODbL 1.0 (OpenStreetMap); Wikidata CC0",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://www.openstreetmap.org/copyright",
      "notice": "Modified: the official class A list from regulation merged with open sources; coordinates only where they passed validation. Compiled by ...",
      "sources": [
        {
          "name": "Permenhub PM 1 Tahun 2025 (Minister of Transportation Regulation No. 1 of 2025)",
          "url": "https://jdih.kemenhub.go.id",
          "licence": "Regulation, not copyrighted",
          "used_for": "class A terminals, managing authority"
        },
        {
          "name": "KM 175 Tahun 2019 (class A terminals in Greater Jakarta)",
          "url": "https://jdih.kemenhub.go.id",
          "licence": "Regulation, not copyrighted",
          "used_for": "address and coordinates of 7 Greater Jakarta terminals"
        }
      ]
    }
  }
}
  • 200The terminal
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 404Not found
GET/v1/bus-terminals/coverageFree

Countries this service covers, with sources, licences, row counts and country-only fields. Free (0 credits), still needs an API key. Price note: Free.

GET/v1/bus-terminals/coverage
curl 'https://api.apifor.dev/v1/bus-terminals/coverage' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "service": "bus-terminals",
    "global": false,
    "country_param": "optional",
    "param_name": "country",
    "countries": [
      {
        "country": "ID",
        "market": null,
        "subdivision_levels": [
          "province",
          "regency"
        ],
        "rows": null,
        "updated_at": null,
        "sources": [
          {
            "name": "Permenhub PM 1 Tahun 2025 and KM 175 Tahun 2019",
            "url": "https://jdih.kemenhub.go.id",
            "licence": "Regulation, not copyrighted",
            "attribution": null
          },
          {
            "name": "OpenStreetMap contributors",
            "url": "https://www.openstreetmap.org/copyright",
            "licence": "ODbL 1.0",
            "attribution": "© OpenStreetMap contributors"
          }
        ],
        "local_fields": [],
        "notes": null
      },
      {
        "country": "GB",
        "market": null,
        "subdivision_levels": [],
        "rows": 1459,
        "updated_at": "2026-11-30",
        "sources": [
          {
            "name": "DfT National Public Transport Access Nodes (NaPTAN)",
            "url": "https://beta-naptan.dft.gov.uk/download",
            "licence": "OGL v3.0",
            "attribution": "Contains public sector information licensed under the Open Government Licence v3.0."
          }
        ],
        "local_fields": [
          "local.type",
          "local.status"
        ],
        "notes": "Bus and coach stations from NaPTAN: station records (BST) plus station bays and entrances (BCS, BCE) grouped by locality and name into on..."
      }
    ]
  }
}
  • 200Coverage

Error handling · Rate limits · Prices