Google Images API
The images are fetched by batch of 100 images per search. In order to retrieve the first 300 images, 3 searches would be needed. As an example, to get the first 300 images for the search "Apple":
To build your owntbs
parameter, you can use the regular Google Images and copy the value of the field tbs
from the url:
- 1. https://serpapi.com/playground?q=Apple&tbm=isch&ijn=0
- 2. https://serpapi.com/playground?q=Apple&tbm=isch&ijn=1
- 3. https://serpapi.com/playground?q=Apple&tbm=isch&ijn=2
If you are interested in reverse image search - head to reverse image section. To scrape Google Images results with SerpApi, create a search with these parameters:
API Parameters
API Examples
JSON structure overview
{
...
"shopping_results": [
{
"position": "Integer - Item position",
"title": "String - Item title",
"price": "String - Item price",
"extracted_price": "Float - Item price as a float",
"link": "String - Link to the Google item page",
"source": "String - Product source name",
"thumbnail": "String - Base64 data or URL"
}
],
"images_results": [
{
"position": "Integer - Image index",
"thumbnail": "String - Google Thumbnail URL (cache)",
"original": "String - Original Image URL (full resolution)",
"original_width": "Integer - Original Image width",
"original_height": "Integer - Original Image height",
"title": "String - Short Image Description",
"link": "String - Link to the page providing the image",
"source": "String - Original Domain Name",
"is_product": "Boolean - Is the link to the page providing the image containing a product",
"in_stock": "Boolean - Is product in stock"
},
],
"suggested_searches": [
{
"name": "String - suggested searches name",
"link": "String - Google search link original",
"chips": "String - Google chips parameter value",
"serpapi_link": "String - Link to SerpApi to fetch the suggested searches",
"thumbnail": "String - URL or base64 encoded image thumbnail displayed by Google"
},
]
...
}
Results for: Apple

