hetras Hotel API Version 0
hetras-certification · Company
hetras Hotel API Version 0 API
Authentication
Sample Requests
Load the details about all the hotels your application has access to.
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/hotel/v0/api/hotel/v0/hotels" \ -H "App-Id: example" \ -H "App-Key: example"
import requests
headers = {
"App-Id": "example",
"App-Key": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels",
headers=headers,
)
print(response.json())const url = 'https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels';
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"
)
func main() {
targetURL := "https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels"
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/hotel/v0/api/hotel/v0/hotels")
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/hotel/v0/api/hotel/v0/hotels";
$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 call you can find codes for a hotel by type or code. By default and without any filter criteria defined it will return you all available codes.
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/hotel/v0/api/hotel/v0/hotels/{hotelId}/codes?code=example&type=GuestRequest" \
-H "App-Id: example" \
-H "App-Key: example"import requests
params = {
"code": "example",
"type": "GuestRequest"
}
headers = {
"App-Id": "example",
"App-Key": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels/{hotelId}/codes",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels/{hotelId}/codes');
url.searchParams.set('code', 'example');
url.searchParams.set('type', 'GuestRequest');
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/hotel/v0/api/hotel/v0/hotels/{hotelId}/codes")
q := baseURL.Query()
q.Set("code", "example")
q.Set("type", "GuestRequest")
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/hotel/v0/api/hotel/v0/hotels/{hotelId}/codes")
uri.query = URI.encode_www_form({
"code" => "example",
"type" => "GuestRequest"
})
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/hotel/v0/api/hotel/v0/hotels/{hotelId}/codes?" . http_build_query([
"code" => "example",
"type" => "GuestRequest"
]);
$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 call you can find rateplans for a hotel by different filters. By default and without any filter criteria defined it will return you all active rateplans.
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/hotel/v0/api/hotel/v0/hotels/{hotelId}/rateplans?top=1&skip=1&group=example&roomTypes=example&channelCode=example&inlinecount=None&marketCodes=example&baseRateplan=example&channelGroup=example&sellingStatus=Active&commissionable=true&includedServices=example" \
-H "App-Id: example" \
-H "App-Key: example"import requests
params = {
"top": "1",
"skip": "1",
"group": "example",
"roomTypes": "example",
"channelCode": "example",
"inlinecount": "None",
"marketCodes": "example",
"baseRateplan": "example",
"channelGroup": "example",
"sellingStatus": "Active",
"commissionable": "true",
"includedServices": "example"
}
headers = {
"App-Id": "example",
"App-Key": "example"
}
response = requests.get(
"https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels/{hotelId}/rateplans",
params=params,
headers=headers,
)
print(response.json())const url = new URL('https://api.apis.guru/v2/specs/hetras-certification.net/hotel/v0/api/hotel/v0/hotels/{hotelId}/rateplans');
url.searchParams.set('top', '1');
url.searchParams.set('skip', '1');
url.searchParams.set('group', 'example');
url.searchParams.set('roomTypes', 'example');
url.searchParams.set('channelCode', 'example');
url.searchParams.set('inlinecount', 'None');
url.searchParams.set('marketCodes', 'example');
url.searchParams.set('baseRateplan', 'example');
url.searchParams.set('channelGroup', 'example');
url.searchParams.set('sellingStatus', 'Active');
url.searchParams.set('commissionable', 'true');
url.searchParams.set('includedServices', '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/hotel/v0/api/hotel/v0/hotels/{hotelId}/rateplans")
q := baseURL.Query()
q.Set("top", "1")
q.Set("skip", "1")
q.Set("group", "example")
q.Set("roomTypes", "example")
q.Set("channelCode", "example")
q.Set("inlinecount", "None")
q.Set("marketCodes", "example")
q.Set("baseRateplan", "example")
q.Set("channelGroup", "example")
q.Set("sellingStatus", "Active")
q.Set("commissionable", "true")
q.Set("includedServices", "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/hotel/v0/api/hotel/v0/hotels/{hotelId}/rateplans")
uri.query = URI.encode_www_form({
"top" => "1",
"skip" => "1",
"group" => "example",
"roomTypes" => "example",
"channelCode" => "example",
"inlinecount" => "None",
"marketCodes" => "example",
"baseRateplan" => "example",
"channelGroup" => "example",
"sellingStatus" => "Active",
"commissionable" => "true",
"includedServices" => "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/hotel/v0/api/hotel/v0/hotels/{hotelId}/rateplans?" . http_build_query([
"top" => "1",
"skip" => "1",
"group" => "example",
"roomTypes" => "example",
"channelCode" => "example",
"inlinecount" => "None",
"marketCodes" => "example",
"baseRateplan" => "example",
"channelGroup" => "example",
"sellingStatus" => "Active",
"commissionable" => "true",
"includedServices" => "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 Hotel API Version 0?
hetras Hotel 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 Hotel API Version 0 is free to use, making it a low-risk choice to experiment with.
New to APIs? Read our beginner's guide