{
  "openapi": "3.0.1",
  "info": {
    "title": "Coupang Scraper - Search, Products, Prices, Rocket & Best 100",
    "description": "Scrape Coupang (쿠팡) search, category, Best 100 and product pages: price, original price, discount, coupon, unit price, rating, reviews, Rocket and delivery badges, ad and sold-out flags; product pages add brand, seller, images and options. Monitor mode. $2.20 per 1,000 products.",
    "version": "0.1",
    "x-build-id": "wiZiPN6M6zfBvUaHI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~coupang-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-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/topapi~coupang-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-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/topapi~coupang-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-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",
        "properties": {
          "searchTerms": {
            "title": "Search terms",
            "type": "array",
            "description": "Keywords to search on Coupang, in Korean or English (e.g. 노트북, airpods). Coupang shows up to 60 products per search; with Deep search on, the actor splits the search into price bands to return more.",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "Coupang links",
            "type": "array",
            "description": "Coupang search links (www.coupang.com/np/search?q=...), category links (/np/categories/497135, followed page by page), Best 100 links (/np/best100/bestseller or /np/best100/bestseller/<categoryId>) and product links (/vp/products/<id>, m.coupang.com links too). Filters already in a search or category link are kept.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "productUrls": {
            "title": "Product links or ids",
            "type": "array",
            "description": "Coupang product pages (www.coupang.com/vp/products/..., m.coupang.com/vm/products/...) or bare numeric product ids. One detailed row per product: brand, seller, category path, all images, options, price, original price, rating, review count, delivery promise and availability.",
            "items": {
              "type": "string"
            }
          },
          "category": {
            "title": "Category ids",
            "type": "array",
            "description": "Coupang category ids (the number in www.coupang.com/np/categories/<id>), e.g. 497135 for laptops. Each category's own listing is read page by page (60 products a page).",
            "items": {
              "type": "string"
            }
          },
          "bestsellerCategories": {
            "title": "Best 100 lists",
            "type": "array",
            "description": "Coupang Best 100 best-seller lists: a category id for that category's list, or \"all\" for the all-category list. Each list returns the 30 products Coupang ranks first.",
            "items": {
              "type": "string"
            }
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 100000,
            "type": "integer",
            "description": "Hard cap on the number of product rows in this run, across every search, link and product. Also your spending cap: you are charged per row delivered, never more than this.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Max results per search",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Optional cap per search term, category, Best 100 list or link, so each one gets its share. Empty = only the run-wide Max results applies."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "bestSelling",
              "newest"
            ],
            "type": "string",
            "description": "Order of search and category results, as on Coupang.",
            "default": "relevance"
          },
          "deepSearch": {
            "title": "Deep search (more than 60 per search)",
            "type": "boolean",
            "description": "Coupang shows one page of 60 products per search. When Max results asks for more, split the search into Coupang's own price bands (and halves of a full band), one request at a time, until the cap is met. Off = the first 60 only.",
            "default": true
          },
          "minPrice": {
            "title": "Min price (KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at least this many won. Sent to Coupang's own price filter on searches."
          },
          "maxPrice": {
            "title": "Max price (KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Only products priced at most this many won. Sent to Coupang's own price filter on searches."
          },
          "rocketOnly": {
            "title": "Rocket delivery only",
            "type": "boolean",
            "description": "Only products with a Rocket badge (Rocket, Rocket seller, Rocket Luxury, Rocket Jikgu / Coupang Global). Sent to Coupang's own Rocket filter.",
            "default": false
          },
          "freeShippingOnly": {
            "title": "Free shipping only",
            "type": "boolean",
            "description": "Coupang's free-shipping (무료배송) filter. Cards that still show a shipping fee are skipped and not charged.",
            "default": false
          },
          "minRating": {
            "title": "Min rating",
            "minimum": 0,
            "maximum": 5,
            "type": "number",
            "description": "Only products rated at least this many stars (0-5). Products without a rating are skipped when this is set."
          },
          "includeAds": {
            "title": "Include sponsored products",
            "type": "boolean",
            "description": "Sponsored (ad) cards are flagged with isAd. Off = skip them (not charged).",
            "default": true
          },
          "monitorMode": {
            "title": "Monitor mode (only new or re-priced products)",
            "type": "boolean",
            "description": "Remember what this input returned and, on the next run, return only products that are new or whose price changed (changeType + previousPrice). For scheduled price and assortment tracking.",
            "default": false
          },
          "monitorPriceChanges": {
            "title": "Monitor: also return price changes",
            "type": "boolean",
            "description": "In monitor mode, also return known products whose price moved since the last run. Off = new products only.",
            "default": true
          },
          "monitorStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "Name of the memory this monitor uses (one per schedule). Runs with the same name and the same input share it.",
            "default": "coupang-monitor"
          },
          "resetMonitor": {
            "title": "Reset monitor memory",
            "type": "boolean",
            "description": "Forget what earlier runs returned and start the memory again with this run.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many searches, links or products are read at the same time.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}