# Google Images API

Extract Google Images details — URL, source, description, dimensions, and thumbnail — by providing a query and image count

**Pricing:** $1 / 1k results

**Endpoint:** `POST /v1/data/google/images/run`

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

## Parameters

| Parameter | Type | Required | Description |
|-----------|------|----------|-------------|
| `queries` | string | Yes | Image search query to run on Google Images. |
| `maxResults` | integer | No | Number of images to return. Use 0 for all (the full first page, ~300). |

## Example

```bash
curl -X POST https://api.mindcase.co/v1/data/google/images/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/v1/data/google/images/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/v1/jobs/JOB_ID \
  -H "Authorization: Bearer mk_live_YOUR_API_KEY"

# 2) when status == completed, fetch the rows
curl https://api.mindcase.co/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 |
|-------|--------------|------|
| `searchQuery` | Search Query | text |
| `title` | Title | text |
| `imageUrl` | Image URL | url |
| `sourcePageUrl` | Source Page URL | url |
| `sourceDomain` | Source Domain | text |
| `imageWidth` | Image Width | number |
| `imageHeight` | Image Height | number |
| `orientation` | Orientation | text |
| `megapixels` | Megapixels | number |
| `imageType` | Image Type | text |
| `thumbnailUrl` | Thumbnail URL | url |
