SerpBase

Inicio rápido

Haz tu primera búsqueda de Google con la API en unos dos minutos. Necesitas una clave de API y una terminal; no hay nada que instalar.

1

Consigue una clave de API

Crea una cuenta: incluye 500 créditos gratis y no pide tarjeta. Abre Claves de API en el panel y crea una. Mantenla en privado: envíala solo en la cabecera X-API-Key, nunca en una URL ni en código del navegador.

API keys →
2

Envía una búsqueda

Los endpoints de búsqueda reciben un cuerpo JSON por POST. Este busca “coffee shops” en Google como lo haría alguien en EE. UU.:

BASH
curl -X POST 'https://api.serpbase.dev/google/search' \
  -H "Content-Type: application/json" \
  -H 'X-API-Key: YOUR_API_KEY' \
  --max-time 60 \
  -d '{"device":"mobile","gl":"us","hl":"en","q":"coffee shops"}'

¿Prefieres hacer clic? La misma solicitud funciona en el Playground, que rellena tu clave. Playground →

URL base: https://api.serpbase.dev

3

Lee el resultado

Recibes la página de resultados en JSON, un campo por cada bloque que mostró Google. Una respuesta real, abreviada:

Respuesta · real, abreviada
{
  "status": 0,
  "credits_charged": 1,
  "request_id": "r-4b27fe8a36d9ac303a5da7dd",
  "product_id": "google_web_search",
  "query": "coffee shops",
  "local_results": [
    {
      "address": "Denver, CO",
      "category": "Coffee shop",
      "hours": "Open",
      "position": 1,
      "rank": 1,
      "rating": "4.9",
      "reviews_count": "455",
      "title": "Coffeegraph"
    },
    {
      "address": "Sioux Falls, SD",
      "category": "Coffee shop",
      "hours": "Open",
      "position": 1,
      "rank": 2,
      "rating": "4.9",
      "reviews_count": "295",
      "title": "The Breaks Coffee Roasting Co."
    }
  ],
  "organic": [
    {
      "date": "Sep 17, 2026",
      "display_link": "www.discovertheburgh.com",
      "display_url": "www.discovertheburgh.com",
      "link": "https://www.discovertheburgh.com/pittsburgh-coffee-shops/",
      "position": 3,
      "published_at": "Sep 17, 2026",
      "rank": 1,
      "snippet": "🏨 Book Avenue in Garfield. Redhawk Coffee. Ghost Coffee Collab at Trace Brewing. Kaibur Coffee Kaibu…",
      "source_url": "https://www.google.com/goto?url=CAESdAHrOzAVQPT8-1-RxOq_G62WuAgUAmaFDk4SD6YsadPoLMH5lbvuR0WPu8BR2EKN…",
      "title": "48 Pittsburgh Coffee Shops to Grab a Delicious Brew",
      "url": "https://www.discovertheburgh.com/pittsburgh-coffee-shops/"
    }
  ],
  "page": 1,
  "people_also_ask": [
    {
      "position": 2,
      "question": "What are the top 10 coffee chains?"
    },
    {
      "position": 2,
      "question": "What are the main coffee shop chains?"
    }
  ],
  "people_also_search_for": [
    "Best coffee shops",
    "Coffee shops Orlando"
  ],
  "related_searches": [
    "Best coffee shops in Pittsburgh to study",
    "Coffee Shops near Monroeville PA"
  ],
  "search_type": "search"
}
status: 0
Éxito. Cualquier otro valor llega con un mensaje de error, y una búsqueda fallida no cuesta nada.
credits_charged
Lo que costó esta solicitud. Una búsqueda de Google cuesta 1 crédito.
request_id
Indícalo al contactar con soporte; encontramos la solicitud en segundos.
4

Siguientes pasos

Endpoints