Skip to Content
Documentation

Search the web

Google Search API · 25 points per successful call

Product overview and demoAll Google API endpointsError codes

GET
/v1/google/web-search

Returns ranked web results, exactly per_page per response (up to 10) until the result set ends. Pagination continues while results remain — typically 100–250 per query — and stops with meta.pagination.next_page: null. Each result carries its absolute position, so ranking is stable across pages. Set gl (country) and hl (language) to localize results, e.g. gl=de&hl=de; without them, results use a default locale. Each locale is its own result set.

Authorization

bearerAuth
headerAuthorizationBearer <token>

Your API key, sent as a bearer token. In the console on this page you can leave it empty: signed in, calls run on your own plan; otherwise they run on a shared demo key after a quick human check.

Query Parameters

query*string

The search query.

Length1 <= length <= 256
page?integer

Page number, starting at 1.

Range1 <= value <= 50
Default1
per_page?integer

Results per page (1–10). Every page is full until the result set ends.

Range1 <= value <= 10
Default10
gl?string

Country to localize results for, as an ISO 3166-1 alpha-2 code (us, de, gb; case-insensitive).

hl?string

Language of the results, as a language code with an optional region (en, de, pt-BR, zh-TW; case-insensitive).

Response Body

Successful response

application/json
  1. response
meta*
data*
Example Request
curl -X GET 'https://api.endpointry.com/v1/google/web-search?query=best+crm+software&page=1&per_page=10&gl=de&hl=de'
Example Response
{
  "meta": {
    "request_id": "req_7729f93d3facf68ff83e5c50",
    "as_of": "2026-07-31T12:00:00.000Z",
    "cache": "MISS",
    "pagination": {
      "page": 1,
      "next_page": 2,
      "limit": 10,
      "returned": 10
    }
  },
  "data": {
    "results": [
      {
        "position": 1,
        "url": "https://www.salesforce.com/crm/best-crm/",
        "domain": "www.salesforce.com",
        "favicon_url": "https://www.google.com/s2/favicons?domain=www.salesforce.com&sz=64",
        "title": "Best CRM Software: Everything To Consider",
        "snippet": "Learn what to look for when comparing CRM platforms, from pipeline management to reporting and automation.",
        "published_at": null
      },
      {
        "position": 2,
        "url": "https://www.pipedrive.com/en/crm/compare/crm-tool",
        "domain": "www.pipedrive.com",
        "favicon_url": "https://www.google.com/s2/favicons?domain=www.pipedrive.com&sz=64",
        "title": "Compare CRM Tools",
        "snippet": "A side-by-side comparison of popular CRM tools for sales teams.",
        "published_at": "2026-01-27T00:00:00.000Z"
      }
    ]
  }
}