Toll roads All docs

Toll roads API Reference

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

GET/v1/toll-roads1 credit

Operating and partly operating toll road sections with operator, length, status and provinces. 1 credit.

ParameterInTypeRules
qquerystringmax 100 chars · Search text, 2 to 100 characters
countryquerystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 filter. Coverage today: ID; other codes return an empty page
province_idquerystringProvince code, e.g. 32
statusquerystringone of operational, partially_operational · Section status
pagequeryintegerdefault 1 · Page number
limitqueryinteger1 to 200 · default 50 · Results per page
GET/v1/toll-roads
curl 'https://api.apifor.dev/v1/toll-roads' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "cikampek-padalarang",
      "name": "Cikampek - Padalarang",
      "country": "ID",
      "operator": "PT. Jasa Marga (Persero) Tbk",
      "status": "operational",
      "length_km": 58,
      "operational_length_km": 58.5,
      "provinces": [
        "Jawa Barat"
      ],
      "province_ids": [
        "32"
      ],
      "operation_decree_date": "2023-05-02",
      "investment": null,
      "investment_currency": "IDR",
      "road_code": "E020290",
      "road_type": "intercity",
      "national_strategic_project": false,
      "gate_count": 12
    },
    {
      "id": "cikampek-palimanan",
      "name": "Cikampek - Palimanan",
      "country": "ID",
      "operator": "PT. Lintas Marga Sedaya",
      "status": "operational",
      "length_km": 116.75,
      "operational_length_km": 116.75,
      "provinces": [
        "Jawa Barat"
      ],
      "province_ids": [
        "32"
      ],
      "operation_decree_date": "2015-06-12",
      "investment": null,
      "investment_currency": "IDR",
      "road_code": "E026420",
      "road_type": "intercity",
      "national_strategic_project": false,
      "gate_count": 7
    }
  ],
  "meta": {
    "total": 4,
    "page": 1,
    "per_page": 2,
    "total_pages": 2,
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "© OpenStreetMap contributors; Badan Pengatur Jalan Tol (BPJT), Ministry of Public Works",
      "license": "Gate coordinates: ODbL 1.0 (OpenStreetMap). Sections and tariffs: BPJT public listings, credited as the official source",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
      "notice": "Modified: OpenStreetMap toll booths validated (name, region, distance to the toll carriageway), merged per gate and mapped to BPJT sectio...",
      "sources": [
        {
          "name": "OpenStreetMap (barrier=toll_booth)",
          "url": "https://www.openstreetmap.org/copyright",
          "licence": "ODbL 1.0",
          "used_for": "gate coordinates"
        },
        {
          "name": "BPJT toll road and operator list",
          "url": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
          "licence": "Official public listing (no reuse licence stated)",
          "used_for": "sections, operator, length, status, operation decree date"
        }
      ]
    }
  }
}
  • 200Sections
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
GET/v1/toll-roads/{id}1 credit

Section detail with history, concession data and source links. 1 credit.

ParameterInTypeRules
id *pathstringSection id
GET/v1/toll-roads/{id}
curl 'https://api.apifor.dev/v1/toll-roads/jakarta-cikampek' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "jakarta-cikampek",
    "name": "Jakarta - Cikampek",
    "country": "ID",
    "operator": "PT Jasamarga Transjawa Tol",
    "status": "operational",
    "length_km": 72.5,
    "operational_length_km": 83,
    "provinces": [
      "Daerah Khusus Ibukota Jakarta",
      "Jawa Barat"
    ],
    "province_ids": [
      "31",
      "32"
    ],
    "operation_decree_date": "1988-09-21",
    "investment": null,
    "investment_currency": "IDR",
    "road_code": "E026430",
    "road_type": "intercity",
    "national_strategic_project": false,
    "gate_count": 31,
    "investment_source": null,
    "concession_years": null,
    "km_start": "1.700",
    "km_end": "73.800",
    "history": [
      {
        "date": "1988-09-21",
        "event": "Operation decree issued (recorded by BPJT)",
        "event_local": "SK Operasi (tercatat di BPJT)",
        "source": "BPJT"
      },
      {
        "date": "1988-11-19",
        "event": "Inaugurated or opened (Wikipedia)",
        "event_local": "Diresmikan/dibuka (Wikipedia)",
        "source": "https://id.wikipedia.org/wiki/Jalan_Tol_Jakarta%E2%80%93Cikampek"
      }
    ],
    "source_urls": [
      "https://itrams-api.bpjt.pu.go.id/v1/reference/api/toll-road-list",
      "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/"
    ]
  },
  "meta": {
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "© OpenStreetMap contributors; Badan Pengatur Jalan Tol (BPJT), Ministry of Public Works",
      "license": "Gate coordinates: ODbL 1.0 (OpenStreetMap). Sections and tariffs: BPJT public listings, credited as the official source",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
      "notice": "Modified: OpenStreetMap toll booths validated (name, region, distance to the toll carriageway), merged per gate and mapped to BPJT sectio...",
      "sources": [
        {
          "name": "OpenStreetMap (barrier=toll_booth)",
          "url": "https://www.openstreetmap.org/copyright",
          "licence": "ODbL 1.0",
          "used_for": "gate coordinates"
        },
        {
          "name": "BPJT toll road and operator list",
          "url": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
          "licence": "Official public listing (no reuse licence stated)",
          "used_for": "sections, operator, length, status, operation decree date"
        }
      ]
    }
  }
}
  • 200The section
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 404Not found
GET/v1/toll-roads/gates1 credit

