Sign Up

Log In

Indonesian Train Schedule - Jadwal Kereta

FREE
By jadwalkeretaapi
Updated a month ago
Travel
7.3/10
Popularity Score
1222ms
Latency
-
Success Rate

Indonesian Train Schedule - Jadwal Kereta API Documentation

This API is free to use as we host it in free appharbor. You can add up to your 5 favorite origin-destination. We get the data from tiket.kereta-api.co.id. So as long as we do not violate their rules, you can still have the data.

View API Details

Supercharge your App

Discover and connect to thousands of APIs in the world's largest API Hub
GETGet schedule
GETGet schedule

Get Schedule

Sign up to test this endpoint
Log in
Header Parameters
X-RapidAPI-KeySTRING
REQUIRED
Required Parameters
regstasiunNUMBER
REQUIREDAfter register you can add up to 5 origin-destination, this example I Use Surabaya to Madiun
tanggalNUMBER
REQUIREDYou can input Equal or Greater than Now date with format 'YYYYMMDD'
apikeyNUMBER
REQUIREDAfter register you can get an API Key. But for the test, you can try 101487229685974604868
Optional Parameters
dewasaNUMBER
OPTIONALDefault is 1 and max is 4
infantSTRING
OPTIONALDefault is 0 and max is 4
Request Snippet
unirest.get("https://jadwalkeretaapi-indonesian-train-schedule-jadwal-kereta-v1.p.rapidapi.com/api?dewasa=undefined&infant=undefined&regstasiun=<required>&tanggal=<required>&apikey=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
Sample Response

loading...

Log inSign up

Install SDK for NodeJS

Installing

To utilize unirest for node.js install the the npm module:

$ npm install unirest

After installing the npm package you can now start simplifying requests like so:

var unirest = require('unirest');

Creating Request

unirest.get("https://jadwalkeretaapi-indonesian-train-schedule-jadwal-kereta-v1.p.rapidapi.com/api?dewasa=undefined&infant=undefined&regstasiun=<required>&tanggal=<required>&apikey=<required>")
.header("X-RapidAPI-Key", "undefined")
.end(function (result) {
  console.log(result.status, result.headers, result.body);
});
OAuth2 Authentication
Client ID
Client Secret
OAuth2 Authentication

Sign up for free

to test this endpoint

Join the world’s largest API marketplace with over half a million developers and thousands of APIs.
DiscoverAPIs
Testfrom the browser
Connectusing code snippets
Managefrom one dashboard