---
title: "Search"
description: "Sogou 검색 결과 페이지 하나를 가져옵니다. 모든 블록이 페이지 순서대로 옵니다."
---

> Every apinoa docs page as markdown: https://apinoa.com/llms.txt (all in one file: https://apinoa.com/llms-full.txt; this API family in one file: https://apinoa.com/docs/serp/llms.txt)

```http
GET | POST /v1/sogou/search
```

파라미터는 `GET`의 쿼리 문자열로도, `POST`의 JSON 본문으로도 보낼 수 있습니다. 둘은 같습니다.

## 요청

```bash tab="cURL"
curl -G "https://gateway.apinoa.com/v1/sogou/search" \
  --data-urlencode "q=人工智能" \
  -H "x-api-key: $APINOA_API_KEY"
```

```js tab="JavaScript"
const params = new URLSearchParams({ q: "人工智能" });
const res = await fetch(`https://gateway.apinoa.com/v1/sogou/search?${params}`, {
  headers: { "x-api-key": process.env.APINOA_API_KEY },
});
const { success, data, error } = await res.json();
```

```python tab="Python"
import os

import requests

res = requests.get(
    "https://gateway.apinoa.com/v1/sogou/search",
    params={"q": "人工智能"},
    headers={"x-api-key": os.environ["APINOA_API_KEY"]},
)
body = res.json()
```

## 파라미터

| Parameter | Type | Required | Notes |
|---|---|---|---|
| `country` | enum |  | The market, as an ISO 3166 country code. `CN` |
| `cursor` | string |  | The previous page's `cursor`. Pass it alone for the next page. |
| `device` | enum |  | The page each tab is served as, and the only value it takes: mobile for web and news, desktop for images and videos. `desktop` `mobile` |
| `limit` | integer 1–100 |  | Results wanted (default one page: 7-10 on web, 10 news, 48 images; at most 100). More than one page is charged per page. |
| `q` | string |  | The query, search operators included. |
| `timeRange` | enum |  | Only results from this past period. `hour` `day` `week` `month` `year` |
| `type` | enum |  | What to search: web results (default), news, images or videos. `web` `news` `images` `videos` |

The same parameters, and every response type, are in the OpenAPI document: https://apinoa.com/openapi.json

## 응답

`data`에 [`ResultsPage`](/docs/api-reference/serp/response-schema#resultspage)를 돌려줍니다. 실제 응답을 줄인 것입니다. 배열은 앞쪽 항목만 남기고 긴 텍스트는 잘랐습니다.

```json
{
  "success": true,
  "data": {
    "engine": "sogou",
    "query": "人工智能",
    "type": "web",
    "outcome": "results",
    "country": "CN",
    "device": "mobile",
    "totalResults": 100000000,
    "page": 1,
    "items": [
      {
        "type": "ad",
        "block": "top",
        "url": "https://aistudy.baidu.com/site/wjzsorv8/b361addc-ae0f-4175-9c6c-5549fbbe4be4?q=%E7%BD%91%E…",
        "title": "免费ai大模型有哪些_零成本工具清单，按场景分类查",
        "snippet": "费用与使用门槛提前列明，官网入口可核对，选择前多对比少走弯路更安心",
        "advertiser": "百度知了爱学",
        "displayUrl": "aistudy.baidu.com",
        "ext": {
          "imageLabels": ["测试"],
          "logo": "https://pgdt.gtimg.cn/141/20204/snscosdownload/SZ/reserved/6ad0da310005e2c92977328b19fd011…",
          "button": "查看详情",
          "tags": ["官方"],
          "keywords": ["人工智能ai大模型"],
          "interest": "最近11小时前有人关注此内容",
          "interestCount": 510,
          "sublinks": [{"title": "人工智能制造"}],
          "testimonials": ["服务很周到，让我有更多时间享受生活！"]
        },
        "rank": 1,
        "thumbnail": "https://wxsnsencsvp.wxs.qq.com/141/20204/snscosdownload/SZ/reserved/6xykWLEnztKKZvntY76xvN…"
      },
      {
        "type": "ad",
        "block": "top",
        "url": "https://aistudy.baidu.com/site/wjzsorv8/b361addc-ae0f-4175-9c6c-5549fbbe4be4?q=%E7%B3%BB%E…",
        "title": "人工智能",
        "snippet": "人工智能",
        "advertiser": "百度知了爱学",
        "displayUrl": "aistudy.baidu.com",
        "ext": {
          "imageLabels": ["人工智能,数学"],
          "logo": "https://pgdt.gtimg.cn/141/20204/snscosdownload/SZ/reserved/6ad0da310005e2c92977328b19fd011…",
          "button": "查看详情",
          "tags": ["官方"],
          "keywords": ["人工智能ai系统"],
          "interest": "最近11小时前有人关注此内容",
          "interestCount": 248,
          "testimonials": ["每一次服务都让我感觉物超所值！"],
          "questions": ["AI人工智能软件如何选购?"]
        },
        "rank": 2,
        "thumbnail": "https://wxsnsencsvp.wxs.qq.com/141/20204/snscosdownload/SH/reserved/6xykWLEnztI4eFfyQP9ecv…"
      },
      {
        "type": "knowledgePanel",
        "title": "人工智能 对比",
        "subtitle": "本科 工学学士 四年",
        "facts": [{"label": "开设课程", "value": "高等数学 、 线性代数 、概率和数理统计、 认知心理学 、认知机器人、一门计算机语言（Java/C++/Python 之类)和算法。"}],
        "images": ["https://dlweb.sogoucdn.com/shicivideo/31ecb9d2643db678bf436c586e6a535c1651718648.jpg"],
        "ext": {
          "sections": [
            {
              "title": "开设院校",
              "url": "https://m.sogou.com/openapi/h5/gaokao/major/school?from=vr_zhuanye&major=%E4%BA%BA%E5%B7%A…"
            }
          ],
          "moreUrl": "https://m.sogou.com/openapi/h5/gaokao/major/related?from=vr_zhuanye&major=%E4%BA%BA%E5%B7%…"
        },
        "rank": 4
      },
      {
        "type": "relatedSearches",
        "queries": ["人工智能ai在线观看完整版"],
        "ext": {"placement": "middle"},
        "rank": 5,
        "title": "大家还在搜"
      }
    ],
    "cursor": "yJjoAIqJfHYhsL0toVa2iOz_e0XBPQzb5lV4UBcINkLysJnJGJlz_I2yQ1Z-6K0-c5FcCb0cXSlQPANCA_ipAPUyuy…",
    "fetchedAt": "2026-10-30T00:57:54.651Z"
  }
}
```

## 에러

| 상태 | 코드 | 의미 |
|---|---|---|
| 400 | `INVALID_CURSOR` | 이 오퍼레이션이 돌려준 `cursor`가 아닙니다. `cursor` 없이 처음부터 다시 호출하세요. |
| 400 | `INVALID_PARAMS` | 파라미터가 없거나, 알 수 없거나, 범위를 벗어났거나, 이 엔진이 받지 않는 값입니다. 메시지에 이름이 나옵니다. |
| 401 | `UNAUTHORIZED` | `x-api-key` 헤더가 없거나, 폐기되었거나 알 수 없는 키입니다. |
| 402 | `INSUFFICIENT_BALANCE` | 잔액이 이 호출 비용에 모자랍니다. 대시보드에서 충전하세요. |
| 429 | `MARKETPLACE_SATURATED` | 동시 호출이 너무 많습니다. `Retry-After` 초만큼 기다린 뒤 다시 시도하세요. |
| 502 | `UPSTREAM_ERROR` | 엔진이 쓸 수 없는 응답을 보냈습니다. 간격을 두고 다시 시도하세요. |
| 503 | `SERVICE_UNAVAILABLE` | 일시적인 장애입니다. 간격을 두고 다시 시도하세요. |

모든 코드는 [Errors](/docs/errors)에 있습니다. 실패한 호출은 과금되지 않습니다.

## 가격

**Price** $0.0012 per call, plus $0.0012 for each extra call it makes — at most 9 more, so $0.012 in total. [List price](https://apinoa.com/en/pricing); the rate steps down above 1,000 calls a day.

## 참고

- `device`는 탭마다 제공되는 페이지 하나만 받습니다. 웹과 뉴스는 `mobile`, 이미지와 동영상은 `desktop`입니다.
- `limit`이 한 페이지보다 크면 다음 페이지들도 읽으며, 페이지마다 1단위입니다.