Toll gates with OpenStreetMap coordinates, section 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 filter. Coverage today: ID; other codes return an empty page
sectionquerystringSection id from /v1/toll-roads
province_idquerystringProvince code, e.g. 32
regency_idquerystringRegency or city code, e.g. 32.73
validationquerystringone of verified, osm · verified = name confirmed by a second source; osm = OpenStreetMap only
pagequeryintegerdefault 1 · Page number
limitqueryinteger1 to 200 · default 50 · Results per page
GET/v1/toll-roads/gates
curl 'https://api.apifor.dev/v1/toll-roads/gates' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": [
    {
      "id": "bekasi-barat-1-jakarta-cikampek",
      "name": "Gerbang Tol Bekasi Barat 1",
      "country": "ID",
      "section_id": "jakarta-cikampek",
      "section_name": "Jakarta - Cikampek",
      "operator": "PT Jasamarga Transjawa Tol",
      "province": "Jawa Barat",
      "province_id": "32",
      "regency": "Kota Bekasi",
      "regency_id": "32.75",
      "lat": -6.250156,
      "lng": 106.989176,
      "validation": "verified",
      "coordinate_source": "osm"
    },
    {
      "id": "bekasi-barat-2-jakarta-cikampek",
      "name": "Gerbang Tol Bekasi Barat 2",
      "country": "ID",
      "section_id": "jakarta-cikampek",
      "section_name": "Jakarta - Cikampek",
      "operator": "PT Jasamarga Transjawa Tol",
      "province": "Jawa Barat",
      "province_id": "32",
      "regency": "Kota Bekasi",
      "regency_id": "32.75",
      "lat": -6.252473,
      "lng": 106.987936,
      "validation": "verified",
      "coordinate_source": "osm"
    }
  ],
  "meta": {
    "total": 31,
    "page": 1,
    "per_page": 2,
    "total_pages": 16,
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "© OpenStreetMap contributors; Badan Pengatur Jalan Tol (BPJT), Ministry of Public Works",
      "license": "Gate coordinates: ODbL 1.0 (OpenStreetMap). Sections and tariffs: BPJT public listings, credited as the official source",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
      "notice": "Modified: OpenStreetMap toll booths validated (name, region, distance to the toll carriageway), merged per gate and mapped to BPJT sectio...",
      "sources": [
        {
          "name": "OpenStreetMap (barrier=toll_booth)",
          "url": "https://www.openstreetmap.org/copyright",
          "licence": "ODbL 1.0",
          "used_for": "gate coordinates"
        },
        {
          "name": "BPJT toll road and operator list",
          "url": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
          "licence": "Official public listing (no reuse licence stated)",
          "used_for": "sections, operator, length, status, operation decree date"
        }
      ]
    }
  }
}
  • 200Gates
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
GET/v1/toll-roads/gates/{id}1 credit

Gate detail with validation notes and OpenStreetMap element ids. 1 credit.

ParameterInTypeRules
id *pathstringGate id
GET/v1/toll-roads/gates/{id}
curl 'https://api.apifor.dev/v1/toll-roads/gates/cibatu-jakarta-cikampek' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "id": "cibatu-jakarta-cikampek",
    "name": "Gerbang Tol Cibatu",
    "country": "ID",
    "section_id": "jakarta-cikampek",
    "section_name": "Jakarta - Cikampek",
    "operator": "PT Jasamarga Transjawa Tol",
    "province": "Jawa Barat",
    "province_id": "32",
    "regency": "Kabupaten Bekasi",
    "regency_id": "32.16",
    "lat": -6.332215,
    "lng": 107.162167,
    "validation": "verified",
    "coordinate_source": "osm",
    "booth_points_merged": 3,
    "distance_to_toll_road_m": 0,
    "validation_notes": [
      "nama",
      "dalam_wilayah"
    ],
    "osm_ids": [
      "n1343038373",
      "n4181746097"
    ]
  },
  "meta": {
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "© OpenStreetMap contributors; Badan Pengatur Jalan Tol (BPJT), Ministry of Public Works",
      "license": "Gate coordinates: ODbL 1.0 (OpenStreetMap). Sections and tariffs: BPJT public listings, credited as the official source",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
      "notice": "Modified: OpenStreetMap toll booths validated (name, region, distance to the toll carriageway), merged per gate and mapped to BPJT sectio...",
      "sources": [
        {
          "name": "OpenStreetMap (barrier=toll_booth)",
          "url": "https://www.openstreetmap.org/copyright",
          "licence": "ODbL 1.0",
          "used_for": "gate coordinates"
        },
        {
          "name": "BPJT toll road and operator list",
          "url": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
          "licence": "Official public listing (no reuse licence stated)",
          "used_for": "sections, operator, length, status, operation decree date"
        }
      ]
    }
  }
}
  • 200The gate
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 404Not found
GET/v1/toll-roads/tariff2 credits

