{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Auctions Japan Sold Price & Listing Scraper",
    "description": "Scrape Yahoo! Auctions Japan (ヤフオク!) sold prices of the last 180 days and live listings, plus Yahoo! Flea Market listings for sale, by keyword, category or URL; HTTP-only, no login, no API key.",
    "version": "0.0",
    "x-build-id": "omhGOhw5SGjuaEBMD"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/piquno~yahoo-auctions-japan-sold-price-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-piquno-yahoo-auctions-japan-sold-price-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/piquno~yahoo-auctions-japan-sold-price-scraper/runs": {
      "post": {
        "operationId": "runs-sync-piquno-yahoo-auctions-japan-sold-price-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/piquno~yahoo-auctions-japan-sold-price-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-piquno-yahoo-auctions-japan-sold-price-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": {
          "mode": {
            "title": "What to scrape",
            "enum": [
              "sold",
              "live",
              "fleaMarket"
            ],
            "type": "string",
            "description": "Sold: auctions that ended with a buyer in the last 180 days, newest first (Yahoo's 落札相場 search). Live: auctions and fixed-price listings open now. Yahoo! Flea Market: listings for sale now on paypayfleamarket.yahoo.co.jp (sold-out items that its search also shows are left out and not charged). Applies to keywords and category IDs; start URLs keep their own type.",
            "default": "sold"
          },
          "keywords": {
            "title": "Keywords",
            "type": "array",
            "description": "One search per keyword, in Japanese or English, exactly as you would type it on Yahoo (for example ガンプラ, ポケモンカード, iPhone 13). Combined with every category ID below when you give both.",
            "items": {
              "type": "string"
            }
          },
          "categoryIds": {
            "title": "Yahoo Auctions category IDs",
            "type": "array",
            "description": "Numeric Yahoo Auctions category IDs (the number after /category/list/ or auccat= in a Yahoo URL, for example 2084250335 for ガンダム plastic models). With keywords: each keyword is searched inside each category. Without keywords: each whole category is searched. Not used for Yahoo! Flea Market, which has its own categories. Keywords are searched as well: delete the example keyword ガンプラ if you want only these.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Start URLs",
            "type": "array",
            "description": "Yahoo Auctions search, sold-search (closedsearch) and category URLs, Yahoo! Flea Market search URLs, and Yahoo Auctions item URLs (/jp/auction/...). Each URL keeps its own type. Parameters that Yahoo's robots.txt disallows for that kind of page (sort order, page size, and on sold search the price and condition filters), in any letter case, are removed and named in the log; a removed price range or condition is applied after fetching instead. Keywords are searched as well: delete the example keyword ガンプラ if you want only these.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItemsPerQuery": {
            "title": "Max listings per search",
            "minimum": 1,
            "maximum": 15000,
            "type": "integer",
            "description": "Most rows to save for each keyword, category, keyword-and-category pair or start URL. Yahoo shows 50 auction rows per page and serves at most the first 15,050 of a search (10,000 on Yahoo! Flea Market); to go deeper, split a busy keyword with category IDs. Every saved row is billed.",
            "default": 100
          },
          "includeDetails": {
            "title": "Open each item page",
            "type": "boolean",
            "description": "Also open every auction's item page for its description, all image URLs, seller rating counts, shipping and payment methods, quantity, number of bidders, status and early-closing / auto-extension flags (and the seller's name when the seller is a store). One extra request per row, same price per row. Yahoo! Flea Market rows keep their listing fields.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price (yen)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep rows whose price (tax included) is at least this. Sold rows: the final price. Live rows: the current price."
          },
          "maxPrice": {
            "title": "Maximum price (yen)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep rows whose price (tax included) is at most this."
          },
          "conditions": {
            "title": "Item condition",
            "type": "array",
            "description": "Keep only these conditions. Empty = all.",
            "items": {
              "type": "string",
              "enum": [
                "NEW",
                "USED10",
                "USED20",
                "USED40",
                "USED60",
                "USED80"
              ],
              "enumTitles": [
                "New / unused (未使用)",
                "Like new (未使用に近い)",
                "No noticeable scratches (目立った傷や汚れなし)",
                "Some scratches (やや傷や汚れあり)",
                "Scratches or stains (傷や汚れあり)",
                "Poor condition (全体的に状態が悪い)"
              ]
            }
          },
          "minBids": {
            "title": "Minimum number of bids",
            "minimum": 0,
            "type": "integer",
            "description": "Keep rows with at least this many bids. Not used for Yahoo! Flea Market."
          },
          "sellerType": {
            "title": "Seller type",
            "enum": [
              "any",
              "store",
              "individual"
            ],
            "type": "string",
            "description": "Stores are businesses (they almost always charge consumption tax: see the taxCharged field); individuals are private sellers. Not used for Yahoo! Flea Market.",
            "default": "any"
          },
          "listingFormat": {
            "title": "Listing format",
            "enum": [
              "any",
              "auction",
              "fixedPrice"
            ],
            "type": "string",
            "description": "Auctions with bidding, or fixed-price (定額) listings. Not used for Yahoo! Flea Market (always fixed price), nor for auction item URLs (an item page does not say which it is).",
            "default": "any"
          },
          "includeFleaMarketItems": {
            "title": "Include Yahoo! Flea Market items in auction searches",
            "type": "boolean",
            "description": "Yahoo's sold search also lists items sold on Yahoo! Flea Market (flagged isFleaMarketItem). Untick to leave them out.",
            "default": true
          },
          "soldWithinDays": {
            "title": "Sold within the last N days",
            "minimum": 1,
            "maximum": 180,
            "type": "integer",
            "description": "Sold mode only: keep rows that ended in the last N days (1-180). Sold search is newest first, so reading stops at the first older row."
          },
          "titleMustContain": {
            "title": "Title must contain",
            "type": "array",
            "description": "Keep rows whose title contains every one of these words (full-width and half-width letters and upper and lower case are treated alike).",
            "items": {
              "type": "string"
            }
          },
          "titleMustNotContain": {
            "title": "Title must not contain",
            "type": "array",
            "description": "Leave out rows whose title contains any of these words, for example ジャンク (junk) or まとめ (bundle).",
            "items": {
              "type": "string"
            }
          },
          "maxPagesWithoutMatch": {
            "title": "Stop after N pages without a match",
            "minimum": 1,
            "maximum": 301,
            "type": "integer",
            "description": "Stops a search after this many result pages in a row gave no new row that matched your filters, so a narrow filter cannot read pages for ever. The price summary (PRICE_SUMMARY) says when it happened, except for an Only newly sold run that stops while re-reading the 2-hour overlap, after it has checked every sale that ended after the previous run's position.",
            "default": 10
          },
          "onlyNewSinceLastRun": {
            "title": "Only newly sold since the last run",
            "type": "boolean",
            "description": "Sold mode only. Each run saves only listings that ended since the previous run with the same state key, oldest first, so a schedule normally pays once per row (a crash between saving and recording the progress can repeat up to 25 rows; see the README). Max listings per search must be larger than the number of sales a search gets between two runs, or the schedule falls behind. The first run saves the newest rows (up to Max listings per search) and records where it stopped.",
            "default": false
          },
          "stateKey": {
            "title": "State key",
            "pattern": "^[A-Za-z0-9_-]{1,60}$",
            "type": "string",
            "description": "Name of the saved progress for 'Only newly sold' (letters, digits, - and _). Use one key per schedule; a new key starts over.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "No proxy by default (Yahoo answers Apify's servers directly). If Yahoo refuses the direct connection, the run switches once by itself to Apify's datacenter proxy in the United States. Do not pick a European or UK proxy country: Yahoo! JAPAN does not serve visitors from there.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}