- 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
- Checkout
- Otp VerifyPOST
- StatusGET
Hotel Search
Developing
GET
https://test-api.ucuzyolu.com/search/hotels
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
q
string
required
Example:
İstanbul
Header Params
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/hotels?q=İstanbul' \
--header 'client-id: 302382-1928283273-237723829-292999'
Responses
🟢200OK
application/json
Body
data
object
required
locations
array [object {3}]
required
hotels
array [object {4}]
required
success
boolean
required
code
integer
required
message
string
required
Example
{
"data": {
"locations": [
{
"id": 10033097,
"name": "Istanbul",
"isCity": false
}
],
"hotels": [
{
"id": 2,
"name": "Radisson Hotel Istanbul Harbiye",
"city": "Istanbul",
"country": "Turkey"
},
{
"id": 3,
"name": "The St Regis Istanbul",
"city": "Istanbul",
"country": "Turkey"
},
{
"id": 1,
"name": "Dosso Dossi Hotels&Spa Downtown",
"city": "Istanbul",
"country": "Turkey"
},
{
"id": 4,
"name": "Hotel Casa Mia Old City",
"city": "Istanbul",
"country": "Turkey"
},
{
"id": 5,
"name": "Swissotel Living",
"city": "Istanbul",
"country": "Turkey"
}
]
},
"success": true,
"code": 0,
"message": ""
}
Modified at 2024-10-21 01:09:21