AirTrack GPT - Cheap Flights, Hotels & Rental Cars
AirTrack GPT - Cheap Flights, Hotels & Rental Cars · Acciones GPT
AirTrackGPT API
GET /api/searchCarsSearch for carsGET /api/searchSearch for flights when exact flight dates are providedGET /api/searchCacheSearch for flights without specific datesGET /api/searchHotelV3Search for hotels
Esquema original API
{
"openapi": "3.1.0",
"info": {
"title": "AirTrackGPT API",
"version": "1.0.0"
},
"servers": [
{
"url": "https://airtrackgpt.com/",
"description": "Production Server"
}
],
"paths": {
"/api/searchCars": {
"get": {
"summary": "Search for cars",
"operationId": "searchCars",
"parameters": [
{
"name": "pickUpLocation",
"in": "query",
"description": "Location where the car will be picked up",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "pickUpDate",
"in": "query",
"description": "Pick-up date (format: yyyy-MM-dd)",
"required": true,
"schema": {
"type": "string",
"format": "date"
}
},
{
"name": "dropOffDate",
"in": "query",
"description": "Drop-off date (format: yyyy-MM-dd)",
"required": true,
"schema": {
"type": "string",
"format": "date"
}
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
},
"/api/search": {
"get": {
"summary": "Search for flights when exact flight dates are provided",
"operationId": "searchFlights",
"parameters": [
{
"name": "from",
"in": "query",
"description": "The departure airport code",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "to",
"in": "query",
"description": "The arrival airport code",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "departure",
"in": "query",
"description": "The departure date (format: yyyy-MM-dd)",
"required": true,
"schema": {
"type": "string",
"format": "date"
}
},
{
"name": "arrival",
"in": "query",
"description": "The arrival date (format: yyyy-MM-dd)",
"required": false,
"schema": {
"type": "string",
"format": "date"
}
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
},
"/api/searchCache": {
"get": {
"summary": "Search for flights without specific dates",
"operationId": "searchFlightsCache",
"parameters": [
{
"name": "from",
"in": "query",
"description": "Departure place. Accepts only one airport IATA code or city name.",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "to",
"in": "query",
"description": "Arrival place. Accepts only one airport IATA code or city name.",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "is_any_date",
"in": "query",
"description": "Boolean value. Use false if 'month' and 'year' parameters are not provided, otherwise pass true",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "is_one_way",
"in": "query",
"description": "Describe if user flight search needs to be one way. Pass true in case it is one way search, otherwise false",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "year",
"in": "query",
"description": "If user specified some month where he is planning to search then provide in this parameter year of the flight in format YYYY. Year and month parameters should represent date in the future. If month is less then current month so provide year as next one",
"required": false,
"schema": {
"type": "string"
}
},
{
"name": "month",
"in": "query",
"description": "If user specified month where he is planning to search then provide in this parameter month of the flight in format MM",
"required": false,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
},
"/api/searchHotelV3": {
"get": {
"summary": "Search for hotels",
"operationId": "searchHotels",
"parameters": [
{
"name": "cityName",
"in": "query",
"description": "Name of the city where hotel should be found",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "peopleAmount",
"in": "query",
"description": "Amount of people to live in the hotel. Should be number more then 0. Pass value 2 as default if not specified",
"required": true,
"schema": {
"type": "integer"
}
},
{
"name": "checkIn",
"in": "query",
"description": "Check in hotel date (format: yyyy-MM-dd)",
"required": true,
"schema": {
"type": "string"
}
},
{
"name": "checkOut",
"in": "query",
"description": "Check out hotel date (format: yyyy-MM-dd)",
"required": true,
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "Successful response"
}
}
}
}
}
}