# Mercari 🔴 JP Extractor (`jupri/mercari-jp`)

💫 All-In-One Mercari Japan Scraper

- **URL**: https://beta-securitybyobscurity.apify.com/jupri/mercari-jp.md
- **Developed by:** [cat](https://beta-securitybyobscurity.apify.com/jupri) (community)
- **Categories:** E-commerce
- **Stats:** 11 total users, 11 monthly users, 82.2% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$30.00/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period.
You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#rental-actors

# README

## Welcome to Mercari Japan Scraper

<img align="right" height="32" src="https://apify.com/actor-badge?actor=jupri~mercari-jp">

![dont be sad readme is here](https://raw.githubusercontent.com/JupriGH/resources/main/cats/catframe.png)

### 🛒 About Mercari.com

<image align="right" src="https://upload.wikimedia.org/wikipedia/commons/9/93/Mercari_logo.svg" width="30%">

**Mercari, Inc.**  ([TYO](https://en.wikipedia.org/wiki/Tokyo_Stock_Exchange "Tokyo Stock Exchange"):  [4385](https://www2.jpx.co.jp/tseHpFront/StockSearch.do?callJorEFlg=1\&method=topsearch\&topSearchStr=4385)) is a Japanese e-commerce company founded in 2013.[\[1\]](https://en.wikipedia.org/wiki/Mercari#cite_note-1)  Their main product, the Mercari marketplace app, was first launched in Japan in July 2013, and has since grown to become Japan's largest community-powered marketplace with over JPY 10 billion in transactions carried out on the platform each month.[\[2\]](https://en.wikipedia.org/wiki/Mercari#cite_note-techcrunch.com-2)[\[3\]](https://en.wikipedia.org/wiki/Mercari#cite_note-businessinsider.com-3)  Among those Japanese users utilizing one of the country's many community marketplace apps, 94% were found to be using Mercari.[\[4\]](https://en.wikipedia.org/wiki/Mercari#cite_note-4)

Mercari expanded to the United States in 2014 and the United Kingdom in 2016.[\[2\]](https://en.wikipedia.org/wiki/Mercari#cite_note-techcrunch.com-2)[\[5\]](https://en.wikipedia.org/wiki/Mercari#cite_note-techwave.jp-5)  The Mercari app has been downloaded over 100 million times worldwide (as of 16 December 2017) and the company is the first in Japan to reach  [unicorn](https://en.wikipedia.org/wiki/Unicorn_\(finance\) "Unicorn (finance)")  status.[\[3\]](https://en.wikipedia.org/wiki/Mercari#cite_note-businessinsider.com-3)[\[6\]](https://en.wikipedia.org/wiki/Mercari#cite_note-6)

### 🛒 About this Actor

**💫 All-In-One Mercari.com JP Scraper (https://jp.mercari.com)**

### 🍂 Support

Feel free to [reach out](https://console.apify.com/actors/mdtMXcvkUXqYZCeQ8/issues) to the developer for any issues or suggestions for improvement.

<img src="https://apify-uploads-prod.s3.us-east-1.amazonaws.com/5SxZhwYwpknFk8ek9-cat.gif" width="240">

# Actor input Schema

## `query` (type: `array`):

💡 <code>KEYWORDS</code> or <code>URL</code>

## `limit` (type: `integer`):

💡 Number of results (per-query)

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

No description

## `currency` (type: `string`):

No description

## `language` (type: `string`):

No description

## `categories` (type: `array`):

No description

## `brands` (type: `array`):

No description

## `status` (type: `array`):

No description

## `lister` (type: `array`):

No description

## `condition` (type: `array`):

No description

## `deals` (type: `array`):

No description

## `listing` (type: `array`):

No description

## `color` (type: `array`):

No description

## `exclude` (type: `string`):

No description

## `price_min` (type: `integer`):

💡 Please set CURRENCY setting

## `price_max` (type: `integer`):

No description

## `dev_proxy_config` (type: `object`):

💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>

## `dev_custom_headers` (type: `array`):

💡 Additional HTTP Headers

## `dev_custom_cookies` (type: `array`):

💡 Additional HTTP Cookies

## `dev_transform_fields` (type: `array`):

💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>

## `dev_dataset_name` (type: `string`):

💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>

## `dev_dataset_clear` (type: `boolean`):

Clear Dataset before insert/update.

## `dev_no_strip` (type: `boolean`):

💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>

## `dev_fileupload` (type: `string`):

💡 Upload your file and copy & paste the URL somewhere.

## Actor input object example

```json
{
  "limit": 5
}
```

# 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 = {
    "limit": 5
};

// Run the Actor and wait for it to finish
const run = await client.actor("jupri/mercari-jp").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 = { "limit": 5 }

# Run the Actor and wait for it to finish
run = client.actor("jupri/mercari-jp").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "limit": 5
}' |
apify call jupri/mercari-jp --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=jupri/mercari-jp",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Mercari 🔴 JP Extractor",
        "description": "💫 All-In-One Mercari Japan Scraper",
        "version": "0.0",
        "x-build-id": "JNGCsq75fCRz3cppX"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/jupri~mercari-jp/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-jupri-mercari-jp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/jupri~mercari-jp/runs": {
            "post": {
                "operationId": "runs-sync-jupri-mercari-jp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/jupri~mercari-jp/run-sync": {
            "post": {
                "operationId": "run-sync-jupri-mercari-jp",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "properties": {
                    "query": {
                        "title": "❓ Query",
                        "type": "array",
                        "description": "💡 <code>KEYWORDS</code> or <code>URL</code>",
                        "items": {
                            "type": "string"
                        }
                    },
                    "limit": {
                        "title": "♾️ Limit",
                        "type": "integer",
                        "description": "💡 Number of results (per-query)"
                    },
                    "sort": {
                        "title": "♾️ Sorting",
                        "enum": [
                            "score",
                            "newest",
                            "price_asc",
                            "price_desc",
                            "likes"
                        ],
                        "type": "string",
                        "description": ""
                    },
                    "currency": {
                        "title": "Currency",
                        "enum": [
                            "USD",
                            "GBP",
                            "JPY"
                        ],
                        "type": "string",
                        "description": ""
                    },
                    "language": {
                        "title": "Language",
                        "enum": [
                            "en",
                            "jp",
                            "ko",
                            "zh-TW"
                        ],
                        "type": "string",
                        "description": ""
                    },
                    "categories": {
                        "title": "Category ID",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string"
                        }
                    },
                    "brands": {
                        "title": "Brand ID",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string"
                        }
                    },
                    "status": {
                        "title": "Availability",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string",
                            "enum": [
                                "on_sale",
                                "sold_out"
                            ],
                            "enumTitles": [
                                "Available",
                                "Sold Out"
                            ]
                        }
                    },
                    "lister": {
                        "title": "Lister",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string",
                            "enum": [
                                "individual",
                                "shop"
                            ],
                            "enumTitles": [
                                "Individual",
                                "Shops"
                            ]
                        }
                    },
                    "condition": {
                        "title": "Condition",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string",
                            "enum": [
                                "new",
                                "almost_new",
                                "no_scratch",
                                "some_scratch",
                                "scratch",
                                "bad"
                            ],
                            "enumTitles": [
                                "New/unused",
                                "Almost new",
                                "No noticeable scratches or marks",
                                "Some scratches/marks",
                                "Scratches/marks",
                                "Bad condition"
                            ]
                        }
                    },
                    "deals": {
                        "title": "Deals",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string",
                            "enum": [
                                "discount",
                                "regular"
                            ],
                            "enumTitles": [
                                "Discount",
                                "Regular Price"
                            ]
                        }
                    },
                    "listing": {
                        "title": "Types of listing",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string",
                            "enum": [
                                "auction",
                                "normal"
                            ],
                            "enumTitles": [
                                "Auction",
                                "Normal Listing"
                            ]
                        }
                    },
                    "color": {
                        "title": "Color",
                        "type": "array",
                        "description": "",
                        "items": {
                            "type": "string",
                            "enum": [
                                "Black",
                                "White",
                                "Gray",
                                "Beige",
                                "Brown",
                                "Red",
                                "Pink",
                                "Purple",
                                "Navy",
                                "Blue",
                                "Green",
                                "Khaki",
                                "Yellow",
                                "Orange",
                                "Gold",
                                "Silver"
                            ]
                        }
                    },
                    "exclude": {
                        "title": "Exclude Keyword",
                        "type": "string",
                        "description": ""
                    },
                    "price_min": {
                        "title": "Price Range",
                        "type": "integer",
                        "description": "💡 Please set CURRENCY setting"
                    },
                    "price_max": {
                        "title": "",
                        "type": "integer",
                        "description": ""
                    },
                    "dev_proxy_config": {
                        "title": "🌐 PROXY NETWORKING",
                        "type": "object",
                        "description": "💡 <b>Supported protocol:</b><br><br><b>HTTP(S), SOCKS5</b><br><code>{http|socks5}://{user:pass}@{hostname|ip-address}:port</code><br><br><b>Example</b>: <code>socks5://example.com:9000</code>"
                    },
                    "dev_custom_headers": {
                        "title": "📜 HTTP HEADERS",
                        "type": "array",
                        "description": "💡 Additional HTTP Headers",
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "dev_custom_cookies": {
                        "title": "🍰 HTTP COOKIES",
                        "type": "array",
                        "description": "💡 Additional HTTP Cookies",
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "dev_transform_fields": {
                        "title": "♻️ CUSTOM FIELD",
                        "type": "array",
                        "description": "💡 <b>Transform the resulting output. Select only needed fields.</b><br><br>For nested object use <b>DOT</b>. For example: <pre>address.streetAddress</pre><br>For nested array use <b>NUMBER</b> <i>(index of array element starting from index=0)</i>. For example: <pre>images.0.url</pre>",
                        "items": {
                            "type": "object",
                            "required": [
                                "key",
                                "value"
                            ],
                            "properties": {
                                "key": {
                                    "type": "string",
                                    "title": "Key"
                                },
                                "value": {
                                    "type": "string",
                                    "title": "Value"
                                }
                            }
                        }
                    },
                    "dev_dataset_name": {
                        "title": "📁 CUSTOM STORAGE",
                        "type": "string",
                        "description": "💡 <b>Save results into custom named Dataset, use mask to customize dataset name</b><br><br><code>{ACTOR} = actor name<br>{DATE} = date (YYYYMMDD)<br>{TIME} = time (HHMMSS)</code><br><br>This masks can be used to autogenerate Dataset Name.<br><br>example: <i><code>data-{DATE}</code></i><br>Depending on today date the dataset name will be: <code>data-20230603</code><i><br><br>default: <code>data-{ACTOR}-{DATE}-{TIME}</code></i>"
                    },
                    "dev_dataset_clear": {
                        "title": "Clear Storage",
                        "type": "boolean",
                        "description": "Clear Dataset before insert/update."
                    },
                    "dev_no_strip": {
                        "title": "Disable data cleansing",
                        "type": "boolean",
                        "description": "💡 Keep/Save empty values <i><code>(NULL, FALSE, empty ARRAY, empty OBJECT, empty STRING)</code></i>"
                    },
                    "dev_fileupload": {
                        "title": "📁 FILE UPLOADER",
                        "type": "string",
                        "description": "💡 Upload your file and copy & paste the URL somewhere."
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