{
...
"shopping_results": [
{
"position": 1,
"title": "iPhone 13 20W Apple Certified USB C Fast Charger for iPhone 13/13 mini/13 Pro/13 Pro Max 12/12 mini/12 Pro/12 Pro Max/11/11 Pro/11 Pro Max/XS/XR/X/8",
"price": "$19.99",
"extracted_price": 19.99,
"link": "https://www.amazon.com/iPhone-Certified-Charger-Type-C-Lightning/dp/B09B72F9CS?source=ps-sl-shoppingads-lpcontext&ref_=fplfs&psc=1&smid=A19ZDYPFLKPVN6",
"source": "Amazon.com",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/590ab482fe50c6b15ed2340f515bd16d7c5e1eaac42929415c00e38819a9da73.jpeg"
},
{
"position": 2,
"title": "Cosmic Crisp Apples - each",
"price": "$0.99",
"extracted_price": 0.99,
"link": "https://www.target.com/p/cosmic-crisp-apples-each/-/A-79154064?ref=tgt_adv_XS000000&AFID=google_pla_df_free_local&CPNG=Grocery&adgroup=266-5",
"source": "Target",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/590ab482fe50c6b15ed2340f515bd16d81f59f36ef6dc862122619485a63c0b5.jpeg"
},
{
"position": 3,
"title": "Apple Watch Ultra GPS + Cellular, 49mm Titanium Case with Orange Alpine Loop - Medium",
"price": "$799.00",
"extracted_price": 799,
"link": "https://www.apple.com/us/shop/go/product/MQEU3?cid=aos-us-seo-pla",
"source": "Apple",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/590ab482fe50c6b15ed2340f515bd16d1b73f2f1068ae5d9a00b3527ad9a9742.jpeg"
},
...
],
"images_results": [
{
"position": 1,
"title": "iPhone 13 20W Apple Certified USB C Fast Charger for iPhone 13/13 mini/13 Pro/13 Pro Max 12/12 mini/12 Pro/12 Pro Max/11/11 Pro/11 Pro Max/XS/XR/X/8",
"price": "$19.99",
"extracted_price": 19.99,
"link": "https://www.amazon.com/iPhone-Certified-Charger-Type-C-Lightning/dp/B09B72F9CS?source=ps-sl-shoppingads-lpcontext&ref_=fplfs&psc=1&smid=A19ZDYPFLKPVN6",
"source": "Amazon.com",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/590ab482fe50c6b15ed2340f515bd16d7c5e1eaac42929415c00e38819a9da73.jpeg"
},
{
"position": 2,
"title": "Cosmic Crisp Apples - each",
"price": "$0.99",
"extracted_price": 0.99,
"link": "https://www.target.com/p/cosmic-crisp-apples-each/-/A-79154064?ref=tgt_adv_XS000000&AFID=google_pla_df_free_local&CPNG=Grocery&adgroup=266-5",
"source": "Target",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/590ab482fe50c6b15ed2340f515bd16d81f59f36ef6dc862122619485a63c0b5.jpeg"
},
{
"position": 3,
"title": "Apple Watch Ultra GPS + Cellular, 49mm Titanium Case with Orange Alpine Loop - Medium",
"price": "$799.00",
"extracted_price": 799,
"link": "https://www.apple.com/us/shop/go/product/MQEU3?cid=aos-us-seo-pla",
"source": "Apple",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/590ab482fe50c6b15ed2340f515bd16d1b73f2f1068ae5d9a00b3527ad9a9742.jpeg"
},
...
],
"suggested_searches": [
{
"name": "logo",
"link": "https://www.google.com/search?q=Apple&tbm=isch&hl=en&gl=us&chips=q:apple,g_1:logo:Dj1NeBjkCX8%3D&sa=X&ved=2ahUKEwjXz6qD4tX6AhXHBFMKHZT9Dr0Q4lYoAHoECAEQIg",
"chips": "q:apple,g_1:logo:Dj1NeBjkCX8%3D",
"serpapi_link": "https://serpapi.com/search.json?chips=q%3Aapple%2Cg_1%3Alogo%3ADj1NeBjkCX8%253D&device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Apple&tbm=isch",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/fa86bce1a584e13848a8ecb6b83b3f9331c73329b2c30654a7e2a00b2fc672f2.png"
},
{
"name": "red",
"link": "https://www.google.com/search?q=Apple&tbm=isch&hl=en&gl=us&chips=q:apple,g_1:red:MbDAkgkowSA%3D&sa=X&ved=2ahUKEwjXz6qD4tX6AhXHBFMKHZT9Dr0Q4lYoAXoECAEQJA",
"chips": "q:apple,g_1:red:MbDAkgkowSA%3D",
"serpapi_link": "https://serpapi.com/search.json?chips=q%3Aapple%2Cg_1%3Ared%3AMbDAkgkowSA%253D&device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Apple&tbm=isch",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/fa86bce1a584e13848a8ecb6b83b3f930b9d76f5ded39d064029b644f76aaaa9.jpeg"
},
{
"name": "fruit",
"link": "https://www.google.com/search?q=Apple&tbm=isch&hl=en&gl=us&chips=q:apple,g_1:fruit:dgkQ3vyMPdk%3D&sa=X&ved=2ahUKEwjXz6qD4tX6AhXHBFMKHZT9Dr0Q4lYoAnoECAEQJg",
"chips": "q:apple,g_1:fruit:dgkQ3vyMPdk%3D",
"serpapi_link": "https://serpapi.com/search.json?chips=q%3Aapple%2Cg_1%3Afruit%3AdgkQ3vyMPdk%253D&device=desktop&engine=google&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Apple&tbm=isch",
"thumbnail": "https://serpapi.com/searches/63441dd77708443cd6096c65/images/fa86bce1a584e13848a8ecb6b83b3f93af9733ad7ecb7feb28686fd474fb2b34.jpeg"
},
...
],
...
}
Images Advanced Filter Search
Google Images provides a way to filter by size, image type, and more. This information is encoded in the tbs
parameter. E.g., tbs=itp:photos,isz:l
selects only large photos.
- • https://serpapi.com/playground?q=apple&tbm=isch&ijn=0&tbs=itp:photos,isz:l
- • https://serpapi.com/playground?q=apple&tbm=isch&ijn=1&tbs=itp:photos,isz:l
tbs
parameter, you can use the regular Google Images and copy the value of the field tbs
from the url:
- 1. Enable Tools dropdown on the right
- 2. Select the image filters you want to use
Your browser URL should contains somthing like: ...&tbs=itp:photos,isz:l...
. You can use this value directly on SerpApi.
