# Tabelog Scraper — Japan Restaurants, Ratings & Addresses (`sian.agency/tabelog-restaurant-scraper`) Actor

Scrape Tabelog (食べログ), Japan's biggest restaurant guide. Search any prefecture by area, genre or keyword, in English or Japanese. Get rating, review count, price bands, genres, station and awards, plus address, phone, opening hours and coordinates.

- **URL**: https://apify.com/sian.agency/tabelog-restaurant-scraper.md
- **Developed by:** [SIÁN OÜ](https://apify.com/sian.agency) (community)
- **Categories:** Travel, Lead generation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.88 / 1,000 search restaurants

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Tabelog Scraper — Japan Restaurants, Ratings & Addresses 🍜

[![SIÁN Agency Store](https://img.shields.io/badge/Store-SI%C3%81N%20Agency-1AE392)](https://apify.com/sian.agency?fpr=sian) [![Google Maps Scraper](https://img.shields.io/badge/Store-Google%20Maps%20Scraper-34A853)](https://apify.com/sian.agency/local-business-data-scraper?fpr=sian) [![Yelp Business Reviews](https://img.shields.io/badge/Store-Yelp%20Business%20Reviews-D32323)](https://apify.com/sian.agency/yelp-business-reviews-scraper?fpr=sian) [![Uber Eats Menu Scraper](https://img.shields.io/badge/Store-Uber%20Eats%20Menu%20Scraper-06C167)](https://apify.com/sian.agency/uber-eats-menu-scraper?fpr=sian)

#### 🎉 Tabelog (食べログ) ratings, price bands, addresses, hours and map pins for any prefecture, from $1 per 1,000 restaurants

##### For market researchers, food suppliers, travel apps and anyone who needs Japanese restaurant data in a spreadsheet

### 🔎 What is the Tabelog Scraper — and when should you use it?

The **Tabelog Scraper** turns Tabelog (食べログ) restaurant listings across Japan into clean, structured rows you can filter, export and feed straight into a spreadsheet, database or AI agent. No account, no portal API key, no browser automation to maintain.

**Use it when you need:** one row per Japanese restaurant with its Tabelog rating, review count, lunch and dinner price bands, genres, nearest station and Tabelog Award or Tabelog 100 badges. With details on, each row also carries the Japanese name, the address in Japanese, postcode, phone, opening hours, closed days, seats, payment methods, smoking, parking and map coordinates. Search by prefecture, area code, 43 genres or a keyword in English or Japanese.

**Use something else when:** you need restaurants outside Japan, or Google Maps listings with Google reviews. Use [Google Maps Scraper](https://apify.com/sian.agency/local-business-data-scraper?fpr=sian) for businesses anywhere in the world, with phones, websites and Google ratings. This actor returns ratings and review counts, not review text or photos beyond the main image. Restaurant pages that Tabelog has closed or removed cannot be returned.

### 🤖 Use with AI agents

Already connected to the [Apify MCP server](https://mcp.apify.com)? Just ask for this Actor by name: sian.agency/tabelog-restaurant-scraper

**Agentic payments:** Availability of [x402](https://www.x402.org/) and [Skyfire](https://www.skyfire.xyz/) depends on this Actor's current Store eligibility. Check the published listing for supported payment methods. Billing is per restaurant returned, never for searches that match nothing.

Otherwise copy this prompt into Claude, ChatGPT, Cursor or any MCP-enabled assistant:

```text
I want Japanese restaurants with their Tabelog ratings, prices, addresses and opening hours using the Apify Actor `sian.agency/tabelog-restaurant-scraper`.

Use it when I need: one row per Japanese restaurant with its Tabelog rating, review count, lunch and dinner price bands, genres, nearest station and Tabelog Award or Tabelog 100 badges. With details on, each row also carries the Japanese name, the address in Japanese, postcode, phone, opening hours, closed days, seats, payment methods, smoking, parking and map coordinates. Search by prefecture, area code, 43 genres or a keyword in English or Japanese.

Don't use it when: you need restaurants outside Japan, or Google Maps listings with Google reviews — use local-business-data-scraper instead.

How to call it: keep `operation` at `search` and give `areas` a list of prefectures in English or Japanese (`Tokyo`, `大阪府`), Tabelog area codes (`A1301`) or Tabelog list page URLs. Leave it empty for all of Japan. Narrow with `genre` (a slug such as `ramen`, `sushi` or `izakaya`) and `keyword`, pick `sortBy` (`rating` for best rated first) and cap each search with `maxResults` (up to 1,200). `includeDetails` adds the address, phone, hours and coordinates. To fetch restaurants you already have, set `operation` to `lookup` and pass `restaurants` as Tabelog URLs or 8-digit ids.

Start with this input:
{
  "operation": "search",
  "areas": [
    "Osaka"
  ],
  "genre": "ramen",
  "sortBy": "rating",
  "maxResults": 50,
  "includeDetails": true
}

Ask me which prefectures or areas to cover, which genre or dish, and how many restaurants per area, then run the Actor and summarise the results as a table.
```

**Things you can ask your agent for:**

- *List the 100 best-rated sushi restaurants in Tokyo with address, phone, opening hours and price band.*
- *Find every izakaya in Fukuoka with at least 3.5 on Tabelog and put them on a map with their coordinates.*
- *Get the full Tabelog records for these 30 restaurant links and tell me which ones are closed on Mondays.*

Machine-readable API, MCP config and OpenAPI definition for this Actor are published at [apify.com/sian.agency/tabelog-restaurant-scraper.md](https://apify.com/sian.agency/tabelog-restaurant-scraper.md).

***

### 📋 Overview

**Tabelog is where Japan looks up restaurants.** This actor turns its listings into clean rows: rating, review count, price band, genre, station, address, phone, opening hours and coordinates.

**What you get:**

- ✅ **35 fields per restaurant**: the Tabelog score to two decimals, review count, lunch and dinner budgets, genres, awards and the nearest station
- 🗾 **All 47 prefectures**: search by prefecture, Tabelog area code or a list page you paste in
- 🈁 **English and Japanese both work**: type 東京 or Tokyo, ラーメン or ramen. Japanese names and addresses stay exactly as written
- 📍 **Map-ready rows**: latitude, longitude and postcode on every restaurant when details are on
- 💰 **Pay per restaurant**: $1 per 1,000 search rows, plus $1 per 1,000 for the full restaurant page. Searches that find nothing cost nothing
- 🏆 **Awards included**: Tabelog Award and Tabelog 100 badges come with each row

***

### ✨ Features

- 🔍 **Search by area, genre and keyword**: combine a prefecture, one of 43 genres and a dish or name
- ⭐ **Best rated first**: sort by Tabelog rating, Tabelog's default order, most viewed or most reserved by locals
- 📄 **Full restaurant pages**: Japanese name, address, phone, hours, closed days, seats, payment, smoking and parking
- 🔗 **Look up known restaurants**: paste Tabelog URLs or 8-digit ids and get the full record for each
- 🧭 **Paste any list page**: a Tabelog list URL keeps its own area, genre and keyword filters
- 🌐 **Two links per row**: the English page and the Japanese page of the same restaurant
- 🚫 **No duplicates**: a restaurant that appears in two of your searches is returned and charged once
- 📊 **Run report**: every run saves a report with the numbers, any failed inputs and what they cost

***

### 🎬 Quick Start

Choose an area, optionally a genre, and run. The actor reads Tabelog's restaurant lists in the order you pick and opens each restaurant page if details are on. Rows land in your dataset as they arrive.

```bash
curl -X POST "https://api.apify.com/v2/acts/sian.agency~tabelog-restaurant-scraper/runs?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"areas": ["Tokyo"], "genre": "sushi", "maxResults": 50}'
```

***

### 🚀 Getting Started (3 Simple Steps)

#### Step 1: Pick where

Type one or more prefectures into Areas, in English or Japanese: Tokyo, 大阪府, Hokkaido. Leave it empty for all of Japan.

#### Step 2: Narrow it down

Choose a genre such as ramen, sushi or izakaya, or type a dish into Keyword. Set how many restaurants you want per area.

#### Step 3: Run and export

Start the run and download the dataset as CSV, Excel or JSON.

**In about a minute you'll have:**

- The 50 best-rated restaurants for your area and genre
- Address, phone, hours and coordinates for each one
- A link to every restaurant page in English and Japanese

***

### 📥 Input Configuration

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `operation` | string | No | `search` (default) finds restaurants; `lookup` fetches restaurants you already have |
| `areas` | array | No | Prefectures (Tokyo, 東京, 大阪府), area codes (A1301, tokyo/A1301/A130101) or list page URLs. Empty means all of Japan |
| `genre` | string | No | One of 43 Tabelog genres, such as `ramen`, `sushi`, `izakaya`, `yakiniku`, `cafe`. Default `any` |
| `keyword` | string | No | A dish or restaurant name in English or Japanese (一蘭, vegan, 焼き鳥) |
| `searchUrls` | array | No | Tabelog list page URLs, Japanese or English. Their own filters are kept |
| `sortBy` | string | No | `rating` (default), `standard`, `views` or `reservedLocals` |
| `maxResults` | integer | No | Restaurants per area or list page, 1 to 1,200. Default 50 |
| `includeDetails` | boolean | No | Open each restaurant page for address, phone, hours and coordinates. Default on |
| `restaurants` | array | No | Tabelog restaurant URLs or 8-digit ids, for `lookup` |

**Search example:**

```json
{
  "operation": "search",
  "areas": ["Tokyo", "大阪府"],
  "genre": "ramen",
  "sortBy": "rating",
  "maxResults": 100,
  "includeDetails": true
}
```

**Lookup example:**

```json
{
  "operation": "lookup",
  "restaurants": [
    "https://tabelog.com/tokyo/A1302/A130204/13018162/",
    "27001084"
  ]
}
```

An area the actor cannot match, such as a neighbourhood name, stops the run before any restaurant is charged. For a neighbourhood like Ginza, open it on Tabelog and paste that page's URL.

***

### 📤 Output

Results are saved to your Apify dataset with **35 fields** per restaurant, including:

| Field | Type | Description |
|-------|------|-------------|
| `name` / `nameJa` | string | Restaurant name in English and in Japanese |
| `rating` | number | Tabelog score out of 5.00 |
| `reviewCount` | number | Number of reviews on Tabelog |
| `dinnerPrice` / `lunchPrice` | string | Budget band per person, such as "JPY 3,000 - JPY 3,999" |
| `genres` | array | Tabelog genres, such as Ramen or Izakaya |
| `station` / `stationDistance` | string | Nearest station and walking distance |
| `address` / `postalCode` | string | Japanese address as written, and the postcode |
| `latitude` / `longitude` | number | Map coordinates |
| `phone` | string | Phone number, empty when Tabelog has none |
| `businessHours` / `closedDays` | string | Opening hours by day, and the closed days |
| `seats`, `paymentMethods`, `smoking`, `parking` | string | Practical details from the restaurant page |
| `awards` | array | Tabelog Award and Tabelog 100 badges |
| `url` / `urlJa` | string | The restaurant page in English and in Japanese |
| `detailsIncluded` | boolean | Whether the restaurant page was read into this row |

**Example row:**

```json
{
  "imageUrl": "https://tblg.k-img.com/restaurant/images/Rvw/142804/640x640_rect_142804940.jpg",
  "name": "Mugi to Mensuke",
  "nameJa": "麦と麺助",
  "rating": 3.9,
  "reviewCount": 2521,
  "dinnerPrice": "JPY 3,000 - JPY 3,999",
  "lunchPrice": "JPY 2,000 - JPY 2,999",
  "genres": ["Ramen", "Tsukemen (Dipping noodles)"],
  "station": "Nakatsu Sta.",
  "stationDistance": "281m",
  "prefecture": "osaka",
  "address": "大阪府大阪市北区豊崎3-4-12",
  "postalCode": "531-0072",
  "latitude": 34.71134433716793,
  "longitude": 135.50001967641657,
  "phone": null,
  "closedDays": "Tue",
  "reservation": "Reservations unavailable",
  "seats": "12 seats ( 12 counter seats)",
  "smoking": "Non smoking",
  "openingDate": "2018.5.19",
  "awards": ["Selected for Tabelog Ramen OSAKA \"Tabelog 100\" 2025"],
  "position": 1,
  "restaurantId": 27104891,
  "url": "https://tabelog.com/en/osaka/A2701/A270101/27104891/",
  "urlJa": "https://tabelog.com/osaka/A2701/A270101/27104891/",
  "detailsIncluded": true,
  "searchQuery": "Osaka · Ramen & tsukemen",
  "status": "success"
}
```

***

### 💼 Use Cases & Examples

#### 1. Restaurant market research in Japan

**Consultants and F\&B brands size a segment before they enter it.**

**Input:** a prefecture and a genre, sorted by rating
**Output:** every matching restaurant with price band, rating and review count
**Use:** compare neighbourhoods, find price gaps, benchmark a concept against the top 100

#### 2. Sales and lead lists for food suppliers

**Distributors, POS vendors and delivery platforms build prospect lists by area.**

**Input:** an area, a genre such as izakaya or cafe, details on
**Output:** name, Japanese address, phone, seats and payment methods
**Use:** load into a CRM, plan sales routes, see which restaurants take no cards

#### 3. Travel guides and itinerary apps

**Travel startups and tour operators place the best restaurants on a map.**

**Input:** cities your travellers visit, sorted by rating
**Output:** coordinates, nearest station, opening hours and closed days
**Use:** power a restaurant layer in an app, or check opening times before you book a tour

#### 4. Location and site selection

**Restaurant chains and real-estate teams read competition before they sign a lease.**

**Input:** the area codes around a candidate site
**Output:** every competitor nearby with genre, rating and price level
**Use:** map density and price levels, spot areas with demand but few strong competitors

#### 5. Award and ranking tracking

**Food media and analysts follow Tabelog 100 and Tabelog Award winners.**

**Input:** a genre and region, run on a schedule
**Output:** awards, rating and review count per restaurant
**Use:** see which restaurants gain or lose rating month by month

#### 6. Data for Japanese-language research

**Academics and data teams study Japan's restaurant market at scale.**

**Input:** several prefectures, up to 1,200 restaurants each
**Output:** structured rows with the original Japanese names and addresses
**Use:** regional pricing studies, cuisine distribution, geocoded datasets

***

### 🔗 Integration Examples

#### JavaScript/Node.js

```javascript
import { ApifyClient } from 'apify-client';
const client = new ApifyClient({ token: 'YOUR_TOKEN' });

const run = await client.actor('sian.agency/tabelog-restaurant-scraper').call({
  areas: ['Tokyo'],
  genre: 'sushi',
  sortBy: 'rating',
  maxResults: 100,
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
console.log(items[0].name, items[0].rating, items[0].address);
```

#### Python

```python
from apify_client import ApifyClient
client = ApifyClient('YOUR_TOKEN')

run = client.actor('sian.agency/tabelog-restaurant-scraper').call(
    run_input={'areas': ['大阪府'], 'genre': 'ramen', 'maxResults': 100}
)

for item in client.dataset(run['defaultDatasetId']).iterate_items():
    print(item['name'], item['rating'], item['phone'])
```

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/sian.agency~tabelog-restaurant-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN" \
-H "Content-Type: application/json" \
-d '{"operation": "lookup", "restaurants": ["13018162", "27001084"]}'
```

#### Automation Workflows (N8N / Zapier / Make)

1. **Trigger**: a weekly or monthly schedule
2. **HTTP Request**: run the actor with your areas and genre
3. **Process**: keep rows above your rating floor, or new restaurants since the last run
4. **Action**: add them to a Google Sheet, your CRM or a Slack channel

***

### 📊 Performance & Pricing

#### FREE Tier (Try It Now)

- **25 restaurants** per run, every field included
- No credit card required
- Enough to check the data for your own area

#### PAID Tier (Production Ready)

- **Unlimited** restaurants per run, up to 1,200 per area or list page
- About 50 restaurants with full details in under half a minute
- Pay per restaurant returned: searches that match nothing cost nothing

💰 **$1 per 1,000 restaurants from a search**, plus $1 per 1,000 when the full restaurant page is added, plus a small run-start fee. Looking up restaurants by URL or id is $2 per 1,000. Higher Apify plans pay less per restaurant.

🔗 [View current pricing](https://apify.com/sian.agency/tabelog-restaurant-scraper?fpr=sian)

***

### ❓ Frequently Asked Questions

**Q: Is this affiliated with Tabelog?**
A: No. It is an independent tool and is not affiliated with, endorsed by, or sponsored by Kakaku.com or Tabelog.

**Q: Can I search in Japanese?**
A: Yes. Areas accept Japanese prefecture names (東京, 大阪府) and the keyword accepts Japanese (ラーメン, 一蘭). Japanese restaurant names and addresses are kept exactly as Tabelog shows them.

**Q: Why do some rows have no address or phone?**
A: Those fields come from the restaurant page, which is only opened when Include restaurant details is on. Some restaurants also leave the phone, parking or opening date blank on Tabelog, and those stay empty.

**Q: Does it collect reviews?**
A: No. It returns the rating and the number of reviews, not the review text.

**Q: How many restaurants can I get?**
A: FREE: 25 per run. PAID: no run limit, and up to 1,200 per area or list page, because Tabelog shows 60 pages of 20. To go deeper, split a prefecture into area codes.

**Q: Can I search a neighbourhood like Shibuya or Ginza?**
A: Open the neighbourhood on Tabelog and paste the URL of its restaurant list into Areas. Area codes such as tokyo/A1301/A130101 work too.

**Q: Can I use the data commercially?**
A: That is your decision and your responsibility. Tabelog's terms of use restrict commercial use and copying of its content, and set a fee for reviews reused for profit. Read them at [tabelog.com/help/rules](https://tabelog.com/help/rules/) and check with a lawyer before you resell or republish the data.

**Q: What formats can I export?**
A: JSON, CSV, Excel, XML and HTML, straight from the Apify dataset.

***

### 🐛 Troubleshooting

**The run stopped with "not a prefecture or Tabelog area code"**

- Use a prefecture name (Tokyo, 大阪府) or an area code (A1301)
- For a neighbourhood, paste the Tabelog list page URL instead of its name

**A search returned no restaurants**

- Set Genre to Any genre, or shorten the keyword to one word
- Try the whole prefecture instead of a small area

**Fewer restaurants than Tabelog shows**

- Tabelog lists at most 1,200 per search; split the area into smaller area codes
- The FREE plan stops at 25 restaurants per run

**A looked-up restaurant says not found**

- Open the link in your browser. If the page is gone, the restaurant has closed

***

### ⚠️ Trademark Disclaimer

Tabelog and 食べログ are trademarks of Kakaku.com, Inc. This actor is an independent tool and is not affiliated with, endorsed by, or sponsored by Kakaku.com or Tabelog. Rows link to the restaurant pages the data comes from.

***

### ⚖️ Is it legal to scrape data?

Our actors are ethical and do not extract any private user data, such as email addresses, gender, or location. They only extract what the user has chosen to share publicly. We therefore believe that our actors, when used for ethical purposes by Apify users, are safe.

However, you should be aware that your results could contain personal data. Personal data is protected by the **GDPR** in the European Union and by other regulations around the world. You should not scrape personal data unless you have a legitimate reason to do so. If you're unsure whether your reason is legitimate, consult your lawyers.

Tabelog's own terms of use limit how its content may be reused. You are responsible for how you use the data you collect with this actor.

You can also read Apify's blog post on the [legality of web scraping](https://blog.apify.com/is-web-scraping-legal/).

***

### 🤝 Support

**Join our active support community**

- For issues or questions, open an issue on the [Issues tab](https://apify.com/sian.agency/tabelog-restaurant-scraper/issues)
- Check [SIÁN Agency Store](https://apify.com/sian.agency?fpr=sian) for more automation tools
- 📧 <apify@sian-agency.online>

***

**Built by [SIÁN Agency](https://www.sian-agency.online)** | **[More Tools](https://apify.com/sian.agency?fpr=sian)**

# Changelog

This Actor's version history is a separate document: https://apify.com/sian.agency/tabelog-restaurant-scraper/changelog.md

# Actor input Schema

## `operation` (type: `string`):

Search restaurants reads Tabelog's restaurant lists for a prefecture, area, genre or keyword, in rating order or Tabelog's own order. Look up restaurants opens the restaurant pages you already have (URL or id) and returns the full record. With details on, each search row also gets its restaurant page: Japanese name, address, phone, hours and coordinates.

## `areas` (type: `array`):

Where to search. A prefecture in English or Japanese (Tokyo, 東京, 大阪府, Hokkaido), a Tabelog area code (A1301, or tokyo/A1301/A130101 for Ginza) or a Tabelog list page URL. Add several to search each one. Leave empty for all of Japan. A value that cannot be matched stops the run before any restaurant is charged.

## `genre` (type: `string`):

Only restaurants in this Tabelog genre. For a genre that is not in the list, type it into Keyword instead (in English or Japanese, for example 焼き鳥 or vegan).

## `keyword` (type: `string`):

Optional. Matches restaurant names and dishes, in English or Japanese, for example Ichiran, 一蘭, ramen or ラーメン.

## `searchUrls` (type: `array`):

Optional. Paste a Tabelog restaurant list page in Japanese or English, for example https://tabelog.com/tokyo/A1301/A130101/rstLst/ramen/ . Its area, genre and keyword are kept. Sort order below applies unless the address sets its own.

## `sortBy` (type: `string`):

The order restaurants come back in. With a results limit, this decides which restaurants you get.

## `maxResults` (type: `integer`):

The most restaurants to collect from each area or list page. One page holds 20; Tabelog shows at most 1,200 per search. Free plans are capped at 25 restaurants a run.

## `includeDetails` (type: `boolean`):

Open each restaurant's page to add the Japanese name, address, postcode, phone, opening hours, closed days, seats, payment methods, smoking, parking and map coordinates. Billed as a small add-on per restaurant. Turn off for a faster, cheaper list.

## `restaurants` (type: `array`):

Tabelog restaurant pages in Japanese or English (https://tabelog.com/tokyo/A1302/A130204/13018162/) or bare restaurant ids (13018162). Used by Look up restaurants. Free plans get up to 25 restaurants a run; paid plans have no limit.

## Actor input object example

```json
{
  "operation": "search",
  "areas": [
    "Tokyo"
  ],
  "genre": "any",
  "searchUrls": [
    "https://tabelog.com/tokyo/A1301/A130101/rstLst/ramen/"
  ],
  "sortBy": "rating",
  "maxResults": 50,
  "includeDetails": true,
  "restaurants": [
    "https://tabelog.com/tokyo/A1302/A130204/13018162/"
  ]
}
```

# Actor output Schema

## `tabelogRestaurants` (type: `string`):

Every restaurant this run returned.

## `scrapingSummary` (type: `string`):

HTML summary showing successful and failed results with key metrics

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "operation": "search",
    "areas": [
        "Tokyo"
    ],
    "genre": "any",
    "sortBy": "rating",
    "maxResults": 50,
    "includeDetails": true
};

// Run the Actor and wait for it to finish
const run = await client.actor("sian.agency/tabelog-restaurant-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "operation": "search",
    "areas": ["Tokyo"],
    "genre": "any",
    "sortBy": "rating",
    "maxResults": 50,
    "includeDetails": True,
}

# Run the Actor and wait for it to finish
run = client.actor("sian.agency/tabelog-restaurant-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "operation": "search",
  "areas": [
    "Tokyo"
  ],
  "genre": "any",
  "sortBy": "rating",
  "maxResults": 50,
  "includeDetails": true
}' |
apify call sian.agency/tabelog-restaurant-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,sian.agency/tabelog-restaurant-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/kCRqHnFQw4djwRGgJ/builds/tpJ9LjQoQjhy3gzTp/openapi.json
