# Google Search

Scrape Google Search results — organic links, snippets, titles — with country/language filters and search operators

**Pricing:** $1 / 1k pages

**Endpoint:** `POST /api/v1/agents/google/search/run`

**Auth:** `Authorization: Bearer mk_live_...`

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `queries` | string | Yes | A Google search query or full search URL. Supports operators like site:, OR, intitle:, etc. |
| `maxPages` | integer | No | Number of Google result pages to scrape (~10 organic results per page). Use 0 for all. |
| `startDate` | date | No | Earliest result date. Leave blank for no lower bound. |
| `endDate` | date | No | Latest result date. Leave blank for no upper bound. |
| `country` | string | No | Country to search from (uses google.<tld> domain). Defaults to US (google.com). |
| `searchLanguage` | string | No | Language of search results (e.g. only German pages). |
| `site` | string | No | Limit to a specific site (e.g. example.com). |
| `relatedToSite` | string | No | Find pages related to a specific site (e.g. example.com). Ignored if Site Filter is set. |
| `fileTypes` | array | No | Filter to specific file types (e.g. pdf, doc). |

## Example

```bash
curl -X POST https://api.mindcase.co/api/v1/agents/google/search/run \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"params":{"queries":"..."}}'
```

```python
import requests

resp = requests.post(
    "https://api.mindcase.co/api/v1/agents/google/search/run",
    headers={"Authorization": "Bearer mk_live_YOUR_API_KEY"},
    json={"params": {
    "queries": "..."
}},
)
data = resp.json()
```

## Get the results

`run` is async and returns a `job_id`. Poll until `status` is `completed`, then read the rows:

```bash
# 1) check status
curl https://api.mindcase.co/api/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/api/v1/jobs/JOB_ID/results \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"
```

Full API reference (auth, jobs, balance, endpoints): https://mindcase.co/skills.md

## Response columns

| Field | Display name | Type |
|-------|--------------|------|
| `rank` | Rank | number |
| `title` | Title | text |
| `link` | Link | url |
| `domain` | Domain | text |
| `source` | Source | text |
| `snippet` | Snippet | text |
| `publishedDate` | Published Date | text |
| `query` | Query | text |
| `searchCountry` | Search Country | text |
| `searchLanguage` | Search Language | text |
| `aiAnswer` | AI Answer | text |
| `aiAnswerSources` | AI Answer Sources | object_array |
| `relatedSearches` | Related Searches | object_array |
| `relatedQuestions` | Related Questions | object_array |
