# Buyee Mercari Listing Scraper (`bovi/buyee-scraper`) Actor

Collect Mercari cards from Buyee. Get item IDs, URLs, titles, JPY prices, displayed USD conversions, and images when present. No required inputs or Buyee credentials. Free pricing: $0.00315 per dataset item + $0.00005 per Actor Start event.

- **URL**: https://apify.com/bovi/buyee-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 94.1% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.15 / 1,000 buyee mercari listing scrapers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Buyee Mercari Listings Scraper

Scrape publicly displayed product cards from Buyee’s Mercari feed at https://buyee.jp/mercari/ and extract one dataset item per listing card the Actor can parse. It reads server-rendered catalog HTML without signing in and requires no Buyee credentials.

- Extract Mercari listing IDs, canonical Buyee URLs, titles, yen prices, and displayed USD conversions when present.
- Monitor visible Buyee Mercari cards for e-commerce and price-monitoring workflows.
- Build catalog snapshots from the public Mercari home feed.
- Review listing images when cards expose them, alongside identifiers and prices.
- Run without required input fields or buyer-supplied Buyee credentials.

### What you get

The Actor emits one dataset item for each listing card it can parse from the public Buyee Mercari feed. Seller, location, listing date, and item attributes are not emitted because those fields are not exposed on the public cards used by this Actor.

| Field | Type | Description |
| --- | --- | --- |
| `item_id` | string | Buyee Mercari listing identifier. |
| `item_url` | string | Canonical Buyee URL for the listing. |
| `title` | string | Listing title displayed in the public catalog. |
| `price` | number | Listing price in Japanese yen when a yen price is parsed. |
| `currency` | string | Currency code for the listing price, emitted as `JPY` with a parsed yen price. |
| `price_usd` | number | USD conversion displayed by Buyee, when present. |
| `image_url` | string | Listing image URL, when present in the catalog card. |

The parser removes duplicate listing IDs. Cards without a usable item link or title are skipped.

### Sample output

The following is one real record from the dataset sample. Optional `price_usd` is not present in this record because it was not included in that extracted item.

```json
{
  "item_id": "m75305555555",
  "item_url": "https://buyee.jp/mercari/item/m75305555555",
  "title": "＝LOVE イコラブ 音嶋莉沙 生写真 8周年ツアー衣装③ セミコンプ",
  "price": 444,
  "currency": "JPY",
  "image_url": "https://static.mercdn.net/thumb/item/jpeg/m75305555555_1.jpg?1792008521"
}
```

### Pricing

This Actor uses pay-per-event billing. The listed charge events are:

| Charge event | When it applies | Free-plan price |
| --- | --- | --- |
| `apify-actor-start` | Charged when the Actor starts. The number of events depends on Actor memory, with one event per GB and a minimum of one event. | $0.00005 per event on Free |
| `apify-default-dataset-item` | One scraped result with all fields. | $0.00315 per event on Free |

One start event costs $0.00005 on Free, so the Free-plan totals are:

- 1,000 x $0.00315 = $3.15 on Free, so $3.15005 on Free with the start event.
- 1,587 x $0.00315 = $4.99905 on Free, so $4.99910 on Free with the start event.
- 10,000 x $0.00315 = $31.50 on Free, so $31.50005 on Free with the start event.

The Apify Free plan includes **$5 of monthly platform usage credit**, so about 1,587 results fit into it.

For this pay-per-event Actor, platform usage—including compute, Apify Proxy traffic including residential traffic, and storage—is included in the event prices and paid by the Actor developer. You do not pay separately for platform usage under this pricing setup.

### How to use

1. Open the Actor in your Apify account.
2. Set `maxResults` to the maximum number of visible listing cards you want returned.
3. Keep the default `proxyConfiguration` (residential Apify Proxy), which is the setup used in the successful run behind the sample below.
4. Start the run and read the resulting dataset records.
5. Check the fields for optional USD conversion and image URLs, which may be absent when the public card does not expose them.
6. Repeat the run through Apify Schedules, using daily as a starting point for listing collection.

Example input:

```json
{
  "maxResults": 10,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"]
  }
}
```

Export the dataset as JSON or CSV, or read it through the Apify dataset API.

