{
  "openapi": "3.0.1",
  "info": {
    "title": "Korean Furniture Prices: Hanssem, Livart, Casamia (한샘·리바트·까사미아)",
    "description": "Pick furniture categories (sofa, bed, mattress, desk...) or keywords and get product prices from Hanssem Mall, Hyundai Livart and Casamia in one table: price, original price, discount, rating, reviews, sold-out flag, with price change since your last run.",
    "version": "0.1",
    "x-build-id": "jzGxYih60BngzGe2s"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/magenta_courser~korea-furniture-prices/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-magenta_courser-korea-furniture-prices",
        "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/magenta_courser~korea-furniture-prices/runs": {
      "post": {
        "operationId": "runs-sync-magenta_courser-korea-furniture-prices",
        "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/magenta_courser~korea-furniture-prices/run-sync": {
      "post": {
        "operationId": "run-sync-magenta_courser-korea-furniture-prices",
        "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": {
          "stores": {
            "title": "Stores",
            "type": "array",
            "description": "Which online malls to scrape: hanssem = Hanssem Mall (한샘몰, store.hanssem.com), livart = Hyundai Livart Mall (현대리바트), casamia = Casamia Mall (까사미아, guud.com). Leave empty for all three.",
            "items": {
              "type": "string",
              "enum": [
                "hanssem",
                "livart",
                "casamia"
              ],
              "enumTitles": [
                "Hanssem Mall (한샘몰)",
                "Hyundai Livart (현대리바트)",
                "Casamia (까사미아)"
              ]
            }
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Furniture categories, mapped to the matching category of every selected store. Each category gives up to \"maxItems\" products per store.",
            "items": {
              "type": "string",
              "enum": [
                "sofa",
                "bed",
                "mattress",
                "diningTable",
                "diningChair",
                "wardrobe",
                "dresser",
                "storage",
                "tvStand",
                "livingTable",
                "desk",
                "bookcase",
                "chair"
              ],
              "enumTitles": [
                "Sofas (소파)",
                "Beds (침대)",
                "Mattresses (매트리스)",
                "Dining tables (식탁)",
                "Dining chairs (식탁의자)",
                "Wardrobes (옷장)",
                "Dressers & vanities (화장대·서랍장)",
                "Storage & drawers (수납장·서랍장)",
                "TV stands & living cabinets (거실장)",
                "Living room tables (거실 테이블)",
                "Desks (책상)",
                "Bookcases (책장)",
                "Desk & office chairs (의자)"
              ]
            }
          },
          "categoryUrls": {
            "title": "Category URLs (optional)",
            "type": "array",
            "description": "Any category page of the three stores, e.g. https://store.hanssem.com/category/20128, https://www.hyundailivart.co.kr/c/C400002394 or https://www.guud.com/shop/goodsList?f_c=5081. Each URL is scraped in its own store.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Search keywords (optional)",
            "type": "array",
            "description": "Search each selected store's own product search, e.g. \"리클라이너\" (recliner) or \"모션베드\". Korean keywords work best.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort order",
            "enum": [
              "popular",
              "newest",
              "priceLow",
              "priceHigh",
              "reviews"
            ],
            "type": "string",
            "description": "Order of each store list. rank in the output follows this order.",
            "default": "popular"
          },
          "maxItems": {
            "title": "Max products per list",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum products per store and category (or keyword). 3 stores x 1 category x 100 = up to 300 products.",
            "default": 100
          },
          "compareWithLastRun": {
            "title": "Compare with last run",
            "type": "boolean",
            "description": "Adds previousPrice, priceChange, priceChangePercent, previousIsSoldOut and isNewProduct compared with the last completed run of the same store list and sort order (kept in a named key-value store).",
            "default": true
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "changesOnly saves (and charges) only products that are new or whose price or sold-out state changed since the last run. The first run of each list saves everything.",
            "default": "all"
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Named key-value store that keeps the last prices. Use a different name to keep separate histories (e.g. per schedule).",
            "default": "korea-furniture-price-history"
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy. The default datacenter proxy works for all three stores; switch to RESIDENTIAL with country KR only if a store starts blocking.",
            "default": {
              "useApifyProxy": 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
                  },
                  "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}