{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo Auctions Japan Scraper - Prices, Bids & Sellers",
    "description": "Scrape Yahoo Auctions Japan (yahoo.co.jp): current and final prices, bids, watchers, end times, condition, shipping, categories, brands, full image galleries, descriptions and seller ratings. Search open or sold auctions by keyword, or paste search, category, seller and auction links.",
    "version": "0.1",
    "x-build-id": "M8cPxdzQKzmaPPLEX"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/abotapi~yahoo-co-jp-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-abotapi-yahoo-co-jp-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/abotapi~yahoo-co-jp-scraper/runs": {
      "post": {
        "operationId": "runs-sync-abotapi-yahoo-co-jp-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/abotapi~yahoo-co-jp-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-abotapi-yahoo-co-jp-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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "url"
            ],
            "type": "string",
            "description": "Choose 'search' to run keyword searches over open or sold auctions, or 'url' to paste result, seller, brand or single auction links.",
            "default": "search"
          },
          "searchTerms": {
            "title": "Search keywords",
            "type": "array",
            "description": "One or more keywords to search on Yahoo Auctions, in Japanese or English, for example 'nintendo switch', 'ポケモンカード' or a model number. Each keyword is searched separately.",
            "default": [
              "nintendo switch"
            ],
            "items": {
              "type": "string"
            }
          },
          "auctionStatus": {
            "title": "Auctions to search",
            "enum": [
              "open",
              "closed"
            ],
            "type": "string",
            "description": "'Open' searches auctions that are live now. 'Closed' searches ended auctions, where the price is the final sale price.",
            "default": "open"
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "endingSoon",
              "newest",
              "priceLow",
              "priceHigh",
              "mostBids",
              "mostWatched"
            ],
            "type": "string",
            "description": "Order of the results. Relevance is the site's default for open auctions; closed searches default to the most recently ended first.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only auctions priced at or above this amount in yen."
          },
          "maxPrice": {
            "title": "Maximum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only auctions priced at or below this amount in yen."
          },
          "itemConditions": {
            "title": "Item conditions",
            "type": "array",
            "description": "Only these conditions. Allowed values: NEW, USED10 (like new), USED20 (very good), USED40 (good), USED60 (fair). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "listingFormat": {
            "title": "Listing format",
            "enum": [
              "any",
              "auction",
              "fixedPrice"
            ],
            "type": "string",
            "description": "'Auction' keeps bidding auctions only, 'Fixed price' keeps buy-now listings only, 'Any' keeps both. Fixed price is applied by the site; Auction is applied to the rows each page returns, so a search dominated by fixed-price items scans more pages.",
            "default": "any"
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Only auctions where the seller pays the shipping.",
            "default": false
          },
          "newArrivalsOnly": {
            "title": "New arrivals only",
            "type": "boolean",
            "description": "Only auctions the site marks as newly listed.",
            "default": false
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Only these site category IDs (the number in a category page address, for example 2084315794 for Nintendo Switch consoles). Leave empty for all categories.",
            "items": {
              "type": "string"
            }
          },
          "brandIds": {
            "title": "Brand IDs",
            "type": "array",
            "description": "Only these site brand IDs (the brandId value on a row, for example 122545). Leave empty for all brands.",
            "items": {
              "type": "string"
            }
          },
          "sellerIds": {
            "title": "Seller IDs",
            "type": "array",
            "description": "Only auctions from these sellers (the sellerId value on a row). Leave empty for all sellers.",
            "items": {
              "type": "string"
            }
          },
          "sellerTypes": {
            "title": "Seller types",
            "type": "array",
            "description": "Only these seller types. Allowed values: AUC_STORE (store), AUCTION (individual), FLEAMARKET (flea market). Leave empty for all.",
            "items": {
              "type": "string"
            }
          },
          "prefectureCodes": {
            "title": "Prefecture codes",
            "type": "array",
            "description": "Only items shipped from these prefectures, as two-digit JIS codes (13 = Tokyo, 27 = Osaka, 1 = Hokkaido). Leave empty for all of Japan.",
            "items": {
              "type": "string"
            }
          },
          "urls": {
            "title": "Links to read",
            "type": "array",
            "description": "Paste auctions.yahoo.co.jp links: a search page, a closed search page, a category page, a seller page, a brand page or a single auction page (also the older page.auctions address). A link with a page offset starts at that page. A brand page returns one page of auctions. Other sites (including the flea-market and shopping sites), sitemaps, robots.txt, account, cart and help pages, service addresses and disguised paths are skipped before any request.",
            "default": [
              "https://auctions.yahoo.co.jp/search/search?p=nintendo+switch&n=50",
              "https://auctions.yahoo.co.jp/search/search/nintendo%20switch/0?fixed=0&b=1&n=50",
              "https://auctions.yahoo.co.jp/search/search/nintendo%20switch/0?fixed=0&b=51&n=50",
              "https://auctions.yahoo.co.jp/search/search?p=switch&auccat=2084315794&aucminprice=10000&aucmaxprice=30000&s1=cbids&o1=a",
              "https://auctions.yahoo.co.jp/closedsearch/closedsearch?p=nintendo+switch",
              "https://auctions.yahoo.co.jp/closedsearch/closedsearch?p=nintendo+switch&va=nintendo+switch&b=1&n=50&s1=end&o1=d",
              "https://auctions.yahoo.co.jp/category/list/2084315794/",
              "https://auctions.yahoo.co.jp/brand/2358",
              "https://auctions.yahoo.co.jp/jp/auction/d1253564488",
              "https://page.auctions.yahoo.co.jp/jp/auction/d1253564488",
              "https://auctions.yahoo.co.jp/seller/2SsnHuTpbDQ5BkAqnxRq8QweAmUnk"
            ],
            "items": {
              "type": "string"
            }
          },
          "fetchDetails": {
            "title": "Fetch auction details",
            "type": "boolean",
            "description": "Read each keyword or results-page row's own auction record to add the full image gallery, description, shipping and return terms, current top bidders, bidder count and the seller's rating, location and licences. Charged once per row enriched. Rows from pasted auction or brand links already carry all of this and are never charged for it, and flea-market rows have no record to read. Turn off for a cheaper listing-level pull.",
            "default": true
          },
          "maxPages": {
            "title": "Max pages (does not cap on its own)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional. Limits how many result pages each keyword or link walks. Empty or 0 means no page limit; it does NOT cap the run by itself and defers to Max items below, which is the single default cap (20)."
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 0,
            "maximum": 1000000,
            "type": "integer",
            "description": "THE cap on this run: the maximum number of auction rows returned across the whole run. Defaults to 20 so a first run is quick and cheap. Use 0 for no item cap (a whole category or search); the run is then bounded by the results and your maximum cost per run.",
            "default": 20
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Leave this on the default for most runs; choose Residential with Japan for the most reliable results (it is billed to your own Apify plan, and Apify free plans do not include residential proxies: a free-plan run continues on a backup connection, or you can paste your own proxy URL).",
            "default": {
              "useApifyProxy": true
            }
          },
          "resumeFromRunId": {
            "title": "Resume from a previous run",
            "type": "string",
            "description": "Paste a previous run ID or dataset ID to continue a large crawl without returning or charging for auctions already collected there. For recurring monitoring of the same search, use Incremental mode below instead."
          },
          "incrementalMode": {
            "title": "Incremental changes for scheduled runs",
            "type": "boolean",
            "description": "Turn this on for daily or recurring monitoring. The first run returns every matching auction as NEW. Later runs normally return only NEW, UPDATED and REAPPEARED auctions. An auction counts as UPDATED when any of its fields changed, except the result position, the scrape time, the keyword or link it was found through, the time left, the time-bucket label, the new-arrival badge, the result total and the image address (see Ignore fields below for the rest, which by default leaves out the watcher count, question count, top bidders and the seller's rating counters); with 'Price and stock only' just the price, tax-included price, buy-now price, bid count, bidder count, status, end time and quantity are compared. State is kept separately for each keyword, link and filter setup (not per sort order or details setting); use State key to name or deliberately share a monitoring campaign.",
            "default": false
          },
          "stateKey": {
            "title": "State key (optional, incremental mode only)",
            "type": "string",
            "description": "Optional. Use one state key per setup: leave it empty and the actor derives a key from this run's keywords or links and filters. The sort order and the details setting are not part of it: changing either keeps the same baseline, so nothing is billed again as NEW. If you name a key and later run a different setup under it, auctions are still compared, but nothing is marked EXPIRED that run and auctions only the earlier setup listed are never marked EXPIRED by the new one. At 256 MB of memory one state key tracks up to 1,000 auctions or 8.5 MB of saved state, whichever comes first; the default 512 MB tracks twice that."
          },
          "changeScope": {
            "title": "What counts as a change (incremental mode only)",
            "enum": [
              "all",
              "priceAndStock"
            ],
            "type": "string",
            "description": "'Price and stock only' compares just the price, tax-included price, buy-now price, bid count, bidder count, status, end time and quantity; a description, image or category change is treated as UNCHANGED and is never returned or billed as UPDATED. 'All fields' compares the whole record (minus the fields listed under Ignore fields).",
            "default": "all"
          },
          "compactUpdates": {
            "title": "Compact UPDATED rows (incremental mode only)",
            "type": "boolean",
            "description": "When on, an UPDATED row carries only identifiers plus the price and availability fields that actually moved (priceChanges), instead of the full record. Off by default.",
            "default": false
          },
          "expireAfterMissedScans": {
            "title": "Missed scans before EXPIRED (incremental mode only)",
            "minimum": 1,
            "type": "integer",
            "description": "A tracked auction absent from this many consecutive complete scans in a row is marked EXPIRED; fewer misses are held over without being reported. 1 (default) expires on the first miss.",
            "default": 1
          },
          "emitUnchanged": {
            "title": "Emit unchanged auctions (incremental mode only)",
            "type": "boolean",
            "description": "Off by default. Turn on to also return auctions that have not changed since the last run, marked UNCHANGED. This returns, and bills, extra rows you already have.",
            "default": false
          },
          "emitExpired": {
            "title": "Emit expired auctions (incremental mode only)",
            "type": "boolean",
            "description": "Off by default. Turn on to also return auctions that were present in a previous run but are no longer found, marked EXPIRED. Only produced after a complete scan: every walk started at page 1 and ran to the last page of its results, with auction details on and every wanted auction record read, and the auction's own record then confirms it is gone. Never when Max items, Max pages or the maximum cost per run stopped it, when a link started past page 1, when a brand page or a single auction link was read, when any page or record could not be read, when the run stopped before its timeout, when the saved state came from a different setup, or when Resume was used. Flea-market auctions have no record to confirm and are never marked EXPIRED. This returns, and bills, extra synthetic rows.",
            "default": false
          },
          "ignoreFieldsForChanges": {
            "title": "Ignore fields when detecting changes (incremental mode only)",
            "type": "array",
            "description": "Field names that must NOT count as a change in incremental mode. The default list leaves out the watcher count, question count, current top bidders and the seller's rating counters, which drift constantly; remove names from the list to be told about them. An auction whose only differences are in these fields is treated as UNCHANGED, so it is not returned or billed as UPDATED. Names match at any nesting depth. The fields still appear in the output of rows that are returned.",
            "default": [
              "watchCount",
              "answeredQAndANum",
              "highestBidders",
              "sellerGoodRating",
              "sellerRatingTotal",
              "sellerGoodPoints",
              "sellerBadPoints"
            ],
            "items": {
              "type": "string"
            }
          },
          "mcpConnectors": {
            "title": "Pipe results into your apps (optional)",
            "type": "array",
            "description": "Optionally send results into the apps you already use, via Model Context Protocol (MCP) connectors. Authorize one under Apify, Settings, API & Integrations, then select it here. Notion gets a rich page-per-item export; other connectors get a best-effort write or digest. Leave empty to skip; this never changes the dataset output. Supported: Notion (https://mcp.notion.com/mcp), Linear (https://mcp.linear.app/sse), Airtable (https://mcp.airtable.com/mcp), Apify (https://mcp.apify.com)."
          },
          "notionParentPageUrl": {
            "title": "Notion parent page (Notion connector only)",
            "type": "string",
            "description": "URL or id of the Notion page under which item pages are created. Required to enable the Notion export; ignored by other connectors."
          },
          "maxNotifyListings": {
            "title": "Max items to export per connector",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Cap on items written to each connector per run. Does not affect the dataset.",
            "default": 50
          },
          "notifyOnlyChanges": {
            "title": "Alert on changes only",
            "type": "boolean",
            "description": "Only send the alert when Incremental changes is on and at least one auction is NEW, UPDATED, REAPPEARED or EXPIRED. Without Incremental changes every finished run sends its summary.",
            "default": false
          },
          "notificationLimit": {
            "title": "Rows listed per alert",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many auction rows the alert message lists (the run's totals are always in the first line).",
            "default": 5
          },
          "slackWebhookUrl": {
            "title": "Slack incoming webhook",
            "type": "string",
            "description": "Optional Slack incoming-webhook URL to post the summary to."
          },
          "discordWebhookUrl": {
            "title": "Discord channel webhook",
            "type": "string",
            "description": "Optional Discord channel webhook URL to post the summary to."
          },
          "chatBotToken": {
            "title": "Chat bot token",
            "type": "string",
            "description": "Optional chat bot token to post the summary with (needs the chat ID below)."
          },
          "chatBotChatId": {
            "title": "Chat bot chat ID",
            "type": "string",
            "description": "Optional Chat bot chat ID that receives the summary (needs the bot token above)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}