{
  "openapi": "3.0.1",
  "info": {
    "title": "Taiwan E-commerce Price Scraper (PChome, Ruten, Yahoo)",
    "description": "Search PChome 24h, Ruten, Yahoo Shopping Taiwan and Yahoo Auction Taiwan with one keyword and get prices in one comparable format. Sort, filter by price, track new and price-changed items on a schedule. Built for price monitoring, AI agents and n8n.",
    "version": "0.1",
    "x-build-id": "SllGnaNn7WZ9bE73I"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/arched_axolotl~taiwan-ecommerce-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-arched_axolotl-taiwan-ecommerce-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/arched_axolotl~taiwan-ecommerce-scraper/runs": {
      "post": {
        "operationId": "runs-sync-arched_axolotl-taiwan-ecommerce-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/arched_axolotl~taiwan-ecommerce-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-arched_axolotl-taiwan-ecommerce-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": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Products to search for, one per line. Chinese and English both work (for example: iphone 16, 藍牙耳機, switch 2). Each keyword is searched on every selected platform.",
            "items": {
              "type": "string"
            }
          },
          "platforms": {
            "title": "Platforms",
            "type": "array",
            "description": "Which Taiwanese shopping sites to search. Leave empty to search all four. Values: pchome (PChome 24h), ruten (Ruten 露天市集), yahoo_shopping (Yahoo 購物中心), yahoo_auction (Yahoo 拍賣).",
            "items": {
              "type": "string",
              "enum": [
                "pchome",
                "ruten",
                "yahoo_shopping",
                "yahoo_auction"
              ],
              "enumTitles": [
                "PChome 24h",
                "Ruten 露天市集",
                "Yahoo Shopping 購物中心",
                "Yahoo Auction 拍賣"
              ]
            },
            "default": [
              "pchome",
              "ruten",
              "yahoo_shopping",
              "yahoo_auction"
            ]
          },
          "maxItemsPerSearch": {
            "title": "Max items per keyword, per platform",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "How many results to take from each platform for each keyword. With 1 keyword, 4 platforms and the default of 60 you get up to 240 items. Use a small number such as 10 for quick lookups by AI agents.",
            "default": 60
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "price_asc",
              "price_desc",
              "newest"
            ],
            "type": "string",
            "description": "Order in which each platform returns results. Use price_asc to find the cheapest offers, newest to watch fresh listings.",
            "default": "relevance"
          },
          "minPrice": {
            "title": "Minimum price (TWD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep items priced at or above this amount in New Taiwan dollars. Useful with 'Price: low to high' to skip accessories and placeholder listings."
          },
          "maxPrice": {
            "title": "Maximum price (TWD)",
            "minimum": 0,
            "type": "integer",
            "description": "Only keep items priced at or below this amount in New Taiwan dollars."
          },
          "excludeKeywords": {
            "title": "Exclude words",
            "type": "array",
            "description": "Drop any item whose title contains one of these words (case-insensitive). Example: 保護殼, 二手, 福利品.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Search result URLs",
            "type": "array",
            "description": "Alternative to keywords: paste search-result page URLs from PChome 24h, Ruten, Yahoo Shopping Taiwan or Yahoo Auction Taiwan. The site and keyword are read from each URL.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "Max items in total",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the whole run after this many items have been saved, across all keywords and platforms. Leave empty for no overall limit."
          },
          "compactOutput": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Leave out empty fields and the long description text. Recommended when an AI agent or an n8n workflow reads the results, because it makes each item much smaller.",
            "default": false
          },
          "incrementalMode": {
            "title": "Only new and price-changed items",
            "type": "boolean",
            "description": "For scheduled runs. The Actor remembers the price of every product it has seen and, on later runs, returns only products that are new or whose price changed, with the previous price and the difference. The first run returns everything.",
            "default": false
          },
          "emitUnchanged": {
            "title": "Also return unchanged items",
            "type": "boolean",
            "description": "In incremental mode, also return products whose price did not change, marked with changeType 'unchanged'.",
            "default": false
          },
          "stateKey": {
            "title": "Monitor name",
            "pattern": "^[a-zA-Z0-9-]{0,60}$",
            "type": "string",
            "description": "Optional name for this price monitor. Runs with the same name share one memory of past prices. Leave empty to derive it automatically from the keywords and platforms. Letters, digits and dashes only."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Usually not needed. If a site starts refusing requests, turn on Apify Proxy; choosing Taiwan (TW) as the country gives the most reliable results.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}