Google Images is a search engine feature that helps users find visual content, such as photographs, illustrations, and graphics, from across the web. It’s one of the most widely used tools for locating images online, offering results from billions of indexed web pages.
Decodo’s Google Images scraper is a dedicated API designed to simplify the data-gathering process from Google Images. It handles all the complexities, such as rotating proxies, bypassing CAPTCHAs, and parsing the data into a structured format. This means you don't have to worry about technical challenges or extensive coding.
- The domain where the image is hosted;
- A direct link to the image;
- The destination URL that the image links to;
- The image’s position in the result page;
- The image’s global position across all pages;
- The page title or snippet associated with the image.
- Image search scraping. Retrieve image metadata and links directly from Google Images.
- Keyword-based targeting. Customize search queries with any keyword input.
- Device emulation. Simulate various browser and device behavior for realistic user-agent headers.
- Structured output. Get clean, ready-to-use results in JSON and CSV formats for easy integration and analysis.
- Rotating proxy support. Avoid CAPTCHAs, IP bans, and rate limits by routing requests through residential proxies.
- Geo-localized results. Choose from 195+ locations worldwide, including countries, cities, and US states and ZIP codes, for highly localized search results.
This script works best with a proxy service. We recommend using Decodo’s residential proxies, which provide access to 115M+ IPs across 195+ locations, offering fast response times and high success rates.
- Clone the repository. Run this command in your terminal to install and navigate to the project folder:
git clone https://github.com/Decodo/google-images-scraper.git
cd google-images-scraper
- Install Python. Make sure you have Python 3.8 or later installed. You can check by running:
python3 --version
- Install dependencies. This script uses only the Requests library. Install it if you haven’t already:
pip install requests
-
Insert proxy credentials. Open the "google-images-scraper.py" file and replace the authorization value in the headers dictionary with your base64-encoded username:password token for Decodo.
-
Customize your search query. Modify the payload dictionary to set your query, location, language, number of images, and other parameters.
-
Run the script. Execute the script in your terminal using this command:
python3 google-images-scraper.py
Example output when running the script directly in the terminal:
And here’s an example output when using the scraper through our dashboard interface:

Find a detailed tutorial on how this script for scraping Google Images works on Decodo’s blog.