Place Detail
curl --request GET \
--url https://b.hudhud.sa/v1/places/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://b.hudhud.sa/v1/places/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://b.hudhud.sa/v1/places/{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://b.hudhud.sa/v1/places/{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 => [
"Authorization: <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://b.hudhud.sa/v1/places/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://b.hudhud.sa/v1/places/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.hudhud.sa/v1/places/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"amenities": [
{
"children": "<array>",
"name_ar": "واي فاي",
"name_en": "Wifi"
}
],
"building_no": "7830",
"category_ar": "مطاعم",
"category_en": "Restaurants",
"category_key": "restaurants",
"city_ar": "الرياض",
"city_en": "Riyadh",
"description_ar": "مطعم يقدم المأكولات المحلية",
"description_en": "A restaurant serving local cuisine",
"district_ar": "العليا",
"district_en": "Al Olaya",
"email": "[email protected]",
"id": "01K3E3MDPBRMRNWQNG7ERMB65T",
"instagram_url": "https://www.instagram.com/example",
"is_trending": true,
"latitude": 24.887376,
"logo_url": "https://cdn.example.com/logo.webp",
"longitude": 46.618124,
"media": [
{
"thumbnail_url": "https://cdn.example.com/photo-thumb.webp",
"type": "photo",
"url": "https://cdn.example.com/photo.webp"
}
],
"name_ar": "مطعم",
"name_en": "Restaurant",
"national_address": "RRRA2929",
"opening_hours": [
{
"day": "sunday",
"hours": [
{
"close": "23:00",
"open": "09:00"
}
]
}
],
"phone_number": "+966500000000",
"photo_count": 12,
"postal_code": "12333",
"rating": 4.5,
"snapchat_url": "https://www.snapchat.com/add/example",
"status": "open",
"streetname_ar": "طريق الملك فهد",
"streetname_en": "King Fahd Road",
"tiktok_url": "https://www.tiktok.com/@example",
"website_url": "https://example.com",
"x_url": "https://x.com/example"
},
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}Places
Place Detail
Fetch the full detail record for a single place by its ID, as returned by Places Search. Returns the richer attributes a search result omits: description, full address, contact details, social links, opening hours, amenities and media.
GET
/
places
/
{id}
Place Detail
curl --request GET \
--url https://b.hudhud.sa/v1/places/{id} \
--header 'Authorization: <api-key>'import requests
url = "https://b.hudhud.sa/v1/places/{id}"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://b.hudhud.sa/v1/places/{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://b.hudhud.sa/v1/places/{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 => [
"Authorization: <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://b.hudhud.sa/v1/places/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<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://b.hudhud.sa/v1/places/{id}")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://b.hudhud.sa/v1/places/{id}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"data": {
"amenities": [
{
"children": "<array>",
"name_ar": "واي فاي",
"name_en": "Wifi"
}
],
"building_no": "7830",
"category_ar": "مطاعم",
"category_en": "Restaurants",
"category_key": "restaurants",
"city_ar": "الرياض",
"city_en": "Riyadh",
"description_ar": "مطعم يقدم المأكولات المحلية",
"description_en": "A restaurant serving local cuisine",
"district_ar": "العليا",
"district_en": "Al Olaya",
"email": "[email protected]",
"id": "01K3E3MDPBRMRNWQNG7ERMB65T",
"instagram_url": "https://www.instagram.com/example",
"is_trending": true,
"latitude": 24.887376,
"logo_url": "https://cdn.example.com/logo.webp",
"longitude": 46.618124,
"media": [
{
"thumbnail_url": "https://cdn.example.com/photo-thumb.webp",
"type": "photo",
"url": "https://cdn.example.com/photo.webp"
}
],
"name_ar": "مطعم",
"name_en": "Restaurant",
"national_address": "RRRA2929",
"opening_hours": [
{
"day": "sunday",
"hours": [
{
"close": "23:00",
"open": "09:00"
}
]
}
],
"phone_number": "+966500000000",
"photo_count": 12,
"postal_code": "12333",
"rating": 4.5,
"snapchat_url": "https://www.snapchat.com/add/example",
"status": "open",
"streetname_ar": "طريق الملك فهد",
"streetname_en": "King Fahd Road",
"tiktok_url": "https://www.tiktok.com/@example",
"website_url": "https://example.com",
"x_url": "https://x.com/example"
},
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}{
"data": "<unknown>",
"error": "",
"ok": true
}Authorizations
JWT Bearer token for authentication. Example: "Bearer YOUR_API_TOKEN_HERE"
Headers
Response language
Available options:
en, ar Path Parameters
Place ID
⌘I
