Google Light Search API
Our Google Light Search API allows you to scrape results from the Google Search page with lightning-fast speeds. The Google Light Search engine contains all the most critical data, but without the extra-rich results you usually find on a regular Google Search page. This allows for faster response times compared to our regular Google Search API.
The API is accessed through the following endpoint: /search?engine=google_light
.
You can query: https://serpapi.com/search?engine=google_light&q=coffee
utilizing a GET
request. Head to the playground for a live and interactive demo.
API Parameters
Search Query
q
Required
Parameter defines the query you want to search. You can use anything that you would use in a regular Google search. e.g. inurl:
, site:
, intitle:
. We also support advanced search query parameters such as as_dt and as_eq. See the full list of supported advanced search query parameters.
Geographic Location
location
Optional
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.
Localization
google_domain
Optional
Parameter defines the Google domain to use. It defaults to google.com
. Head to the Google domains page for a full list of supported Google domains.
gl
Optional
Parameter defines the country to use for the Google search. It's a two-letter country code. (e.g., us
for the United States, uk
for United Kingdom, or fr
for France). Head to the Google countries page for a full list of supported Google countries.
hl
Optional
Parameter defines the language to use for the Google search. It's a two-letter language code. (e.g., en
for English, es
for Spanish, or fr
for French). Head to the Google languages page for a full list of supported Google languages.
lr
Optional
Parameter defines one or multiple languages to limit the search to. It uses lang_{two-letter language code}
to specify languages and |
as a delimiter. (e.g., lang_fr|lang_de
will only search French and German pages). Head to the Google lr languages page for a full list of supported languages.
Advanced Filters
safe
Optional
Parameter defines the level of filtering for adult content. It can be set to active
or off
, by default Google will blur explicit content.
nfpr
Optional
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.
Pagination
Serpapi Parameters
device
Optional
Parameter defines the device to use to get the results. It can be set to desktop
(default) to use a regular browser, tablet
to use a tablet browser (currently using iPads), or mobile
to use a mobile browser (currently using iPhones).
no_cache
Optional
Parameter will force SerpApi to fetch the Google Light 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.
async
Optional
Parameter defines the way you want to submit your search to SerpApi. It can be set to false
(default) to open an HTTP connection and keep it open until you got your search results, or true
to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.
API Results
JSON Results
JSON output includes structured data for Organic Results.
A search status is accessible through search_metadata.status
. It flows this way: Processing
-> Success
|| Error
. If a search has failed, error
will contain an error message. search_metadata.id
is the search ID inside SerpApi.
HTML Results
HTML output is useful to debug JSON results or support features not supported yet by SerpApi.
HTML output gives you the raw HTML results from Google.
API Examples
Example with q: Coffee
{
"search_metadata": {
"id": "6627baf4de983436908952c1",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/ed197bcfb82c6bff/6627baf4de983436908952c1.json",
"created_at": "2024-04-23 13:43:16 UTC",
"processed_at": "2024-04-23 13:43:17 UTC",
"google_light_url": "https://www.google.com/search?q=Coffee&oq=Coffee&uule=w+CAIQICIaQXVzdGluLFRleGFzLFVuaXRlZCBTdGF0ZXM&hl=en&gl=us&sourceid=chrome&ie=UTF-8&gbv=1",
"raw_html_file": "https://serpapi.com/searches/ed197bcfb82c6bff/6627baf4de983436908952c1.html",
"total_time_taken": 0.8
},
"search_parameters": {
"engine": "google_light",
"q": "Coffee",
"location_requested": "Austin, Texas, United States",
"location_used": "Austin,Texas,United States",
"google_domain": "google.com",
"hl": "en",
"gl": "us",
"device": "desktop"
},
"search_information": {
"query_displayed": "Coffee",
"organic_results_state": "Results for exact spelling"
},
"organic_results": [
{
"position": 1,
"title": "Coffee - Wikipedia",
"link": "https://en.wikipedia.org/wiki/Coffee",
"displayed_link": "en.wikipedia.org › wiki › Coffee",
"snippet": "Coffee is a beverage brewed from roasted coffee beans. Darkly colored, bitter, and slightly acidic, coffee has a stimulating effect on humans, primarily due ...",
"sitelinks": {
"inline": [
{
"title": "History",
"link": "https://en.wikipedia.org/wiki/History_of_coffee"
},
{
"title": "Coffee bean",
"link": "https://en.wikipedia.org/wiki/Coffee_bean"
},
{
"title": "Coffee production",
"link": "https://en.wikipedia.org/wiki/Coffee_production"
},
{
"title": "Coffee preparation",
"link": "https://en.wikipedia.org/wiki/Coffee_preparation"
}
]
}
},
{
"position": 2,
"title": "Coffee | Origin, Types, Uses, History, & Facts | Britannica",
"link": "https://www.britannica.com/topic/coffee",
"displayed_link": "www.britannica.com › Entertainment & Pop Culture › Food",
"snippet": "Coffee, beverage brewed from the roasted and ground seeds of the tropical evergreen coffee plant of African origin. Coffee is one of the ...",
"date": "Apr 15, 2024"
},
{
"position": 3,
"title": "Starbucks Coffee Company",
"link": "https://www.starbucks.com/",
"displayed_link": "www.starbucks.com",
"snippet": "More than just great coffee. Explore the menu, sign up for Starbucks® Rewards, manage your gift card and more."
},
{
"position": 4,
"title": "What is Coffee? - National Coffee Association",
"link": "https://www.ncausa.org/About-Coffee/What-is-Coffee",
"displayed_link": "www.ncausa.org › About Coffee",
"snippet": "Coffee traces its origin to a genus of plants known as Coffea. Within the genus there are over 500 genera and 6,000 species of tropical trees and shrubs."
},
{
"position": 5,
"title": "Blue Bottle Coffee | Fresh Roasted Specialty Coffee",
"link": "https://bluebottlecoffee.com/us/eng",
"displayed_link": "bluebottlecoffee.com › eng",
"snippet": "Blue Bottle Coffee is a specialty coffee roaster with cafes in LA, SF, NYC, & Japan. Shop our freshly roasted specialty coffee online & in-store."
},
{
"position": 6,
"title": "Counter Culture Coffee",
"link": "https://counterculturecoffee.com/",
"displayed_link": "counterculturecoffee.com",
"snippet": "Counter Culture Coffee is a specialty coffee roaster sourcing exceptional single-origin and specialty coffee. Fresh-roasted coffee to your doorstep.",
"sitelinks": {
"inline": [
{
"title": "Training Centers",
"link": "https://counterculturecoffee.com/pages/training-centers"
},
{
"title": "History",
"link": "https://counterculturecoffee.com/pages/history"
},
{
"title": "Subscriptions",
"link": "https://counterculturecoffee.com/pages/on-going-subscription"
},
{
"title": "Office Coffee Subscription",
"link": "https://counterculturecoffee.com/products/office-coffee-subscription"
}
]
}
},
{
"position": 7,
"title": "Coffee | The Nutrition Source | Harvard T.H. Chan School of Public ...",
"link": "https://www.hsph.harvard.edu/nutritionsource/food-features/coffee/",
"displayed_link": "www.hsph.harvard.edu › The Nutrition Source › Food Features",
"snippet": "Low to moderate doses of caffeine (50–300 mg) may cause increased alertness, energy, and ability to concentrate, while higher doses may have negative effects ..."
},
{
"position": 8,
"title": "Community Coffee | #1 Family-Owned Retail Coffee Brand in America",
"link": "https://www.communitycoffee.com/",
"displayed_link": "www.communitycoffee.com",
"snippet": "#1 Family-Owned Retail Coffee Brand in America*. *Source: IRI Unify, Community Coffee Custom database, US MULO, Based on 52 Week Data Through May 19, 2019.",
"sitelinks": {
"inline": [
{
"title": "Ground & Whole Bean Coffee",
"link": "https://www.communitycoffee.com/products/coffee"
},
{
"title": "Contact Us",
"link": "https://www.communitycoffee.com/contactus"
},
{
"title": "Careers",
"link": "https://www.communitycoffee.com/careers"
},
{
"title": "Join the Coffee Club",
"link": "https://www.communitycoffee.com/joincoffeeclub"
}
]
}
},
{
"position": 9,
"title": "High Brew Coffee – HighBrewCoffee - Austin",
"link": "https://www.highbrewcoffee.com/",
"displayed_link": "www.highbrewcoffee.com",
"snippet": "High Brew Coffee is Cold-Brew For Those Who Do, 100% natural, Direct Trade Certified, low in sugar and twice the caffeine.",
"extensions": [
"$28 to $44"
],
"sitelinks": {
"inline": [
{
"title": "Coffee",
"link": "https://www.highbrewcoffee.com/collections/coffee"
},
{
"title": "About Us",
"link": "https://www.highbrewcoffee.com/pages/our-process"
},
{
"title": "FAQ",
"link": "https://www.highbrewcoffee.com/pages/faq"
},
{
"title": "Espresso Smart Coffee",
"link": "https://www.highbrewcoffee.com/products/espresso-smart-coffee"
}
]
}
},
{
"position": 10,
"title": "The Coffee Bean & Tea Leaf | CBTL",
"link": "https://www.coffeebean.com/",
"displayed_link": "www.coffeebean.com",
"snippet": "Born and brewed in Southern California since 1963, The Coffee Bean & Tea Leaf® is passionate about connecting loyal customers with carefully handcrafted ...",
"sitelinks": {
"inline": [
{
"title": "Store locator",
"link": "https://www.coffeebean.com/store-locator"
},
{
"title": "Coffee",
"link": "https://www.coffeebean.com/cafe-menu/coffee"
},
{
"title": "Cafe Menu",
"link": "https://www.coffeebean.com/cafe-menu"
},
{
"title": "Coffee Sourcing",
"link": "https://www.coffeebean.com/our-story/coffee-sourcing"
}
]
}
}
],
"serpapi_pagination": {
"current": 1,
"next": "https://serpapi.com/search.json?device=desktop&engine=google_light&gl=us&google_domain=google.com&hl=en&location=Austin%2C+Texas%2C+United+States&q=Coffee&start=10"
}
}