Travel Api

Description

Find out the prices and prices of bus and airway tickets

Pricing per Call: 0.001$
For learn the packages and usage details of the services, go to the pricing page.

End Points

get/planeTicket

With this service you can find the most convenient flight tickets between the points you selected.

Parameters
FieldDescriptionTypeHeaderRequired
data.fromThe city of departure.text
data.toThe city of arrival.text
Example
Request
{
  "uri": "https://api.collectapi.com/travel/planeTicket?data.from=istanbul&data.to=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "arrivetime": "08:05",
      "starttime": "07:00",
      "price": "57,99 TL",
      "date": "09 Eylül 2018-Pazar",
      "name": "Anadolu Jet",
      "image": ".../images/partner/1279-sm.png",
      "start": "Sabiha Gökçen Havalimanı",
      "end": "Ankara Esenboğa Havalimanı"
    },
    {
      "arrivetime": "06:50",
      "starttime": "05:50",
      "price": "57,99 TL",
      "date": "10 Eylül 2018-Pazartesi",
      "name": "Anadolu Jet",
      "image": ".../images/partner/1279-sm.png",
      "start": "Sabiha Gökçen Havalimanı",
      "end": "Ankara Esenboğa Havalimanı"
    },
    "..."
  ]
}
get/busTicket

With this service you can find the most convenient bus tickets between your chosen destinations.

Parameters
FieldDescriptionTypeHeaderRequired
data.fromEnter starting city name.text
data.toEnter target city name.text
Example
Request
{
  "uri": "https://api.collectapi.com/travel/busTicket?data.from=istanbul&data.to=ankara",
  "headers": {
    "Authorization": "apikey your_token"
  }
}
Response
{
  "success": true,
  "result": [
    {
      "arrivetime": "07:00",
      "starttime": "00:15",
      "price": "50,00 TL",
      "name": "Özkaymak",
      "image": ".../istanbul_ankara.png",
      "start": "Alibeyköy Otogarı",
      "end": "Ankara (Aşti) Otogarı"
    },
    {
      "arrivetime": "05:30",
      "starttime": "00:15",
      "price": "50,00 TL",
      "name": "Mersin Villa Seyahat",
      "image": ".../istanbul_ankara.png",
      "start": "Harem Otogarı",
      "end": "Ankara (Aşti) Otogarı"
    },
    "..."
  ]
}