{
  "openapi": "3.0.1",
  "info": {
    "title": "Naver Clip Scraper",
    "description": "Enter a Naver Clip profile URL, clip link, or keyword to collect public videos, creator metrics and optional media archives.",
    "version": "0.2",
    "x-build-id": "OHMbI2qqSAaavgYuI"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/magenta_courser~naver-clip-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-magenta_courser-naver-clip-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~naver-clip-scraper/runs": {
      "post": {
        "operationId": "runs-sync-magenta_courser-naver-clip-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~naver-clip-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-magenta_courser-naver-clip-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": {
          "profileUrl": {
            "title": "Naver Clip profile URL",
            "type": "string",
            "description": "Public profile such as https://clip.naver.com/@design_logs. Supply only one source: profile URL, clip URL, keyword, or keyword list."
          },
          "clipUrl": {
            "title": "Canonical clip URL",
            "type": "string",
            "description": "A full https://clip.naver.com/contents link containing seedMediaId, serviceType, recType and recId. Mobile shorts links are not accepted yet."
          },
          "query": {
            "title": "Search keyword",
            "type": "string",
            "description": "Keyword for Naver Clip search, for example 留쏆쭛. Default relevance order. Search descriptions and counts can be abbreviated."
          },
          "queries": {
            "title": "Search keywords in one run",
            "type": "array",
            "description": "Optional batch alternative to Search keyword. Up to 10 nonblank keywords, one per line. maxItems applies to each keyword and the planned total must not exceed 500. Batch watch history is not supported.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Maximum clips",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum unique clips per source or per keyword in batch mode. Request, time and transfer limits are shared by the run.",
            "default": 20
          },
          "includeVideoUrls": {
            "title": "Retrieve full video URLs",
            "type": "boolean",
            "description": "One extra public playback request per video. Returns available full MP4 and stream variants, with source expiry when provided.",
            "default": false
          },
          "includeProfileStats": {
            "title": "Retrieve creator follower totals",
            "type": "boolean",
            "description": "Fetch public Clip profile totals once per creator for search/single-clip results. Profile mode already includes its profile totals.",
            "default": false
          },
          "archiveMedia": {
            "title": "Archive thumbnail and video",
            "type": "boolean",
            "description": "Enables playback retrieval and copies supported media into a named Apify key-value store. Uses the configured file/count/transfer limits. Partial and skipped files are reported.",
            "default": false
          },
          "trackChanges": {
            "title": "Compare with previous runs",
            "type": "boolean",
            "description": "Persist observed IDs and metrics in a named store. Reports newly observed clips and metric changes. Missing results are never labelled deleted. Single keyword, profile or clip only.",
            "default": false
          },
          "historyNamespace": {
            "title": "History namespace",
            "pattern": "^[A-Za-z0-9_-]{1,40}$",
            "type": "string",
            "description": "Separate independent monitoring series for the same profile, clip or keyword.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional Apify or custom proxy. Public local verification used no proxy. Source blocks stop the run; proxies are not rotated after a block.",
            "default": {
              "useApifyProxy": false
            }
          },
          "sort": {
            "title": "Search order",
            "enum": [
              "relevance",
              "latest",
              "views"
            ],
            "type": "string",
            "description": "Keyword search only. Source controls define these modes; live two-page verification used relevance.",
            "default": "relevance"
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Includes metadata, playback and media HTTP requests. At the limit, already collected rows are retained with partial coverage.",
            "default": 120
          },
          "maxRunSeconds": {
            "title": "Maximum run seconds",
            "minimum": 30,
            "maximum": 900,
            "type": "integer",
            "description": "Source requests stop ten seconds before this budget to reserve time for saving results. Set the Apify run timeout above this value.",
            "default": 300
          },
          "maxFileSizeMb": {
            "title": "Maximum media file MiB",
            "minimum": 1,
            "maximum": 32,
            "type": "integer",
            "description": "Actual bytes are checked. Large videos are skipped; an available lower-quality complete MP4 is preferred when it fits.",
            "default": 10
          },
          "maxTotalMediaMb": {
            "title": "Maximum media transfer MiB",
            "minimum": 1,
            "maximum": 128,
            "type": "integer",
            "description": "Per-run media transfer budget, including bytes received on failed downloads. A shared HTTP budget of 128 MiB also applies.",
            "default": 25
          },
          "maxMediaFiles": {
            "title": "Maximum media files",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Thumbnail plus one complete video can require two files per clip. Failed download attempts consume the file count budget.",
            "default": 4
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}