Google Search

Search Google and get up to 25 organic results per request

Overview

Returns organic Google search results for a given query, with up to 25 results per request.

Base path: https://api.datacaiman.com/v1/google

Cost: 1 credit per call


GET /v1/google/search

Parameters

Name Type Required Description
query string Yes Search query
country string No 2-letter country code (default: us)
language string No 2-letter language code (default: en)
domain string No Google domain to search (default: google.com)
pageSize integer No Results per request, max 25 (default: 25)
pageToken string No nextPageToken returned by the preceding request

Response

{
  "hasNextPage": true,
  "nextPageToken": "NEXT_PAGE_TOKEN",
  "items": [
    {
      "position": 1,
      "title": "Example result",
      "url": "https://example.com",
      "snippet": "A brief description of the result..."
    }
  ]
}

Example

curl "https://api.datacaiman.com/v1/google/search?query=web+scraping&country=us&language=en" \
  -H "X-API-Key: dc_your_key_here"

Search in a specific country and language:

curl "https://api.datacaiman.com/v1/google/search?query=inmobiliaria&country=es&language=es&domain=google.es" \
  -H "X-API-Key: dc_your_key_here"

Fetch more results:

curl "https://api.datacaiman.com/v1/google/search?query=web+scraping&pageToken=NEXT_PAGE_TOKEN" \
  -H "X-API-Key: dc_your_key_here"