### Input parameters

There are no required input fields.

| Parameter | What it does | Default |
| --- | --- | --- |
| `maxResults` | Integer maximum number of listings to collect from the public Buyee Mercari feed. The schema minimum is `1`. | `50` |
| `proxyConfiguration` | Optional object passed to Apify’s proxy configuration. The Actor uses a proxy URL when the configuration provides one. | `useApifyProxy: true` with `apifyProxyGroups: ["RESIDENTIAL"]`. |

The default is residential Apify Proxy. Setting `useApifyProxy: false` fetches the feed directly, and a non-200 response from Buyee then fails the run (see the limits below).

### Limits and edge cases

| Condition | What you see | What to do |
| --- | --- | --- |
| The public feed contains more cards than `maxResults` | The Actor stops after the requested number of records, even when more cards are visible. | Increase `maxResults` and run again. |
| `maxResults` is zero or negative when it reaches the Actor | The Actor logs that no listings were requested and returns without pushing records. | Use an integer of at least `1`. |
| The feed contains no listing cards that the parser can use | The Actor raises an error stating that the Buyee Mercari feed contained no listing cards. | Check that the public feed is available and run again. |
| Buyee returns a response other than HTTP 200 for the catalog request | The fetch step raises an error containing the returned HTTP status, before records are parsed or pushed. | Check access to the public feed and start another run. |
| A card has no usable Mercari item link or no title | The card is skipped and does not become a dataset item. | Use the returned records from cards that expose the required catalog data. |
| A card does not expose a USD conversion or image | The corresponding `price_usd` or `image_url` field is absent from that item. | Treat those fields as optional when processing the dataset. |
| A query or item-detail path is needed | This Actor reads the public Mercari home feed only. It does not search Mercari by keyword or open item-detail pages. | Use the emitted home-feed cards for this Actor’s supported collection scope. |
| The visible feed changes | The number of cards available to parse can differ between runs as Buyee updates its feed. | Run again when you need another feed snapshot. |

### FAQ

#### How much does it cost to scrape Buyee Mercari listings?

On the Free plan, a result costs $0.00315 and each start event $0.00005. See Pricing above for a worked total.

#### Do I need a Buyee login or API key?

No Buyee sign-in is used, and the Actor has no required input fields. You do not need to provide buyer-supplied Buyee credentials.

#### Why did my run return no listings or fail?

Use `maxResults` of at least `1`. The Actor expects an HTTP 200 response from `https://buyee.jp/mercari/` and fails on any other status, or when the feed has no usable listing cards. Keep the default residential proxy, review the run log, and start another run.

#### Is scraping public Buyee Mercari data legal or allowed?

The Actor reads server-rendered catalog HTML from Buyee’s public Mercari feed without signing in. Whether a particular use is legal or allowed depends on the source’s terms and applicable law for your use case; review those requirements before using the data.

### Related actors

- [Buyee Japan Marketplace Listings Scraper](https://apify.com/bovi/buyee-jp-scraper) — related Actor for collecting listings from the Buyee Japan marketplace.

### Usage statistics

This Actor creates a small, content-free summary at the end of each run, used only to monitor reliability and improve this Actor. No input values, credentials or scraped data are sent.

A copy of the exact record for your run is saved as `USAGE_STATS` in your own Apify key-value store.

To opt out, set `disableUsageStats` to `true` in the input. Nothing is sent then.

[Full list of collected fields](https://api.apify.com/v2/key-value-stores/v9rgHjMKLDGtHf8tD/records/index.html)

# Actor input Schema

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

Maximum number of listings to collect from the public Buyee Mercari feed.

## `proxyConfiguration` (type: `object`):

Optional proxy settings. Leave disabled to fetch Buyee directly.

## Actor input object example

```json
{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}
```

# Actor output Schema

## `results` (type: `string`):

Dataset with the scraped listings.

# 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 = {
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ]
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/buyee-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 = {
    "maxResults": 50,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
    },
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/buyee-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 '{
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ]
  }
}' |
apify call bovi/buyee-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/buyee-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/8ljsMcJvah3LdWyPx/builds/0kw4rXOmsmbHTw0p6/openapi.json
