# Search Rakuten — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Search for products on Rakuten's Japanese marketplace and retrieve detailed information including product names, URLs, prices, and shop IDs. Access real-time product listings across Rakuten's catalog, with support for paginated results and automatic detection of Furusato Nozei (Hometown Tax) eligible items.

**Category:** E-commerce | **Website:** [search.rakuten.co.jp/](https://search.rakuten.co.jp/) | **Docs:** [parse.bot/marketplace/46829fbe-405c-457f-be41-8720191bc8db/search-rakuten-co-jp-api](https://parse.bot/marketplace/46829fbe-405c-457f-be41-8720191bc8db/search-rakuten-co-jp-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-search-rakuten-co-jp-api-46829fbe/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### search_products

Search for products on Rakuten Ichiba. Returns paginated results including product names, URLs, prices, and shop IDs, with a flag indicating whether each item is Furusato Nozei (Hometown Tax) eligible. Results follow Rakuten's default relevance ranking. Approximately 50 items per page.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `page` | integer | No | Page number to fetch. Must be a positive integer. |
| `query` | string | Yes | Search keyword to query Rakuten's product catalog (e.g. 'テレビ', 'コーヒー'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-search-rakuten-co-jp-api-46829fbe/search_products \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"page":"<integer>","query":"<string>"}'
```
