/openrice/restaurants/chart
curl --request POST \
--url https://api.anysite.io/api/openrice/restaurants/chart \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 250,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"chart": "best_rating"
}
'import requests
url = "https://api.anysite.io/api/openrice/restaurants/chart"
payload = {
"count": 250,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"chart": "best_rating"
}
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: 250, timeout: 300, region: 'hongkong', lang: 'en', chart: 'best_rating'})
};
fetch('https://api.anysite.io/api/openrice/restaurants/chart', 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/chart",
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' => 250,
'timeout' => 300,
'region' => 'hongkong',
'lang' => 'en',
'chart' => 'best_rating'
]),
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/chart"
payload := strings.NewReader("{\n \"count\": 250,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"chart\": \"best_rating\"\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/chart")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 250,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"chart\": \"best_rating\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/openrice/restaurants/chart")
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\": 250,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"chart\": \"best_rating\"\n}"
response = http.request(request)
puts response.read_body[
{
"rank": 123,
"restaurant": {
"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>"
},
"@type": "OpenriceChartEntry",
"previous_rank": 123,
"trend": "<string>",
"weeks_on_chart": 123,
"chart_updated_at": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}/openrice
/openrice/restaurants/chart
Read an OpenRice restaurant ranking for a regional market: best rated, most popular, best dessert or most bookmarked. Each entry carries the current rank, previous rank, movement on the chart, weeks on chart and the full restaurant card (name, district, rating, smile/ok/cry counts, cuisines, photos, counters).
Price: 1 credit
POST
/
api
/
openrice
/
restaurants
/
chart
/openrice/restaurants/chart
curl --request POST \
--url https://api.anysite.io/api/openrice/restaurants/chart \
--header 'Content-Type: application/json' \
--header 'access-token: <api-key>' \
--data '
{
"count": 250,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"chart": "best_rating"
}
'import requests
url = "https://api.anysite.io/api/openrice/restaurants/chart"
payload = {
"count": 250,
"timeout": 300,
"region": "hongkong",
"lang": "en",
"chart": "best_rating"
}
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: 250, timeout: 300, region: 'hongkong', lang: 'en', chart: 'best_rating'})
};
fetch('https://api.anysite.io/api/openrice/restaurants/chart', 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/chart",
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' => 250,
'timeout' => 300,
'region' => 'hongkong',
'lang' => 'en',
'chart' => 'best_rating'
]),
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/chart"
payload := strings.NewReader("{\n \"count\": 250,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"chart\": \"best_rating\"\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/chart")
.header("access-token", "<api-key>")
.header("Content-Type", "application/json")
.body("{\n \"count\": 250,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"chart\": \"best_rating\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.anysite.io/api/openrice/restaurants/chart")
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\": 250,\n \"timeout\": 300,\n \"region\": \"hongkong\",\n \"lang\": \"en\",\n \"chart\": \"best_rating\"\n}"
response = http.request(request)
puts response.read_body[
{
"rank": 123,
"restaurant": {
"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>"
},
"@type": "OpenriceChartEntry",
"previous_rank": 123,
"trend": "<string>",
"weeks_on_chart": 123,
"chart_updated_at": 123
}
]{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authorizations
API token from the dashboard
Headers
Body
application/json
Required range:
1 <= x <= 500Required range:
20 <= x <= 1500Available options:
hongkong, 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 Available options:
en, tc, sc, tc-tw, ja, th, id Available options:
best_rating, most_popular, best_dessert, most_bookmarked ⌘I