Endpoints · 02/13
Images
Image results with full-size and thumbnail URLs and dimensions.
Endpoint
POSThttps://serp-api.ozymoz.com/imagesCredits per call1
Parameters
| Name | Description | Default |
|---|---|---|
qrequired | The search query. | — |
gl | Country to search from, as a two-letter code (us, tr, de…).Default: us | us |
hl | Interface language, as a language code (en, tr, de…).Default: en | en |
num | Number of results per page.Default: 10 | 10 |
page | Results page, starting at 1.Default: 1 | 1 |
tbs | Time filter: qdr:h (hour), qdr:d (day), qdr:w (week), qdr:m (month), qdr:y (year). | — |
Example request
curl -X POST 'https://serp-api.ozymoz.com/images' \
-H 'X-API-KEY: YOUR_API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"q": "galata tower at night",
"gl": "us",
"hl": "en"
}'Example response
Illustrative values in the real shape. Top-level keys: images.
response.json
{
"searchParameters": {
"type": "images",
"engine": "google",
"q": "galata tower at night",
"gl": "us",
"hl": "en"
},
"images": [
{
"title": "Galata Tower lit up at night",
"imageUrl": "https://images.example.com/galata-night.jpg",
"imageWidth": 1600,
"imageHeight": 1067,
"thumbnailUrl": "https://encrypted-tbn0.gstatic.com/images?q=tbn:…",
"thumbnailWidth": 275,
"thumbnailHeight": 183,
"source": "Example Travel",
"domain": "www.example-travel.com",
"link": "https://www.example-travel.com/istanbul/galata",
"position": 1
}
],
"credits": 1
}Good to know
Results come from Google Images; some sources only expose a smaller original.