hetras Booking API Version 0
hetras-certification · Company
hetras Booking API Version 0 API
Authentication
Sample Requests
With the addons request you can get a list of offers for addon services available for a specific rate, room type and guest stay details.The channel code will define which rates will be returned based on the access control configuration for related rates.
Hover any highlighted part to learn what it does
| App-Id | example |
| App-Key | example |
curl -X GET "https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/addons?rooms=example&adults=example&expand=None&hotelId=1&roomType=example&arrivalDate=example&channelCode=example&ratePlanCode=example&departureDate=example" \ -H "App-Id: example" \ -H "App-Key: example"
import requests
params = {
"rooms": "example",
"adults": "example",
"expand": "None",
"hotelId": "1",
"roomType": "example",
"arrivalDate": "example",
"channelCode": "example",
"ratePlanCode": "example",
"departureDate": "example"
}
headers = {
"App-Id": "example",
"App-Key": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/addons",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/addons');
url.searchParams.set('rooms', 'example');
url.searchParams.set('adults', 'example');
url.searchParams.set('expand', 'None');
url.searchParams.set('hotelId', '1');
url.searchParams.set('roomType', 'example');
url.searchParams.set('arrivalDate', 'example');
url.searchParams.set('channelCode', 'example');
url.searchParams.set('ratePlanCode', 'example');
url.searchParams.set('departureDate', 'example');
const response = await fetch(url, {
headers: {
'App-Id': 'example',
'App-Key': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/addons")
q := baseURL.Query()
q.Set("rooms", "example")
q.Set("adults", "example")
q.Set("expand", "None")
q.Set("hotelId", "1")
q.Set("roomType", "example")
q.Set("arrivalDate", "example")
q.Set("channelCode", "example")
q.Set("ratePlanCode", "example")
q.Set("departureDate", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("App-Id", "example")
req.Header.Set("App-Key", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/addons")
uri.query = URI.encode_www_form({
"rooms" => "example",
"adults" => "example",
"expand" => "None",
"hotelId" => "1",
"roomType" => "example",
"arrivalDate" => "example",
"channelCode" => "example",
"ratePlanCode" => "example",
"departureDate" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["App-Id"] = "example"
req["App-Key"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/addons?" . http_build_query([
"rooms" => "example",
"adults" => "example",
"expand" => "None",
"hotelId" => "1",
"roomType" => "example",
"arrivalDate" => "example",
"channelCode" => "example",
"ratePlanCode" => "example",
"departureDate" => "example"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"App-Id: example",
"App-Key: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Read past occupancy and future availability for a specific hotel. You can also request the breakdown per room type.
Hover any highlighted part to learn what it does
| App-Id | example |
| App-Key | example |
curl -X GET "https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/availability?to=2024-12-31&top=1&from=2024-01-01&skip=1&expand=RoomTypes&hotelId=1&inlinecount=None" \ -H "App-Id: example" \ -H "App-Key: example"
import requests
params = {
"to": "2024-12-31",
"top": "1",
"from": "2024-01-01",
"skip": "1",
"expand": "RoomTypes",
"hotelId": "1",
"inlinecount": "None"
}
headers = {
"App-Id": "example",
"App-Key": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/availability",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/availability');
url.searchParams.set('to', '2024-12-31');
url.searchParams.set('top', '1');
url.searchParams.set('from', '2024-01-01');
url.searchParams.set('skip', '1');
url.searchParams.set('expand', 'RoomTypes');
url.searchParams.set('hotelId', '1');
url.searchParams.set('inlinecount', 'None');
const response = await fetch(url, {
headers: {
'App-Id': 'example',
'App-Key': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/availability")
q := baseURL.Query()
q.Set("to", "2024-12-31")
q.Set("top", "1")
q.Set("from", "2024-01-01")
q.Set("skip", "1")
q.Set("expand", "RoomTypes")
q.Set("hotelId", "1")
q.Set("inlinecount", "None")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("App-Id", "example")
req.Header.Set("App-Key", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/availability")
uri.query = URI.encode_www_form({
"to" => "2024-12-31",
"top" => "1",
"from" => "2024-01-01",
"skip" => "1",
"expand" => "RoomTypes",
"hotelId" => "1",
"inlinecount" => "None"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["App-Id"] = "example"
req["App-Key"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/availability?" . http_build_query([
"to" => "2024-12-31",
"top" => "1",
"from" => "2024-01-01",
"skip" => "1",
"expand" => "RoomTypes",
"hotelId" => "1",
"inlinecount" => "None"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"App-Id: example",
"App-Key: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));With this endpoint you can request a list of blocks for the hotel chain. Currently we only support to optionally filter by the group code linked to the block. Additional filters will be available soon.
Hover any highlighted part to learn what it does
| App-Id | example |
| App-Key | example |
curl -X GET "https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/blocks?to=2024-12-31&top=1&from=2024-01-01&skip=1&status=Cancelled&hotelId=1&groupCode=example&inlinecount=None&countDetails=true&ratePlanCodes=example" \ -H "App-Id: example" \ -H "App-Key: example"
import requests
params = {
"to": "2024-12-31",
"top": "1",
"from": "2024-01-01",
"skip": "1",
"status": "Cancelled",
"hotelId": "1",
"groupCode": "example",
"inlinecount": "None",
"countDetails": "true",
"ratePlanCodes": "example"
}
headers = {
"App-Id": "example",
"App-Key": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/blocks",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/blocks');
url.searchParams.set('to', '2024-12-31');
url.searchParams.set('top', '1');
url.searchParams.set('from', '2024-01-01');
url.searchParams.set('skip', '1');
url.searchParams.set('status', 'Cancelled');
url.searchParams.set('hotelId', '1');
url.searchParams.set('groupCode', 'example');
url.searchParams.set('inlinecount', 'None');
url.searchParams.set('countDetails', 'true');
url.searchParams.set('ratePlanCodes', 'example');
const response = await fetch(url, {
headers: {
'App-Id': 'example',
'App-Key': 'example'
},
});
const data = await response.json();
console.log(data);package main
import (
"fmt"
"io"
"net/http"
"net/url"
)
func main() {
baseURL, _ := url.Parse("https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/blocks")
q := baseURL.Query()
q.Set("to", "2024-12-31")
q.Set("top", "1")
q.Set("from", "2024-01-01")
q.Set("skip", "1")
q.Set("status", "Cancelled")
q.Set("hotelId", "1")
q.Set("groupCode", "example")
q.Set("inlinecount", "None")
q.Set("countDetails", "true")
q.Set("ratePlanCodes", "example")
baseURL.RawQuery = q.Encode()
targetURL := baseURL.String()
req, _ := http.NewRequest("GET", targetURL, nil)
req.Header.Set("App-Id", "example")
req.Header.Set("App-Key", "example")
client := &http.Client{}
resp, _ := client.Do(req)
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}require "net/http"
require "json"
uri = URI("https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/blocks")
uri.query = URI.encode_www_form({
"to" => "2024-12-31",
"top" => "1",
"from" => "2024-01-01",
"skip" => "1",
"status" => "Cancelled",
"hotelId" => "1",
"groupCode" => "example",
"inlinecount" => "None",
"countDetails" => "true",
"ratePlanCodes" => "example"
})
http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"
req = Net::HTTP::Get.new(uri)
req["App-Id"] = "example"
req["App-Key"] = "example"
res = http.request(req)
puts JSON.parse(res.body)<?php
$url = "https://api.apis.guru/v2/specs/hetras-certification.net/booking/v0/api/booking/v0/blocks?" . http_build_query([
"to" => "2024-12-31",
"top" => "1",
"from" => "2024-01-01",
"skip" => "1",
"status" => "Cancelled",
"hotelId" => "1",
"groupCode" => "example",
"inlinecount" => "None",
"countDetails" => "true",
"ratePlanCodes" => "example"
]);
$opts = ["http" => [
"method" => "GET",
"header" => implode("\r\n", [
"App-Id: example",
"App-Key: example"
]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));Postman Setup Guide
- See official documentation for authentication and setup.
What can you build with hetras Booking API Version 0?
hetras Booking API Version 0 is a Company API. Developers commonly use company APIs for:
- enriching CRM records with company firmographics
- building lead-generation and prospecting tools
- verifying business identity and registration details
- monitoring competitors and market intelligence
- powering B2B data enrichment pipelines
No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. hetras Booking API Version 0 is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide