Dokumentasi untuk Daftar Stasiun Kereta Api di Indonesia #411
Answered
by
hansputera
kennypanjaitan
asked this question in
Q&A
-
Apa Yang Terjadi?Link Dokumentasi API ini tidak dapat dibuka Nama APIDaftar Stasiun Kereta Api di Indonesia Titik Akhir APIhttps://booking.kai.id/api/stations2 Respon dari API405 Not Acceptable Script / Kode Consume APINo response Log KesalahanNo response |
Beta Was this translation helpful? Give feedback.
Answered by
hansputera
Aug 15, 2025
Replies: 2 comments
-
|
Dokumentasi APInya seperti memang tidak ada deh mas. Kalau menilik pada network https://booking.kai.id, memang betul kok endpoint APInya meranah pada https://booking.kai.id/api/stations2 namun dengan HTTP method POST |
Beta Was this translation helpful? Give feedback.
0 replies
-
Dokumentasi SingkatSemua stasiun KAIcurl -X POST https://booking.kai.id/api/stations2atau dalam kode JS const response = await fetch('https://booking.kai.id/api/stations2', { method: 'POST' });
const json = await response.json();
console.log(json); // bentuknya ArrayResponse: [
{
"city": "String",
"cityname": "String",
"code": "String",
"name": "String"
}
] |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
sooluh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Dokumentasi Singkat
Semua stasiun KAI
atau dalam kode JS
Response:
[ { "city": "String", "cityname": "String", "code": "String", "name": "String" } ]