Google Search Parameters (2024 Guide)
Tags: google, parameters, serp, webdev
Published: 2024-04-23 02:25:21

The Google Search URL parameters are important to understand whether you are maximizing the conversion rate in your ad groups and optimizing your cost per click(CPC) rates in Google Analytics for your ad campaigns, improving your SEO(Search Engine Optimization) metrics for your e-commerce business, or collecting data for your social media project. Using custom parameters for your search will affect the Search Engine Result Page (SERP) data significantly in your favor. [SerpApi](https://serpapi.com) unlocks the power of SERP data to you with minimal effort, the fastest response times, and in the most complete form.

[Register to claim free credits](https://serpapi.com/users/sign_up)

In this blog post, we will explore some of the Google search parameters with their corresponding attributions in [SerpApi Documentation](https://serpapi.com/search-api). You can head to [SerpApi Playground](https://serpapi.com/playground) to test all of the information you will read below.

### What are Google Search parameters?

Google Search parameters are like special codes you can add to the web address (URL) when you search on Google. They help you control and customize your search results. For example, you can use them to specify the language or location for your search.

Here's how they work: When you type a search query into Google, it creates a URL with your search terms. You can then add parameters to this URL using an ampersand (&) followed by the parameter name and value. These parameters, often called "params" for short, tell Google how you want your search results to be customized.

For instance, if you want to search for "cats" in Spanish, you could add "hl=es" to the end of the URL. This tells Google to show results in Spanish. Once you've added all the parameters you want, you have your final URL ready for tailoring your tracking template. When you open this URL in your web browser, Google will show you search results based on the parameters you've specified.

## The q parameter

It represents the search query submitted to Google. For example, in "q=Coffee", "Cofee" is the query you're searching for. It can also be used with special commands for filtering specific file types, filtering keywords in URLs and bodies, etc. giving you more exact matches. Some of these advanced search operators include filetype, inurl, intitle, intext, inanchor, allinurl, allinanchor, allintitle, allintext. You can check out [Ultimate Guide to Google Search Operators]( https://serpapi.com/blog/ultimate-guide-to-google-search-operators-2023-guide/) for detailed, and up-to-date information on how to use Google search operators.

![q](https://gist.github.com/assets/73674035/34c3df2b-9e12-4d94-96d6-28701471e845)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-search-query-q)

The ‘oq‘ parameter of Google represents the query typed into the Google search box.

![oq](https://gist.github.com/assets/73674035/10b8ebdb-66ed-49c7-98de-634df44a951a)

## The hl parameter

It stands for a host language, it determines the language used for the search. There are different versions of the ‘hl‘ parameters you can pass to a Google Search. The two-letter version is for all languages supported by Google. For example "hl=en" searches in the English language. There are also two letters followed by a hyphen and two letters or three-digit versions representing dialects. Examples of this kind are "hl=en-gb" representing British English, or "hl=es-419" representing Latin American Spanish.

![hl](https://gist.github.com/assets/73674035/d7184c71-30ef-4c1d-b1c8-54c5265f4a4e)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-localization-hl)

## The gl parameter

It represents geolocation, which can be used to personalize search results based on the region. It is a two-letter country code. For example "gl=us" will serve results for the United States.

![gl](https://gist.github.com/assets/73674035/6fb764ff-f65e-41a4-b581-e24463e02a95)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-localization-gl)

## The lr parameter

It stands for language restriction, it's used to limit your search results to webpages in a specific language or languages. It is a two-letter language code proceeded by the word lang and an underscore. Multiple languages can be passed using a bar symbol. For example "lr=lang_en|lang_fr" will restrict the results to websites with only English and French languages.

![lr](https://gist.github.com/assets/73674035/3363f66b-360c-40e8-b0cc-20f1276e94a6)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-localization-lr)

## The cr parameter

It represents country restriction, it refines results based on preferred region. It is a two-letter uppercase country code proceeded by the word country. Multiple countries can be passed using a bar symbol. For example "cr=countryUS|countryFR" will restrict the results pages to the United States and France.

![cr](https://gist.github.com/assets/73674035/0544b1b7-360e-4e30-abf7-c8e068952df7)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-localization-cr)

## The tbs parameter

It stands for to be searched, it can be used for various purposes, for example, to filter results by a specific date or a date range (e.g., past week, past month). For example, "tbs=qdr:h" will serve only the results from the last hour.

![tbs](https://gist.github.com/assets/73674035/5f58a75f-5938-4cc9-8cc4-752aa66152a3)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-advanced-filters-tbs)

## The source parameter

It indicates the source of your search, such as the Google homepage or a referral from another website. For example "source=hp" means that the page was accessed through the homepage.

![source](https://gist.github.com/assets/73674035/300520e7-ac3a-4207-87a4-e264773b648f)

## The ei parameter

It possibly stands for engine identifier, a unique identifier assigned to each search, likely used for internal tracking by Google. Its decoded form consists of four numbers. The first two are a Unix timestamp and microseconds of that timestamp respectively. The last two are undisclosed and unknown.

![ei](https://gist.github.com/assets/73674035/bbfb31e1-7852-41e0-97c5-11b37eea04ad)

## The ved parameter

It is used for internal tracking of links and elements. Apart from the link itself, the element index and type can be gathered by decoding the ved value.

![ved](https://gist.github.com/assets/73674035/f21c446d-649c-4dd1-91b6-8acf8a81a01b)

[Open Source Repository for Decoding the ved values](https://github.com/serpapi/ved_decoder)

## The gs_lp parameter

Not much is disclosed about this parameter. It contains the search query and search client.

![gs_lp](https://gist.github.com/assets/73674035/6dce671b-1bc4-4d60-9523-afd6575e7c30)

## The iflsig parameter

This parameter isn't disclosed. It is speculated to be about internal redirects. Other assumptions include relations to parsing.

![iflsig](https://gist.github.com/assets/73674035/af689b09-5075-4b93-b5b7-5e26d56c2ed7)

## The ibp parameter

It is responsible for rendering elements differently than their usual format. For example, when used with the ludocid parameter (unique id for a Google Business listing) in a mobile view, "ibp=gwp;0,7&ludocid=1663467585083384531", the 'ibp' parameter can give full page views of the listing.

![ibp](https://gist.github.com/assets/73674035/dabf949d-a7c5-4a70-981d-531a782ac731)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-advanced-google-parameters-ibp)

## The kgmid parameter

The parameter is responsible for serving elements saved by Google including knowledge graph. It can override the ‘q‘ (query) parameter. For example "kgmid=/m/07gyp7" will get results for McDonald's with a knowledge graph regardless of the query parameter. The parameter is likely acting as a cached version of the Google advanced search parameters.

![kgmid](https://gist.github.com/assets/73674035/39be971b-46a0-46ca-a48c-c7af4d23d4b7)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-advanced-google-parameters-kgmid)

## The si parameter

It is used to serve knowledge graph tabs alongside other tasks. For example, in the example below, the 'si' parameter is responsible for serving the Google search results with the 'Music Groups' tab of the knowledge graph for Jimi Hendrix.

![si](https://gist.github.com/assets/73674035/e4618533-895c-4c3d-addf-c1babec54970)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-advanced-google-parameters-si)

## The sxsrf parameter

It is possibly an internal token for security. The 'sxsrf' consists of an encoded token probably for security purposes, and a unix timestamp.

![sxsrf](https://gist.github.com/assets/73674035/917a0c22-62bd-40e5-8d14-9d74530db415)

## The uule parameter

It is used to specify a location for a search. The 'uule' parameter has two types. The first type is an encoded form of the canonical name of a place in [Google Ads API Geo Targets](https://developers.google.com/google-ads/api/data/geotargets). The second type is an encoded form of the GPS coordinates alongside other data.

![uule](https://gist.github.com/assets/73674035/c555c0a6-d3a9-4de4-a480-58871d432d14)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-geographic-location-uule)

[A Blog Post about Different Types of UULE](https://serpapi.com/blog/gps-targeted-local-serp/)

## The sclient parameter

It stands for search client. For example "sclient=gws-wiz" means Google Web Search Wizard is used for the search.

![sclient](https://gist.github.com/assets/73674035/f2d589b4-5438-42ab-aae5-de3c749e096f)

## The tbm parameter

It stands for to be matched. This parameter specifies the type of content that the user is searching for, allowing Google to tailor the search results accordingly. For instance, "tbm=isch" indicates that the search is intended for image search, while "tbm=nws" directs Google to prioritize results from Google News. By utilizing this parameter, users can fine-tune their searches to precisely start finding pages, sites, or specific content types using Google's sophisticated algorithm. Additionally, users can specify whether they want to search within meta information, anchor text, or other elements through the appropriate parameters. This level of customization empowers users to efficiently navigate the vast expanse of information accessible through Google's search bar.

![tbm](https://gist.github.com/assets/73674035/c1ceb6e5-3fb4-4cbb-accb-8510ddd2f4e1)

[Reference in SerpApi Documentation](https://serpapi.com/search-api#api-parameters-search-type-tbm)

## Conclusion

I would like to thank the reader for their attention. I hope this writing could shed some light on how Google search parameters work. For more up-to-date information about webscraping, SERP data, and more related topics you may visit the [SerpApi Blog](https://serpapi.com/blog).