INDIA-RAILWAY-TRAIN

India Railway Train Retrieval Script Documentation

GET https://api.kosontechnology.com/india-railway-train.php

This API script is designed to retrieve information from the Railway Trains - India API using provided parameters.

Path Parameters

NameTypeDescription

city

String

To specify the desired city

download

-

To download the json file.

This API script is designed to retrieve information from the Railway Trains - India API using provided parameters. The script constructs the appropriate URL based on the parameters provided and then fetches data from the API. Please follow the instructions below to use this script effectively.

Usage

  1. Making an HTTP request via a web browser or API Platform etc. Postman.

  2. The following parameters are accepted:

NameDescriptionFormat

city

To specify the desired city

  • City Name. Etc. Mumbai

download

To download the JSON output

  • This parameter does not require the content, Leave empty or Type anything is acceptable

  1. Depending on the parameters provided, the script will construct a URL to fetch information from the Railway Trains - India API .

Parameter Guidelines

  • city Parameter:

    • If you provide a city parameter of India city name etc. 'mumbai', the script will retrieve Railway Train from that city.

  • download Parameter:

    • If you want to download the JSON output of these parameter, define the download parameter with empty or any input will able you to auto download it. See the download sample at here.

List of Cities in India

Refer this wikipedia to have India's Cities List.

Demo

Retrieve all trains data from Delhi:

Download

both examples download the same thing from Delhi

Last updated