# Serp

> A Google web search results page: organic results, ads, the AI overview, People also ask, related searches and the knowledge panel.

Canonical page: https://okdata.online/docs/objects/serp/

The same shape on every platform. A field a platform does not have is null, and meta.unavailable says why. Use fields= to keep only what you need.

| Field | Type | Description |
|---|---|---|
| `query` | string | 요청한 검색 조건. |
| `page` | integer | 현재 페이지 번호(1부터). |
| `total_results` | integer \| null | Google's own estimate of how many results there are. |
| `organic` | SerpResult[] | Organic results, in page order (usually up to 10). |
| `ads` | SerpAd[] | Paid results on the page; empty when Google shows none. |
| `ai_overview` | string \| null | The AI overview's text, where Google shows one with the page; null when it has none or loads it separately. |
| `related_questions` | string[] | "People also ask" questions. |
| `related_searches` | string[] | "Related searches" at the foot of the page. |
| `knowledge_panel` | KnowledgePanel \| null | The knowledge panel, when the query names an entity Google knows; null otherwise. |
| `ext` | object | 플랫폼별 추가 필드. view=full일 때만 반환됩니다. |

### SerpResult

| Field | Type | Description |
|---|---|---|
| `rank` | integer | 목록 내 순위(1부터). |
| `title` | string | 제목. |
| `url` | string | 페이지. |
| `displayed_url` | string \| null | The address as Google prints it under the title. |
| `source` | string \| null | 사이트 이름(Google 표시 그대로). |
| `snippet` | string \| null | Google이 제목 아래 표시하는 텍스트. |
| `date` | string \| null | The date Google prints before the snippet, as it shows it ("3 days ago"); null when there is none. |

### SerpAd

| Field | Type | Description |
|---|---|---|
| `rank` | integer | 목록 내 순위(1부터). |
| `position` | string | 자연 검색 결과의 위 또는 아래. |
| `title` | string | 광고 헤드라인. |
| `url` | string | 광고 랜딩 페이지. |
| `displayed_url` | string \| null | 광고에 표시되는 주소. |
| `snippet` | string \| null | 광고 문구. |

### KnowledgePanel

| Field | Type | Description |
|---|---|---|
| `title` | string | 개체. |
| `type` | string \| null | 설명(Google 표기 그대로). |
| `description` | string \| null | 패널 설명. |
| `website` | string \| null | 해당 개체의 자체 웹사이트(Google이 제공하는 경우). |
| `image_url` | string \| null | 패널 이미지. |

## Endpoints that return a Serp

- [Google 웹 검색](https://okdata.online/apis/google/search/) (`google.search`): $0.01 per call
- [Google 동영상 검색](https://okdata.online/apis/google/videos/search/) (`google.videos.search`): $0.008 per call
- [Google Scholar 검색](https://okdata.online/apis/google/scholar/search/) (`google.scholar.search`): $0.008 per call
- [Google Patents 검색](https://okdata.online/apis/google/patents/search/) (`google.patents.search`): $0.008 per call

## Fields by view

Each view includes the fields of the views above it. `view=compact` is the smallest; `full` adds platform extras under `ext`.

- compact: `query`, `page`, `total_results`, `organic`, `ads`, `related_questions`, `related_searches`, `knowledge_panel`
- standard: `ai_overview`
- full: `ext`
