{
  "openapi": "3.0.1",
  "info": {
    "title": "Naver Shopping Search Scraper: Ranks, Ads, Sales",
    "description": "Returns the top 150 Naver Shopping products per Korean keyword in Naver's ranking: rank, title, KRW price, store, ad flag, purchases, wishlists, rating, reviews, URL. No login. Example: keywords=[\"무선 이어폰\"]. Pay per event: $0.001 per product.",
    "version": "0.2",
    "x-build-id": "xK5aMdo4g1HgwhbPh"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/kyungminlee~naver-shopping-search-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-kyungminlee-naver-shopping-search-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/kyungminlee~naver-shopping-search-scraper/runs": {
      "post": {
        "operationId": "runs-sync-kyungminlee-naver-shopping-search-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/kyungminlee~naver-shopping-search-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-kyungminlee-naver-shopping-search-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": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "title": "Search keywords",
            "type": "array",
            "description": "REQUIRED. List of search keywords as typed into Naver, e.g. [\"무선 이어폰\", \"캠핑 의자\"]; each item is one search. A Naver search URL containing query= is also accepted.",
            "items": {
              "type": "string"
            }
          },
          "maxProductsPerKeyword": {
            "title": "Maximum products per keyword",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Integer, default 150 (prefill 40): products kept per keyword from the top of Naver's list. 150 is the hard maximum Naver exposes. Each product saved is one charged 'product' event ($0.001); the run's max charge can lower the total. Applied after sortBy/filters.",
            "default": 150
          },
          "includeAds": {
            "title": "Include sponsored products (ads)",
            "type": "boolean",
            "description": "Boolean (default false). true = also return sponsored products Naver mixes into the list, flagged isAd: true; they count as products and are charged. Ad links are never opened.",
            "default": false
          },
          "fastDeliveryOnly": {
            "title": "Fast delivery only",
            "type": "boolean",
            "description": "Boolean (default false). true = only products with Naver's fast-delivery badge; filtered by Naver, so you still get up to 150 matches.",
            "default": false
          },
          "freeDeliveryOnly": {
            "title": "Free delivery only",
            "type": "boolean",
            "description": "Boolean (default false). true = only free-delivery products; filtered by Naver, so the top 150 are chosen among free-delivery products.",
            "default": false
          },
          "arrivalGuaranteeOnly": {
            "title": "Arrival guarantee only (도착보장)",
            "type": "boolean",
            "description": "Boolean (default false). true = only products with Naver's arrival-guarantee badge; filtered by Naver, usually fewer than 150 qualify per keyword.",
            "default": false
          },
          "minPrice": {
            "title": "Minimum price (KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional integer, Korean won (KRW), e.g. 10000. Keeps products priced at or above it, applied client-side to Naver's up-to-150 results, so narrow ranges can return few rows. Empty or 0 = no limit."
          },
          "maxPrice": {
            "title": "Maximum price (KRW)",
            "minimum": 0,
            "type": "integer",
            "description": "Optional integer, Korean won (KRW), e.g. 50000. Keeps products priced at or below it, applied client-side to Naver's up-to-150 results. Empty or 0 = no limit."
          },
          "categoryIds": {
            "title": "Category IDs",
            "type": "array",
            "description": "Optional list of Naver category IDs as strings, e.g. [\"50000204\"]. A product matches if it equals its categoryId or appears in its categoryIds chain. Get IDs from the output of a previous run. Empty = all categories.",
            "items": {
              "type": "string"
            }
          },
          "sortBy": {
            "title": "Sort results by",
            "enum": [
              "relevance",
              "priceAsc",
              "priceDesc",
              "reviewCountDesc",
              "purchaseCountDesc",
              "wishlistCountDesc",
              "ratingDesc"
            ],
            "type": "string",
            "description": "Enum, default relevance: relevance, priceAsc, priceDesc, reviewCountDesc, purchaseCountDesc, wishlistCountDesc, ratingDesc. Re-orders Naver's results per keyword; rank always keeps Naver's own position. With a sort or filter, maxProductsPerKeyword gives the top N of the sorted list. Missing values go last.",
            "default": "relevance"
          },
          "trackChanges": {
            "title": "Track rank and price changes",
            "type": "boolean",
            "description": "Boolean (default false). true = remember each product's last rank and price per keyword in historyStoreName and add previousRank, rankChange (positive = moved up), previousPrice, priceChange, isNewInTop to rows, plus a free 'keyword-summary' row per keyword. First run only stores the baseline. Schedule daily.",
            "default": false
          },
          "onlyChanged": {
            "title": "Only new or changed products",
            "type": "boolean",
            "description": "Boolean (default false). Only used with trackChanges. true = save and charge only products that are new or whose rank or price changed; first run returns everything.",
            "default": false
          },
          "historyStoreName": {
            "title": "History store name",
            "type": "string",
            "description": "Name of the key-value store for trackChanges history: letters, digits, dashes, e.g. 'naver-shopping-history' (default). Use one name per watchlist. Only used when trackChanges is true.",
            "default": "naver-shopping-history"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Apify proxy settings object, default {\"useApifyProxy\": true} (datacenter IPs, rotated when Naver rate-limits). {\"useApifyProxy\": false} uses the run's own IP.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}