Naver web document search API
Web documents Naver returns for a Korean query: title, link and description.
GET /v1/naver/webkr/searchBeta1 credit per callRefunded on failureimport os, requests
res = requests.get(
"https://api.groundsocial.dev/v1/naver/webkr/search?query=%EC%BB%A4%ED%94%BC",
headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()Response
200 · 1 credit{ "query": "커피", "start": 1, "display": 7, "items": [ { "title": "커피 - 위키백과 한국어", "link": "https://ko.wikipedia.org/wiki/%EC%BB%A4%ED%94%BC", "description": "커피 ( 영어: coffee , 咖啡, 珈琲, 가배, 문화어: 흑차, 검은차), 커피차 또는 커피음료 ( 영어: coffee beverage )는 커피 나무 열매의 씨(커피콩)를 볶아 가루로 낸 것을 따뜻한 물과 차…" }, { "title": "커피 - 나무위키", "link": "https://namu.wiki/w/%EC%BB%A4%ED%94%BC", "description": "Coffee 커피나무 열매의 씨앗(원두)을 볶아 향을 내고, 딱딱한 씨앗의 성분이 물에 잘 우러나오도록 갈은 뒤, 물에 타서 마시는 음료다." }, "… 5 more" ]}Parameters
| Name | Type | Description |
|---|---|---|
queryquery · required | string | Example: 커피. |
displayquery | integer | Results to return (Naver’s page holds up to 30; default 10). |
startquery | integer | |
sortquery | "sim" | "date" | One of sim, date. |
excludequery | string | Comma-separated words to leave out (sent as -word). |
sincequery | string | |
untilquery | string |
Status codes
| Status | Meaning |
|---|---|
200 | Web documents. |
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 has code, message, hint and retryable. All error codes
Questions
Date order?
Web documents come in Naver’s relevance order only.
Naver is a trademark of NAVER Corp. We are not affiliated with or endorsed by Naver.