Google Images API
Google Images API
Our Google Images API allows you to scrape results from the Google Images page. The API is accessed through the following endpoint: /search?engine=google_images
.
Api Details
Endpoint
GET https://serpapi.abcproxy.com/search
Description Retrieve comprehensive user profile including
basic info
,account status
and optionalpermission sets
.
Request
HTTP Request
API Parameters
Search Query
q
string
Yes
Parameter defines the query you want to search. You can use anything that you would use in a regular Google Images search.
inurl:
, site:
, intitle:
.
Geographic Location
location
string
No
Parameter defines from where you want the search to originate. If several locations match the location requested, we'll pick the most popular one. Head to the /locations.json API if you need more precise control. The location and uule parameters can't be used together. It is recommended to specify location at the city level in order to simulate a real user’s search. If location is omitted, the search may take on the location of the proxy.
Korea
uule
string
No
Search using a Google-coded location.uule
and location
parameters can't be used together.
-
Localization
google_domain
string
No
-
gl
string
No
Amgola-ao
hl
string
No
Akan-ak
Advabced Filters
chips
string
No
Parameter enables to filter image search. It’s a string provided by Google as suggested search. Chips are provided under the section: suggested_searches
when ijn = 0
. Both chips
and serpapi_link
values are provided for each suggested search.
red apple
tbs
string
No
(to be searched) parameter defines advanced search parameters that aren’t possible in the regular query field.
-
imgar
string
No
Parameter defines the set aspect ratio of images.
s
- Square
t
- Tall
w
- Wide
xw
- Panoramic
-
safe
string
No
Parameter defines the level of filtering for adult content. It can be set to active
or off
, by default Google will blur explicit content.
active
or off
nfpr
boolean
No
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.
true
orfalse
filter
boolean
No
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.
true
orfalse
Pagination
ijn
int
No
Parameter defines the page number for Google Images. There are 100 images per page. This parameter is equivalent to start (offset) = ijn * 100.
2
Serpapi Parameters
engine
string
Yes
Set parameter to google_images
to use the Google Images API engine.
google_images
no_cache
boolean
No
Parameter will force SerpApi to fetch the Google Images results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month. It can be set to false
(default) to allow results from the cache, or true
to disallow results from the cache. no_cache and async parameters should not be used together.
true
orfalse
api_key
string
Yes
Parameter defines the SerpApi private key to use.
YOUR_API_KEY
Response
Success 200
Response Body
Response Fields
search_metadata
object
Contains timing
and status information
search_parameters
object
Contains query parameters
and search context
image_results
object []
Main image search results area
related_searches
object []
After similar search results
SuggestedSearch
object []
Suggested search content
Error Responses
Common Errors
200
400
API Key can not be empty
200
401
Param error
200
402
API Key error
200
403
Insufficient Balance
200
404
Deduction failed
200
405
Failed to record usage count
200
406
Unsupported engine
200
407
Network error
200
408
File not found
200
409
Limit param error
200
410
Build url error
200
411
Failed to QueryRecentRecord
200
412
Failed to find json
200
413
Get html error
200
414
HTML is empty
200
429
Too many request
Error Example
Last updated