Apinoa Docs

Search

获取一页 Google 搜索结果,所有区块按页面顺序返回。

查看原始 .mdx
GET | POST /v1/google/search

参数可以用 GET 的查询字符串发送,也可以用 POST 的 JSON 请求体发送,两者等价。

请求

curl "https://gateway.apinoa.com/v1/google/search?q=best+running+shoes&country=US" \
  -H "x-api-key: $APINOA_API_KEY"

参数

参数类型必填说明
countryenumThe market, as an ISO 3166 country code. US GB CA AU DE FR IT AT JP KR
cursorstringThe previous page's cursor. Pass it alone for the next page.
deviceenumWhich page to read: the desktop (default) or the mobile one. desktop mobile
imagestringAn image URL: a reverse-image search instead of q (type=image).
langstringInterface language.
limitinteger 1–50Results wanted (default 10, at most 50). More than one page is charged per page.
qstringThe query, search operators included.
safeenumSafe search. on off
timeRangeenumOnly results from this past period. hour day week month year
typeenumWhat to search: web results (default), news, images, videos or image for a reverse-image search. web news images videos image

这些参数及所有响应类型也写在OpenAPI 文档中。

响应

在 data 中返回 ResultsPage。 真实响应的节选:数组只保留前几项,长文本已截断。

{
  "success": true,
  "data": {
    "engine": "google",
    "query": "best running shoes",
    "type": "web",
    "outcome": "results",
    "country": "US",
    "lang": "en",
    "device": "desktop",
    "page": 1,
    "items": [
      {
        "type": "organic",
        "url": "https://believeintherun.com/shoe-reviews/best-road-running-shoes-of-2025/",
        "title": "Best Road Running Shoes of 2025 | Best in Gear Awards",
        "snippet": "Puma is at the top of their game in 2025, New Balance SC Elite v5 $250. Endorphin Elite 2 is the best Saucony…",
        "site": "Believe in the Run",
        "displayUrl": "https://believeintherun.com › shoe-reviews › best-road-...",
        "date": "2025-11-26",
        "position": 1,
        "rank": 1,
        "favicon": "data:image/png;base64,iVBORw0KGgoAAAANSU…"
      },
      {
        "type": "organic",
        "url": "https://www.reddit.com/r/runninglifestyle/comments/1kewifs/what_are_some_good_running_shoes/",
        "title": "What are some good running shoes. : r/runninglifestyle",
        "snippet": "I’m looking for good running shoes for training the one I got for training hurt my calf when running for long…",
        "site": "Reddit · r/runninglifestyle",
        "date": "2025-10-30",
        "ext": {
          "meta": "100+ comments · 1 year ago",
          "answers": "105 answers",
          "topAnswer": "As a lover of running and also a mailman as a full time job, I run and walk a lot. I think ..."
        },
        "position": 2,
        "rank": 2,
        "favicon": "data:image/png;base64,iVBORw0KGgoAAAANSU…"
      },
      {
        "type": "ad",
        "block": "bottom",
        "url": "https://www.vivobarefoot.com/",
        "title": "Run like nature intended | Barefoot Running Shoes",
        "snippet": "Vivobarefoot | Barefoot Running Shoes | Minimalist Footwear. Start your barefoot running journey...",
        "advertiser": "Vivobarefoot",
        "displayUrl": "https://www.vivobarefoot.com › barefoot › running",
        "sitelinks": [
          {
            "url": "https://www.google.com/goto?url=CAEScgHrOzAVfvorgfPQaHxGHETTF2n_EjVLthnHv2LBWiwqWRLFkOn8KVE4ujEDC8dcllVsAnzpYB…",
            "title": "100 Day Trial."
          },
          {
            "url": "https://www.google.com/aclk?sa=L&ai=DChsSEwiws-DexeCXAxVaWEcBHRwMNWsYACICCAIQBBoCcXU&co=1&ase=2&gclid=EAIaIQob…",
            "title": "It's time to run slow"
          }
        ],
        "ext": {"notes": ["1M+ visits in past month"]},
        "rank": 5,
        "favicon": "data:image/png;base64,iVBORw0KGgoAAAANSU…"
      },
      {
        "type": "shopping",
        "title": "Popular products",
        "items": [
          {
            "title": "Men's Running Shoes Under Armour Velociti Distance",
            "price": "$90.28",
            "originalPrice": "$160",
            "merchant": "Under Armour",
            "moreStores": true,
            "rating": 4.9,
            "reviews": "53",
            "badge": "43% OFF",
            "delivery": "Free delivery",
            "thumbnail": "data:image/webp;base64,UklGRhgWAABXRUJQV…",
            "merchantIcon": "data:image/png;base64,iVBORw0KGgoAAAANSU…",
            "ids": {
              "cid": "17500536046254188743",
              "pid": "8929790825032956959",
              "gid": "18243703563634929685",
              "iid": "156849108901779669",
              "oid": "17925735183046230959"
            }
          },
          {
            "title": "Nike Men's Structure 26",
            "price": "$115.99",
            "originalPrice": "$145",
            "merchant": "DICK'S Sporting Goods",
            "moreStores": true,
            "rating": 4.5,
            "reviews": "811",
            "badge": "20% OFF",
            "thumbnail": "data:image/webp;base64,UklGRmgGAABXRUJQV…",
            "merchantIcon": "data:image/png;base64,iVBORw0KGgoAAAANSU…",
            "ids": {
              "cid": "7761143186705950565",
              "pid": "9947796076762022400",
              "gid": "4433750102634774197",
              "iid": "12620312263696104752",
              "oid": "10698345940566205523"
            }
          }
        ],
        "rank": 6
      },
      {
        "type": "relatedSearches",
        "queries": ["Best running shoes 2024", "Best running shoes 2025 men"],
        "rank": 13
      }
    ],
    "cursor": "S8w7EMQm4UtS8e0wFEps0p0dftmlh_7Qty-oISXNcMRP5-4x7b847hfRplS84UdBLtmel3vQ5d1CRIDI9xss64bXrUStYrI1VxX1KatMsAD8or…",
    "fetchedAt": "2026-10-30T01:03:05.291Z"
  }
}

错误

状态代码含义
400INVALID_CURSOR该 cursor 不是本操作返回的。请不带它重新开始。
400INVALID_PARAMS参数缺失、未知、超出范围,或该引擎不接受。消息中会指出是哪一个。
401UNAUTHORIZED缺少 x-api-key 请求头,或密钥已吊销或未知。
402INSUFFICIENT_BALANCE余额不足以支付本次调用。请在控制台充值。
429MARKETPLACE_SATURATED并发调用过多。请等待 Retry-After 秒后重试。
502UPSTREAM_ERROR引擎返回了无法使用的内容。请退避后重试。
503SERVICE_UNAVAILABLE临时故障。请退避后重试。

全部错误代码见 Errors。失败的调用不计费。

价格

价格 每次调用 $0.0012,每多一次调用加 $0.0012——最多再加 4 次,合计最多 $0.006。标价;单日调用超过 1,000 次后单价下调。

说明

  • 用 image URL 加 type=image 代替 q,即可以图搜图。
  • 当 Google 显示 AI 概览时,它是一个 aiOverview 项,内含与 AI Answers API 相同的 Answer。
  • limit 超过一页时会继续读取后续页面,每页 1 个单位。

本页内容