# Naver Blog & Cafe Scraper (`huggable_quote/naver-blog-cafe-scraper`) Actor

Scrapes Naver Blog and Cafe posts with full content, comments, metadata, and engagement metrics. Supports keyword search and direct URL scraping.

- **URL**: https://apify.com/huggable\_quote/naver-blog-cafe-scraper.md
- **Developed by:** [OrbitData Labs](https://apify.com/huggable_quote) (community)
- **Categories:** SEO tools, Social media, Other
- **Stats:** 4 total users, 2 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## Naver Blog & Cafe Scraper

An [Apify](https://apify.com) actor that scrapes posts, comments, place information, and metadata from Naver Blog and Cafe.

### Features

- **Keyword Search**: Search blog/cafe posts using the Naver Search API
- **Direct URL Scraping**: Provide specific Naver Blog or Cafe post URLs for detailed scraping
- **Full Content Extraction**: Extract complete text and HTML content from posts
- **Image Collection**: Collect all image URLs embedded in posts
- **Place/Map Data**: Extract place names, addresses, phone numbers, and GPS coordinates from posts
- **External Link Extraction**: Collect external link card data (OG links) embedded in posts
- **Comment Count**: Retrieve the number of comments on each post
- **Engagement Metrics**: Collect like/sympathy counts
- **Video Detection**: Detect whether a post contains video content
- **Metadata**: Author, date, category, tags, and more

### Output Data

| Field | Type | Description |
|-------|------|-------------|
| `type` | string | `blog` or `cafe` |
| `title` | string | Post title |
| `url` | string | Post URL |
| `author` | string | Author name |
| `date` | string | Published date |
| `content` | string | Full text content |
| `contentHtml` | string | Raw HTML content |
| `images` | string[] | List of image URLs |
| `tags` | string[] | Hashtags/tags |
| `category` | string | Post category |
| `likeCount` | number | Number of likes/sympathies |
| `commentCount` | number | Number of comments |
| `places` | object[] | Place info (name, address, phone, category, latitude, longitude) |
| `externalLinks` | object[] | External links (title, description, URL) |
| `hasVideo` | boolean | Whether the post contains video |
| `cafeName` | string | Cafe name (cafe posts only) |
| `cafeUrl` | string | Cafe URL (cafe posts only) |
| `scrapedAt` | string | Scrape timestamp (ISO 8601) |

### Usage

Enter keywords to search Naver Blog/Cafe, or provide direct URLs to scrape specific posts. No separate API key setup is required — just run the actor.

#### Input Example

```json
{
    "searchKeywords": ["best restaurants", "Seoul cafe"],
    "directUrls": ["https://blog.naver.com/example/123456"],
    "searchType": "both",
    "maxResults": 30,
    "sortBy": "sim",
    "scrapeContent": true,
    "scrapeComments": true,
    "maxConcurrency": 5
}
````

#### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `searchKeywords` | string\[] | `[]` | List of search keywords |
| `directUrls` | string\[] | `[]` | Direct post URLs to scrape |
| `searchType` | string | `both` | Search target: `blog`, `cafe`, or `both` |
| `maxResults` | number | `30` | Max search results per keyword (up to 1000) |
| `sortBy` | string | `sim` | Sort order: `sim` (relevance) or `date` (newest first) |
| `scrapeContent` | boolean | `true` | Whether to scrape full post content |
| `scrapeComments` | boolean | `true` | Whether to collect comment data |
| `maxConcurrency` | number | `5` | Max concurrent scraping requests |

#### Output Example

```json
{
    "type": "blog",
    "title": "Top 10 Restaurants in Gangnam, Seoul",
    "url": "https://blog.naver.com/foodie123/223456789",
    "author": "FoodExplorer",
    "authorLink": "https://blog.naver.com/foodie123",
    "date": "2025-01-15",
    "content": "Hello! Today I'm introducing must-visit restaurants in Gangnam...",
    "images": ["https://blogfiles.pstatic.net/..."],
    "tags": ["GangnamFood", "SeoulRestaurant", "FoodRecommendation"],
    "category": "Food/Travel",
    "likeCount": 142,
    "commentCount": 23,
    "places": [
        {
            "name": "Restaurant ABC",
            "address": "123 Yeoksam-dong, Gangnam-gu, Seoul",
            "tel": "02-1234-5678",
            "category": "Restaurant",
            "latitude": "37.5012",
            "longitude": "127.0396"
        }
    ],
    "externalLinks": [
        {
            "title": "Reservation Page",
            "description": "Book online",
            "url": "https://example.com/reservation"
        }
    ],
    "hasVideo": false,
    "comments": [],
    "scrapedAt": "2025-01-20T10:30:00.000Z"
}
```

### Use Cases

- **Market Research**: Analyze consumer reviews and place data for specific keywords or products
- **Trend Analysis**: Track popular topics and keywords over time
- **Restaurant/Place Collection**: Automatically extract place names, addresses, phone numbers, and GPS coordinates from blog reviews
- **Competitor Analysis**: Monitor online sentiment about competing brands
- **Influencer Discovery**: Find influential bloggers in specific niches
- **Content Analysis**: Analyze patterns of images, videos, and external links in posts

### Limitations

- Naver Search API daily limit: 25,000 calls
- Max search results per keyword: 1,000 (Naver API limit)
- Private cafe posts cannot be scraped
- Blog comment content is not available via API (only comment count is provided)
- Some content may be restricted due to Naver's access control policies

### License

ISC

# Actor input Schema

## `searchKeywords` (type: `array`):

Keywords to search for on Naver Blog and Cafe. Each keyword will be searched separately.

## `directUrls` (type: `array`):

Direct Naver Blog or Cafe post URLs to scrape. Supports blog.naver.com and cafe.naver.com URLs.

## `searchType` (type: `string`):

Which Naver service to search.

## `maxResults` (type: `integer`):

Maximum number of search results to process per keyword (max 1000).

## `sortBy` (type: `string`):

How to sort search results.

## `scrapeContent` (type: `boolean`):

Whether to visit each post URL and scrape full content. If false, only search result data is returned.

## `scrapeComments` (type: `boolean`):

Whether to scrape comments from each post. Requires 'Scrape Full Content' to be enabled.

## `proxyConfiguration` (type: `object`):

Proxy settings for web scraping. Recommended for large-scale scraping.

## `maxConcurrency` (type: `integer`):

Maximum number of pages to scrape concurrently.

## Actor input object example

```json
{
  "searchKeywords": [
    "best restaurants"
  ],
  "directUrls": [],
  "searchType": "both",
  "maxResults": 30,
  "sortBy": "sim",
  "scrapeContent": true,
  "scrapeComments": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  },
  "maxConcurrency": 5
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchKeywords": [
        "best restaurants"
    ],
    "directUrls": [],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("huggable_quote/naver-blog-cafe-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchKeywords": ["best restaurants"],
    "directUrls": [],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("huggable_quote/naver-blog-cafe-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchKeywords": [
    "best restaurants"
  ],
  "directUrls": [],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call huggable_quote/naver-blog-cafe-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=huggable_quote/naver-blog-cafe-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "Naver Blog & Cafe Scraper",
        "description": "Scrapes Naver Blog and Cafe posts with full content, comments, metadata, and engagement metrics. Supports keyword search and direct URL scraping.",
        "version": "1.0",
        "x-build-id": "65oku6xqxj3nWg9ES"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/huggable_quote~naver-blog-cafe-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-huggable_quote-naver-blog-cafe-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/huggable_quote~naver-blog-cafe-scraper/runs": {
            "post": {
                "operationId": "runs-sync-huggable_quote-naver-blog-cafe-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/huggable_quote~naver-blog-cafe-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-huggable_quote-naver-blog-cafe-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": {
                    "searchKeywords": {
                        "title": "Search Keywords",
                        "type": "array",
                        "description": "Keywords to search for on Naver Blog and Cafe. Each keyword will be searched separately.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "directUrls": {
                        "title": "Direct URLs",
                        "type": "array",
                        "description": "Direct Naver Blog or Cafe post URLs to scrape. Supports blog.naver.com and cafe.naver.com URLs.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "searchType": {
                        "title": "Search Type",
                        "enum": [
                            "blog",
                            "cafe",
                            "both"
                        ],
                        "type": "string",
                        "description": "Which Naver service to search.",
                        "default": "both"
                    },
                    "maxResults": {
                        "title": "Max Results Per Keyword",
                        "minimum": 1,
                        "maximum": 1000,
                        "type": "integer",
                        "description": "Maximum number of search results to process per keyword (max 1000).",
                        "default": 30
                    },
                    "sortBy": {
                        "title": "Sort By",
                        "enum": [
                            "sim",
                            "date"
                        ],
                        "type": "string",
                        "description": "How to sort search results.",
                        "default": "sim"
                    },
                    "scrapeContent": {
                        "title": "Scrape Full Content",
                        "type": "boolean",
                        "description": "Whether to visit each post URL and scrape full content. If false, only search result data is returned.",
                        "default": true
                    },
                    "scrapeComments": {
                        "title": "Scrape Comments",
                        "type": "boolean",
                        "description": "Whether to scrape comments from each post. Requires 'Scrape Full Content' to be enabled.",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "Proxy Configuration",
                        "type": "object",
                        "description": "Proxy settings for web scraping. Recommended for large-scale scraping."
                    },
                    "maxConcurrency": {
                        "title": "Max Concurrency",
                        "minimum": 1,
                        "maximum": 20,
                        "type": "integer",
                        "description": "Maximum number of pages to scrape concurrently.",
                        "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
                                    }
                                }
                            },
                            "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
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
