http://indianrailapi.com/api/v2/TrainFare/apikey/<apikey>/TrainNumber/<trainNumber>/From/<stationFrom>/To/<stationTo>/Quota/<quota>
Parameter :
- apikey : Your API key.
- trainNumber : Train Number.
- stationFrom : Source Station Code.
- stationTo : Destination Station Code.
- quota : GN/CK
Output :
{"TrainNumber":"12565","TrainName":"BIHAR S KRANTI","From":"SEE","To":"NDLS","Distance":"1025","TrainType":"SF","Fares":[{"Name":"AC First Class","Code":"1A","Fare":"3230"},{"Name":"AC 2-Tier","Code":"2A","Fare":"1895"},{"Name":"AC 3-Tier","Code":"3A","Fare":"1320"},{"Name":"Sleeper","Code":"SL","Fare":"500"},{"Name":"General","Code":"GN","Fare":"275"}],"Status":"SUCCESS","ResponseCode":"200"}