{
  "openapi": "3.0.1",
  "info": {
    "title": "Japan Resale 日本二手代购 Cross-Market — Yahoo, Mercari, PayPay",
    "description": "日本代购与跨境卖家必备：一个关键词，一次调用同时比价日本三大二手市场——雅虎拍卖（成交价）、煤炉 Mercari（成交价／在售要价）、PayPay 跳蚤市场（在售要价），返回各市场的中位数、四分位与市场间价差。每个数字都标注是成交价还是要价，绝不混算。日本二手捡漏与转卖定价的底价依据。Cross-market price gap across 3 Japanese resale markets, from $0.02 per keyword.",
    "version": "0.1",
    "x-build-id": "taolMZqTzJBGcXj7n"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/jpmarketdata~japan-resale-cross-market-cn/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-jpmarketdata-japan-resale-cross-market-cn",
        "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/jpmarketdata~japan-resale-cross-market-cn/runs": {
      "post": {
        "operationId": "runs-sync-jpmarketdata-japan-resale-cross-market-cn",
        "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/jpmarketdata~japan-resale-cross-market-cn/run-sync": {
      "post": {
        "operationId": "run-sync-jpmarketdata-japan-resale-cross-market-cn",
        "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",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "关键词 Keywords",
            "type": "array",
            "description": "要比价的关键词，可一次填多个，每个关键词都会在所选的全部市场上查询。日文关键词命中率远高于英文（ポケモンカード、ロレックス、nintendo switch）。每个关键词计费 $0.02，与选了几个市场无关。One or more search keywords, compared across every selected market.",
            "default": [
              "nintendo switch"
            ],
            "items": {
              "type": "string"
            }
          },
          "markets": {
            "title": "要比较的市场 Markets to compare",
            "type": "array",
            "description": "选择要比价的日本二手市场。雅虎拍卖返回的是**成交价**（已结束且至少有 1 次出价的拍卖），煤炉 Mercari 两者都可以，PayPay 跳蚤市场只能返回**在售要价**（它不公开已售商品）。选几个市场都不改变每个关键词的价格。Which Japanese marketplaces to price; the price of a keyword is the same whichever markets you pick.",
            "items": {
              "type": "string",
              "enum": [
                "yahoo_auction",
                "mercari",
                "paypay_flea"
              ],
              "enumTitles": [
                "雅虎拍卖 Yahoo! Auctions — 成交价（ヤフオク落札）",
                "煤炉 Mercari 日本（メルカリ）",
                "PayPay 跳蚤市场 — 在售要价（PayPayフリマ）"
              ]
            },
            "default": [
              "yahoo_auction",
              "mercari",
              "paypay_flea"
            ]
          },
          "mercariStatus": {
            "title": "煤炉的商品状态 Mercari listing status",
            "enum": [
              "both",
              "sold_out",
              "on_sale"
            ],
            "type": "string",
            "description": "煤炉要取哪一类商品。'已售出' = 真实成交价（可与雅虎拍卖直接对比）；'在售' = 当前要价（可与 PayPay 直接对比）；'两者都要' = 拆成两个独立区块返回，这样每个数字都只有一个价格口径。'Sold out' gives real sold comps, 'On sale' gives asking prices, 'Both' returns them as two separate blocks.",
            "default": "both"
          },
          "maxItemsPerMarket": {
            "title": "每个市场的取样件数 Max listings sampled per market",
            "minimum": 30,
            "maximum": 300,
            "type": "integer",
            "description": "每个市场（煤炉再按状态各算一次）取样多少件后再做统计。样本越大越稳但越慢：雅虎每次返回 50 件、煤炉 120 件、PayPay 100 件，请求间隔 1.5 秒。How many listings to sample per market before computing the statistics.",
            "default": 100
          },
          "priceMinJpy": {
            "title": "最低价（日元，可选）Minimum price (JPY, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "统计前先剔除低于此价的商品。对所有市场使用**完全相同**的条件，因此中位数仍然可比。常用来把配件、空盒、仿品从一个关键词里剔出去。Drop listings priced below this before computing the statistics; applied identically to every market."
          },
          "priceMaxJpy": {
            "title": "最高价（日元，可选）Maximum price (JPY, optional)",
            "minimum": 0,
            "type": "integer",
            "description": "统计前先剔除高于此价的商品，同样对所有市场使用相同条件。常用来把整套、批发出品从一个关键词里剔出去。Drop listings priced above this before computing the statistics; applied identically to every market."
          },
          "includeIndividualItems": {
            "title": "输出单件明细 Include individual listings",
            "type": "boolean",
            "description": "默认关闭：一次运行每个关键词固定 $0.02，与市场数量无关。开启后还会输出每个市场的每一件取样商品（标题、价格、状态、成色、链接），费用 +$0.002/件。Off by default: a run costs a flat $0.02 per keyword, whatever the number of markets.",
            "default": false
          },
          "convertToUsd": {
            "title": "换算美元 Convert prices to USD",
            "type": "boolean",
            "description": "在日元统计旁附上美元统计，使用实时汇率（open.er-api.com，每次运行只查一次），方便和 eBay、闲鱼等海外行情对比。Adds USD statistics next to JPY using the current exchange rate.",
            "default": 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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}