# SUUMO Scraper (`ribtools/suumo-scraper`) Actor

Scrape SUUMO (suumo.jp) rentals and homes for sale in Japan: rent, deposit, key money, layout, area, stations and agencies.

- **URL**: https://apify.com/ribtools/suumo-scraper.md
- **Developed by:** [RibTools](https://apify.com/ribtools) (community)
- **Categories:** Real estate, Lead generation, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.99 / 1,000 property data results

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

## SUUMO Scraper

Scrape **SUUMO** (suumo.jp), Japan's largest property portal: rooms for rent (賃貸) with **rent, management fee, deposit and key money (敷金・礼金)**, used condos, used and new houses and land for sale, with layout (間取り), area, floor, building age, every station and walk time, and the listing agency. Pick a prefecture and a city, ward or station, or paste any SUUMO URL.

### What is SUUMO Scraper?

**SUUMO Scraper** collects property listings from [SUUMO](https://suumo.jp/), Recruit's real-estate portal: rentals (mansions, apartments, houses) and properties for sale (中古マンション used condos, 中古一戸建て used houses, 新築一戸建て new houses, 土地 land). It works like the site's own search: choose the prefecture `東京都`, type the ward `新宿区` or the station `高田馬場`, pick rent or buy and a few filters, and get one structured item per room for rent or per property for sale, ready for a rent comparison, a market report or your own database.

Built for real-estate agents, investors, relocation teams, analysts and proptech teams, and for AI agents: it runs from ChatGPT, Claude or n8n through Apify's MCP server, and its input is plain fields an agent fills on the first try.

### What can this Actor do?

- **Search by place** — prefecture (都道府県), then a city or ward (市区町村) or a station (駅), checked against SUUMO's own lists: one match runs, a name that matches several is refused with the candidates, never guessed
- **Filter like the site** — rent or sale, property type, price, area, layouts, walk minutes to the station, building age, no key money, no deposit, newest first; a value between SUUMO's options is moved onto the nearest one and the status message says so
- **Paste any SUUMO URL** — rent and sale searches with any filters, prefecture, city, station and agency pages, single rent rooms and sale ads
- **One row per room** — a rent building lists each of its rooms as its own item, each once even when several agencies list it
- **Every page to its end** — at SUUMO's largest page size, each ad once even when two searches list it
- **Details add-on** — the full ad table: layout detail, direction, structure, contract, guarantor, insurance, brokerage fee, condo and repair fees, land rights, zoning, renovation, listing dates
- **Seller data add-on** — the listing company's trading name, office phone, address, hours, licence number and transaction type
- **Premium proxies included** — Japanese residential proxies built in at no extra cost

### What data can SUUMO Scraper extract?

| Field | Description | Example |
| ----- | ----------- | ------- |
| **Title** | Building and floor (rent); property name (sale) | パークシティ高田馬場 2階 |
| **Property type / label** | apartment, house, land or other; SUUMO's own word | apartment / マンション |
| **Transaction / section** | `rent` or `sale`; `rent`, `used_condo`, `used_house`, `new_house`, `land` | rent / rent |
| **Price** | Yen: the monthly rent, or the sale price (the lowest of a range) | 378000 |
| **Management fee, deposit, key money** | 管理費・共益費, 敷金, 礼金 in yen (rent) | 20000, 378000, 378000 |
| **Layout, rooms** | 間取り as SUUMO writes it, and its room count | 3LDK, 3 |
| **Area, plot, balcony** | m² | 66.34 |
| **Price per m², per tsubo** | Sale price / area; land's 坪単価 | 965392 |
| **Coverage and floor area ratio** | Land's 建ぺい率 and 容積率, % | 60, 200 |
| **Floor** | 0 = ground floor (1階), -1 = first basement, and the label shown | 1, 2階 |
| **Building** | Name, floors, age, completion month | 13, 2, 2025-03 |
| **Address** | Prefecture, city, ward, town, and the address shown (to the block) | 東京都, 新宿区, 高田馬場４ |
| **Stations** | Every line and station with the walk (and bus) minutes, and the nearest walk | ＪＲ山手線 高田馬場 7 |
| **Photos** | Photo URLs from the search card or the rent ad (a pasted sale ad has none: its overview page shows no gallery) | https://img01.suumo.com/front/gazo/fr/bukken/… |
| **Listing code, headline, badges** | SUUMO物件コード (rent), the sale card's catch line, card labels | 100496776688 |
| **Agency** | The listing company's trading name (sale cards) | センチュリー21(株)スミカ・クリエイト |
| **Details** (add-on) | Every ad-table label and value, features, direction, structure, contract, fees, dates | 南, 鉄筋コン, 2026-11-09 |
| **Seller** (add-on) | Trading name, office phone, address, hours, licence, transaction type | 国土交通大臣（３）第８７３８号, 仲介 |

### How to scrape SUUMO

#### Step-by-step tutorial:

1. **Fill a place** — a **Prefecture** (`東京都 Tokyo`), then a **City or ward** (`新宿区`) or a **Station** (`高田馬場`); or paste SUUMO URLs
2. **Configure options** (optional) — rent or sale, property type, filters, **Max results per search**, the details and seller add-ons
3. **Run the scraper** — Click "Start"; the status message reads back what it searches
4. **Download results** — Export data in JSON, CSV, or Excel format

Proxies are included automatically — no setup required.

#### Compatible URL examples:

- **Rent, a city or ward**: `https://suumo.jp/chintai/tokyo/sc_shinjuku/` (any filters, `?page=3` starts at page 3)
- **Rent, a station**: `https://suumo.jp/chintai/tokyo/ek_22350/`
- **Rent, a prefecture**: `https://suumo.jp/chintai/tokyo/`
- **Rent, the search form's results**: `https://suumo.jp/jj/chintai/ichiran/FR301FC001/?ar=030&bs=040&ta=13&sc=13104&cb=7.0&ct=15.0` (the per-room view `FR301FC005` too)
- **Rent, an agency's rooms**: `https://suumo.jp/chintai/kaisha/kc_030_153297006/`
- **Rent, a room**: `https://suumo.jp/chintai/jnc_000110956262/`, `https://suumo.jp/chintai/bc_100496776688/`
- **Used condos**: `https://suumo.jp/ms/chuko/tokyo/sc_shinjuku/`
- **Used houses**: `https://suumo.jp/chukoikkodate/tokyo/sc_setagaya/`
- **New houses**: `https://suumo.jp/ikkodate/tokyo/sc_setagaya/`
- **Land**: `https://suumo.jp/tochi/tokyo/sc_setagaya/`
- **Sale, the search form's results**: `https://suumo.jp/jj/bukken/ichiran/JJ012FC001/?ar=030&bs=011&ta=13`
- **Sale ad**: `https://suumo.jp/ms/chuko/tokyo/sc_shinjuku/nc_22136809/` (and its `bukkengaiyo/` tab)

**Important**: Only URLs matching these patterns will work. New condos (新築マンション, `/ms/shinchiku/`) are not covered, and pages that only list choices (the line and city pickers) are skipped and named in the status message.

### How much does it cost to scrape SUUMO?

SUUMO Scraper uses **pay-per-result (PPR)** pricing — you only pay for successfully extracted properties.

#### Is scraping SUUMO free?

The scraper follows Apify's PPR model with the following structure:

- **Base extraction**: one event per room or property returned, with every field above but `details` and `seller`
- **Details add-on**: one more event per item whose ad page was added
- **Seller data add-on**: one more event per item whose agency data was added

Pricing is optimized for efficiency, using minimal compute units while maintaining high success rates. Contact support for volume discounts on large-scale projects.

### Input configuration

The scraper accepts the following inputs. Fill a place, paste URLs, or both: one place search per run, plus every URL.

#### Prefecture (都道府県)

One of Japan's 47 prefectures. Alone it searches the whole prefecture; add a city or a station to narrow it. The value is SUUMO's slug, as in its URLs (`tokyo`, `osaka`, `hokkaido_`); the list shows each prefecture's Japanese and English name.

#### City or ward (市区町村)

A city, ward, town or village of the prefecture, in Japanese as SUUMO lists it: `新宿区`, `横浜市中区`, `中区` (a designated city's ward), `新宿` (the suffix is optional), or SUUMO's romaji slug (`shinjuku`). No match or several are refused with the nearest names. Fill a city or a station, not both.

#### Station (駅)

A station of the prefecture, in Japanese (`高田馬場` or `高田馬場駅`); every line serving it is searched. Some names belong to two stations in one prefecture (`浅草` in Tokyo): the run refuses them and names their lines; paste that station's SUUMO URL instead.

#### SUUMO URLs

Any SUUMO rent or sale search, agency page or ad (see above). A URL keeps the filters and order it carries. When you set filters and paste URLs without a place, the filters the URL doesn't carry yet are added to it in SUUMO's own parameters; the status message names every filter it could not apply.

#### Max results per search

The most items for the place search and for each URL (default 10). Each item is a charged event. In a rent search a building's rooms count one by one, so the limit can stop inside a building.

#### Transaction

For rent (賃貸, the default) or for sale (売買).

#### Property type

Rent: mansion (マンション), apartment (アパート) or house (一戸建て); empty means all three. Sale: used condo (中古マンション, the default for sale), used house (中古一戸建て), new house (新築一戸建て) or land (土地). A rent type with sale, or a sale type with rent, is refused before anything runs.

#### Price from (¥)

Lowest price in yen: the monthly rent for rentals. SUUMO searches from a fixed list (rent 30,000, 35,000 …; sale 5,000,000, 10,000,000 …): the bound moves down to the nearest option and the status message says so.

#### Price to (¥)

Highest price in yen, moved up to the nearest option of SUUMO's list.

#### Area from (m²)

Smallest area: a room's or condo's floor area (専有面積), a house's building area (建物面積), land's plot area (土地面積). Moved onto SUUMO's options.

#### Area to (m²)

Largest area, as above.

#### Layouts (間取り)

Only these layouts (ワンルーム, 1K, 1DK, 1LDK … 5K以上); empty means all. Sale searches group layouts by room count, so 2LDK there also finds 2K and 2DK; land has no layout.

#### Max walk to station (minutes)

At most this many minutes on foot to a station (駅徒歩), moved up to SUUMO's options (1, 5, 7, 10, 15, 20 for rent; 1, 3, 5, 7, 10, 15, 20 for sale).

#### Max building age (years, rent)

Rent only: buildings at most this many years old; 0 means new builds (新築).

#### No key money (礼金なし, rent)

Rent only: rooms with no key money.

#### No deposit (敷金なし, rent)

Rent only: rooms with no deposit.

#### Sort

SUUMO's own order, or newest first. A pasted URL keeps its own order.

#### Details add-on

Adds `details` to each item from its ad page: every table label and value as SUUMO shows it, the room's features (設備), direction, structure, layout detail, move-in date, contract, guarantor, insurance, parking, brokerage fee, the condo and repair fees of used condos, land rights, zoning, renovation, total units, the listing and next update dates, and (rent) the ad's photo gallery. Charged only for items that got details.

#### Seller data add-on

Adds `seller` to each item: the listing company's trading name and office phone, plus, where the page holds them, its address, opening hours, closing days, real-estate licence number (免許番号), transaction type (取引態様: 仲介 broker, 貸主 landlord, 売主 seller) and its SUUMO page. Rent items get it from the room's ad (with the details add-on) or its print view. Sale search results carry the name and phone on the card at no extra request; the rest comes with the details add-on, or from the ad's overview when the card shows no agency. Business data only: staff names and photos are never collected. Charged only for items that got seller data.

### Output example

```json
{
  "type": "property",
  "id": "000110956262",
  "url": "https://suumo.jp/chintai/jnc_000110956262/",
  "title": "パークシティ高田馬場（０００５５７２） 2階",
  "property_type": "apartment",
  "property_label": "マンション",
  "transaction": "rent",
  "section": "rent",
  "price": 378000,
  "currency": "JPY",
  "price_max": null,
  "price_is_starting_from": null,
  "condo_fee": 20000,
  "deposit": 378000,
  "key_money": 378000,
  "layout": "3LDK",
  "rooms": 3,
  "area_m2": 66.34,
  "terrain_area_m2": null,
  "balcony_area_m2": null,
  "price_per_m2": null,
  "price_per_tsubo": null,
  "building_coverage_pct": null,
  "floor_area_ratio_pct": null,
  "floor": 1,
  "floor_label": "2階",
  "building_name": "パークシティ高田馬場（０００５５７２）",
  "building_floors": 13,
  "building_age_years": 2,
  "built_at": "2025-03",
  "region": "東京都",
  "city": "新宿区",
  "city_district": null,
  "neighborhood": "高田馬場４",
  "location_label": "東京都新宿区高田馬場４",
  "stations": [
    {
      "line": "ＪＲ山手線",
      "station": "高田馬場",
      "walk_minutes": 7,
      "bus_minutes": null,
      "bus_stop": null
    },
    {
      "line": "東京メトロ東西線",
      "station": "高田馬場",
      "walk_minutes": 7,
      "bus_minutes": null,
      "bus_stop": null
    },
    {
      "line": "西武新宿線",
      "station": "下落合",
      "walk_minutes": 10,
      "bus_minutes": null,
      "bus_stop": null
    }
  ],
  "walk_minutes": 7,
  "photos": [
    "https://img01.suumo.com/front/gazo/fr/bukken/688/100496776688/100496776688_go.jpg",
    "https://img01.suumo.com/front/gazo/fr/bukken/688/100496776688/100496776688_co.jpg"
  ],
  "listing_code": "100496776688",
  "headline": null,
  "badges": [],
  "seller_type": "agency",
  "seller_name": null,
  "search": "https://suumo.jp/chintai/tokyo/sc_shinjuku/",
  "details": {
    "attributes": {
      "向き": "南",
      "間取り詳細": "洋6 洋5 洋4.5 LD15.8K3.7",
      "構造": "鉄筋コン",
      "階建": "2階/地下1地上13階建",
      "損保": "2.2万円2年",
      "入居": "'26年12月上旬",
      "取引態様": "仲介",
      "総戸数": "325戸",
      "契約期間": "定期借家 西暦2029年2月まで",
      "仲介手数料": "41.58万円",
      "保証会社": "保証会社利用必 株式会社インシュアランス"
    },
    "features": [
      "バストイレ別",
      "バルコニー",
      "エアコン",
      "ガスコンロ対応",
      "クロゼット",
      "フローリング",
      "シャワー付洗面台",
      "TVインターホン"
    ],
    "direction": "南",
    "structure": "鉄筋コン",
    "layout_detail": "洋6 洋5 洋4.5 LD15.8K3.7",
    "move_in": "'26年12月上旬",
    "contract": "定期借家 西暦2029年2月まで",
    "guarantor": "保証会社利用必 株式会社インシュアランス",
    "insurance": "2.2万円2年",
    "parking": "-",
    "brokerage_fee": "41.58万円",
    "guarantee_deposit": null,
    "deposit_amortization": "-",
    "condo_fee": null,
    "repair_reserve_fee": null,
    "land_rights": null,
    "zoning": null,
    "reform": null,
    "total_units": "325戸",
    "address": "東京都新宿区高田馬場４",
    "built_at": "2025-03",
    "listed_at": "2026-11-09",
    "next_update_at": "2026-11-24",
    "notes": "…",
    "point": "…",
    "photos": [
      "https://img01.suumo.com/front/gazo/fr/bukken/688/100496776688/100496776688_go.jpg",
      "https://img01.suumo.com/front/gazo/fr/bukken/688/100496776688/100496776688_co.jpg"
    ]
  },
  "seller": {
    "name": "住まいの情報館 グローバル本店(株)D2",
    "phone": "03-0000-0001",
    "address": "東京都港区東新橋1-9-2 汐留住友ビル16階",
    "hours": "10:00~19:00",
    "closed": "火曜・水曜日",
    "licence": "国土交通大臣（３）第８７３８号",
    "transaction_type": "仲介",
    "url": "https://suumo.jp/chintai/kaisha/kc_030_153297006/"
  }
}
```

You can download the dataset extracted by **SUUMO Scraper** in various formats such as **JSON, HTML, CSV, or Excel**. The data is automatically cleaned and normalized for immediate use in analysis tools, databases, or business applications.

### Use cases and applications

- **Rent comparisons** — rent, fees, deposit and key money per m² by ward and station, for relocation and corporate housing
- **Investment research** — used condo prices per m², building age and walk times across Tokyo, Osaka or any prefecture
- **Market reports** — new houses and land prices per tsubo by city
- **New-listing monitoring** — newest first, scheduled daily, for a ward or a station

### Use with ChatGPT, Claude or n8n

Connect Apify's MCP server (mcp.apify.com) to ChatGPT or Claude, or use the Apify node in n8n, and ask in plain words. The agent fills the place and filter fields.

- *"Use the SUUMO Scraper to find 1LDK rentals within 10 minutes of 高田馬場 station, up to ¥150,000 a month, no key money."*
- *"With the SUUMO Scraper, get 100 used condos for sale in 渋谷区, Tokyo and give me the median price per m²."*

### Integrations and API access

SUUMO Scraper seamlessly integrates with popular platforms:

- **Zapier** — Automate data workflows and notifications (via [Apify Zapier integration](https://docs.apify.com/platform/integrations/zapier))
- **Make (Integromat)** — Create complex automation scenarios (via [Apify Make integration](https://www.make.com/en/integrations/apify))
- **Google Sheets** — Direct data export for analysis
- **REST API** — Programmatic access to extracted data ([instructions here](https://docs.apify.com/academy/api/run-actor-and-retrieve-data-via-api))
- **Python/Node.js SDKs** — Easy integration into applications ([instructions here](https://docs.apify.com/academy/api/run-actor-and-retrieve-data-via-api#javascript-and-python-client))

### FAQ and Support

#### Do I need to configure a proxy?

No. SUUMO only answers visitors in Japan, so the Actor includes Japanese residential proxies automatically at no additional cost. There's nothing to configure.

#### Why was my place skipped?

The scraper looks the place up in SUUMO's own city and station lists and runs it only when exactly one matches, so you are never charged for the wrong search. The status message names the nearest names, or the lines of two stations that share a name. The first results page is also checked: if SUUMO answered with another place, the search is skipped before anything is charged.

#### Why are the labels in Japanese?

The scraper ships what SUUMO shows: layouts (3LDK), station and line names, addresses and the ad-table labels stay in Japanese, as Japanese users and tools expect them. Prices, fees, areas, floors, walk minutes and dates are numbers and ISO dates.

#### How often is the data updated?

SUUMO updates listings in real-time. For fresh data, schedule regular scraper runs or use our API for on-demand extraction.

#### What if some URLs don't work?

The scraper only supports specific URL patterns from SUUMO. Ensure your URLs match the compatible formats listed above. URLs outside these patterns are skipped and named in the status message; a removed ad is skipped and counted.

#### Do you offer custom solutions?

Absolutely! We can customize the scraper for specific requirements, additional data points, or integration with your existing systems. Contact us through the Issues tab for enterprise solutions.

#### Need help or have feedback?

- **Report issues**: Use the Issues tab for bug reports and feature requests
- **Custom development**: Contact us for tailored solutions and enterprise integrations

# Changelog

This Actor's version history is a separate document: https://apify.com/ribtools/suumo-scraper/changelog.md

# Actor input Schema

## `prefecture` (type: `string`):

The prefecture to search, e.g. `tokyo`. Alone it searches the whole prefecture; add a city or a station below to narrow it. Values are SUUMO's own slugs, as in its URLs (`tokyo`, `osaka`, `hokkaido_`).

## `city` (type: `string`):

A city, ward, town or village in the prefecture, in Japanese as SUUMO lists it: `新宿区`, `横浜市中区`, `中区` (a designated city's ward), `新宿` (the suffix is optional) or SUUMO's romaji slug (`shinjuku`). Fill a city or a station, not both.

## `station` (type: `string`):

A station in the prefecture, in Japanese: `高田馬場` or `高田馬場駅`. Every line serving it is searched. A name two stations share in the prefecture is refused with their lines: paste that station's SUUMO URL instead. Fill a city or a station, not both.

## `startUrls` (type: `array`):

Rent or sale searches (prefecture, city, station, agency, the 条件 query pages), rent ads (`/chintai/jnc_…/`, `bc_…`) or sale ads (`…/nc_…/`) copied from the browser. A URL keeps its own filters and order. New condos (新築マンション) are not covered.

## `maxRequests` (type: `integer`):

Maximum number of properties for the place search and each URL above. Each result is a charged event. Default 10.

## `transaction` (type: `string`):

Rentals (賃貸) or properties for sale (売買). Default: rent.

## `propertyType` (type: `string`):

Rent: `mansion` (マンション), `apartment` (アパート) or `house` (一戸建て); empty = all. Sale: `used_condo` (中古マンション, the default), `used_house` (中古一戸建て), `new_house` (新築一戸建て) or `land` (土地). New condos are not covered.

## `priceFrom` (type: `integer`):

Lowest monthly rent, or lowest sale price, in yen. Moved down to SUUMO's own options (e.g. 73,000 searches from 70,000); the status message says so.

## `priceTo` (type: `integer`):

Highest monthly rent, or highest sale price, in yen. Moved up to SUUMO's own options (e.g. 52,000,000 searches up to 55,000,000).

## `areaFrom` (type: `integer`):

Smallest area in m²: the room or condo's floor area, a house's building area, land's plot area. Moved onto SUUMO's options.

## `areaTo` (type: `integer`):

Largest area in m², as above.

## `layouts` (type: `array`):

Only these layouts; empty means all. Sale searches group them by room count (any 2K/2DK/2LDK picks all three); land has none.

## `walkMinutesMax` (type: `integer`):

Most minutes on foot to the nearest station. Moved up to SUUMO's options.

## `buildingAgeMax` (type: `integer`):

Rent only: building at most this many years old; 0 = new builds (新築).

## `noKeyMoney` (type: `boolean`):

Rent only: rooms with no key money.

## `noDeposit` (type: `boolean`):

Rent only: rooms with no deposit.

## `sort` (type: `string`):

Order of the place search. A pasted URL keeps its own order.

## `detailsAddon` (type: `boolean`):

Also fetch each ad's page: the full attribute table, features, structure, direction, fees, the listing dates and (rent) the photo gallery. Charged per item with details.

## `sellerDataAddon` (type: `boolean`):

Also fetch the listing agency: trading name and office phone, plus address, hours, licence number and transaction type where the page holds them (sale search results: with the details add-on, or when the card shows no agency). Business data only. Charged per item with seller data.

## Actor input object example

```json
{
  "prefecture": "tokyo",
  "city": "新宿区",
  "startUrls": [
    "https://suumo.jp/chintai/tokyo/sc_shinjuku/",
    "https://suumo.jp/ms/chuko/tokyo/sc_shibuya/"
  ],
  "maxRequests": 10,
  "transaction": "rent",
  "noKeyMoney": false,
  "noDeposit": false,
  "sort": "default",
  "detailsAddon": false,
  "sellerDataAddon": false
}
```

# Actor output Schema

## `items` (type: `string`):

All scraped items.

# 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 = {
    "prefecture": "tokyo",
    "city": "新宿区",
    "maxRequests": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("ribtools/suumo-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 = {
    "prefecture": "tokyo",
    "city": "新宿区",
    "maxRequests": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("ribtools/suumo-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 '{
  "prefecture": "tokyo",
  "city": "新宿区",
  "maxRequests": 10
}' |
apify call ribtools/suumo-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ribtools/suumo-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/K8vkdkhB79gfoMSad/builds/9uZA9F7d7nZ218iTu/openapi.json
