Country Info

Country Info

Have you ever wondered what the most important items of life are? Well, wonder no more!

Overview

Visa List API is a RESTful interface designed to provide comprehensive information about travel expenses, including flight fares, hotel rates, car rentals, and other associated costs. This documentation outlines the endpoints, request methods, parameters, and response formats supported by the API.

Authentication

All requests to the Price of Travel API require authentication via API keys. To obtain an API key, please contact our support team.

Authorization: Bearer YOUR_API_KEY

Authentication Header

Include the API key in the Authorization header of your HTTP requests.

Endpoints

1. Get Flight Prices reference

You can get a reference of all the flight prices by using the following endpoint:

Endpoint

bashCopy code
GET /flights

Parameters

Response

{
  "origin": "JFK",
  "destination": "LAX",
  "departure_date": "2024-01-15",
  "return_date": "2024-01-22",
  "passengers": 2,
  "results": [
    {
      "type": "lower",
      "price": 350.50,
      "arrival_time": "11:30",
      "duration": "3h 30m",
      "stops": 0
    },
    {
      "type": "average",
      "price": 380.00,
      "arrival_time": "13:00",
      "duration": "4h 30m",
      "stops": 1
    }
    // More flight options...
  ]
}

2. Get Hotel Prices

Endpoint

bashCopy code
GET /hotels

Parameters

Response

jsonCopy code
{
  "destination": "Paris",
  "checkin_date": "2024-06-10",
  "checkout_date": "2024-06-15",
  "rooms": 1,
  "adults": 2,
  "children": 0,
  "results": [
    {
      "hotel_type": "3 stars",
      "price_per_night": 150.00,
      "rating": 4.5,
      "amenities": ["Free WiFi", "Gym", "Swimming Pool"]
    },
    {
      "hotel_type": "4 stars",
      "price_per_night": 180.00,
      "rating": 4.2,
      "amenities": ["Breakfast Included", "Spa", "Parking"]
    }
    // More hotel options...
  ]
}