# Mercari Product Details Scraping by URL

Extract product details (e.g., description and delivery info) from Mercari via URL. This template runs locally or in the cloud, but cloud execution requires a premium proxy if access is restricted.

- Template page: [https://www.octoparse.com/template/mercari-url-based-product-listing-scraper](https://www.octoparse.com/template/mercari-url-based-product-listing-scraper)
- Categories: E-Commerce
- Status: `PUBLISHED`
- Run mode: `BOTH`

## Pricing

Free.

## What is an Octoparse template?

An Octoparse template is a ready-to-use scraping workflow with predefined inputs and structured outputs. Use the exact parameter keys below; do not invent parameters.

## Overview

This ready-to-use template collects structured data from listing pages, detail pages.

## Output

The current workflow extracts 14 fields, including `カテゴリー`, `価格`, `出品者URL`, `商品URL`, `商品なし`, `商品の状態`, `商品の説明`, `商品名`, `在庫状況`, `画像`, `発送元の地域`, `配送の方法`, `配送料の負担`, `配送日の目安`.

## Use Cases

- Use structured results for research, comparison, and monitoring.
- Collect rows without building the extraction workflow from scratch.
- Combine results with other templates for downstream enrichment.
- Review a representative result before starting a large batch.

## Why Octoparse

- **No coding required:** complete URL (up to 10,000 per run) and start the template in local or cloud mode.
- **Flexible export:** review and export results as CSV, Excel, or JSON.

## Input

### URL (up to 10,000 per run)

Required. Enter Detail Pages URL(s). Constraints: minItems=1; maxItems=20000; items.minLength=0; items.maxLength=10000.

## How to Use

# Mercari Product Details Scraping by URL

Collects product details (e.g., description, delivery info) from [Mercari](https://jp.mercari.com/) product pages via URL.

- Runs locally or in the cloud. Cloud execution requires a premium proxy if access is restricted.
- Current pricing: no per-line charge.

## Input

- `URL` (required): product URLs, one per line. Up to 10,000 per run.

## Output Fields

Returns structured rows with these fields:

`商品名`, `出品者URL`, `価格`, `在庫状況`, `カテゴリー`, `商品の状態`, `配送料の負担`, `配送の方法`, `発送元の地域`, `配送日の目安`, `画像`, `商品URL`, `商品の説明`, `商品なし`

## How to Use

1. Open the template and select **Try it** or **Start**.
2. Enter the required `URL` input (up to 10,000 per run).
3. Choose a local or cloud run.
4. Review the output rows and export or process the structured data.

## Scheduling and API

- You can schedule recurring runs locally or in the cloud.
- Export data to CSV, Excel, JSON, databases, cloud storage, or send it to reporting/AI workflows.
- API access is available through Octoparse OpenAPI or the [AgentTools API](https://www.octoparse.com/docs/en/api-reference/agenttools-api/search-templates).
- Scheduling and API access may require a paid Octoparse plan.
- For scheduled local runs, keep your computer and Octoparse open.

## Limitations

- Collects only fields shown on Mercari listing/detail pages; it does not add data Mercari does not display.
- `商品URL`, `商品の説明`, and `商品なし` can be empty when the source record does not provide them.
- Does not collect reviews or comments.

## Tips

- Start with one or a few inputs and review the returned rows before scaling.
- Use the most specific valid URL (up to 10,000 per run) to reduce unrelated or duplicate records.
- Use a stable URL or identifier from the returned fields as the deduplication key when available.

## Limitations

Results depend on what the source site exposes at run time. Fields may be empty when a source page does not provide a value. The template enforces the input limits shown above.

## Tips

Use specific, valid inputs and review a representative result before starting a large batch. Remove duplicate inputs when repeated records are not needed.

## FAQ

### What do I need to enter?

Use the exact inputs and limits listed above.

### What data does this template return?

See Output Schema below; availability can vary by source record.

### How is usage billed?

See the Pricing section above for current pricing and billing details.

## Related Templates

- [Mercari Product Details Scraping by URL (Cloud Only)](https://www.octoparse.com/template/mercari-product-detail-url-scraper-cloud)
- [Etsy Product Scraper (by URL)](https://www.octoparse.com/template/etsy-product-scraper-by-url)
- [Mercari Product Listings Scraper](https://www.octoparse.com/template/mercari-keyword-product-listings-scraper)
- [Seek Details Scraper (by URL)](https://www.octoparse.com/template/seek-details-scraper)
- [Google Local Service Scraper (by URL)](https://www.octoparse.com/template/google-business-local-services-scraper)

## Input Schema

```json
{
  "title": "Mercari Product Details Scraping by URL  input",
  "description": "Input parameters configured for the current published template version.",
  "type": "object",
  "schemaVersion": 1,
  "additionalProperties": false,
  "properties": {
    "uRL": {
      "title": "URL (up to 10,000 per run)",
      "description": "Enter Detail Pages URL(s).",
      "type": "array",
      "items": {
        "type": "string",
        "minLength": 0,
        "maxLength": 10000
      },
      "minItems": 1,
      "maxItems": 20000,
      "x-octoparse": {
        "apiEnabled": true
      }
    }
  },
  "required": [
    "uRL"
  ]
}
```

## Input JSON Example

Example 1

```json
{
  "uRL": [
    "https://jp.mercari.com/item/m74446682917",
    "https://jp.mercari.com/item/m16853171595",
    "https://jp.mercari.com/item/m26813018313",
    "https://jp.mercari.com/item/m87893686302"
  ]
}
```

Example 2

```json
{
  "uRL": [
    "https://jp.mercari.com/item/m74446682917",
    "https://jp.mercari.com/item/m16853171595",
    "https://jp.mercari.com/item/m26813018313",
    "https://jp.mercari.com/item/m87893686302"
  ]
}
```

Example 3

```json
{
  "uRL": [
    "https://jp.mercari.com/item/m74446682917",
    "https://jp.mercari.com/item/m16853171595",
    "https://jp.mercari.com/item/m26813018313",
    "https://jp.mercari.com/item/m87893686302"
  ]
}
```

Example 4

```json
{
  "uRL": [
    "https://jp.mercari.com/search?keyword=%E6%A7%98%E5%B0%82%E7%94%A8&status=sold_out%7Ctrading&item_condition_id=1&price_min=5000&price_max=20000&sort=num_likes&order=desc"
  ]
}
```


## Output Schema

```json
{
  "schemaVersion": 1,
  "type": "object",
  "properties": {
    "カテゴリー": {
      "type": "string",
      "description": ""
    },
    "価格": {
      "type": "string",
      "description": ""
    },
    "出品者URL": {
      "type": "string",
      "description": ""
    },
    "商品URL": {
      "type": "string",
      "description": ""
    },
    "商品なし": {
      "type": "string",
      "description": ""
    },
    "商品の状態": {
      "type": "string",
      "description": ""
    },
    "商品の説明": {
      "type": "string",
      "description": ""
    },
    "商品名": {
      "type": "string",
      "description": ""
    },
    "在庫状況": {
      "type": "string",
      "description": ""
    },
    "画像": {
      "type": "string",
      "description": ""
    },
    "発送元の地域": {
      "type": "string",
      "description": ""
    },
    "配送の方法": {
      "type": "string",
      "description": ""
    },
    "配送料の負担": {
      "type": "string",
      "description": ""
    },
    "配送日の目安": {
      "type": "string",
      "description": ""
    }
  },
  "title": "Mercari Product Details Scraping by URL  output",
  "description": "Initial output fields derived from the current published implementation. Field descriptions are maintained by Data Center; production field names and types should be refreshed from recent successful runs.",
  "additionalProperties": false
}
```

## Output Example

Example 1

```json
{
  "カテゴリー": "ゲーム・おもちゃ・グッズ > おもちゃ > 鉄道玩具 > プラレールシリーズ > カプセルプラレール > 車両",
  "価格": "¥1,180",
  "出品者URL": "https://jp.mercari.com/user/profile/953243705",
  "商品URL": "https://jp.mercari.com/item/m74446682917",
  "商品なし": "",
  "商品の状態": "やや傷や汚れあり\n\n目につく傷や汚れがある",
  "商品の説明": "コメント (0)\n\n※売り切れのためコメントできません",
  "商品名": "",
  "在庫状況": "SoldOut",
  "画像": "https://static.mercdn.net/item/detail/orig/photos/m74446682917_1.jpg?1730116420",
  "発送元の地域": "山口県",
  "配送の方法": "ゆうゆうメルカリ便\n郵便局/コンビニ受取\n匿名配送",
  "配送料の負担": "送料込み(出品者負担)",
  "配送日の目安": "1~2日で発送"
}
```

Example 2

```json
{
  "カテゴリー": "ゲーム・おもちゃ・グッズ > キャラクターグッズ > キーホルダー・アクリルキーホルダー",
  "価格": "¥1,222",
  "出品者URL": "https://jp.mercari.com/user/profile/344133699",
  "商品URL": "https://jp.mercari.com/item/m26813018313",
  "商品なし": "",
  "商品の状態": "新品、未使用\n\n新品で購入し、一度も使用していない",
  "商品の説明": "コメント (2)\n\n検品素人の了承の方のみお願い致します。\n\nコメント頂きありがとうございます。\nはい！可能です。宜しくお願い致します。\n\n半年以上前\n\n報告する\n\nMeiko\n\nこんにちは。気になっているのですが、今日購入した場合２，３日以内の発送は可能ですか？\n\n半年以上前\n\n報告する\n\n※売り切れのためコメントできません",
  "商品名": "",
  "在庫状況": "SoldOut",
  "画像": "https://static.mercdn.net/item/detail/orig/photos/m26813018313_1.jpg?1730128450",
  "発送元の地域": "未定",
  "配送の方法": "ゆうゆうメルカリ便\n郵便局/コンビニ受取\n匿名配送",
  "配送料の負担": "送料込み(出品者負担)",
  "配送日の目安": "4~7日で発送"
}
```

Example 3

```json
{
  "カテゴリー": "スマホ・タブレット・パソコン > スマートフォン・携帯電話 > スマートフォン本体",
  "価格": "¥38,000",
  "出品者URL": "https://jp.mercari.com/user/profile/858809232",
  "商品URL": "https://jp.mercari.com/item/m16853171595",
  "商品なし": "",
  "商品の状態": "目立った傷や汚れなし\n\n細かな使用感・傷・汚れはあるが、目立たない",
  "商品の説明": "コメント (17)\n\nる\n\n33,000円でお願いできますか？ 即購入致します。 お願いします\n\n半年以上前\n\n報告する\n\nやま\n\nマウンテン様\nコメントありがとうございます。\nMINIではありません。\n\n半年以上前\n\n報告する\n\nMontana\n\nコメント失礼いたします。こちらMINIですか？\n\n半年以上前\n\n報告する\nコメントをもっと見る\n\n※売り切れのためコメントできません",
  "商品名": "",
  "在庫状況": "SoldOut",
  "画像": "https://static.mercdn.net/item/detail/orig/photos/m16853171595_1.jpg?1726894385",
  "発送元の地域": "兵庫県",
  "配送の方法": "ゆうゆうメルカリ便\n郵便局/コンビニ受取\n匿名配送",
  "配送料の負担": "送料込み(出品者負担)",
  "配送日の目安": "1~2日で発送"
}
```

Example 4

```json
{
  "カテゴリー": "",
  "価格": "",
  "出品者URL": "",
  "商品URL": "https://jp.mercari.com/search?keyword=%E6%A7%98%E5%B0%82%E7%94%A8&status=sold_out%7Ctrading&item_condition_id=1&price_min=5000&price_max=20000&sort=num_likes&order=desc",
  "商品なし": "",
  "商品の状態": "",
  "商品の説明": "",
  "商品名": "様専用 の検索結果",
  "在庫状況": "",
  "画像": "",
  "発送元の地域": "",
  "配送の方法": "",
  "配送料の負担": "",
  "配送日の目安": ""
}
```

## API

`POST https://openapi.octoparse.com/api/agentTools/executeTask`

This is the OpenAPI Agent Tools `executeTask` endpoint. Authenticate with a Bearer token.

Request body:

`templateName` is the template slug; `parameters` is a JSON object string whose keys match Input Schema; `taskName`, `idempotencyKey`, and `maxCollectedRows` are optional.

Obtain a token:

```http
POST https://openapi.octoparse.com/token
Content-Type: application/json

{
  "username": "YOUR_USERNAME",
  "password": "YOUR_PASSWORD",
  "grant_type": "password"
}
```

Use `data.access_token` as `Authorization: Bearer <token>`. After starting, poll `getTaskStatus` and export with `exportData`.

```json
{
  "templateName": "mercari-url-based-product-listing-scraper",
  "taskName": "Mercari Product Details Scraping by URL",
  "parameters": "{\"uRL\":[\"https://jp.mercari.com/item/m74446682917\",\"https://jp.mercari.com/item/m16853171595\",\"https://jp.mercari.com/item/m26813018313\",\"https://jp.mercari.com/item/m87893686302\"]}"
}
```

## Python Example

```python
import json
import requests

OPENAPI_BASE = "https://openapi.octoparse.com"
ACCESS_TOKEN = "YOUR_ACCESS_TOKEN"

parameters = json.loads("{\"uRL\":[\"https://jp.mercari.com/item/m74446682917\",\"https://jp.mercari.com/item/m16853171595\",\"https://jp.mercari.com/item/m26813018313\",\"https://jp.mercari.com/item/m87893686302\"]}")

response = requests.post(
    f"{OPENAPI_BASE}/api/agentTools/executeTask",
    headers={
        "Authorization": f"Bearer {ACCESS_TOKEN}",
        "Content-Type": "application/json",
    },
    json={
        "templateName": "mercari-url-based-product-listing-scraper",
        "taskName": "Mercari Product Details Scraping by URL",
        "parameters": json.dumps(parameters, ensure_ascii=False),
    },
    timeout=60,
)
print(response.status_code)
print(response.json())
```

## HTTP/cURL Example

```bash
curl -X POST "https://openapi.octoparse.com/api/agentTools/executeTask" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "templateName": "mercari-url-based-product-listing-scraper",
  "taskName": "Mercari Product Details Scraping by URL",
  "parameters": "{\"uRL\":[\"https://jp.mercari.com/item/m74446682917\",\"https://jp.mercari.com/item/m16853171595\",\"https://jp.mercari.com/item/m26813018313\",\"https://jp.mercari.com/item/m87893686302\"]}"
}
JSON
```

## MCP Setup

Connect an MCP-compatible AI client to `https://mcp.octoparse.com` using browser OAuth or an Octoparse API key. Find `mercari-url-based-product-listing-scraper`, inspect its inputs, create a cloud task with the exact Input Schema keys, and export JSON results.

## Machine-readable Resources

- [Template contract](https://www.octoparse.com/templates/mercari-url-based-product-listing-scraper.json)
- [Manifest](https://www.octoparse.com/templates/mercari-url-based-product-listing-scraper-manifest.json)
