> ## Documentation Index
> Fetch the complete documentation index at: https://docs.mindcase.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Google Images API

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

`POST /v1/data/google/images/run`

**Pricing:** $0.001 per result ($1.00 per 1,000).

## Request

Send the inputs under `params`. Only the keys below are accepted; any other key returns `422 invalid_params`.

**queries** `string` *required*

Image search query to run on Google Images.

**maxResults** `integer`

Number of images to return. Use 0 for all (the full first page, \~300).

## Example

```bash cURL theme={null}
curl -X POST "https://api.mindcase.co/v1/data/google/images/run?wait=true" \
  -H "Authorization: Bearer $MINDCASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "params": {
    "queries": "LeBron James"
  }
}'
```

```python Python theme={null}
import os, requests

r = requests.post(
    "https://api.mindcase.co/v1/data/google/images/run",
    params={"wait": "true"},
    headers={"Authorization": f"Bearer {os.environ['MINDCASE_API_KEY']}"},
    json={"params": {
    "queries": "LeBron James"
}},
)
job = r.json()
rows = job.get("data", [])  # if job["status"] == "running", poll /v1/jobs/{job_id}/results
```

```javascript Node.js theme={null}
const r = await fetch("https://api.mindcase.co/v1/data/google/images/run?wait=true", {
  method: "POST",
  headers: {
    Authorization: `Bearer ${process.env.MINDCASE_API_KEY}`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({ params: {
  "queries": "LeBron James"
} }),
});
const job = await r.json();
const rows = job.data ?? []; // if job.status === "running", poll /v1/jobs/{job_id}/results
```

## Response fields

Each row in `data` is one result, keyed by these fields.

| Field | Name | Type |
| - | - | - |
| `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 |
| `imageDimensions` | Image Dimensions | text |
| `thumbnailWidth` | Thumbnail Width | number |
| `thumbnailHeight` | Thumbnail Height | number |

## Example response

Abridged: long text and lists are shortened.

```json theme={null}
{
  "job_id": "7f3a1c2e-0b9d-4c55-9a51-3f2e8d1b6a40",
  "agent": "google/images",
  "status": "completed",
  "row_count": 1,
  "truncated": false,
  "data": [
    {
      "sourcePageUrl": "https://billionhands.com/en/item/nostos-marketing-sl-salamanca-6980fbe0081010bdbd6b4f10",
      "imageType": "JPG",
      "imageWidth": 1280,
      "thumbnailUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQZraMvmzl1bjvr2pP_pouOzkfEV6OOzgRGS4I59B94Dw&s=10",
      "orientation": "Landscape",
      "imageUrl": "https://res.cloudinary.com/billionhands/image/upload/v1770830347/items/rqzvgxnrphkaqvs3ayln.jpg",
      "megapixels": 0.92,
      "imageHeight": 720,
      "title": "Nostos Marketing SL (Salamanca): Info, Rankings & Votes | Billionhands",
      "sourceDomain": "billionhands.com"
    }
  ]
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.