{
  "openapi": "3.0.1",
  "info": {
    "title": "Coupang Product Scraper | KR Prices & Rocket",
    "description": "Scrape Coupang.com (쿠팡) — keyword search, categories, Rocket campaigns, Global, PDP & brand shops. Extract KRW prices, badges, ratings, variants. Export Excel/CSV/JSON.",
    "version": "0.1",
    "x-build-id": "9TL4ZA66u77MIcPnA"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/lentic_clockss~coupang-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-lentic_clockss-coupang-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/lentic_clockss~coupang-scraper/runs": {
      "post": {
        "operationId": "runs-sync-lentic_clockss-coupang-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/lentic_clockss~coupang-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-lentic_clockss-coupang-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": [
              "keywordSearch",
              "categoryBrowse",
              "productDetail",
              "brandShop",
              "campaignBrowse",
              "coupangGlobal",
              "sellerDeal"
            ],
            "type": "string",
            "description": "keywordSearch | categoryBrowse | productDetail | brandShop | campaignBrowse | coupangGlobal | sellerDeal",
            "default": "keywordSearch"
          },
          "browseCountry": {
            "title": "Browse country",
            "enum": [
              "KR"
            ],
            "type": "string",
            "description": "Catalog market (KR only — Coupang operates a single Korean catalog; 로켓직구 global items surface in-catalog).",
            "default": "KR"
          },
          "currency": {
            "title": "Currency",
            "type": "string",
            "description": "Currency",
            "default": "KRW"
          },
          "keyword": {
            "title": "Keyword",
            "type": "string",
            "description": "Search keyword — Korean or English both work (keywordSearch).",
            "default": "샴푸"
          },
          "query": {
            "title": "Query (alias)",
            "type": "string",
            "description": "Query (alias of keyword)"
          },
          "categoryUrl": {
            "title": "Category URL",
            "type": "string",
            "description": "Category URL (categoryBrowse), e.g. https://www.coupang.com/np/categories/393760"
          },
          "categoryId": {
            "title": "Category ID",
            "type": "string",
            "description": "Numeric category ID for categoryBrowse (/np/categories/{id}), e.g. 393760 (로켓프레시), 178255 (가전디지털)."
          },
          "productUrl": {
            "title": "Product URL",
            "type": "string",
            "description": "Product URL (productDetail), e.g. https://www.coupang.com/vp/products/{productId}?itemId=…&vendorItemId=…"
          },
          "productId": {
            "title": "Product ID",
            "type": "string",
            "description": "Product ID (productDetail). Add itemId + vendorItemId to reproduce an exact offer."
          },
          "itemId": {
            "title": "Item ID",
            "type": "string",
            "description": "Item ID (productDetail, optional)"
          },
          "vendorItemId": {
            "title": "Vendor item ID",
            "type": "string",
            "description": "Vendor item ID (productDetail, optional)"
          },
          "brandShopUrl": {
            "title": "Brand shop URL",
            "type": "string",
            "description": "Brand shop URL (brandShop), e.g. https://shop.coupang.com/{slug}/{id}"
          },
          "brandSlug": {
            "title": "Brand slug",
            "type": "string",
            "description": "Brand slug (brandShop, with brandId)"
          },
          "brandId": {
            "title": "Brand ID",
            "type": "string",
            "description": "Brand ID (brandShop, with brandSlug)"
          },
          "campaignUrl": {
            "title": "Campaign URL",
            "type": "string",
            "description": "Campaign URL (campaignBrowse), e.g. https://www.coupang.com/np/campaigns/82"
          },
          "campaignId": {
            "title": "Campaign ID",
            "type": "string",
            "description": "Numeric campaign id — 82=로켓배송, 83=와우회원할인"
          },
          "campaignPreset": {
            "title": "Campaign preset",
            "enum": [
              "rocket",
              "wow"
            ],
            "type": "string",
            "description": "Shortcut for campaignBrowse when campaignId/URL omitted (default rocket)."
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Start page. NOTE: Coupang's current search UI has no working pagination — only page 1 exists per query.",
            "default": 1
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Max pages per query (currently capped to 1 — Coupang removed the pagination surface).",
            "default": 1
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Max results",
            "default": 1
          },
          "enrichDetails": {
            "title": "Enrich with PDP",
            "type": "boolean",
            "description": "Enrich top rows with product-detail fields (brand, variants, coupon price)",
            "default": false
          },
          "enrichLimit": {
            "title": "Enrich limit",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Enrich limit",
            "default": 3
          },
          "sort": {
            "title": "Sort",
            "enum": [
              "scoreDesc",
              "salePriceAsc",
              "salePriceDesc",
              "saleCountDesc",
              "latestAsc"
            ],
            "type": "string",
            "description": "Coupang sorter. scoreDesc=추천순 (default), salePriceAsc=낮은가격순, salePriceDesc=높은가격순, saleCountDesc=판매량순, latestAsc=최신순.",
            "default": "scoreDesc"
          },
          "serviceKeys": {
            "title": "Service filters",
            "type": "array",
            "description": "Delivery/service filters: rocket (로켓배송), coupang_global (로켓직구), rocket_luxury (로켓럭셔리).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minPrice": {
            "title": "Min price (KRW)",
            "type": "number",
            "description": "Min price filter (KRW)"
          },
          "maxPrice": {
            "title": "Max price (KRW)",
            "type": "number",
            "description": "Max price filter (KRW)"
          },
          "rating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Minimum average rating (0-5)"
          },
          "brand": {
            "title": "Brand filter",
            "type": "string",
            "description": "Brand filter (RSC query key; keyword/category/campaign modes)"
          },
          "offerCondition": {
            "title": "Offer condition",
            "type": "string",
            "description": "Offer condition filter (RSC query key, e.g. NEW)"
          },
          "filterType": {
            "title": "Filter type",
            "type": "string",
            "description": "filterType RSC query key"
          },
          "filters": {
            "title": "Filters object",
            "type": "object",
            "description": "Advanced filters bag (brand / offerCondition / filterType)"
          },
          "workerBaseUrl": {
            "title": "Worker base URL override",
            "type": "string",
            "description": "Worker base URL override (allowlisted Cloud Run hosts only)"
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}