Published tariff for an origin and destination, by vehicle class. Accepts gate ids or names and matches either direction. 2 credits.

ParameterInTypeRules
from_gate *querystringmax 120 chars · Gate id from /v1/toll-roads/gates, or a gate or interchange name
to_gate *querystringmax 120 chars · Gate id or name
vehicle_classqueryinteger1 to 5 · Vehicle class 1 to 5 (2 and 3 share a tariff, as do 4 and 5)
sectionquerystringLimit to one section id
country *querystringISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. Required. Covered countries: GET /v1/toll-roads/coverage
GET/v1/toll-roads/tariff
curl 'https://api.apifor.dev/v1/toll-roads/tariff?from_gate=&to_gate=&country=' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "from_gate": {
      "input": "Jakarta",
      "gate_id": null,
      "name": "Jakarta",
      "section_id": null
    },
    "to_gate": {
      "input": "cibatu-jakarta-cikampek",
      "gate_id": "cibatu-jakarta-cikampek",
      "name": "Gerbang Tol Cibatu",
      "section_id": "jakarta-cikampek"
    },
    "vehicle_class": 1,
    "currency": "IDR",
    "matches": [
      {
        "section_id": "jakarta-cikampek",
        "section_name": "Jakarta-Cikampek dan Jakarta -Cikampek II Elevated",
        "network": "Trans Jawa",
        "distance_km": 121,
        "published_from": "Jakarta IC",
        "published_to": "Cibatu",
        "direction": "as_published",
        "tariff": 16500,
        "tariffs": {
          "class_1": 16500,
          "class_2": 24500,
          "class_3": 24500,
          "class_4": 32500,
          "class_5": 32500
        },
        "local": {
          "country": "ID",
          "vehicle_classes": {
            "golongan_I": 16500,
            "golongan_II_III": 24500,
            "golongan_IV_V": 32500
          }
        }
      }
    ],
    "rules": {
      "regime": "BPJT toll tariff",
      "legal_basis": "Tariffs set by decree of the Minister of Public Works (Keputusan Menteri PU) per toll road section",
      "effective_from": null,
      "effective_to": null,
      "source_url": "https://bpjt.pu.go.id/info-tarif-dan-golongan/"
    }
  },
  "meta": {
    "coverage": [
      "ID"
    ],
    "attribution": {
      "source": "© OpenStreetMap contributors; Badan Pengatur Jalan Tol (BPJT), Ministry of Public Works",
      "license": "Gate coordinates: ODbL 1.0 (OpenStreetMap). Sections and tariffs: BPJT public listings, credited as the official source",
      "license_url": "https://opendatacommons.org/licenses/odbl/1-0/",
      "source_url": "https://www.openstreetmap.org/copyright",
      "attribution_page": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
      "notice": "Modified: OpenStreetMap toll booths validated (name, region, distance to the toll carriageway), merged per gate and mapped to BPJT sectio...",
      "sources": [
        {
          "name": "OpenStreetMap (barrier=toll_booth)",
          "url": "https://www.openstreetmap.org/copyright",
          "licence": "ODbL 1.0",
          "used_for": "gate coordinates"
        },
        {
          "name": "BPJT toll road and operator list",
          "url": "https://bpjt.pu.go.id/daftar-ruas-jalan-tol-dan-bujt/",
          "licence": "Official public listing (no reuse licence stated)",
          "used_for": "sections, operator, length, status, operation decree date"
        }
      ]
    }
  }
}
  • 200Tariff matches
  • 400Invalid parameters
  • 401Missing or invalid API key
  • 402Not enough credits
  • 404Not found
GET/v1/toll-roads/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/toll-roads/coverage
curl 'https://api.apifor.dev/v1/toll-roads/coverage' \
  -H 'x-api-key: YOUR_API_KEY'
Example response · 200
{
  "success": true,
  "data": {
    "service": "toll-roads",
    "global": false,
    "country_param": "optional",
    "param_name": "country",
    "countries": [
      {
        "country": "ID",
        "market": null,
        "subdivision_levels": [
          "province",
          "regency"
        ],
        "rows": null,
        "updated_at": "2026-11-10",
        "sources": [
          {
            "name": "OpenStreetMap contributors",
            "url": "https://www.openstreetmap.org/copyright",
            "licence": "ODbL 1.0",
            "attribution": "© OpenStreetMap contributors"
          },
          {
            "name": "BPJT, Ministry of Public Works",
            "url": "https://bpjt.pu.go.id/info-tarif-dan-golongan/",
            "licence": "Official public listing, credited (no reuse licence stated)",
            "attribution": null
          }
        ],
        "local_fields": [
          "local.vehicle_classes"
        ],
        "notes": "GET /v1/toll-roads/tariff needs country. Vehicle classes 1 to 5 map to BPJT golongan I, II-III and IV-V."
      }
    ]
  }
}
  • 200Coverage

Error handling · Rate limits · Prices