> **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/web/get>
- **Markdown (.mdx) URL:** <https://www.socialfetch.dev/docs/api/v1/naver/search/web/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 Naver web documents (https://www.socialfetch.dev/docs/api/v1/naver/search/web/get)

## Summary

Get the web documents Naver shows for a keyword on its main results page.

**Tags:** `Naver`

## HTTP

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

## Capability summary

- **SDK mapping:** `client.naver.searchWeb({ 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 web document results.
- **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 web document results.

### Field outline

- **data** (required) — type `object`. Endpoint-specific response payload.
  - **query** (required) — type `string`. The search words, as sent.
  - **documents** (required) — type `array`. Web documents, in Naver's order.
    - _items:_
      - **rank** (required) — type `integer`; minimum: 0. Position in the results, from 1.
      - **title** (required) — type `string`. Page title, highlight markup removed.
      - **url** (required) — type `string`. Page URL.
      - **snippet** (required) — type `string`; nullable. Text excerpt.
      - **siteName** (required) — type `string`; nullable. Site name Naver shows, e.g. `나무위키`.
      - **siteUrl** (required) — type `string`; nullable. Site home URL.
      - **displayUrl** (required) — type `string`; nullable. The breadcrumb Naver prints under the title, e.g. `namu.wiki › 손흥민`.
      - **faviconUrl** (required) — type `string`; nullable. Site icon.
      - **imageUrl** (required) — type `string`; nullable. Preview image, when Naver shows one.
      - **notice** (required) — type `string`; nullable. Naver's note on the result, e.g. that the site is user-edited.
- **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": "손흥민",
    "documents": [
      {
        "rank": 1,
        "title": "손흥민 - Instagram",
        "url": "https://www.instagram.com/hm_son7/",
        "snippet": "@hm_son7의 최신 포스트를 확인하세요.",
        "siteName": "Instagram",
        "siteUrl": "https://www.instagram.com/",
        "displayUrl": "www.instagram.com › hm_son7",
        "faviconUrl": null,
        "imageUrl": null,
        "notice": "robots.txt로 인해 정보를 수집할 수 없습니다."
      },
      {
        "rank": 2,
        "title": "손흥민 - 위키백과 한국어",
        "url": "https://ko.wikipedia.org/wiki/%EC%86%90%ED%9D%A5%EB%AF%BC",
        "snippet": "손흥민 (孫興慜, 1992년 7월 8일~)은 대한민국의 축구 선수로, 포지션은 공격수이다. 현재 미국 메이저 리그 사커의 로스앤젤레스 FC와 대한민국 축구 국가대표팀 소속으로 활동하고 있으며 대한민국 축구 국가대표팀의 주장을 맡고 있다. 2025년 기준 프리미어리그와 UEFA 챔피언스리그의 역대 아시아 선수 최다 득점자이며 구단에서의 업적을 바탕으로 역대 최고의 아시아 축구 선...",
        "siteName": "위키백과 한국어",
        "siteUrl": "https://ko.wikipedia.org/wiki/%EC%9C%84%ED%82%A4%EB%B0%B1%EA%B3%BC:%EB%8C%80%EB%AC%B8",
        "displayUrl": "ko.wikipedia.org › 손흥민",
        "faviconUrl": "https://ko.wikipedia.org/favicon.ico",
        "imageUrl": null,
        "notice": "위 사이트의 콘텐츠는 모두가 자유롭게 편집할 수 있으며, 네이버는 이 콘텐츠의 사실성을 보장할 수 없습니다."
      },
      {
        "rank": 3,
        "title": "Son Heung-Min",
        "url": "https://www.mlssoccer.com/players/son-heung-min/",
        "snippet": "Player Details ; Name : Son Heung-Min, Height : 6' 0\", Date of Birth : 7.8.1992 (34), Birthplace : Chuncheon, Gangwon, South Korea, National Team : South Korea, Position : Forward, Footedness : both, Roster Category : Senior, Player Category : Designated Player, International",
        "siteName": "mlssoccer",
        "siteUrl": "https://www.mlssoccer.com/",
        "displayUrl": "www.mlssoccer.com › son-heung-min",
        "faviconUrl": "https://images.mlssoccer.com/image/upload/assets/crest/MLS-Crest-FullColor.png",
        "imageUrl": "https://images.mlssoccer.com/image/private/t_editorial_squared_6_desktop_3x/f_png/mls/acxrghhjb3iomgvlismq.png",
        "notice": null
      }
    ]
  },
  "meta": {
    "requestId": "req_naver_search_web",
    "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.searchWeb({
  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/web?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/web?query=손흥민" \
  -H "x-api-key: YOUR_API_KEY"
```

### Python

```python
import requests

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