curl --request POST \
--url https://api.anysite.io/api/momondo/stays/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"city_id": "<string>",
"checkin_date": "2023-12-25",
"checkout_date": "2023-12-25",
"count": 2,
"timeout": 300,
"adults": 2,
"children_ages": [],
"rooms": 1,
"max_price": 1,
"min_stars": 3,
"property_types": [],
"amenities": [],
"freebies": [],
"sort": "best"
}
'import requests
url = "https://api.anysite.io/api/momondo/stays/search"
payload = {
"city_id": "<string>",
"checkin_date": "2023-12-25",
"checkout_date": "2023-12-25",
"count": 2,
"timeout": 300,
"adults": 2,
"children_ages": [],
"rooms": 1,
"max_price": 1,
"min_stars": 3,
"property_types": [],
"amenities": [],
"freebies": [],
"sort": "best"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
city_id: '<string>',
checkin_date: '2023-12-25',
checkout_date: '2023-12-25',
count: 2,
timeout: 300,
adults: 2,
children_ages: [],
rooms: 1,
max_price: 1,
min_stars: 3,
property_types: [],
amenities: [],
freebies: [],
sort: 'best'
})
};
fetch('https://api.anysite.io/api/momondo/stays/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/momondo/stays/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'city_id' => '<string>',
'checkin_date' => '2023-12-25',
'checkout_date' => '2023-12-25',
'count' => 2,
'timeout' => 300,
'adults' => 2,
'children_ages' => [
],
'rooms' => 1,
'max_price' => 1,
'min_stars' => 3,
'property_types' => [
],
'amenities' => [
],
'freebies' => [
],
'sort' => 'best'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/momondo/stays/search"
payload := strings.NewReader("{\n \"city_id\": \"<string>\",\n \"checkin_date\": \"2023-12-25\",\n \"checkout_date\": \"2023-12-25\",\n \"count\": 2,\n \"timeout\": 300,\n \"adults\": 2,\n \"children_ages\": [],\n \"rooms\": 1,\n \"max_price\": 1,\n \"min_stars\": 3,\n \"property_types\": [],\n \"amenities\": [],\n \"freebies\": [],\n \"sort\": \"best\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/momondo/stays/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"city_id\": \"<string>\",\n \"checkin_date\": \"2023-12-25\",\n \"checkout_date\": \"2023-12-25\",\n \"count\": 2,\n \"timeout\": 300,\n \"adults\": 2,\n \"children_ages\": [],\n \"rooms\": 1,\n \"max_price\": 1,\n \"min_stars\": 3,\n \"property_types\": [],\n \"amenities\": [],\n \"freebies\": [],\n \"sort\": \"best\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/momondo/stays/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"city_id\": \"<string>\",\n \"checkin_date\": \"2023-12-25\",\n \"checkout_date\": \"2023-12-25\",\n \"count\": 2,\n \"timeout\": 300,\n \"adults\": 2,\n \"children_ages\": [],\n \"rooms\": 1,\n \"max_price\": 1,\n \"min_stars\": 3,\n \"property_types\": [],\n \"amenities\": [],\n \"freebies\": [],\n \"sort\": \"best\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "MomondoStay",
"name": "<string>",
"stars": 123,
"review_score": 123,
"review_count": 123,
"review_label": "<string>",
"property_type": "<string>",
"chain": "<string>",
"image": "<string>",
"images": [],
"price": 123,
"price_total": 123,
"historic_high_price": 123,
"discount_percent": 123,
"currency": "<string>",
"latitude": 123,
"longitude": 123,
"neighborhood": "<string>",
"city": "<string>",
"distance": "<string>",
"phone": "<string>",
"website_url": "<string>",
"url": "<string>",
"amenities": [],
"provider_count": 123,
"is_free_cancellation": true,
"offers": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/momondo/stays/search
Search momondo hotels for a destination city over a check-in/check-out date range, guest and room count. Returns ranked hotels with name, star rating, guest review score and label, property type, the cheapest nightly and total price, per-provider booking offers with deeplinks, neighbourhood, exact coordinates, distance to the city centre, amenities, photos, description, phone and hotel website. Optional filters narrow the results by max price, minimum star rating, minimum review score, property types, amenities and free perks. The destination is a momondo city id (resolve it via the places search city_id).
Price: 20 credits per 30 results
⚠️ Common errors: 412: Destination not found or no hotels available for the given dates
curl --request POST \
--url https://api.anysite.io/api/momondo/stays/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"city_id": "<string>",
"checkin_date": "2023-12-25",
"checkout_date": "2023-12-25",
"count": 2,
"timeout": 300,
"adults": 2,
"children_ages": [],
"rooms": 1,
"max_price": 1,
"min_stars": 3,
"property_types": [],
"amenities": [],
"freebies": [],
"sort": "best"
}
'import requests
url = "https://api.anysite.io/api/momondo/stays/search"
payload = {
"city_id": "<string>",
"checkin_date": "2023-12-25",
"checkout_date": "2023-12-25",
"count": 2,
"timeout": 300,
"adults": 2,
"children_ages": [],
"rooms": 1,
"max_price": 1,
"min_stars": 3,
"property_types": [],
"amenities": [],
"freebies": [],
"sort": "best"
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
city_id: '<string>',
checkin_date: '2023-12-25',
checkout_date: '2023-12-25',
count: 2,
timeout: 300,
adults: 2,
children_ages: [],
rooms: 1,
max_price: 1,
min_stars: 3,
property_types: [],
amenities: [],
freebies: [],
sort: 'best'
})
};
fetch('https://api.anysite.io/api/momondo/stays/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.anysite.io/api/momondo/stays/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'city_id' => '<string>',
'checkin_date' => '2023-12-25',
'checkout_date' => '2023-12-25',
'count' => 2,
'timeout' => 300,
'adults' => 2,
'children_ages' => [
],
'rooms' => 1,
'max_price' => 1,
'min_stars' => 3,
'property_types' => [
],
'amenities' => [
],
'freebies' => [
],
'sort' => 'best'
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/momondo/stays/search"
payload := strings.NewReader("{\n \"city_id\": \"<string>\",\n \"checkin_date\": \"2023-12-25\",\n \"checkout_date\": \"2023-12-25\",\n \"count\": 2,\n \"timeout\": 300,\n \"adults\": 2,\n \"children_ages\": [],\n \"rooms\": 1,\n \"max_price\": 1,\n \"min_stars\": 3,\n \"property_types\": [],\n \"amenities\": [],\n \"freebies\": [],\n \"sort\": \"best\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/momondo/stays/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"city_id\": \"<string>\",\n \"checkin_date\": \"2023-12-25\",\n \"checkout_date\": \"2023-12-25\",\n \"count\": 2,\n \"timeout\": 300,\n \"adults\": 2,\n \"children_ages\": [],\n \"rooms\": 1,\n \"max_price\": 1,\n \"min_stars\": 3,\n \"property_types\": [],\n \"amenities\": [],\n \"freebies\": [],\n \"sort\": \"best\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/momondo/stays/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"city_id\": \"<string>\",\n \"checkin_date\": \"2023-12-25\",\n \"checkout_date\": \"2023-12-25\",\n \"count\": 2,\n \"timeout\": 300,\n \"adults\": 2,\n \"children_ages\": [],\n \"rooms\": 1,\n \"max_price\": 1,\n \"min_stars\": 3,\n \"property_types\": [],\n \"amenities\": [],\n \"freebies\": [],\n \"sort\": \"best\"\n}"
response = http.request(request)
puts response.read_body[
{
"id": "<string>",
"@type": "MomondoStay",
"name": "<string>",
"stars": 123,
"review_score": 123,
"review_count": 123,
"review_label": "<string>",
"property_type": "<string>",
"chain": "<string>",
"image": "<string>",
"images": [],
"price": 123,
"price_total": 123,
"historic_high_price": 123,
"discount_percent": 123,
"currency": "<string>",
"latitude": 123,
"longitude": 123,
"neighborhood": "<string>",
"city": "<string>",
"distance": "<string>",
"phone": "<string>",
"website_url": "<string>",
"url": "<string>",
"amenities": [],
"provider_count": 123,
"is_free_cancellation": true,
"offers": []
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
^\d+$x >= 120 <= x <= 15001 <= x <= 81 <= x <= 8x > 02 <= x <= 56, 7, 8, 9 aparthotel, bed_and_breakfast, guesthouse, hostel, hotel, inn, motel, resort, apartment, condo, homestay, house, lodge, villa, campground air_conditioning, hairdryer, wifi, non_smoking, elevator, front_desk_24h, fitness, parking, accessible, business_center, pet_friendly, restaurant, internet, kitchen, airport_shuttle, ev_charging, pool, spa, hot_tub, terrace, casino, grill, adults_only, golf, fireplace, game_room, beachfront free_internet, free_cancellation, free_breakfast, pay_later, free_parking, free_airport_shuttle best, cheapest, review_score, stars Response
Successful Response
Show child attributes
Show child attributes