{
  "openapi": "3.0.1",
  "info": {
    "title": "Mercari Japan Scraper & API - Sold Prices & Yen Listings",
    "description": "Mercari Japan scraper and API: search jp.mercari.com by keyword or URL. One row per item: title, yen price, on sale or sold, condition, brand, photos, shipping, link; optional description and likes. Sold-price research, resale sourcing, new-listing alerts. No login. $0.50 per 1,000 items.",
    "version": "1.0",
    "x-build-id": "tIjgf1VfM40aZ3BZE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/rel8ble~mercari-japan-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-rel8ble-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/rel8ble~mercari-japan-scraper/runs": {
      "post": {
        "operationId": "runs-sync-rel8ble-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/rel8ble~mercari-japan-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-rel8ble-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": {
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "Keywords, one search each, in Japanese or English, e.g. \"nintendo switch\", \"ポケモンカード\", \"supreme hoodie\", \"iphone 15\". Default [\"nintendo switch\"] (demo).",
            "default": [
              "nintendo switch"
            ],
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Mercari search URLs",
            "type": "array",
            "description": "Optional. jp.mercari.com/search URLs with their own filters (keyword, status, price, category, brand, condition, sort), e.g. https://jp.mercari.com/search?keyword=ps5&status=on_sale&price_max=40000.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Max items per search",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Items saved per keyword / URL, integer >= 0. Default 50; 0 = all Mercari shows (up to about 15,000). You pay per row.",
            "default": 50
          },
          "status": {
            "title": "Status",
            "enum": [
              "on_sale",
              "sold",
              "all"
            ],
            "type": "string",
            "description": "Optional. on_sale (default), sold (sold and in-trade items: real selling prices) or all. Applies to keywords (URLs keep their own).",
            "default": "on_sale"
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "relevance",
              "newest",
              "price_low",
              "price_high",
              "most_liked"
            ],
            "type": "string",
            "description": "Optional. relevance (default, as on the Mercari site), newest, price_low, price_high or most_liked. Use newest for monitoring new listings.",
            "default": "relevance"
          },
          "priceMin": {
            "title": "Min price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. 0 = no minimum.",
            "default": 0
          },
          "priceMax": {
            "title": "Max price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. 0 = no maximum.",
            "default": 0
          },
          "conditions": {
            "title": "Condition",
            "uniqueItems": true,
            "type": "array",
            "description": "Optional. Any of new, like_new, good, fair, worn, poor (Mercari conditions 1-6). Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "new",
                "like_new",
                "good",
                "fair",
                "worn",
                "poor"
              ],
              "enumTitles": [
                "New, unused",
                "Like new",
                "No noticeable scratches",
                "Some scratches",
                "Scratches or stains",
                "Poor"
              ]
            }
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Optional. Mercari category IDs (the category_id in a Mercari search URL), e.g. \"7013\" for Nintendo Switch 2.",
            "items": {
              "type": "string"
            }
          },
          "brandIds": {
            "title": "Brand IDs",
            "type": "array",
            "description": "Optional. Mercari brand IDs (brand_id in a Mercari URL), e.g. \"857\" for NIKE.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeyword": {
            "title": "Exclude keyword",
            "type": "string",
            "description": "Optional. Words to exclude, e.g. \"ジャンク\" (junk)."
          },
          "freeShippingOnly": {
            "title": "Only shipping included",
            "type": "boolean",
            "description": "Optional. Only items where the seller pays shipping. Default false.",
            "default": false
          },
          "itemSource": {
            "title": "Sellers",
            "enum": [
              "all",
              "mercari",
              "shops"
            ],
            "type": "string",
            "description": "Optional. all (default), mercari (individual listings) or shops (Mercari Shops businesses).",
            "default": "all"
          },
          "includeDetails": {
            "title": "Add description, category name, likes",
            "type": "boolean",
            "description": "Optional. One extra request per Mercari item for the description, category path, shipping method / origin / days, likes and comments. Slower. Default false.",
            "default": false
          },
          "titleMustContain": {
            "title": "Title must contain",
            "type": "array",
            "description": "Optional. Keep only items whose title contains one of these words (Mercari search is fuzzy). Filtered rows are not charged.",
            "items": {
              "type": "string"
            }
          },
          "withImagesOnly": {
            "title": "Only with photos",
            "type": "boolean",
            "description": "Optional. Skip items without a photo. Default false.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "Optional, advanced. Parallel requests, 1-10. Default 5.",
            "default": 5
          },
          "maxRequestRetries": {
            "title": "Max retries per request",
            "minimum": 0,
            "maximum": 15,
            "type": "integer",
            "description": "Optional, advanced. Retries per failed request, each on a new session, 0-15. Default 5.",
            "default": 5
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional, advanced. Default Apify Proxy (datacenter). Switch to RESIDENTIAL with country JP only if the log shows repeated blocks.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}