API Reference

Transjakarta (Official PT Transportasi Jakarta GTFS)

Transjakarta bus routes with the halte they serve, fares, and departure headways.

Data as of · Source: Official Transjakarta GTFS

Main endpoint
GET https://use.apiindonesia.id/api/v1/transjakarta/rute
Endpoints
7
Authentication
x-api-key header (create one free in the dashboard)
Price
2 credits (Rp2) per successful request; failed requests are free
Format
JSON (REST), with cURL, JavaScript and Python examples
Data source
Source: GTFS Static Transjakarta (c) 2026 by PT Transportasi Jakarta, licensed under the Creative Commons Attribution 4.0 International licence (CC BY 4.0); Licence statement: https://ppid.transjakarta.co.id/informasi/berkala; Source file: https://gtfs.transjakarta.co.id/files/file_gtfs.zip; Attribution: the licence requires attribution, a licence link, and an indication of changes. Every successful response carries meta.attribution with the publisher, the licence name, a licence link, a link to the source file, the licence-statement page, and the statement of changes "Data diubah: dinormalisasi ke format JSON API Indonesia", so you do not have to assemble the credit yourself, just pass that object through in every redistribution; What API Indonesia changed: the GTFS was normalised to JSON, the stop_times rows were condensed into one stop list per route and direction, and shapes.txt (geometry) is not included in this version
Product Brief

What this API gives you

Transjakarta bus routes with the halte they serve, fares, and departure headways.

  • Bus routes with the halte they serve
  • Nearest-halte search from a coordinate
  • Fares
  • Per-route departure headways
  • Data: the official static GTFS published by PT Transportasi Jakarta, licensed CC BY 4.0, reusable commercially as long as the attribution is kept
  • Source: GTFS Static Transjakarta (c) 2026 by PT Transportasi Jakarta, licensed under the Creative Commons Attribution 4.0 International licence (CC BY 4.0)
  • Licence statement: https://ppid.transjakarta.co.id/informasi/berkala
  • Source file: https://gtfs.transjakarta.co.id/files/file_gtfs.zip
  • Attribution: the licence requires attribution, a licence link, and an indication of changes. Every successful response carries meta.attribution with the publisher, the licence name, a licence link, a link to the source file, the licence-statement page, and the statement of changes "Data diubah: dinormalisasi ke format JSON API Indonesia", so you do not have to assemble the credit yourself, just pass that object through in every redistribution
  • What API Indonesia changed: the GTFS was normalised to JSON, the stop_times rows were condensed into one stop list per route and direction, and shapes.txt (geometry) is not included in this version
Coverage
7

ready-to-use endpoints in this product, with JSON responses and consistent error handling.

Access
API key

Can be tried with the 3,000 credit signup bonus, then used in production through one API Indonesia key.

Sample resource
https://use.apiindonesia.id/api/v1/transjakarta/rute

Returns the 240 Transjakarta routes.

Example product scenarios

This section separates the product page from the docs. The docs explain how to call endpoints; this page explains why the endpoints make sense for your feature.

  • Mobility & map apps: display Transjakarta routes and halte, find the nearest halte to a user, and build arrival estimates from the official headways.
  • Transport research & urban planning: analyse halte coverage per route, headway patterns, and the fare structure without importing the large GTFS files yourself.
  • Logistics & field apps: compute the nearest halte or route from a customer point, and use the halte list for location search and address validation.

Example Usage

Request
curl "https://use.apiindonesia.id/api/v1/transjakarta/rute?q=blok&per_page=2" \
  -H "x-api-key: YOUR_API_KEY"
Response · 200 OK
{
  "success": true,
  "data": [
    { "id": "1", "short_name": "1", "long_name": "Blok M - Kota", "description": "BRT", "route_type": 3, "color": "D62126", "text_color": "FFFFFF", "jumlah_halte": 59 },
    { "id": "1C", "short_name": "1C", "long_name": "Pesanggrahan - Blok M", "description": "Angkutan Umum Integrasi", "route_type": 3, "color": "D65E62", "text_color": "000000", "jumlah_halte": 76 }
  ],
  "meta": {
    "total": 23,
    "page": 1,
    "per_page": 2,
    "total_pages": 12,
    "attribution": {
      "source": "PT Transportasi Jakarta (Transjakarta) GTFS",
      "license": "CC BY 4.0",
      "license_url": "https://creativecommons.org/licenses/by/4.0/",
      "source_url": "https://gtfs.transjakarta.co.id/files/file_gtfs.zip",
      "attribution_page": "https://ppid.transjakarta.co.id/informasi/berkala",
      "notice": "Data diubah: dinormalisasi ke format JSON API Indonesia"
    }
  }
}

Related Articles

Pricing 2 credits (Rp2) per successful request; failed requests are free. One-time 3,000 credit signup bonus, no credit card, no monthly allowance.

Just need the file? The same data is also sold as a one-time file, no API key and no per-request credits.

See all datasets and their licences

Transjakarta (Official PT Transportasi Jakarta GTFS) API questions

Which Transjakarta data is available?

Routes with the halte they serve, nearest-halte search from a coordinate, fares and per-route departure headways, from the official static GTFS by PT Transportasi Jakarta.

How do I find the nearest halte?

Call GET /api/v1/transjakarta/halte/nearby with lat, lng and optional radius and limit.

Can I use it in a commercial app?

Yes, because the GTFS is released under CC BY 4.0, as long as attribution is kept. Every response carries meta.attribution you can pass through.

Get Started

Start Integrating
Today

Sign up for free and get a 3,000 credit bonus (Rp3,000) once your email is verified, grab an API key, and call your first endpoint right away. No credit card, no tedious approval process.

Dot wave visualization