# rakuten.travel_search

A page of places to stay in Japan on Rakuten Travel for words: name, star rating, review count, lowest price a night, area and what matched.

Rakuten Travel search, one of the Rakuten scrapers.

| | |
| --- | --- |
| Id | `rakuten.travel_search` |
| Version | 1 |
| Billed per | request — 1 unit for a charged run |
| Runs | within one request |

Start it with `POST /v1/scrapers/rakuten.travel_search/runs`. How runs work is in [Running a scraper](https://docs.enrichednow.com/running-a-scraper.md); what a run costs is in [Usage and units](https://docs.enrichednow.com/usage-and-units.md).

## Inputs

The fields of `input`. A field that is not listed here is refused.

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `keywords` | string | yes | What to search for, in Japanese or in Latin letters: a town, an area, a station, a hotel's name or chain, a kind of stay (`京都`, `箱根 温泉`, `Hilton`). Limit: at least 1 characters, at most 50 characters. |
| `sort` | "recommended" \| "price_low" \| "price_high" \| "best_rated" | no | The order: the site's recommended order (default), cheapest or dearest lowest price, or best rated. Default: `"recommended"`. |
| `page` | integer | no | Which page of results, from 1; 30 places a page. Limit: 1 to 100. Default: `1`. |

## Record fields

Every record of a run has these fields. A value that is not known is `null` — never an empty string and never `0`.

| Field | Type | Notes |
| --- | --- | --- |
| `position` | integer | The place's place in the results, from 1 across pages (30 a page). |
| `hotel_id` | string | Rakuten Travel's number of the place. `rakuten.travel_hotel` takes it. |
| `url` | string | The place's page on travel.rakuten.co.jp. |
| `name` | string | The place's name as the site writes it (often in full-width letters). |
| `stars` | number or null | The average of its guests' ratings as the page draws it, in whole and half stars out of 5; null for a place without reviews. `rakuten.travel_hotel` gives the exact average. |
| `review_count` | integer or null | How many reviews (お客さまの声) the place has. |
| `lowest_price` | integer or null | The lowest price the site estimates for a room a night, in yen, tax included (最安料金（目安）). |
| `lowest_price_before_tax` | integer or null | The same price before consumption tax, as the page writes it first. |
| `currency` | string | Always `JPY`. Default: `"JPY"`. |
| `area` | string or null | The prefecture and areas the site files the place under, e.g. `京都府 京都 京都駅`. |
| `summary` | string or null | The place's own line about itself (特徴). |
| `matches` | object of string values | The details the words were found in, as label and text in Japanese: 住所 (address), アクセス (access), 館内設備 (facilities), その他設備・サービス, 風呂情報 (baths). |
| `plans_matched` | integer or null | How many of the place's plans (rooms and offers) the words were found in. |
| `image` | string or null | The place's picture. |
| `total_results` | integer or null | How many places the site says match the search, the same on every record. |
| `fetched_at` | string (date-time) | When the site answered, in UTC. |

## Example request

It starts a run with this scraper's example input and waits up to 60 seconds for it. The key is read from `ENRICHEDNOW_API_KEY`.

```bash
curl -X POST "https://api.enrichednow.com/v1/scrapers/rakuten.travel_search/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"keywords":"京都"}}'
```

## Example response

The run, once it has ended. A run that has not ended within `wait` comes back with `202` and the status `queued` or `running`.

```json
{
  "id": "run_841742f37553189ff9c27ba1",
  "scraper_id": "rakuten.travel_search",
  "scraper_version": 1,
  "status": "ok",
  "reason": null,
  "input": {
    "keywords": "京都"
  },
  "record_count": 1,
  "units": 1,
  "units_per_request": 1,
  "units_per_record": null,
  "units_per_page": null,
  "diagnostics": {
    "requests": 1,
    "bytes": 259214,
    "wall_ms": 885,
    "facts": {}
  },
  "created_at": "2026-11-16T22:37:50.170950Z",
  "started_at": "2026-11-16T22:37:50.178331Z",
  "finished_at": "2026-11-16T22:37:51.066313Z"
}
```

Its records, from `GET /v1/runs/{id}/records`. The record is a real one: this scraper's own parser read it from a page recorded from the site.

```json
{
  "records": [
    {
      "position": 1,
      "hotel_id": "179147",
      "url": "https://travel.rakuten.co.jp/HOTEL/179147/179147.html",
      "name": "レフ京都八条口ｂｙベッセルホテルズ｜ＲＥＦ京都八条口（京都２号店）",
      "stars": 4.5,
      "review_count": 751,
      "lowest_price": 5700,
      "lowest_price_before_tax": 5182,
      "currency": "JPY",
      "area": "京都府 京都 京都駅",
      "summary": "2021年開業！Wi-Fi全室無料。京都駅八条口から徒歩約3分。京都の今を感じるホテルです。",
      "matches": {
        "住所": "京都府京都市南区東九条室町57番地",
        "アクセス": "JR「京都駅」八条口より徒歩にて約３分。京都東ICから約20分■京都南ICから約29分"
      },
      "plans_matched": 14,
      "image": "https://img.travel.rakuten.co.jp/image/imgr_90?no=179147",
      "total_results": 3195,
      "fetched_at": "2026-11-19T22:28:10.851364Z"
    }
  ],
  "next_cursor": null
}
```

A run does not always end `ok`. [Results and statuses](https://docs.enrichednow.com/results-and-statuses.md#reason-codes) lists every status and the reasons every scraper shares; [the reasons of the Rakuten scrapers](https://docs.enrichednow.com/results-and-statuses.md#rakuten) are in their own section there.
