curl --request POST \
--url https://api.anysite.io/api/openrice/restaurants/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 5000,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"keyword": "<string>",
"where": "<string>",
"district_ids": [
123
],
"cuisine_ids": [
123
],
"dish_ids": [
123
],
"amenity_ids": [
123
],
"theme_ids": [
123
],
"condition_ids": [
123
],
"payment_ids": [
123
],
"category_group_ids": [
123
],
"promotion_ids": [
123
],
"price_ranges": [],
"offers": [],
"services": [],
"statuses": [],
"latitude": 0,
"longitude": 0,
"sort": "overall_rating",
"landmark_ids": [
123
]
}
'import requests
url = "https://api.anysite.io/api/openrice/restaurants/search"
payload = {
"count": 5000,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"keyword": "<string>",
"where": "<string>",
"district_ids": [123],
"cuisine_ids": [123],
"dish_ids": [123],
"amenity_ids": [123],
"theme_ids": [123],
"condition_ids": [123],
"payment_ids": [123],
"category_group_ids": [123],
"promotion_ids": [123],
"price_ranges": [],
"offers": [],
"services": [],
"statuses": [],
"latitude": 0,
"longitude": 0,
"sort": "overall_rating",
"landmark_ids": [123]
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 5000,
timeout: 300,
region: 'hongkong',
lang: 'en',
keyword: '<string>',
where: '<string>',
district_ids: [123],
cuisine_ids: [123],
dish_ids: [123],
amenity_ids: [123],
theme_ids: [123],
condition_ids: [123],
payment_ids: [123],
category_group_ids: [123],
promotion_ids: [123],
price_ranges: [],
offers: [],
services: [],
statuses: [],
latitude: 0,
longitude: 0,
sort: 'overall_rating',
landmark_ids: [123]
})
};
fetch('https://api.anysite.io/api/openrice/restaurants/search', 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.anysite.io/api/openrice/restaurants/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 5000,
'timeout' => 300,
'region' => 'hongkong',
'lang' => 'en',
'keyword' => '<string>',
'where' => '<string>',
'district_ids' => [
123
],
'cuisine_ids' => [
123
],
'dish_ids' => [
123
],
'amenity_ids' => [
123
],
'theme_ids' => [
123
],
'condition_ids' => [
123
],
'payment_ids' => [
123
],
'category_group_ids' => [
123
],
'promotion_ids' => [
123
],
'price_ranges' => [
],
'offers' => [
],
'services' => [
],
'statuses' => [
],
'latitude' => 0,
'longitude' => 0,
'sort' => 'overall_rating',
'landmark_ids' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/openrice/restaurants/search"
payload := strings.NewReader("{\n \"count\": 5000,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"keyword\": \"<string>\",\n \"where\": \"<string>\",\n \"district_ids\": [\n 123\n ],\n \"cuisine_ids\": [\n 123\n ],\n \"dish_ids\": [\n 123\n ],\n \"amenity_ids\": [\n 123\n ],\n \"theme_ids\": [\n 123\n ],\n \"condition_ids\": [\n 123\n ],\n \"payment_ids\": [\n 123\n ],\n \"category_group_ids\": [\n 123\n ],\n \"promotion_ids\": [\n 123\n ],\n \"price_ranges\": [],\n \"offers\": [],\n \"services\": [],\n \"statuses\": [],\n \"latitude\": 0,\n \"longitude\": 0,\n \"sort\": \"overall_rating\",\n \"landmark_ids\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/openrice/restaurants/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 5000,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"keyword\": \"<string>\",\n \"where\": \"<string>\",\n \"district_ids\": [\n 123\n ],\n \"cuisine_ids\": [\n 123\n ],\n \"dish_ids\": [\n 123\n ],\n \"amenity_ids\": [\n 123\n ],\n \"theme_ids\": [\n 123\n ],\n \"condition_ids\": [\n 123\n ],\n \"payment_ids\": [\n 123\n ],\n \"category_group_ids\": [\n 123\n ],\n \"promotion_ids\": [\n 123\n ],\n \"price_ranges\": [],\n \"offers\": [],\n \"services\": [],\n \"statuses\": [],\n \"latitude\": 0,\n \"longitude\": 0,\n \"sort\": \"overall_rating\",\n \"landmark_ids\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/openrice/restaurants/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 5000,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"keyword\": \"<string>\",\n \"where\": \"<string>\",\n \"district_ids\": [\n 123\n ],\n \"cuisine_ids\": [\n 123\n ],\n \"dish_ids\": [\n 123\n ],\n \"amenity_ids\": [\n 123\n ],\n \"theme_ids\": [\n 123\n ],\n \"condition_ids\": [\n 123\n ],\n \"payment_ids\": [\n 123\n ],\n \"category_group_ids\": [\n 123\n ],\n \"promotion_ids\": [\n 123\n ],\n \"price_ranges\": [],\n \"offers\": [],\n \"services\": [],\n \"statuses\": [],\n \"latitude\": 0,\n \"longitude\": 0,\n \"sort\": \"overall_rating\",\n \"landmark_ids\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"id": 123,
"url": "<string>",
"name": "<string>",
"@type": "OpenriceRestaurantCard",
"alias": "<string>",
"name_other_lang": "<string>",
"address": "<string>",
"address_other_lang": "<string>",
"postal_code": "<string>",
"district": {
"id": 123,
"name": "<string>",
"@type": "OpenriceDistrict",
"alias": "<string>",
"group_id": 123,
"latitude": 123,
"longitude": 123
},
"latitude": 123,
"longitude": 123,
"mall_name": "<string>",
"floor": "<string>",
"unit": "<string>",
"phones": [],
"phone_remarks": [],
"website": "<string>",
"opened_at": 123,
"opening_hours": [],
"rating": 123,
"or_score": 123,
"smile_count": 123,
"cry_count": 123,
"review_count": 123,
"photo_count": 123,
"restaurant_photo_count": 123,
"media_count": 123,
"bookmark_count": 123,
"price_range_id": 123,
"cuisines": [],
"dishes": [],
"recommended_dishes": [],
"promotions": [],
"badges": [],
"payment_ids": [],
"image": "<string>",
"images": [],
"videos": [],
"status": 123,
"status_text": "<string>",
"moved_to_restaurant_id": 123,
"is_open_now": false,
"is_new": false,
"is_queuing_enabled": false,
"has_offer": false,
"has_premium_menu": false,
"distance": 123,
"short_url": "<string>"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/openrice/restaurants/search
Search OpenRice restaurants in a regional market with the full site filter surface: free-text what/where query, districts, landmarks and malls, cuisines, dishes, restaurant types, dining themes, features, accepted payment methods, cuisine/dish groups, seasonal promotions, spending tiers, offer types, OpenRice services, operating status, a reference point to rank by distance, and sort order. Returns restaurant cards with names, address, postal code, district, geo coordinates, weekly opening hours, rating and smile/ok/cry counts, cuisines, dishes, recommended dishes, price tier, photos, videos, chart badges and engagement counters. Results are the editorial listing only — sponsored placements the website shows alongside it are not part of the response.
Price: 20 credits per 50 results
curl --request POST \
--url https://api.anysite.io/api/openrice/restaurants/search \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 5000,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"keyword": "<string>",
"where": "<string>",
"district_ids": [
123
],
"cuisine_ids": [
123
],
"dish_ids": [
123
],
"amenity_ids": [
123
],
"theme_ids": [
123
],
"condition_ids": [
123
],
"payment_ids": [
123
],
"category_group_ids": [
123
],
"promotion_ids": [
123
],
"price_ranges": [],
"offers": [],
"services": [],
"statuses": [],
"latitude": 0,
"longitude": 0,
"sort": "overall_rating",
"landmark_ids": [
123
]
}
'import requests
url = "https://api.anysite.io/api/openrice/restaurants/search"
payload = {
"count": 5000,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"keyword": "<string>",
"where": "<string>",
"district_ids": [123],
"cuisine_ids": [123],
"dish_ids": [123],
"amenity_ids": [123],
"theme_ids": [123],
"condition_ids": [123],
"payment_ids": [123],
"category_group_ids": [123],
"promotion_ids": [123],
"price_ranges": [],
"offers": [],
"services": [],
"statuses": [],
"latitude": 0,
"longitude": 0,
"sort": "overall_rating",
"landmark_ids": [123]
}
headers = {
"access-token": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'access-token': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({
count: 5000,
timeout: 300,
region: 'hongkong',
lang: 'en',
keyword: '<string>',
where: '<string>',
district_ids: [123],
cuisine_ids: [123],
dish_ids: [123],
amenity_ids: [123],
theme_ids: [123],
condition_ids: [123],
payment_ids: [123],
category_group_ids: [123],
promotion_ids: [123],
price_ranges: [],
offers: [],
services: [],
statuses: [],
latitude: 0,
longitude: 0,
sort: 'overall_rating',
landmark_ids: [123]
})
};
fetch('https://api.anysite.io/api/openrice/restaurants/search', 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.anysite.io/api/openrice/restaurants/search",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'count' => 5000,
'timeout' => 300,
'region' => 'hongkong',
'lang' => 'en',
'keyword' => '<string>',
'where' => '<string>',
'district_ids' => [
123
],
'cuisine_ids' => [
123
],
'dish_ids' => [
123
],
'amenity_ids' => [
123
],
'theme_ids' => [
123
],
'condition_ids' => [
123
],
'payment_ids' => [
123
],
'category_group_ids' => [
123
],
'promotion_ids' => [
123
],
'price_ranges' => [
],
'offers' => [
],
'services' => [
],
'statuses' => [
],
'latitude' => 0,
'longitude' => 0,
'sort' => 'overall_rating',
'landmark_ids' => [
123
]
]),
CURLOPT_HTTPHEADER => [
"Content-Type: application/json",
"access-token: <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"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.anysite.io/api/openrice/restaurants/search"
payload := strings.NewReader("{\n \"count\": 5000,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"keyword\": \"<string>\",\n \"where\": \"<string>\",\n \"district_ids\": [\n 123\n ],\n \"cuisine_ids\": [\n 123\n ],\n \"dish_ids\": [\n 123\n ],\n \"amenity_ids\": [\n 123\n ],\n \"theme_ids\": [\n 123\n ],\n \"condition_ids\": [\n 123\n ],\n \"payment_ids\": [\n 123\n ],\n \"category_group_ids\": [\n 123\n ],\n \"promotion_ids\": [\n 123\n ],\n \"price_ranges\": [],\n \"offers\": [],\n \"services\": [],\n \"statuses\": [],\n \"latitude\": 0,\n \"longitude\": 0,\n \"sort\": \"overall_rating\",\n \"landmark_ids\": [\n 123\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("access-token", "<api-key>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.anysite.io/api/openrice/restaurants/search")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 5000,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"keyword\": \"<string>\",\n \"where\": \"<string>\",\n \"district_ids\": [\n 123\n ],\n \"cuisine_ids\": [\n 123\n ],\n \"dish_ids\": [\n 123\n ],\n \"amenity_ids\": [\n 123\n ],\n \"theme_ids\": [\n 123\n ],\n \"condition_ids\": [\n 123\n ],\n \"payment_ids\": [\n 123\n ],\n \"category_group_ids\": [\n 123\n ],\n \"promotion_ids\": [\n 123\n ],\n \"price_ranges\": [],\n \"offers\": [],\n \"services\": [],\n \"statuses\": [],\n \"latitude\": 0,\n \"longitude\": 0,\n \"sort\": \"overall_rating\",\n \"landmark_ids\": [\n 123\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/openrice/restaurants/search")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["access-token"] = '<api-key>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"count\": 5000,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"keyword\": \"<string>\",\n \"where\": \"<string>\",\n \"district_ids\": [\n 123\n ],\n \"cuisine_ids\": [\n 123\n ],\n \"dish_ids\": [\n 123\n ],\n \"amenity_ids\": [\n 123\n ],\n \"theme_ids\": [\n 123\n ],\n \"condition_ids\": [\n 123\n ],\n \"payment_ids\": [\n 123\n ],\n \"category_group_ids\": [\n 123\n ],\n \"promotion_ids\": [\n 123\n ],\n \"price_ranges\": [],\n \"offers\": [],\n \"services\": [],\n \"statuses\": [],\n \"latitude\": 0,\n \"longitude\": 0,\n \"sort\": \"overall_rating\",\n \"landmark_ids\": [\n 123\n ]\n}"
response = http.request(request)
puts response.read_body[
{
"id": 123,
"url": "<string>",
"name": "<string>",
"@type": "OpenriceRestaurantCard",
"alias": "<string>",
"name_other_lang": "<string>",
"address": "<string>",
"address_other_lang": "<string>",
"postal_code": "<string>",
"district": {
"id": 123,
"name": "<string>",
"@type": "OpenriceDistrict",
"alias": "<string>",
"group_id": 123,
"latitude": 123,
"longitude": 123
},
"latitude": 123,
"longitude": 123,
"mall_name": "<string>",
"floor": "<string>",
"unit": "<string>",
"phones": [],
"phone_remarks": [],
"website": "<string>",
"opened_at": 123,
"opening_hours": [],
"rating": 123,
"or_score": 123,
"smile_count": 123,
"cry_count": 123,
"review_count": 123,
"photo_count": 123,
"restaurant_photo_count": 123,
"media_count": 123,
"bookmark_count": 123,
"price_range_id": 123,
"cuisines": [],
"dishes": [],
"recommended_dishes": [],
"promotions": [],
"badges": [],
"payment_ids": [],
"image": "<string>",
"images": [],
"videos": [],
"status": 123,
"status_text": "<string>",
"moved_to_restaurant_id": 123,
"is_open_now": false,
"is_new": false,
"is_queuing_enabled": false,
"has_offer": false,
"has_premium_menu": false,
"distance": 123,
"short_url": "<string>"
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
1 <= x <= 1000020 <= x <= 1500hongkong, macau, shenzhen, guangzhou, zhuhai, dongguan, foshan, zhongshan, taipei, newtaipei-keelung, taoyuan, hsinchu-miaoli, taichung, changhua-nantou, yunlin-chiayi, tainan, kaohsiung-pingtung, eastern, tokyo-kanto, osaka-kobe, kyoto-kinki, nagoya-chubu, hokkaido, tohoku, hiroshima-chugoku, shikoku, fukuoka-kyushu, okinawa, bangkok, chonburi, phuket, prachuapkhirikhan, chiangmai, suratthani, nakhonratchasima, chiangrai, others, singapore, manila en, tc, sc, tc-tw, ja, th, id tier_1_cheapest, tier_2, tier_3, tier_4, tier_5, tier_6_most_expensive booking_offer, prepaid_booking_menu, premium_booking_menu, voucher, coupon online_booking, queuing, openrice_pay operating, closed, changed_hands, under_renovation, moved, delisted, hidden -90 <= x <= 90-180 <= x <= 180overall_rating, most_smiles, most_cries, most_reviews, most_bookmarked, highest_total_score, spending_low_to_high, spending_high_to_low, distance Response
Successful Response
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Show child attributes