- Auth
- Customer
- Passengers
- invoice Info
- Favorite Flights
- Notifications
- Fast Actions
- Customer - Get ProfileGET
- Customer - Update ProfilePOST
- Customer - Update PasswordPOST
- Search History - FlightGET
- Customer - Remove AccountDELETE
- Utils
- Flight
- Bus
- Hotel
- Socket
- Auto Completes
- Queue / Socket
- Misc
- Payment
- Orders
- Blog
- Contents
- Refund
- Notifications
- Otp VerifyPOST
Airport Search
Developing
Testing Env
Testing Env
GET
https://test-api.ucuzyolu.com/search/airports
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
q
string
required
>= 3 characters
Example:
ist
type
enum<string>
optional
Allowed values:
cityairportall
lang
enum<string>
optional
>= 2 characters<= 2 characters
Allowed values:
trenar
Default:
tr
country
string
optional
Header Params
Accept-Language
string
required
Example:
tr
client-id
string
optional
Default:
302382-1928283273-237723829-292999
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://test-api.ucuzyolu.com/search/airports?q=ist&type&lang&country' \
--header 'Accept-Language: tr' \
--header 'client-id: 302382-1928283273-237723829-292999'
Responses
🟢200OK
application/json
Body
data
array[object (Airport Search) {8}]
required
cityCode
string
required
cityName
string
required
citySlug
string
required
airportName
string
required
countryCode
string
required
countryName
string
required
isCity
boolean
required
airports
array [object {2}]
optional
success
boolean
required
code
integer
required
message
string
required
Examples
{
"data": [
{
"cityCode": "IST",
"cityName": "Istanbul",
"citySlug": "istanbul",
"airportName": "Tüm Havalimanları",
"countryCode": "TR",
"countryName": "Türkiye",
"isCity": true,
"airports": [
{
"airportCode": "IST",
"airportName": "Atatürk Havalimanı"
},
{
"airportCode": "SAW",
"airportName": "Sabiha Gökçen Uluslararası Havalimanı"
}
]
}
],
"success": true,
"code": 0,
"message": ""
}
Modified at 2024-08-22 07:47:05