{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercari Japan Scraper — Listings, Sold Prices & Sellers",
    "description": "Scrape Mercari Japan by keyword, category, brand, seller or URL: live & sold prices, item condition, photos, full descriptions, comments and seller reputation. New-item, price-drop & sold monitoring. Keyless, no login, no browser.",
    "version": "0.1",
    "x-build-id": "2Ig0fngDYZaI7KOLj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~mercari-japan-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-mercari-japan-scraper",
        "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/scrapesage~mercari-japan-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-mercari-japan-scraper",
        "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/scrapesage~mercari-japan-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-mercari-japan-scraper",
        "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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords to search Mercari Japan for, e.g. <code>nintendo switch</code>, <code>pokemon card</code>, <code>supreme</code>, <code>iphone 15</code>, <code>vintage camera</code>. Each keyword is scraped as its own feed. Japanese keywords work too (e.g. <code>ポケモンカード</code>). Leave empty if you only use a category, brand or Start URLs.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Mercari Japan URLs to scrape directly: search pages (<code>jp.mercari.com/search?keyword=...</code>), item pages (<code>jp.mercari.com/item/m12345...</code>) and seller profiles (<code>jp.mercari.com/user/profile/123...</code>). Used in addition to the keyword search.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "itemIds": {
            "title": "Item IDs / URLs (direct detail)",
            "type": "array",
            "description": "Mercari item IDs (<code>m12345678901</code>) or item URLs to fetch full detail for directly.",
            "items": {
              "type": "string"
            }
          },
          "sellerIds": {
            "title": "Seller IDs / URLs",
            "type": "array",
            "description": "Mercari seller IDs (numeric, e.g. <code>695366700</code>) or profile URLs (<code>jp.mercari.com/user/profile/695366700</code>) to scrape all of a seller's items and (optionally) build a seller lead.",
            "items": {
              "type": "string"
            }
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Optional Mercari category ID to scope the search (e.g. <code>7</code> = Electronics, <code>5</code> = Toys/Games/Goods). Find it in any category URL (<code>category_id=</code>). Combine with a keyword or leave the keyword empty to browse the whole category."
          },
          "brandId": {
            "title": "Brand ID",
            "type": "string",
            "description": "Optional Mercari brand ID to scope the search (e.g. <code>7572</code> = Nintendo Switch). Find it in the <code>brandName</code>/<code>brandId</code> of any result."
          },
          "itemStatus": {
            "title": "Item status",
            "enum": [
              "onSale",
              "sold",
              "all"
            ],
            "type": "string",
            "description": "Which listings to return. <b>Sold out</b> is the killer feature for resellers — it returns recently-sold comparables (real sale prices) for pricing research and arbitrage.",
            "default": "onSale"
          },
          "minPrice": {
            "title": "Min price (¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return items priced at least this many Japanese yen."
          },
          "maxPrice": {
            "title": "Max price (¥)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return items priced at most this many Japanese yen."
          },
          "conditions": {
            "title": "Item condition",
            "type": "array",
            "description": "Keep only items in these conditions. Leave empty for any condition.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "1 · New, unused",
                "2 · Almost unused",
                "3 · No noticeable scratches or marks",
                "4 · Some scratches and marks",
                "5 · Scratched and scuffed",
                "6 · Overall poor condition"
              ]
            },
            "default": []
          },
          "excludeKeyword": {
            "title": "Exclude keyword",
            "type": "string",
            "description": "Hide items whose title contains this word (e.g. <code>ジャンク</code> = junk, <code>broken</code>)."
          },
          "sortBy": {
            "title": "Sort order",
            "enum": [
              "relevance",
              "newest",
              "priceAsc",
              "priceDesc",
              "mostLiked"
            ],
            "type": "string",
            "description": "How Mercari orders the results.",
            "default": "relevance"
          },
          "maxResults": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of item records to scrape across all searches/URLs.",
            "default": 100
          },
          "maxPagesPerSearch": {
            "title": "Max pages per search",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Pagination cap per keyword/feed (120 items per page).",
            "default": 50
          },
          "includeItemDetails": {
            "title": "Include full item details",
            "type": "boolean",
            "description": "Open each item to add the full description, complete category hierarchy, full-resolution photo gallery, exact condition, shipping method / origin / delivery time, likes, comment count, hashtags and item attributes (size, model…). Turn OFF for a faster/cheaper run (the search card already includes name, price, condition, brand, seller and a thumbnail). Adds one request per item.",
            "default": true
          },
          "includeComments": {
            "title": "Include item comments",
            "type": "boolean",
            "description": "Also output buyer/seller Q&A comments on each item as separate records (requires full item details). Useful for demand signals and negotiation insight.",
            "default": false
          },
          "includeSellerLeads": {
            "title": "Output seller leads",
            "type": "boolean",
            "description": "Output one deduplicated record per seller seen in the run: member-since date, items-sold count, rating breakdown (good/normal/bad), star rating, official-shop / quick-shipper flags, sample items and a 0-100 trust score. Best for sourcing reliable sellers and power-seller research.",
            "default": false
          },
          "maxSellerLeads": {
            "title": "Max seller leads",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of seller lead records to output.",
            "default": 200
          },
          "deduplicateItems": {
            "title": "Deduplicate items",
            "type": "boolean",
            "description": "Drop duplicate items that appear in more than one search/page in the same run.",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember items across runs in a named key-value store and emit ONLY items that are new OR whose price changed since the last run (each carries a <code>changeType</code>: new / price_drop / price_rise). Pair with Apify Schedules for new-listing & price-drop alerts — it complements the scheduler (the schedule starts the run; monitor mode dedupes against prior runs).",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the monitor's memory store so you can run several independent monitors (e.g. one per keyword). Reuse the same key to keep tracking the same feed.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Parallel detail/seller request fetches. Keep moderate (3–6).",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Proxies to use. Mercari serves its API cleanly to Apify residential proxies — keep the default (residential, Japan).",
            "default": {
              "useApifyProxy": true,
              "apifyProxyGroups": [
                "RESIDENTIAL"
              ],
              "apifyProxyCountry": "JP"
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}