Fetch rich metadata (gallery, facilities, policies, per-room details) for a single hotel
curl --request GET \
--url https://api.gojinko.com/v1/hotel_details/{hotel_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.gojinko.com/v1/hotel_details/{hotel_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.gojinko.com/v1/hotel_details/{hotel_id}', 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.gojinko.com/v1/hotel_details/{hotel_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.gojinko.com/v1/hotel_details/{hotel_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.gojinko.com/v1/hotel_details/{hotel_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gojinko.com/v1/hotel_details/{hotel_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"hotel": {
"id": "lp1d2c3",
"hotel_ref": "h1:lp1d2c3",
"name": "Hôtel Le Marais",
"description": "A boutique 4-star hotel in the heart of the Marais district.",
"star_rating": 4,
"rating": 8.6,
"review_count": 1243,
"child_allowed": true,
"pets_allowed": false,
"address": "12 Rue de Rivoli",
"city": "Paris",
"country_code": "FR",
"coordinates": {
"latitude": 48.8566,
"longitude": 2.3522
},
"images": [
"https://images.gojinko.com/hotels/htl_8f21a9c0/1.jpg"
],
"facilities": [
"Free WiFi",
"Air conditioning",
"24-hour front desk"
],
"facility_items": [
{
"id": 107,
"label": "Free WiFi"
},
{
"id": 2,
"label": "Air conditioning"
}
],
"policies": [
{
"name": "Pets",
"description": "Pets are not allowed.",
"policy_type": "pets",
"child_allowed": true,
"pets_allowed": false
}
],
"check_in_time": "15:00",
"check_out_time": "11:00"
},
"rooms": [
{
"id": "rm_1",
"name": "Superior Double",
"description": "<string>",
"amenities": [
"Air conditioning",
"Safe"
],
"amenity_items": [
{
"id": 312,
"label": "Shower"
},
{
"id": 339,
"label": "TV"
}
],
"bed_types": [
"1 double bed"
],
"room_capacity": 2,
"max_occupancy": 2,
"max_adults": 2,
"max_children": 1,
"size_sqm": 18.5,
"views": [
"Courtyard"
],
"images": [
"<string>"
]
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "Malformed JSON in request body.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "AUTH_REQUIRED",
"message": "Invalid or expired API key.",
"doc_url": "https://docs.gojinko.com/authentication/api-keys"
}
}{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Insufficient balance — this call costs $0.0150 and your organization has $0.0000 available. Top up at https://dashboard.gojinko.com/developers/billing/topup",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state of the resource.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "GONE",
"message": "The resource no longer exists.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A required field is missing or invalid.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_REJECTED",
"message": "The request was declined for this offer. Try another offer.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The service is temporarily unavailable. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_TIMEOUT",
"message": "The request timed out before a result was available. Retry the request.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}Hotels
hotel-details
Fetch rich metadata (gallery, facilities, policies, per-room details) for a single hotel
GET
/
v1
/
hotel_details
/
{hotel_id}
Fetch rich metadata (gallery, facilities, policies, per-room details) for a single hotel
curl --request GET \
--url https://api.gojinko.com/v1/hotel_details/{hotel_id} \
--header 'X-API-Key: <api-key>'import requests
url = "https://api.gojinko.com/v1/hotel_details/{hotel_id}"
headers = {"X-API-Key": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<api-key>'}};
fetch('https://api.gojinko.com/v1/hotel_details/{hotel_id}', 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.gojinko.com/v1/hotel_details/{hotel_id}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <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"
"net/http"
"io"
)
func main() {
url := "https://api.gojinko.com/v1/hotel_details/{hotel_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<api-key>")
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.gojinko.com/v1/hotel_details/{hotel_id}")
.header("X-API-Key", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.gojinko.com/v1/hotel_details/{hotel_id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"hotel": {
"id": "lp1d2c3",
"hotel_ref": "h1:lp1d2c3",
"name": "Hôtel Le Marais",
"description": "A boutique 4-star hotel in the heart of the Marais district.",
"star_rating": 4,
"rating": 8.6,
"review_count": 1243,
"child_allowed": true,
"pets_allowed": false,
"address": "12 Rue de Rivoli",
"city": "Paris",
"country_code": "FR",
"coordinates": {
"latitude": 48.8566,
"longitude": 2.3522
},
"images": [
"https://images.gojinko.com/hotels/htl_8f21a9c0/1.jpg"
],
"facilities": [
"Free WiFi",
"Air conditioning",
"24-hour front desk"
],
"facility_items": [
{
"id": 107,
"label": "Free WiFi"
},
{
"id": 2,
"label": "Air conditioning"
}
],
"policies": [
{
"name": "Pets",
"description": "Pets are not allowed.",
"policy_type": "pets",
"child_allowed": true,
"pets_allowed": false
}
],
"check_in_time": "15:00",
"check_out_time": "11:00"
},
"rooms": [
{
"id": "rm_1",
"name": "Superior Double",
"description": "<string>",
"amenities": [
"Air conditioning",
"Safe"
],
"amenity_items": [
{
"id": 312,
"label": "Shower"
},
{
"id": 339,
"label": "TV"
}
],
"bed_types": [
"1 double bed"
],
"room_capacity": 2,
"max_occupancy": 2,
"max_adults": 2,
"max_children": 1,
"size_sqm": 18.5,
"views": [
"Courtyard"
],
"images": [
"<string>"
]
}
]
}{
"error": {
"code": "BAD_REQUEST",
"message": "Malformed JSON in request body.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "AUTH_REQUIRED",
"message": "Invalid or expired API key.",
"doc_url": "https://docs.gojinko.com/authentication/api-keys"
}
}{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "Insufficient balance — this call costs $0.0150 and your organization has $0.0000 available. Top up at https://dashboard.gojinko.com/developers/billing/topup",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Resource not found.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "CONFLICT",
"message": "The operation conflicts with the current state of the resource.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "GONE",
"message": "The resource no longer exists.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "BAD_REQUEST",
"message": "A required field is missing or invalid.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "RATE_LIMITED",
"message": "Too many requests. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_REJECTED",
"message": "The request was declined for this offer. Try another offer.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The service is temporarily unavailable. Retry after the Retry-After delay.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}{
"error": {
"code": "UPSTREAM_TIMEOUT",
"message": "The request timed out before a result was available. Retry the request.",
"doc_url": "https://docs.gojinko.com/concepts/errors"
}
}Pull the full marketing and operational profile of a single property after a search result catches the user’s attention. Useful for questions like “what amenities does this hotel have”, “is there a pool on site”, or “what is the cancellation policy on the deluxe room”. Returns the gallery, facilities, room metadata, and policies in one payload.
Authorizations
ApiKeyAuthBearerAuth
Path Parameters
The hotel_id of a hotel from hotel_search, passed exactly as received and URL-encoded as one path segment. It is opaque: do not parse or build it.
Example:
"lp1d2c3"
