Google Search API
Google Search API
/search
API endpoint allows you to scrape the results from Google search engine via our SerpApi service.
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
query parameter
coffee
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. If location
is omitted, the search may take on the location of the proxy.
Japan-Tokyo
uule
string
No
Search using a Google-coded location.uule
and location
parameters can't be used together.
-
Advanced Google Parameters
ludocid
string
No
Define the ID (CID) of the Google My Business list to crawl
-
lsig
string
No
-
kgmid
string
No
Define the ID of the Google Knowledge Graph list to crawl (KGMID),Searches using the kgmid parameter will return the results of the original encrypted search parameter. For some searches, kgmid may override all other parameters except the start and num parameters
-
si
string
No
Define cached search parameters for the Google search to be crawled
-
ibp
string
No
Responsible for rendering the layout and extension of certain elements
-
uds
string
No
Parameters used to filter the search. It is a string filter provided by Google. uds
values are provided in the filters section, and each filter provides uds
, q
, and serpapi_link
values.
-
Localization
google_domain
string
No
-
gl
string
No
Amgola-ao
hl
string
No
Akan-ak
cr
string
No
countryDE
lr
string
No
lang_fr
Advanced Filters
tbs
string
No
The (to be searched) parameter defines advanced search parameters that are not possible in regular query fields. (For example, advanced searches for patents, dates, news, videos, images, apps, or text content)
advanced searches for patents
safe
string
No
Parameter defines the filtering level for adult content
active
oroff
nfpr
boolean
No
This parameter defines the automatic correction of excluded results from the query when the original query is misspelled
true
orfalse
filter
boolean
No
The parameter defines whether the "Similar Results" and "Omit Results" filters are turned on or offtrue
orfalse
true
orfalse
Pagination
start
int
No
The start index of the search results, specifying the first match that should be included in the search results .Google Local Results only accepts multiples of 20
(e.g. 20
for the second page results, 40
for the third page results, etc.) as the start
value.
0
num
int
No
Limit the number of results Specifies the number of search results to be displayed in a SERP page. The use of num
may introduce latency, and/or prevent the inclusion of specialized result types. It is better to omit this parameter unless it is strictly necessary to increase the number of results per page.
Results are not guaranteed to have the number of results specified in num
10
Serpapi Parameters
engine
string
Yes
Set parameter to google
(default) to use the Google API engine.
google
no_cache
boolean
No
Parameter will force SerpApi to fetch the Google 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
ads
object []
Sponsorsearch
results
ai_overview
object
AI
response
albums
object []
Albums
also_ask
object []
Other
users'
questions
answer_box
object
Question
box
available_on
object []
Available
on playback service providers, usually appears when searching
for movies
buying_guide
object []
Buying
guide
cast
object []
Role
complementary_results
object []
Small introduction labels for people
– top right corner
discussions_and_forums
object []
Discussions
and forums
dmca_messages
object []
Copyright
notices
at the bottom
episode_guide
object []
Episode
guides
events_results
object []
Nearby
events
filters
object []
Filters
at the top of the webpage
find_results_on
object []
Search
results
on the website
grammar_check
object []
Syntax
check
message
hereto
object []
Related introductions
immersive_products
object []
Immersive
product
lists
inline_images
object []
Images
in search
results
jobs_results
object []
Job
search
related results
knowledge_graph
object []
Knowledge
graph
local_map
object []
Map
image
links
local_results
object []
Merchant
information
locations
menu_highlights
object []
Menu
highlights
movies
object []
Movie
-related
organic_results
object []
Common
data
in search
results
pagination
object
Pagination
perspectives
object []
Perspectives
places_sit
object []
About NFL
places_sites
object []
Recipes
results
– place names
players
object []
Athletes
popular_destinations
object []
Popular
destinations
product_sites
object []
Product
websites
questions_and_answers
object []
A set of questions
and corresponding answers
that address questions
about a particular topic
or area
recipes_results
object []
Recipes
results
refine_this_search
object []
Refine
this
search
– classifications at the top of the webpage
related_brands
object []
People
also buy
from
related_categories
object []
Related
categories
, appears when searching
for cars
– Explore
more
related_searches
object
omitempty
. If the field value is zero or a null reference, the corresponding key-value
pair
will not be created in JSON
scholarly_articles
object []
Scholarly
articles
search_information
object
Search
information
search_metadata
object
Contains timing
and status information
search_parameters
object
Merchant details
and location information
shopping_results
object []
Online
Shopping
shopping_results_ads
object []
Sponsored
ads
showtimes
object []
Showtimes
Results
, appears when searching
for currently screening movies
songs
object []
Songs
sports_results
object []
Sports
event
information
things_to_know
object []
What other
users
think
top_sights
object []
Top
news
top_stories
object []
Top
stories
total_results_count
integer
Total
search
results
count
tvShows
object []
TV
show
-related
twitter_results
object []
Twitter
results
url
string
The search
parameters
of the user
videos
object []
Videos
in search
results
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