> **For coding agents and LLMs:** This is one page from the Social Fetch docs (markdown export). For curated orientation and workflow guidance, start with [`/llms.txt`](https://www.socialfetch.dev/llms.txt); for agent onboarding and crawl rules, use [`/agents.txt`](https://www.socialfetch.dev/agents.txt); for the full endpoint list with links to pages like this one, use [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt); for one platform's parameters and curls, use [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt); use [`/llms.json`](https://www.socialfetch.dev/llms.json) when you need structured JSON for tool registration.

## This page

- **On-site (HTML):** <https://www.socialfetch.dev/docs/api/v1/naver/search/encyclopedia/get>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/docs/api/v1/naver/search/encyclopedia/get.mdx>

## API base URL and authentication

- **API origin (from OpenAPI `servers`):** `https://api.socialfetch.dev`
- **Authentication:** send `x-api-key: sfk_...` on `/v1/**` and `/v2/**` routes unless the operation is explicitly anonymous (check OpenAPI `security`, the [API reference hub](https://www.socialfetch.dev/docs/api.mdx), [`/llms.txt`](https://www.socialfetch.dev/llms.txt), or [`/llms.json`](https://www.socialfetch.dev/llms.json) for each route).
- **OpenAPI JSON:** <https://www.socialfetch.dev/openapi.json>

## Recommended docs entrypoints (this site)

- [Documentation overview](https://www.socialfetch.dev/docs.mdx) — top-level orientation (markdown).
- [Quickstart](https://www.socialfetch.dev/docs/quickstart.mdx) — authenticate with `x-api-key`, validate auth with `whoami`, and understand the JSON envelope.
- [SDK](https://www.socialfetch.dev/docs/sdk.mdx) — official TypeScript SDK guide, including `SocialFetchClient`, `Result`, and `unwrap()`.
- [Capability matrix](https://www.socialfetch.dev/docs/capability-matrix.mdx) — every operation with identifiers, pagination, outcomes, media download, credits, and its SDK method. Generated from OpenAPI, so use it for route selection instead of scanning individual pages.
- [Recipes](https://www.socialfetch.dev/docs/recipes.mdx) — copyable workflows (brand monitoring, transcripts, Ad Library, creator scoring, Reddit research) with credit callouts and SDK examples.
- [Integrations](https://www.socialfetch.dev/docs/integrations.mdx) — MCP for AI clients, n8n verified node, Apify Store Actors, Make custom app, SDK, and REST API connection paths.
- [MCP product page](https://www.socialfetch.dev/mcp) — hosted MCP overview, OAuth, Skills install.
- [MCP integration](https://www.socialfetch.dev/docs/integrations/mcp.mdx) — hosted `/mcp` server, OAuth, Cursor/VS Code/Claude install snippets, 1112 endpoint tools, plus docs_search/docs_read for implementation help.
- [n8n integration](https://www.socialfetch.dev/docs/integrations/n8n.mdx) — install `n8n-nodes-socialfetch`, credentials, and workflow examples.
- [Apify integration](https://www.socialfetch.dev/docs/integrations/apify.mdx) — Store Actors under @social-fetch, PPE billing, dataset export, and quick start.
- [Make integration](https://www.socialfetch.dev/docs/integrations/make.mdx) — custom app modules for Make scenarios, API key credentials, and module catalog.
- [`/llms-endpoints.txt`](https://www.socialfetch.dev/llms-endpoints.txt) — every documented operation with a direct link to that route's agent-readable markdown page (prefer this over parsing OpenAPI).
- [`/llms-{platform}.txt`](https://www.socialfetch.dev/llms-tiktok.txt) — per-platform endpoint files generated from OpenAPI (parameters, credits, curls).
- [`/agents.txt`](https://www.socialfetch.dev/agents.txt) — agent crawl/onboarding file with capabilities, auth rules, and allowlist.
- [`/llms.json`](https://www.socialfetch.dev/llms.json) — structured machine-readable operation inventory with parameter names, pagination, outcomes, credits, and SDK mapping.
- [API reference hub](https://www.socialfetch.dev/docs/api.mdx) — human-friendly index of operations with links into generated pages.
- [Errors](https://www.socialfetch.dev/docs/errors.mdx) — shared error envelope and HTTP status guidance.
- [Credits](https://www.socialfetch.dev/docs/credits.mdx) — metering, `402`, and planning batch jobs.
- Outcome semantics such as `found`, `not_found`, and `private` are documented in [Errors](https://www.socialfetch.dev/docs/errors.mdx) and on operation pages when present in the OpenAPI contract.

## Markdown docs convention

- Every docs page has a markdown twin: append **`.mdx`** to the docs pathname (for example `/docs/quickstart` → `/docs/quickstart.mdx`).
- Agents that send `Accept: text/markdown` on `/docs/**` HTML URLs may receive markdown directly (same URL, `Vary: Accept`).
- Published blog posts use the same convention: `/blog/{slug}` → `/blog/{slug}.mdx`, or `Accept: text/markdown` on the HTML URL (`Vary: Accept`).

---
# Search the Naver encyclopedia (https://www.socialfetch.dev/docs/api/v1/naver/search/encyclopedia/get)

## Summary

Search Naver's encyclopedia (지식백과) by keyword: the first 30 dictionary entries, articles and explainer videos.

**Tags:** `Naver`

## HTTP

- **Method:** GET
- **Path:** `/v1/naver/search/encyclopedia`
- **Base URL:** `https://api.socialfetch.dev`

## Capability summary

- **SDK mapping:** `client.naver.searchEncyclopedia({ query: "손흥민" })`
- **Accepted identifiers:** `query` (query)
- **Pagination:** none

## Credits

- **Base:** 1 credit per successful lookup.
- **Maximum on success (200):** 1 credit.
- **Failed requests (`lookup_failed`, `503`):** not charged.
- **Authoritative field:** `meta.creditsCharged`.

## Authentication

- **`x-api-key`**: API key (`sfk_...`)

## Parameters

### `query` (query)

- **Required:** yes
- **Constraints:** type `string`; minLength: 1; maxLength: 200
- **Description:** Search words, in Korean or any other language, e.g. `손흥민`. Control characters are removed.

## Responses (status codes)

- **200**: Naver encyclopedia entries.
- **400**: Invalid request
- **401**: Missing or invalid API key
- **402**: Insufficient credits
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed.
- **503**: Service temporarily unavailable; safe to retry with backoff.

## Response body (200)

Naver encyclopedia entries.

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **query** (required) — type `string`. The search words, as sent.
  - **entries** (required) — type `array`. Encyclopedia entries, in Naver's relevance order.
    - _items:_
      - **rank** (required) — type `integer`; minimum: 0. Position in the results, from 1.
      - **id** (required) — type `string`. The entry's id, the last part of its URL, e.g. `1ys3nI3eT9u0G4NTirfz0Z`.
      - **title** (required) — type `string`. Entry title, highlight markup removed.
      - **url** (required) — type `string`. Entry URL on Naver's encyclopedia (지식백과).
      - **otherTitles** (required) — type `array`. The entry's title in other languages, e.g. `Son Heung Min`.
        - _items:_
      - **summary** (required) — type `string`; nullable. Opening text of the entry, as Naver shows it.
      - **category** (required) — type `string`; nullable. Naver's subject for the entry, e.g. `시사·상식`.
      - **source** (required) — type `object`. The dictionary or publication the entry comes from.
      - **contentType** (required) — type `string`; nullable. Naver's kind of entry, e.g. `skb` (dictionary entry), `doc`, `magazine` or `long_form_video`.
      - **videoDuration** (required) — type `string`; nullable. Length of a video entry as Naver prints it, e.g. `4:03`.
      - **thumbnailUrl** (required) — type `string`; nullable. The entry's image.
      - **likeCount** (required) — type `integer`; nullable. Likes on the entry.
  - **hasMore** (required) — type `boolean`. Whether Naver has more entries than these. Only the first 30 can be fetched: Naver loads the rest only in its own page.
- **meta** (required) — type `object`. Metadata describing the request and billing outcome.
  - **requestId** (required) — type `string`; minLength: 1. Unique request identifier for tracing this API call.
  - **creditsCharged** (required) — type `integer`; minimum: 0. Credits charged for this request.
  - **version** (required) — type `string`; enum: v1. Public API version that served the response.
  - **stale** (optional) — type `boolean`; enum: true. Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.
  - **fetchedAt** (optional) — type `string`. When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

### Example JSON (found)

```json
{
  "data": {
    "query": "손흥민",
    "entries": [
      {
        "rank": 1,
        "id": "1ys3nI3eT9u0G4NTirfz0Z",
        "title": "손흥민",
        "url": "https://terms.naver.com/%EC%8B%9C%EC%82%AC-%EC%83%81%EC%8B%9D/%EC%86%90%ED%9D%A5%EB%AF%BC-1ys3nI3eT9u0G4NTirfz0Z",
        "otherTitles": [],
        "summary": "미국 메이저 리그 사커(MLS) 로스앤젤레스FC 소속 축구선수로, 잉글랜드 프리미어리그(EPL) 토트넘 홋스퍼에서 10년간 뛰며 2020년 FIFA 푸스카스상 수상, 2022년 아시아 최초 EPL 득점왕(23골), 2023~2025시즌 UEFA 유로파리그 우승 등의 기록을 세웠다. 외국어 표기 孫興慜 (한자) Son Heung Min (영어) 출생~ 1992년 7월 8일 (강원특별자치도 춘천) 소속팀 미국프로축구(MLS) 로스앤젤레스FC(LAFC) 출처: 게티이미지 코리아 1992년 7월 강원도(현 강원특별자치도) 춘천에서 태어난 손흥민은 동북고 1학년이던 2008…",
        "category": "시사·상식",
        "source": {
          "id": "5gU3XZbbzbKZlVGdi59MJ9",
          "name": "시사상식사전"
        },
        "contentType": "skb",
        "videoDuration": null,
        "thumbnailUrl": "https://terms-post-phinf.pstatic.net/MjAyMDAxMDJfMjUw/MDAxNTc3OTQ0NjM3ODU0.08PASHarCyEZuAVA1mc9f9W5s5xvaWPV4ATy7qvvbnUg.FNGIb8UaVq1kMFJIvxUTneGxyiu96ghbpabQZq4aqCQg.JPEG/GettyImages-1192509902.jpg",
        "likeCount": 0
      },
      {
        "rank": 2,
        "id": "4rtsrNLyga3BIJxBkJ44bB",
        "title": "헬륨가스 축구공이면 나도 손흥민?",
        "url": "https://terms.naver.com/%EA%B3%BC%ED%95%99-%EC%9D%BC%EB%B0%98/%ED%97%AC%EB%A5%A8%EA%B0%80%EC%8A%A4-%EC%B6%95%EA%B5%AC%EA%B3%B5%EC%9D%B4%EB%A9%B4-%EB%82%98%EB%8F%84-%EC%86%90%ED%9D%A5%EB%AF%BC-4rtsrNLyga3BIJxBkJ44bB",
        "otherTitles": [],
        "summary": "축구왕이 되고 싶은 유튜브 크리에이터 빅민, 축구공을 바르게 차는 방법을 배워보지만 결과는.... 그렇다면 공이 가볍다면 축구왕이 될 수 있을까? 축구공에 헬륨가스와 부탄가스를 넣어보고, 또 탱탱볼에 헬륨을 넣어 공을 차보는데, 과연 그 결과는 어떨까?",
        "category": "과학 일반",
        "source": {
          "id": "4pdlskv4trtBw0ob1WQyz1",
          "name": "핫클립 - YTN사이언스"
        },
        "contentType": "long_form_video",
        "videoDuration": "4:03",
        "thumbnailUrl": "https://nterms-phinf.pstatic.net/MjAyNjA3MjBfMTcg/MDAxNzg0NTQwODAzMDU5.Qzt1NRs3qsv7CeAb4eNEJxo6NabT0MLtgSnFFEBFCf8g.CoDc2V_y0-yjS7xqdy5Q36g3vuTw4IXqeBabOx2DrRkg.JPEG/a8c51aae-3b0b-11ea-9d93-28b4484d5a8e_03.jpg",
        "likeCount": 0
      },
      {
        "rank": 3,
        "id": "0n8y60E3CSXG0QxZFG8I58",
        "title": "푸스카스상",
        "url": "https://terms.naver.com/%EC%8B%9C%EC%82%AC-%EC%83%81%EC%8B%9D/%ED%91%B8%EC%8A%A4%EC%B9%B4%EC%8A%A4%EC%83%81-0n8y60E3CSXG0QxZFG8I58",
        "otherTitles": [],
        "summary": "전년도 11월부터 당해 10월까지 전 세계 축구경기에서 나온 골 중 가장 멋진 골에 수여하는 상으로, '더 베스트 FIFA 풋볼 어워즈'의 시상 부문 중 하나이다. 우리나라에서는 2020년 12월 손흥민 선수가 한국 선수로는 최초로 수상한 바 있다. 외국어 표기 FIFA Puskás Award(영어) 국제축구협회(FIFA)가 2009년부터 제정해 시상하고 있는 상으로, 전년도 11월부터 당해 10월까지 전 세계 축구경기에서 나온 골 중 가장 멋진 골에 수여하는 상이다. 푸스카스상은 전 세계 FIFA 회원국 감독·주장 등의 투표를 통해 그해 활약한 축구 선수에게 수여…",
        "category": "시사·상식",
        "source": {
          "id": "5gU3XZbbzbKZlVGdi59MJ9",
          "name": "시사상식사전"
        },
        "contentType": "skb",
        "videoDuration": null,
        "thumbnailUrl": null,
        "likeCount": 0
      }
    ],
    "hasMore": true
  },
  "meta": {
    "requestId": "req_naver_search_encyclopedia",
    "creditsCharged": 1,
    "version": "v1"
  }
}
```

### Machine-readable error codes

When an error JSON body is returned, it may include one of these `error.code` values (derived from the OpenAPI schemas for this operation; additional codes may exist at runtime):

- `bad_request`

## Error handling & retries

Interpret HTTP status codes using the descriptions below. Do not assume a JSON body unless the OpenAPI schema defines one for that status.

- **400**: Invalid request **Retry:** Fix the request; retrying the same invalid payload will not help.
- **401**: Missing or invalid API key **Retry:** Fix the API key first; retrying without changes will not help.
- **402**: Insufficient credits **Retry:** Do not retry without resolving billing/credits (retrying the same request will not help).
- **500**: Unexpected or billing error
- **502**: Lookup could not be completed. **Retry:** May be transient; a few retries with backoff are reasonable.
- **503**: Service temporarily unavailable; safe to retry with backoff. **Retry:** Usually safe to retry with exponential backoff and jitter.

### Suggested client defaults

- Send the API key using the `x-api-key` header on every request.
- On `503` (and sometimes `502`), retry with backoff; cap retries and surface a clear error to the user.
- On `402`, surface an actionable billing message rather than blind retries.

## Examples

### TypeScript SDK

```typescript
import { SocialFetchClient } from "@socialfetch/sdk";

const client = new SocialFetchClient({
  apiKey: process.env.SOCIALFETCH_API_KEY!,
});

const result = await client.naver.searchEncyclopedia({
  query: "손흥민",
});

if (!result.ok) {
  console.error(result.error);
} else {
  console.log(result.value.data);
}
```

### Node.js

```javascript
const response = await fetch(
  "https://api.socialfetch.dev/v1/naver/search/encyclopedia?query=손흥민",
  {
    headers: {
      "x-api-key": "YOUR_API_KEY"
    }
  }
);

const data = await response.json();
console.log(data);
```

### cURL

```bash
curl "https://api.socialfetch.dev/v1/naver/search/encyclopedia?query=손흥민" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

response = requests.get(
    "https://api.socialfetch.dev/v1/naver/search/encyclopedia?query=손흥민",
    headers={"x-api-key": "YOUR_API_KEY"},
)
data = response.json()
print(data)
```