Google Search API

Run a Google web search and get the organic results (title, link, snippet, position) as clean JSON. Returns about 10 results per call - Google stopped honoring bulk result counts in September 2025, so a limit above 10 is accepted but returns no more than a page. Send page 2, 3, ... to walk further, or use google.search_100 for up to 100 ranked results in one call, which is cheaper past roughly 20 results.

USD 0.000500 / llamada correcta

ID público: search.google.web · Versión 1

Precios

USD 0.000500 / llamada correcta

Inicio rápido

Busca esta herramienta con tu clave API e inspecciona el provider y el endpoint devueltos antes de ejecutarla.

Configura GLOOP_API_BASE con la dirección de tu API y GLOOP_API_KEY con tu clave del servidor.

curl

curl --fail-with-body "${GLOOP_API_BASE%/}/v1/discover" \
  -H "Authorization: Bearer $GLOOP_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "limit": 5,
  "query": "Google Search"
}'

Python

import os, json, urllib.request

url = os.environ['GLOOP_API_BASE'].rstrip('/') + "/v1/discover"
headers = {'Authorization': 'Bearer ' + os.environ['GLOOP_API_KEY']}
headers['Content-Type'] = 'application/json'
data = "{\n  \"limit\": 5,\n  \"query\": \"Google Search\"\n}".encode('utf-8')
request = urllib.request.Request(url, data=data, headers=headers)
with urllib.request.urlopen(request) as response:
    print(json.load(response))

Node.js

const url = process.env.GLOOP_API_BASE.replace(/\/$/, '') + "/v1/discover";
const headers = { Authorization: `Bearer ${process.env.GLOOP_API_KEY}` };
headers['Content-Type'] = 'application/json';
const response = await fetch(url, { method: 'POST', headers, body: JSON.stringify({
  "limit": 5,
  "query": "Google Search"
}) });
if (!response.ok) throw new Error(`HTTP ${response.status}`);
console.log(await response.json());
Documentación de API de herramientas · POST /v1/inspect

Esquema de entrada

{
  "additionalProperties": false,
  "properties": {
    "autocorrect": {
      "description": "Toggle Google spelling autocorrect (default true). Set false to search the exact query without correction.",
      "type": "boolean"
    },
    "gl": {
      "description": "Two-letter country code for result localization (e.g. us, gb, de).",
      "type": "string"
    },
    "hl": {
      "description": "Two-letter interface and results language code (e.g. en, es, de).",
      "type": "string"
    },
    "limit": {
      "description": "Page size to ask for. Google returns about 10 organic results per page and stopped honoring larger counts in September 2025, so a limit above 10 still returns about 10. Some sources return their whole page of about 10 whatever limit says: a page is never trimmed after the call, so nextCursor always continues exactly where this response ended. To go deeper, send page (about 10 results per page, each billed as a request) or use google.search_100, which returns up to 100 ranked results in a single call for one flat charge and is cheaper past roughly 20 results. Price is flat per request.",
      "maximum": 100,
      "minimum": 1,
      "type": "integer"
    },
    "location": {
      "description": "Fine-grained location to localize results to, more specific than the country-level gl. Send it as an Active Canonical Name from Google's geo-target list: place, then each parent region, then country, with no space after each comma, e.g. 'New York,New York,United States', 'Austin,Texas,United States', 'London,England,United Kingdom'. Common variations are translated to that name when they point to exactly one place: spaces after commas, missing accents, a US state abbreviation ('Orlando, FL, United States'), or a skipped region ('Sydney, Australia'). A value that names no place, or more than one, is rejected rather than quietly searched from somewhere else.",
      "type": "string"
    },
    "page": {
      "description": "Which page of about 10 organic results to return, starting at 1. Send page 2, 3, ... to walk deeper; each page is billed as one request and any source can serve any page. Replaces cursor.",
      "minimum": 1,
      "type": "integer"
    },
    "query": {
      "description": "The Google search query.",
      "type": "string"
    },
    "timeframe": {
      "description": "Restrict results to a recent time window: 1h, 1d, 7d, 1y, or all. Default all (no time restriction).",
      "enum": [
        "1h",
        "1d",
        "7d",
        "1y",
        "all"
      ],
      "type": "string"
    }
  },
  "required": [
    "query"
  ],
  "title": "Google search input",
  "type": "object"
}

Esquema de salida

{
  "type": "object"
}

Herramientas de la misma categoría