Before you start
- Get an API keySign up for 100 free credits, no card. Keys start with
gs_live_. - Put it in the environmentEvery example reads it from
GROUNDSOCIAL_API_KEY:export GROUNDSOCIAL_API_KEY=gs_live_… - Set up PHP
php -m | grep curl # the curl extension ships with most PHP builds
Call Naver Map place search API from PHP
GET /v1/naver/place/search. Save this as main.php and run php main.php. It reads the items in places and prints name and visitorReviewCount for each.
<?php
function groundsocial(string $path, array $params = []): array
{
$url = 'https://api.groundsocial.dev' . $path . ($params ? '?' . http_build_query($params) : '');
$ch = curl_init($url);
curl_setopt_array($ch, [
CURLOPT_HTTPHEADER => ['Authorization: Bearer ' . getenv('GROUNDSOCIAL_API_KEY')],
CURLOPT_RETURNTRANSFER => true,
CURLOPT_TIMEOUT => 60,
]);
$raw = curl_exec($ch);
$status = curl_getinfo($ch, CURLINFO_RESPONSE_CODE);
curl_close($ch);
$data = json_decode($raw, true);
if ($status !== 200) {
$e = $data['error'];
throw new RuntimeException($e['code'] . ': ' . ($e['hint'] ?? $e['message']));
}
return $data;
}
$data = groundsocial('/v1/naver/place/search', ['query' => '강남 커피']);
foreach ($data['places'] as $item) {
echo $item['name'] ?? '', ' ', $item['visitorReviewCount'] ?? '', PHP_EOL;
}The response
A real Naver response to this call, recorded from the live source and shortened for display: arrays keep their first items and … marks every cut. The recorded page had 14 items in places. Live calls return current data in the same shape.
{
"query": "강남 커피",
"places": [
{
"id": "1081873068",
"name": "썸띵어바웃커피",
"category": "카페,디저트",
"roadAddress": "강남대로102길 30 1, 2, 3층",
"address": "서울특별시 강남구 역삼동 618-16 1, 2, 3층",
"phone": "02-538-6991",
"coordinates": {
"lat": 37.5028451,
"lng": 127.0278394
},
"visitorReviewCount": 5101,
"blogCafeReviewCount": 5371,
"saveCount": "151,000+",
"imageUrl": "https://ldb-phinf.pstatic.net/20261112_243/17944433508030b05y_JPEG/IMG_6003.jpg",
"microReview": "치즈케이크와 휘낭시에의 조화",
"isAd": false,
"link": "https://m.place.naver.com/place/1081873068/home",
"rank": 1
},
{
"id": "1770967295",
"name": "구테로이테 본점",
"category": "카페,디저트",
"roadAddress": "선릉로131길 16 1층 구테로이테",
"address": "서울특별시 강남구 논현동 112-19 1층 구테로이테",
"phone": "0507-1407-1147",
"coordinates": {
"lat": 37.5176189,
"lng": 127.0397233
},
"visitorReviewCount": 7294,
"blogCafeReviewCount": 2021,
"saveCount": "83,000+",
"imageUrl": "https://ldb-phinf.pstatic.net/20261027_228/17930606513127TIUp_JPEG/26.10.22_%C0%CE%BD%BA%C5%B8_%B0%A1%C0%BB%BD%C5%B8%DE%…",
"microReview": "블루리본이 증명한 커피 명소",
"isAd": false,
"link": "https://m.place.naver.com/place/1770967295/home",
"rank": 2
},
"… 12 more"
]
}Parameters
| Name | In | Type | Description |
|---|---|---|---|
query (required) | query | string | Example: 강남 커피. |
lat | query | number | null | – |
lng | query | number | null | – |
limit | query | integer | – |
ads | query | "true" | "false" | One of true, false. |
Errors and retries
Every error is JSON with error.code (stable: branch on it), message, hint (what to do next), docs_url and retryable. A failed call is never charged. Retry only when retryable is true, after the Retry-After header.
try {
$data = groundsocial('/v1/naver/place/search', ['query' => '강남 커피']);
} catch (RuntimeException $e) {
// "code: hint", e.g. "target_not_found: ..." (never charged).
fwrite(STDERR, $e->getMessage() . PHP_EOL);
exit(1);
}| Status | Meaning |
|---|---|
200 | Places. |
400 | Invalid input. Nothing was charged. |
401 | Missing or invalid API key. |
402 | Not enough credits, a spend cap was reached, or payment is required. |
403 | The target is private, or the account is suspended. |
404 | Naver has nothing for that search. |
429 | Too many requests. Wait for Retry-After seconds. |
503 | Naver is temporarily unavailable. Retryable; nothing was charged. |
Every error code and what to do about it.
Pricing
| Cost | |
|---|---|
| Per call | 2 credits per call |
| 1,000 calls | $2.00 on the starter pack, $0.80 at volume |
| No key (MPP or x402) | $0.02 per call |
| Failed call | Refunded, never charged |
Every response has x-credits-charged and x-credits-remaining headers. Credits never expire. Packs and calculator.
From an AI agent (MCP)
The same call is the naver_place_search tool on the hosted MCP server, so Claude, Cursor or any MCP client can make it without code. Add the server once:
claude mcp add --transport http groundsocial https://api.groundsocial.dev/mcpThen ask for it in words (“Search Naver Map places for a keyword, in Naver’s order”), or call the tool directly:
{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "naver_place_search",
"arguments": {
"query": "강남 커피"
}
}
}MCP setup for Claude Desktop, Cursor, VS Code and ChatGPT.
Map local competitors
Search your category and area and keep the top ten ids.
Questions
Hotels?
Accommodation searches are not covered yet.
Keep going
- This call in Python, JavaScript, TypeScript, Go, cURL.
- Naver Map place search API reference: every field and status code.
- Naver tutorials and all PHP tutorials.
- Naver API: every endpoint and price.
- How to scrape Naver Blog search with PHP: Search Naver Blog: titles, links, snippets, bloggers, dates.
- How to scrape Naver News search with PHP: Search Naver News: titles, links, snippets, publishers, times.
- How to scrape Naver Cafe search with PHP: Search Naver Cafe articles: titles, links, snippets, cafes, dates.
- How to scrape Naver KnowledgeiN search with PHP: Search Naver KnowledgeiN: questions, links, top answers, dates.
- How to scrape Naver image search with PHP: Search Naver Images: original URLs, thumbnails, sizes, source pages.
- How to scrape Naver web document search with PHP: Search Naver Web documents: titles, links, descriptions.
Run it on your own data
One key for Naver and 76 more platforms, over REST or MCP. Free credits on signup, no card.
Naver is a trademark of NAVER Corp. We are not affiliated with or endorsed by Naver.