Flight Deals 💰
Flight Deals 💰 · GPT 작업
Tequila Search API
API for searching flight itineraries.
GET /searchSearch for one-way or return itinerariesThis endpoint searches for flight itineraries based on various criteria.
원본 API 스키마
{
"openapi": "3.0.0",
"info": {
"title": "Tequila Search API",
"description": "API for searching flight itineraries.",
"version": "1.0.0"
},
"servers": [
{
"url": "https://flight-api.replit.app/",
"description": "Custom API"
}
],
"paths": {
"/search": {
"get": {
"operationId": "searchFlights",
"summary": "Search for one-way or return itineraries",
"description": "This endpoint searches for flight itineraries based on various criteria.",
"parameters": [
{
"name": "fly_from",
"in": "query",
"required": true,
"description": "IATA code of the departure location",
"schema": {
"type": "string"
}
},
{
"name": "fly_to",
"in": "query",
"required": true,
"description": "IATA code of the arrival location",
"schema": {
"type": "string"
}
},
{
"name": "date_from",
"in": "query",
"required": true,
"description": "Start date for departure",
"schema": {
"type": "string",
"format": "date"
}
},
{
"name": "date_to",
"in": "query",
"required": true,
"description": "End date for departure",
"schema": {
"type": "string",
"format": "date"
}
},
{
"name": "return_from",
"in": "query",
"description": "Return date (dd/mm/yyyy). Use parameters return_from and return_to to define the range for the return flight departure.",
"schema": {
"type": "string"
},
"example": "04/04/2021"
},
{
"name": "return_to",
"in": "query",
"description": "Return date (dd/mm/yyyy). Use parameters return_from and return_to to define the range for the return flight departure.",
"schema": {
"type": "string"
},
"example": "06/04/2021"
},
{
"name": "price_from",
"in": "query",
"description": "Result filter, minimal price.",
"schema": {
"type": "integer"
}
},
{
"name": "price_to",
"in": "query",
"description": "Result filter, maximal price.",
"schema": {
"type": "integer"
}
},
{
"name": "dtime_from",
"in": "query",
"description": "Result filter, minimum departure time (use only time in whole hours, not minutes; e.g., 11:00 means 11 AM).",
"schema": {
"type": "string"
}
},
{
"name": "dtime_to",
"in": "query",
"description": "Result filter, maximum departure time (use only time in whole hours, not minutes; e.g., 23:00 means 11 PM).",
"schema": {
"type": "string"
}
},
{
"name": "atime_from",
"in": "query",
"description": "Result filter, minimum arrival time (use only time in whole hours, not minutes; e.g., 11:00 means 11 AM).",
"schema": {
"type": "string"
}
},
{
"name": "atime_to",
"in": "query",
"description": "Result filter, maximum arrival time (use only time in whole hours, not minutes; e.g., 23:00 means 11 PM).",
"schema": {
"type": "string"
}
},
{
"name": "ret_dtime_from",
"in": "query",
"description": "Result filter, minimum departure time of the returning flight (use only time in whole hours, not minutes).",
"schema": {
"type": "string"
}
},
{
"name": "ret_dtime_to",
"in": "query",
"description": "Result filter, maximum departure time of the returning flight (use only time in whole hours, not minutes).",
"schema": {
"type": "string"
}
},
{
"name": "ret_atime_from",
"in": "query",
"description": "Result filter, minimum arrival time of the returning flight (use only time in whole hours, not minutes).",
"schema": {
"type": "string"
}
},
{
"name": "ret_atime_to",
"in": "query",
"description": "Result filter, maximum arrival time of the returning flight (use only time in whole hours, not minutes).",
"schema": {
"type": "string"
}
},
{
"name": "max_stopovers",
"in": "query",
"description": "max number of stopovers per the entire itinerary (outbound + return). Use 'max_stopovers=0' for direct flights only.",
"schema": {
"type": "integer"
}
}
],
"responses": {
"200": {
"description": "Successful response with flight itineraries",
"content": {
"application/json": {
"schema": {
"type": "object",
"properties": {
"search_id": {
"type": "string"
},
"data": {
"type": "array",
"items": {
"$ref": "#/components/schemas/FlightItinerary"
}
}
}
}
}
}
},
"400": {
"description": "Bad request"
},
"422": {
"description": "Not recognised location parameter"
}
}
}
}
},
"components": {
"schemas": {
"FlightItinerary": {
"type": "object",
"properties": {
"exampleProperty": {
"type": "string"
}
}
}
}
},
"securitySchemes": {
"ApiKeyAuth": {
"type": "apiKey",
"in": "header",
"name": "x-api-key"
}
},
"security": [
{
"ApiKeyAuth": []
}
]
}