{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercari Japan Scraper 💰 $3.99/1K · Sold Prices · Alerts",
    "description": "Scrape Mercari Japan without login: yen price, sold status, condition, category, photos from keywords, search URLs or sellers. Sold prices show what items sell for. Item pages add full descriptions and seller ratings. Monitor mode alerts new listings and price drops to Slack, Discord or webhook.",
    "version": "0.1",
    "x-build-id": "Isi7orq28nwO0LUfr"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/first-penguin~mercari-japan-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-first-penguin-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/first-penguin~mercari-japan-scraper/runs": {
      "post": {
        "operationId": "runs-sync-first-penguin-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/first-penguin~mercari-japan-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-first-penguin-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Japanese or English, one search per keyword (e.g. ポケモンカード, nintendo switch). Several keywords in one run are fine; the same listing found twice is returned and billed once.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Mercari links",
            "type": "array",
            "description": "Paste links from jp.mercari.com: a search page (every filter you set on the site is kept, including sold items), an item page, or a seller profile. English links (/en/…) work too. Mercari Shops pages are not supported yet.",
            "items": {
              "type": "string"
            }
          },
          "sellers": {
            "title": "Seller IDs or profile links",
            "type": "array",
            "description": "Everything one seller lists (on sale, in trade and sold by default), plus one free profile row per seller (ratings, followers, listings count). Example: 826497631 or https://jp.mercari.com/user/profile/826497631.",
            "items": {
              "type": "string"
            }
          },
          "itemStatus": {
            "title": "Listing status (for keywords)",
            "enum": [
              "on_sale",
              "sold",
              "all"
            ],
            "type": "string",
            "description": "On sale only (default), Sold (sold out and in trade: Mercari's own 'sold' filter counts items in trade as sold), or All. Applies to keywords. Links keep the status they have in the link.",
            "default": "on_sale"
          },
          "sellerItemStatus": {
            "title": "Listing status (for sellers)",
            "enum": [
              "all",
              "on_sale",
              "sold"
            ],
            "type": "string",
            "description": "Which of a seller's listings to read: All (default: on sale, in trade and sold), on sale only, or sold only.",
            "default": "all"
          },
          "sort": {
            "title": "Sort order (for keywords)",
            "enum": [
              "relevance",
              "newest",
              "price_low",
              "price_high",
              "most_liked"
            ],
            "type": "string",
            "description": "Recommended (Mercari's default), newest, price or most liked.",
            "default": "relevance"
          },
          "priceMin": {
            "title": "Minimum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Applies to keywords and sellers."
          },
          "priceMax": {
            "title": "Maximum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Applies to keywords and sellers."
          },
          "conditionIds": {
            "title": "Item condition",
            "type": "array",
            "description": "Optional. 1 = New, unused / 2 = Like new / 3 = No noticeable damage / 4 = Some damage / 5 = Damaged / 6 = Poor condition. Applies to keywords and sellers.",
            "items": {
              "type": "string",
              "enum": [
                "1",
                "2",
                "3",
                "4",
                "5",
                "6"
              ],
              "enumTitles": [
                "New, unused",
                "Like new",
                "No noticeable damage",
                "Some damage",
                "Damaged",
                "Poor condition"
              ]
            }
          },
          "maxItemsPerSource": {
            "title": "Max listings per keyword, link or seller",
            "minimum": 1,
            "maximum": 15000,
            "type": "integer",
            "description": "120 listings per result page. A run read about 3,500 listings from one search (40 pages, about 4 minutes). Mercari shows at most about 15,000 results for a search; split bigger searches with price filters.",
            "default": 100
          },
          "maxItems": {
            "title": "Max listings in total",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap for the whole run.",
            "default": 1000
          },
          "includeDetails": {
            "title": "Include item details (description, all photos, seller ratings, ships-from)",
            "type": "boolean",
            "description": "Opens each item page and adds: full description, hashtags, category path, condition note, shipping method, ships-from prefecture and days, likes, comments, all photos, and the seller's name, ratings and listings count. About 10 seconds per item (measured with the default 2 tabs: 40 items in under 9 minutes). +$4 per 1,000 items. Items whose page does not load are returned without details and not charged for details.",
            "default": false
          },
          "monitor": {
            "title": "Monitor mode (new listings, price drops, sold items)",
            "type": "boolean",
            "description": "Compare with the previous run of the same list: listings new in each keyword, link or seller, price drops and rises, items that sold, items back on sale. Previous values are stored only in your own Apify account (a named key-value store). Use 'Newest first' for keywords you watch.",
            "default": false
          },
          "monitorName": {
            "title": "Monitor list name",
            "type": "string",
            "description": "Use different names to keep separate watch lists.",
            "default": "default"
          },
          "onlyChanged": {
            "title": "Output only new and changed listings",
            "type": "boolean",
            "description": "In monitor mode, leave unchanged listings out of the output. Listings left out are not charged.",
            "default": false
          },
          "slackWebhookUrl": {
            "title": "Slack webhook URL",
            "type": "string",
            "description": "Optional. One message per keyword, link or seller when something is new or changed."
          },
          "discordWebhookUrl": {
            "title": "Discord webhook URL",
            "type": "string",
            "description": "Optional. One message per keyword, link or seller when something is new or changed."
          },
          "webhookUrl": {
            "title": "Webhook URL (Zapier, Make, n8n, your API)",
            "type": "string",
            "description": "Optional. Receives a JSON POST per keyword, link or seller with the new listings and the changes."
          },
          "maxConcurrency": {
            "title": "Max concurrency (item details)",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many item pages to load at the same time. Each one needs about 700 MB of memory: use 2 with 2048 MB (the default).",
            "default": 2
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify datacenter proxy (the default) worked in testing: no blocks in 3,500-listing runs. Residential proxies also worked but cost about 10 times more for item details."
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}