{
  "openapi": "3.0.1",
  "info": {
    "title": "Naver Blog Scraper (Search + Full Posts)",
    "description": "Scrape Naver Blog by keyword, blog ID or post URL. Get clean full post text, images, tags, places, like and comment counts and a sponsored-post hint, or cheap search rows only. Supports incremental monitoring.",
    "version": "1.0",
    "x-build-id": "qNZACHA7KcxBxbIeK"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/frank_conifer_af4~naver-blog-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-frank_conifer_af4-naver-blog-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/frank_conifer_af4~naver-blog-scraper/runs": {
      "post": {
        "operationId": "runs-sync-frank_conifer_af4-naver-blog-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/frank_conifer_af4~naver-blog-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-frank_conifer_af4-naver-blog-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": {
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Korean or English keywords, one per line. Each keyword runs a Naver Blog search (the blog tab on search.naver.com). Posts found by several keywords are returned only once.",
            "items": {
              "type": "string"
            }
          },
          "sort": {
            "title": "Sort search results by",
            "enum": [
              "relevance",
              "date"
            ],
            "type": "string",
            "description": "Relevance mirrors Naver's default ranking. Newest first is best for monitoring, because the scraper can stop paging as soon as it reaches posts older than your cutoff.",
            "default": "relevance"
          },
          "period": {
            "title": "Published within",
            "enum": [
              "all",
              "1d",
              "1w",
              "1m",
              "3m",
              "6m",
              "1y",
              "custom"
            ],
            "type": "string",
            "description": "Limits search results to a publishing period, using Naver's own date filter. Choose 'Custom range' to use the dates below. Applies to keyword search only.",
            "default": "all"
          },
          "dateFrom": {
            "title": "Custom range: from",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "First day to include (YYYY-MM-DD, Korea time). Used only when 'Published within' is 'Custom range'."
          },
          "dateTo": {
            "title": "Custom range: to",
            "pattern": "^$|^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Last day to include (YYYY-MM-DD, Korea time). Leave empty for today. Used only when 'Published within' is 'Custom range'."
          },
          "maxPostsPerQuery": {
            "title": "Max posts per keyword",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many results to collect for each keyword. Naver returns 30 results per page, so 30 posts cost one search request. Higher values mean longer runs and higher cost.",
            "default": 30
          },
          "blogIds": {
            "title": "Blog IDs",
            "type": "array",
            "description": "Naver blog IDs or blog URLs, one per line (e.g. 'myblog' or 'https://blog.naver.com/myblog'). The scraper reads each blog's newest posts first, via its public RSS feed or the public mobile post list.",
            "items": {
              "type": "string"
            }
          },
          "maxPostsPerBlog": {
            "title": "Max posts per blog",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Newest posts to collect from each blog. Up to 50 come from the RSS feed in a single request; more are paged from the mobile post list (24 per request).",
            "default": 20
          },
          "postUrls": {
            "title": "Post URLs",
            "type": "array",
            "description": "Direct links to Naver Blog posts in any format: blog.naver.com/{id}/{logNo}, m.blog.naver.com/..., PostView.naver?blogId=...&logNo=..., or naver.me short links. Direct URLs are always scraped in full.",
            "items": {
              "type": "string"
            }
          },
          "scrapeFullPost": {
            "title": "Scrape full post text",
            "type": "boolean",
            "description": "On: open every post and return the full body text, images, tags, places, like and comment counts and a sponsorship hint (charged as 'blog-post'). Off: return only the search or feed row (title, snippet, date, thumbnail), which is faster and cheaper (charged as 'search-result').",
            "default": true
          },
          "includeLikeCount": {
            "title": "Include like counts",
            "type": "boolean",
            "description": "Fetch public like (공감) counts with one batched request per 20 posts. Turn off for slightly faster runs.",
            "default": true
          },
          "includeHtml": {
            "title": "Include body HTML",
            "type": "boolean",
            "description": "Also return the raw post body HTML. Off by default because it makes each item much larger.",
            "default": false
          },
          "onlyNewSince": {
            "title": "Only posts published since",
            "type": "string",
            "description": "Leave empty to get everything. Enter a date such as 2026-10-01 (Korea time) or a full ISO timestamp to skip older posts. Enter 'lastRun' for incremental monitoring: each keyword and blog remembers what it already returned, so scheduled runs only deliver new posts."
          },
          "monitoringKey": {
            "title": "Monitoring state name",
            "type": "string",
            "description": "Used with 'lastRun'. Separate monitors (for example one per client) should use different names. The state is kept in the named key-value store 'naver-blog-scraper-state'.",
            "default": "default"
          },
          "maxConcurrency": {
            "title": "Max concurrency",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many posts are fetched in parallel. Keep it low (3 is a good default) to stay polite and avoid rate limiting. Higher values are faster but may trigger temporary blocks.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. Apify Proxy spreads requests over many IPs, which helps large runs. Naver Blog is public, so small runs also work without a proxy."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}