---
title: "Toll roads API Reference | APIFor"
description: "Endpoint reference for the Toll roads service: parameters, request bodies, example responses, status codes and credits per call."
canonical: "https://apifor.dev/docs/reference/toll-roads/"
---

**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](https://apifor.dev/services/toll-roads/) page.

GET `/v1/toll-roads` 1 credit

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

| Parameter | In | Type | Rules |
| --- | --- | --- | --- |
| q | query | string | max 100 chars · Search text, 2 to 100 characters |
| country | query | string | ISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 filter. Coverage today: ID; other codes return an empty page |
| province_id | query | string | Province code, e.g. 32 |
| status | query | string | one of operational, partially_operational · Section status |
| page | query | integer | default 1 · Page number |
| limit | query | integer | 1 to 200 · default 50 · Results per page |

GET /v1/toll-roads

```bash
curl 'https://api.apifor.dev/v1/toll-roads' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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"
        }
      ]
    }
  }
}
```

- `200` Sections
- `400` Invalid parameters
- `401` Missing or invalid API key
- `402` Not enough credits

GET `/v1/toll-roads/{id}` 1 credit

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

| Parameter | In | Type | Rules |
| --- | --- | --- | --- |
| id * | path | string | Section id |

GET /v1/toll-roads/{id}

```bash
curl 'https://api.apifor.dev/v1/toll-roads/jakarta-cikampek' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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"
        }
      ]
    }
  }
}
```

- `200` The section
- `400` Invalid parameters
- `401` Missing or invalid API key
- `402` Not enough credits
- `404` Not found

GET `/v1/toll-roads/gates` 1 credit

Toll gates with OpenStreetMap coordinates, section and region codes. 1 credit.

| Parameter | In | Type | Rules |
| --- | --- | --- | --- |
| q | query | string | max 100 chars · Search text, 2 to 100 characters |
| country | query | string | ISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 filter. Coverage today: ID; other codes return an empty page |
| section | query | string | Section id from /v1/toll-roads |
| province_id | query | string | Province code, e.g. 32 |
| regency_id | query | string | Regency or city code, e.g. 32.73 |
| validation | query | string | one of verified, osm · verified = name confirmed by a second source; osm = OpenStreetMap only |
| page | query | integer | default 1 · Page number |
| limit | query | integer | 1 to 200 · default 50 · Results per page |

GET /v1/toll-roads/gates

```bash
curl 'https://api.apifor.dev/v1/toll-roads/gates' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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"
        }
      ]
    }
  }
}
```

- `200` Gates
- `400` Invalid parameters
- `401` Missing or invalid API key
- `402` Not enough credits

GET `/v1/toll-roads/gates/{id}` 1 credit

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

| Parameter | In | Type | Rules |
| --- | --- | --- | --- |
| id * | path | string | Gate id |

GET /v1/toll-roads/gates/{id}

```bash
curl 'https://api.apifor.dev/v1/toll-roads/gates/cibatu-jakarta-cikampek' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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"
        }
      ]
    }
  }
}
```

- `200` The gate
- `400` Invalid parameters
- `401` Missing or invalid API key
- `402` Not enough credits
- `404` Not found

GET `/v1/toll-roads/tariff` 2 credits

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

| Parameter | In | Type | Rules |
| --- | --- | --- | --- |
| from_gate * | query | string | max 120 chars · Gate id from /v1/toll-roads/gates, or a gate or interchange name |
| to_gate * | query | string | max 120 chars · Gate id or name |
| vehicle_class | query | integer | 1 to 5 · Vehicle class 1 to 5 (2 and 3 share a tariff, as do 4 and 5) |
| section | query | string | Limit to one section id |
| country * | query | string | ISO 3166-1 alpha-2 · ISO 3166-1 alpha-2 code. Required. Covered countries: GET /v1/toll-roads/coverage |

GET /v1/toll-roads/tariff

```bash
curl 'https://api.apifor.dev/v1/toll-roads/tariff?from_gate=&to_gate=&country=' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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"
        }
      ]
    }
  }
}
```

- `200` Tariff matches
- `400` Invalid parameters
- `401` Missing or invalid API key
- `402` Not enough credits
- `404` Not found

GET `/v1/toll-roads/coverage` Free

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

```bash
curl 'https://api.apifor.dev/v1/toll-roads/coverage' \
  -H 'x-api-key: YOUR_API_KEY'
```

Example response · 200

```json
{
  "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."
      }
    ]
  }
}
```

- `200` Coverage

[Error handling](https://apifor.dev/docs/errors/) · [Rate limits](https://apifor.dev/docs/rate-limits/) · [Prices](https://apifor.dev/pricing/#services)
