Google Images

SERP API Google Query Parameters

Configure GoogleImages queries using Thordata’s SERP API, including localization parameters, geotargeting, Time period,pagination, and "advanced parameter" output options.

chevron-rightq ,Search Query(Required)hashtag

Define the search query used for data crawling (default value: q=pizza). Any keywords in any language are supported.

Example Request: Example with q:pizza parameter

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_images" \
 -d "q=pizza" \
 -d "json=1"

Localization

chevron-rightgoogle_domain,Domain(Optional)hashtag

Defines the domain used for scraping. Default: google.com.

Modify this or refer to the Google Domains pagearrow-up-right for a full list of supported domains.

Example Request:

Example results for q : pizza ,google_domain: google.co.ao

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_images" \
 -d "q=pizza" \
 -d "google_domain=google.co.ao" \
 -d "json=1"
chevron-rightgl ,Country(Optional)hashtag

Specifies the country/region for localized search results (default: us). Uses a two-letter country code (e.g., us, ru, uk).

For supported codes, see Google’s Country Listarrow-up-right.

Example Request:

Example results for q : pizza,gl: ru

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_images" \
 -d "q=pizza" \
 -d "gl=ru" \
 -d "json=1"
chevron-righthl ,Language(Optional)hashtag

Sets the UI language for search results (default: en). Uses a two-letter language code (e.g., en, es, zh-CN).

Full list: Google Language Codesarrow-up-right.

Example Request:

Example results for q : pizza,hl: es

curl -X POST https://scraperapi.thordata.com/request \
 -H "Content-Type: application/x-www-form-urlencoded" \
 -H "Authorization: Bearer token" \
 -d "engine=google_images" \
 -d "q=pizza" \
 -d "json=1" \
 -d "hl=es"
chevron-rightcr ,Set Multiple Countries(Optional)hashtag

Restricts results to specific countries using | as a separator (e.g., countryFR|countryDE). Combine with gl for consistent UI/content language.

gl and cr can be combined, but the actual effect follows cr as the priority.

Example Request:

Example results for q : pizza,cr: countryFR|countryDE

Geotargeting

chevron-rightlocation ,Location(Optional)hashtag

Simulates searches from a precise location. Must be paired with uule. If omitted, the proxy’s location may be used.

Example Request:

Example results for q : pizza,location:India,uule:w+CAIQICIFSW5kaWE

chevron-rightuule ,Encoded Location(Optional)hashtag

Encodes the target location via Base64. Use with location.

Example Request:

Example results for q : pizza,location:India,uule:w+CAIQICIFSW5kaWE

Time period

chevron-rightperiod_unit ,Time Period Unit(Optional)hashtag

Parameter defines the time period unit to search for the recent images, e.g. from past minute, hour, day etc. Options: s - Second n - Minute h - Hour d - Day w - Week m - Month y - Year

Example Request:

Example results for q : pizza,period_unit:h

chevron-rightperiod_value ,period_value(Optional)hashtag

Parameter defines an optional time period value that can be used with period_unit to describe time periods like 15 seconds, 42 hours, 178 days etc. Default value: 1 Value range: 1..2147483647

Example Request:

Example results for q : pizza,period_value :178 day

chevron-rightstart_date,Start Date(Optional)hashtag

Sets the number of results per page (default: 20).

Example Request:

Example results for q : pizza,start_date:20250801

chevron-rightend_date ,End Date(Optional)hashtag

Parameter defines the end date of time period you want to limit the image search to. Format: YYYYMMDD Example: 20241231

Example Request:

Example results for q : pizza,end_date:20250801

Pagination

chevron-rightijn ,Page Number (images)(Optional)hashtag

Parameter defines the page number for Google Imagesarrow-up-right. There are 100 images per page. This parameter is equivalent to start (offset) = ijn * 100.

Example Request:

Example results for q : pizza,ijn:100

Advanced Filters

chevron-rightchipsImage search filter (alternative)(Optional)hashtag

Parameter enables to filter image search. It's a string provided by Google as suggested search, like: red apple. Chips are provided under the section: suggested_searches when ijn = 0. Both chips and serpapi_link values are provided for each suggested search.

Example Request:

Example results for q : pizza,chips:size

chevron-righttbsAdvanced Search Parameters(Optional)hashtag

(to be searched) parameter defines advanced search parameters that aren't possible in the regular query field.

Example Request:

Example results for q : pizza,tbs:sur:f

chevron-rightimgarAspect Ratio Filtering(Optional)hashtag

Parameter defines the set aspect ratio of images. Options: s - Square t - Tall w - Wide xw - Panoramic

Example Request:

Example results for q : pizza,imgar:s

chevron-rightimgszImage Size Filtering(Optional)hashtag

Parameter defines the size of images. Options: l - Large m - Medium i - Icon qsvga - Larger than 400×300 vga - Larger than 640×480 svga - Larger than 800×600 xga - Larger than 1024×768 2mp - Larger than 2 MP 4mp - Larger than 4 MP 6mp - Larger than 6 MP 8mp - Larger than 8 MP 10mp - Larger than 10 MP 12mp - Larger than 12 MP 15mp - Larger than 15 MP 20mp - Larger than 20 MP 40mp - Larger than 40 MP

Example Request:

Example results for q : pizza,imgsz:qsvga

chevron-rightimage_color Image Color Filtering(Optional)hashtag

Parameter defines the color of images. Options: bw - Black and white trans - Transparent red - Red orange - Orange yellow - Yellow green - Green teal - Teal blue - Blue purple - Purple pink - Pink white - White gray - Gray black - Black

Example Request:

Example results for q : pizza,image_color:animated

chevron-rightimage_typeImage Type Filtering(Optional)hashtag

Parameter defines the type of images. Options: face - Face photo - Photo clipart - Clip art lineart - Line drawing animated - Animated

Example Request:

Example results for q : pizza,image_type:face

chevron-rightlicensesUsage Rights Filterin(Optional)hashtag

Parameter defines the scope of licenses of images. Options: f - Free to use or share fc - Free to use or share, even commercially fm - Free to use, share or modify fmc - Free to use, share or modify, even commercially cl - Creative Commons licenses ol - Commercial and other licenses

Example Request:

Example results for q : pizza,licenses:f

chevron-rightsafeSafe(Optional)hashtag

Parameter defines the level of filtering for adult content. It can be set to active or off, by default Google will blur explicit content.

Example Request:

Example results for q : pizzasafe:active

chevron-rightnfprExclude Auto-corrected Results(Optional)hashtag

Parameter defines the exclusion of results from an auto-corrected query when the original query is spelled wrong. It can be set to 1 to exclude these results, or 0 to include them (default). Note that this parameter may not prevent Google from returning results for an auto-corrected query if no other results are available.

Example Request:

Example results for q : pizza,nfpr:1示例

chevron-rightfilterResults Filtering(Optional)hashtag

Parameter defines if the filters for 'Similar Results' and 'Omitted Results' are on or off. It can be set to 1 (default) to enable these filters, or 0 to disable these filters.

Example Request:

Example results for q : pizzafilter:1

For further assistance, contact us at [email protected].

Last updated