Check availability and price on the booking site
curl --request GET \
--url https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availabilityimport requests
url = "https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability', 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.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"available": true,
"reason_code": "<string>",
"reason_message": "<string>",
"reason_count": 123,
"price": {
"accommodation_total": 123,
"discount_amount": 123,
"fees_total": 123,
"taxes_total": 123,
"grand_total": 123,
"nightly_rates": {},
"discounts": "<string>",
"fees": "<string>",
"taxes": "<string>",
"coupon_code": "<string>"
},
"units_left": 123
}
}{
"message": "<string>",
"errors": {}
}Public
Check availability and price on the booking site
Checks whether a booking-site listing can be booked for the dates and guests (adults, children, infants,
or guests for adults and children together), and returns the price breakdown in cents, as the booking site would. No token needed. Accepts a coupon_code, and pets=1 to include the pet fee.
GET
/
v1
/
public
/
{teamSlug}
/
listings
/
{listingSlug}
/
availability
Check availability and price on the booking site
curl --request GET \
--url https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availabilityimport requests
url = "https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability', 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.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.overviu.app/api/v1/public/{teamSlug}/listings/{listingSlug}/availability")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"available": true,
"reason_code": "<string>",
"reason_message": "<string>",
"reason_count": 123,
"price": {
"accommodation_total": 123,
"discount_amount": 123,
"fees_total": 123,
"taxes_total": 123,
"grand_total": 123,
"nightly_rates": {},
"discounts": "<string>",
"fees": "<string>",
"taxes": "<string>",
"coupon_code": "<string>"
},
"units_left": 123
}
}{
"message": "<string>",
"errors": {}
}