{
  "openapi": "3.0.1",
  "info": {
    "title": "Daiso Korea Ranking Scraper (다이소 랭킹 · Best Sellers)",
    "description": "Pick a Daiso Korea (daisomall.co.kr) ranking, category, keyword or product list and get flat rows: rank, rank change since your last run, price, units sold, online stock, sold-out and restock flags, barcode. Also new products, review text and store list. 다이소 크롤링.",
    "version": "0.2",
    "x-build-id": "PHHtpcLpebXmwEpCh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/magenta_courser~daiso-ranking-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-magenta_courser-daiso-ranking-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/magenta_courser~daiso-ranking-scraper/runs": {
      "post": {
        "operationId": "runs-sync-magenta_courser-daiso-ranking-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/magenta_courser~daiso-ranking-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-magenta_courser-daiso-ranking-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": [
              "bestsellers",
              "newArrivals",
              "search",
              "category",
              "soldOut",
              "newProducts",
              "reviews",
              "stores",
              "categoryTree"
            ],
            "type": "string",
            "description": "What to get. Products: \"bestsellers\" (default) = Daiso Mall sales ranking; \"newArrivals\" = sales ranking of products launched in the last 7 days; \"search\" = products matching \"keywords\"; \"category\" = every product of the categories in \"categoryCodes\"; \"soldOut\" = products that are sold out online now (optionally per category); \"newProducts\" = all products flagged new, including ones that open for sale later (saleStartAt). Other data: \"reviews\" = one row per review of the products in \"productIds\"; \"stores\" = Daiso stores matching \"keywords\"; \"categoryTree\" = list of category codes (free helper). Example: \"bestsellers\".",
            "default": "bestsellers"
          },
          "period": {
            "title": "Ranking period",
            "enum": [
              "risingNow",
              "daily",
              "weekly"
            ],
            "type": "string",
            "description": "Ranking tab, used by \"bestsellers\" and \"newArrivals\": \"risingNow\" (Daiso tab \"급상승\", products whose sales are rising fastest; turns over heavily between refreshes), \"daily\" (\"일간\") or \"weekly\" (\"주간\"). Use \"daily\" or \"weekly\" for stable rank tracking. Ignored in the other modes. Example: \"weekly\".",
            "default": "risingNow"
          },
          "categories": {
            "title": "Categories",
            "type": "array",
            "description": "Top-level categories as a list of keys. In \"bestsellers\" / \"newArrivals\": one ranking per category (empty or [\"all\"] = overall ranking). In \"category\", \"soldOut\" and \"newProducts\": one listing per category (\"all\" = whole site, not allowed in \"category\"). Allowed keys: all, beautyHygiene, kitchen, cleaningBath, storage, stationery, interiorGarden, toolsDigital, food, sportsHobby, fashion, pets, babyToys, seasonal. Ignored in search, reviews and stores modes. Example: [\"beautyHygiene\", \"storage\"].",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "beautyHygiene",
                "kitchen",
                "cleaningBath",
                "storage",
                "stationery",
                "interiorGarden",
                "toolsDigital",
                "food",
                "sportsHobby",
                "fashion",
                "pets",
                "babyToys",
                "seasonal"
              ],
              "enumTitles": [
                "All (overall ranking)",
                "Beauty / hygiene (뷰티/위생)",
                "Kitchen (주방용품)",
                "Cleaning / bathroom (청소/욕실)",
                "Storage / organizing (수납/정리)",
                "Stationery / fancy (문구/팬시)",
                "Interior / gardening (인테리어/원예)",
                "Tools / digital (공구/디지털)",
                "Food (식품)",
                "Sports / leisure / hobby (스포츠/레저/취미)",
                "Fashion / accessories (패션/잡화)",
                "Pets (반려동물)",
                "Baby / toys (유아/완구)",
                "Seasonal / series (시즌/시리즈)"
              ]
            }
          },
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "Mode \"search\": list of search keywords, one search per keyword, up to 50. Product names are Korean, so use Korean keywords, for example [\"수납함\", \"텀블러\", \"립밤\"] (storage box, tumbler, lip balm); results come in Daiso's default relevance order. Mode \"stores\": list of Korean place or store names, one store search per keyword, for example [\"강남구\", \"수원시\", \"부산\"].",
            "items": {
              "type": "string"
            }
          },
          "categoryCodes": {
            "title": "Category codes",
            "type": "array",
            "description": "Modes \"category\", \"soldOut\" and \"newProducts\": Daiso category codes, one listing per code. Use \"CTGR_01050\" (top level) or \"CTGR_01050/CTGR_00059\" (top level/sub-category); a category page URL also works. Run mode \"categoryTree\" once to get every code (column categoryCode). Example: [\"CTGR_01050/CTGR_00059\"] (beauty/hygiene > tissue and wet wipes).",
            "items": {
              "type": "string"
            }
          },
          "productIds": {
            "title": "Product IDs or URLs (reviews)",
            "type": "array",
            "description": "Mode \"reviews\" only: Daiso product IDs (the productId column of the other modes) or product page URLs containing \"pdNo=\", up to 200. Example: [\"1030480\"] or [\"https://www.daisomall.co.kr/pd/pdr/SCR_PDR_0001?pdNo=1030480\"].",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max products per ranking or keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many products to return for each ranking, category or keyword, counted from the top. Integer 1-1000, default 100. Each returned product is one charged row. Example: 100. The form starts at 30 to keep a first try cheap; raise it to get more. In our tests the overall ranking was about 3,000 products deep and the new-arrivals ranking about 800. Not used by \"reviews\" (see maxReviewsPerProduct), \"stores\" and \"categoryTree\".",
            "default": 100
          },
          "maxReviewsPerProduct": {
            "title": "Max reviews per product",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Mode \"reviews\" only: how many reviews to return for each product, newest first. Integer 1-5000, default 100. Each returned review is one charged row; 100 reviews are one request. Example: 100.",
            "default": 100
          },
          "includeDetails": {
            "title": "Add barcode, options and wishlist count",
            "type": "boolean",
            "description": "true = make one extra request per product to add barcode (Daiso barcode value), wishlistCount, brandEn, maxOrderQty, options (name, price, stock and sold-out flag of each option), shareCount, isRestockAlertTarget and boxProductId, and to fill onlineStockQty and the sub-category in the daily and weekly lists (which do not report them). Charged as a separate \"product-details\" event per product, only when it succeeds. Slower: one request per product, about 7.5 seconds each with the default requestDelaySecs (100 products = about 13 minutes). Default false.",
            "default": false
          },
          "includeReviewSummary": {
            "title": "Add review survey summary",
            "type": "boolean",
            "description": "true = make one extra request per product to add reviewSummary: Daiso's review survey totals for the product (for example scent or thickness: each answer with its share in % and count). Aggregated numbers only, no review text. No extra charge. Slower: one request per product. Default false.",
            "default": false
          },
          "outputMode": {
            "title": "Output",
            "enum": [
              "all",
              "changesOnly"
            ],
            "type": "string",
            "description": "\"all\" (default) = save every product of the list. \"changesOnly\" = from the second run on, save (and charge) only products that are new in the list, just sold out, back in stock or - in rankings and searches - moved in rank; the full list is still remembered for the next comparison. Stock quantity changes alone do not count. Product modes only. Example: \"changesOnly\".",
            "default": "all"
          },
          "excludeBoxProducts": {
            "title": "Exclude box (case pack) products",
            "type": "boolean",
            "description": "Box listings (product IDs starting with \"B\": a case of the same item sold at a bulk price) show up in search results and category listings. true (default) skips them; false keeps them with isBoxProduct = true.",
            "default": true
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Name of the key-value store that remembers the previous list, used to fill lastRunRank, rankChange, isNewEntry and the sold-out / restock columns (previousSoldOut, newlySoldOut, backInStock, stockChange). Keep the same name (and the same maxItems) between scheduled runs. Use a different name for separate watchlists. Letters, digits and hyphens only. Example: \"daiso-ranking-history\" (default).",
            "default": "daiso-ranking-history"
          },
          "requestDelaySecs": {
            "title": "Seconds between requests",
            "minimum": 5,
            "maximum": 60,
            "type": "integer",
            "description": "Pause between two requests to the same Daiso host; requests are sent one at a time. Default 6 = a random 5-10 seconds. Minimum 5, maximum 60. Daiso Mall's robots.txt asks crawlers for 30 seconds: set 30 to follow it exactly (runs take about 4 times longer). Example: 6.",
            "default": 6
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Proxy settings. Keep the default {\"useApifyProxy\": true} (Apify datacenter proxy); Daiso Mall did not block it in our tests.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}