{
  "openapi": "3.0.1",
  "info": {
    "title": "Yahoo! Auctions Japan Monitor: New Listings & Sold Prices",
    "description": "Search Yahoo! Auctions Japan (ヤフオク!) by keyword or search URL: live listings and sold prices in JPY, bids, watchers, end time, condition, seller rating, photo and link. Monitoring mode returns only listings new since the last run. No start fee.",
    "version": "0.1",
    "x-build-id": "dPuZI55mCxxdJA5bj"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/neverempty~yahoo-auctions-japan-sold-listings-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-neverempty-yahoo-auctions-japan-sold-listings-monitor",
        "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/neverempty~yahoo-auctions-japan-sold-listings-monitor/runs": {
      "post": {
        "operationId": "runs-sync-neverempty-yahoo-auctions-japan-sold-listings-monitor",
        "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/neverempty~yahoo-auctions-japan-sold-listings-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-neverempty-yahoo-auctions-japan-sold-listings-monitor",
        "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": "One search per line, e.g. ニンテンドースイッチ or leica m6. Japanese keywords match the most listings. The filters below apply to every keyword. The same keyword twice (ignoring upper/lower case and full-width characters) is searched once. If you leave both this field and Search URLs empty with monitoring off, the example keyword ニンテンドースイッチ is searched; with monitoring on, a keyword or URL is required.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Single keyword (optional)",
            "type": "string",
            "description": "One more keyword, in addition to the list above, so an existing input with a single keyword field can be pasted as it is."
          },
          "startUrls": {
            "title": "Search URLs (optional)",
            "type": "array",
            "description": "Yahoo! Auctions Japan search result URLs, either listings for sale (https://auctions.yahoo.co.jp/search/search?p=...) or sold listings (https://auctions.yahoo.co.jp/closedsearch/closedsearch?p=...). Every filter in the URL is used as it is (category, price, condition, sort...) and the filters below are not applied to it. Item, seller and category pages come back as a free row with the reason.",
            "items": {
              "type": "string"
            }
          },
          "searchIn": {
            "title": "Listings to search",
            "uniqueItems": true,
            "type": "array",
            "description": "open = listings for sale now (current price, bids, time left). sold = listings that ended with a winning bid in about the last 180 days, with the winning price and the average, lowest and highest sold price for the search on every row. Choose both to get each keyword twice, once per list.",
            "items": {
              "type": "string",
              "enum": [
                "open",
                "sold"
              ],
              "enumTitles": [
                "For sale now (出品中)",
                "Sold (落札相場)"
              ]
            },
            "default": [
              "open"
            ]
          },
          "priceMin": {
            "title": "Minimum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with a current (or winning) price at or above this many yen. Empty or 0 = no minimum."
          },
          "priceMax": {
            "title": "Maximum price (JPY)",
            "minimum": 0,
            "type": "integer",
            "description": "Only listings with a current (or winning) price at or below this many yen. Empty or 0 = no maximum."
          },
          "categoryId": {
            "title": "Category ID (optional)",
            "minimum": 0,
            "type": "integer",
            "description": "Yahoo! Auctions category number, the auccat value in a category URL (for example 2084041670 for rangefinder film cameras). Every row has categoryId, so you can copy it from an earlier run. Empty or 0 = all categories."
          },
          "sort": {
            "title": "Sort by",
            "enum": [
              "newest",
              "ending_soon",
              "price_low",
              "price_high",
              "recommended"
            ],
            "type": "string",
            "description": "newest = most recently listed first (for sold listings: most recently ended first). ending_soon = ending soonest first (listings for sale only). Monitoring mode always uses newest first.",
            "default": "newest"
          },
          "limit": {
            "title": "Maximum listings per search",
            "minimum": 1,
            "type": "integer",
            "description": "How many listings to return for each keyword (per list) or URL. Yahoo! Auctions serves 50 per results page. Up to 10,000 per search; a larger value is read as 10,000. With monitoring on, this limit applies only to the first run of a search; later runs return every new listing they find, reading at most 20 results pages (1,000 listings) per search.",
            "default": 100
          },
          "monitoringMode": {
            "title": "Monitoring mode: return only new listings since the last run",
            "type": "boolean",
            "description": "Off = every run returns the current results. On = the Actor remembers, for each search (keyword, list and filters), when it last checked and which listings it returned. The first run of a search returns up to the limit and remembers the other listings on the results pages it read. Later runs return only listings that started (for sold: ended) since the previous check, with a 30-minute overlap, and were not returned before, reading newest first until a results page is older than that or already seen, at most 20 pages per search. You pay only for the listing rows returned: a check that finds nothing new costs nothing. Do not put the same search in two schedules that can run at the same time.",
            "default": false
          },
          "resetMonitoringState": {
            "title": "Forget what was returned for these searches",
            "type": "boolean",
            "description": "Clears what was remembered for the searches in this input only, so this run is a first run for them again. Turn it off again after one run: left on in a schedule, every run is a first run.",
            "default": 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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}