Best fares, easy and straightforward integration

Designed with for developers

Routes

Introduction

With the routes endpoint you can request our full list of supported routes. Routes are updated several times daily.

Routes with Availability

GET https://faresapi.com/api/v1/data/routes/with-availability

This list of routes will include availability from-to dates between which and days of the week on which flights are known to be flying. You can use this to limit your searches and reduce server load.
This will return a JSON array of objects, each consisting of
  • dep Departure Code
  • des Destination Code
  • dow CSV Days of the week, such as Mon,Tue,Wed,Thu,Fri,Sat,Sun
  • from Availability starts from date
  • to Availability ends on date
You may want to update daily, but updating hourly is not a problem.

Routes in CSV format

GET https://faresapi.com/api/v1/data/routes/csv

Please use View Source as browsers will not interpret the \n character as a line break!

Routes with full Airport data in JSON

GET https://faresapi.com/api/v1/data/routes

Each object in the response represents a route and has the following fields

  • departure departure airport object
    • id ID of the airport
    • iata IATA code of the airport
    • city City name
    • country Country name
  • destination destination airport object
    • id ID of the airport
    • iata IATA code of the airport
    • city City name
    • country Country name

JSON Response

Example JSON Response


    [
        {
            "departure": {
                "id":"1",
                "iata":"DAR",
                "city":"Dar Es Salaam",
                "country":"Tanzania"
            },
            "destination": {
                "id":"2",
                "iata":"ZNZ",
                "city":"Zanzibar",
                "country":"Tanzania"
            }
        },
        {
            "departure": {
                "id":"2",
                "iata":"ZNZ",
                "city":"Zanzibar",
                "country":"Tanzania"
            },
            "destination": {
                "id":"1",
                "iata":"DAR",
                "city":"Dar Es Salaam",
                "country":"Tanzania"
            }
        }
    ]