Image Search
The google_search
source is designed to retrieve Google Search results (SERPs). This sub-page specifically presents data related to Google Image Search. To explore other result types, read here: Web Search, News Search.
To scrape Google Image search, you must include the context:tbm
parameter with the value set to isch
.
Explore data dictionary for each Image SERP feature, offering a brief description, screenshot, parsed JSON code snippet, and a table defining each parsed field. Navigate through the details using the right-side navigation or scrolling down the page.
Query parameters
Parameter | Description | Default Value |
---|---|---|
source | Data source. More info. |
|
| Domain localization for Google. The full list of available domains can be found here. |
|
query | UTF-encoded keyword. | - |
| Starting page number. |
|
| Number of pages to retrieve. |
|
|
| - |
| The geographical location that the result should be adapted for. Using this parameter correctly is extremely important to get the right data. For more information, read about our suggested | - |
| Device type and browser. The full list can be found here. |
|
| Enables JavaScript rendering. More info. | |
| URL to your callback endpoint. More info. | - |
|
| - |
context: tbm | It stands for | - |
| Setting the | - |
|
|
|
| Safe search. Set to |
|
|
| - |
- required parameter
Google Advanced Search Operators
When scraping, you might find it useful to combine Google advanced search operators with your query. It enables you to customize the scope of the search, ensuring that the results are more relevant and focused. Explore these special commands here and here. See an example below.
Code examples
In the example below, we make a request to obtain Image search result pages for the search term adidas
on the google.nl
domain.
The example above uses the Realtime integration method. If you would like to use some other integration method in your query (e.g. Push-Pull or Proxy Endpoint), refer to the integration methods section.
Structured data
SERP Scraper API is capable of extracting either an HTML or JSON object that contains Google search results, offering structured data on various elements of the results page.
We only parse image search results for desktop searches.
Data dictionary
HTML example
JSON structure
The Google Image Search structured output includes fields like URL
, page
, results
, and others. The table below presents a detailed list of each SERP feature we parse, along with its description and data type. The table also includes some metadata.
The number of items and fields for a specific result type may vary depending on the search query.
Key (results.images) | Description | Type |
---|---|---|
| The URL of the Google search page. | string |
| A dictionary containing the results of the search. | array |
| A list of unpaid results with their respective details. | array |
| A list of details for the submitted search query. | object |
| A list of suggested searches displayed right below the original search query. | array |
| The status code of the parsing job. You can see the parser status codes described here. | integer |
| The timestamp when the scraping job was created. | timestamp |
| The timestamp when the scraping job was finished. | timestamp |
| Page number relative to the Google SERP pagination. | integer |
| The ID of the job associated with the scraping job. | string |
| The status code of the scraping job. You can see the scraper status codes described here. | integer |
In the following sections, parsed JSON code snippets are shortened where more than one item for the result type is available.
Organic
The Image Search organic
section shows unpaid listings in Google's Image Search results, organized by relevance through Google's algorithm. These results are presented to users seeking visual content and are displayed in a dedicated section distinct from other search result types.
Key (results.organic) | Description | Type |
---|---|---|
| A unique indicator denoting the image position in the list. | string |
| The URL to the site where the image is placed. | array |
| The URL of the image. | array |
| The title of the article where the image is placed. | object |
| The domain of the site containing the image result. | array |
| A unique indicator denoting the image position in the list. | integer |
Search information
search information
is a section that provides details about the search query. It includes information such as the original search term and, if applicable, any auto-corrections made by Google.
Key (results.search_information) | Description | Type |
---|---|---|
| The original search term. | string |
| The search term the search results are shown for. | array |
Suggested searches
The suggested_searches
(array) in Google Image Search provides a list of suggested search terms related to the original query. Users can explore these additional search options to refine or expand their image search.
Last updated