Google query parameters
This list includes modifiers for many of the advanced search queries, such as date restrictions or appearance of a certain phrase in a page’s title, body, url or links. It also includes result modifiers, such as the one used for getting non-personalized search results. Other modifiers allow localization, from country down to latitude/longitude coordinates.
| Parameter | Description (Value) |
| Search modifiers | |
| q / as_q | the search query |
| as_epq | matches exact phrase, same as searchphrase surrounded by quotes in searchbox |
| as_oq | with at least one of the search terms, same as searchterms combined with OR in searchbox |
| as_eq | without these searchterms, same as searchterm prefixed with – in the searchbox |
| qdr / as_qdr | Date restriction, show results up to either 3 months old, 6 months old, or 1 year old (3m | 6m | y) |
| as_occt | query term occurs in (any | title | body | url | links) |
| as_filetype | specify filetype (pdf | ps | dwf | kml | kmz | xls | ppt | doc | rtf | swf) |
| as_ft | exclude or include solely files with filetype given in as_filetype (e | i) |
| sitesearch | the same as site: (URL with or without http://) |
| as_sitesearch | same as sitesearch, but shows site:URL in the search box, can be used together with as_dt |
| as_dt | (URL with or without http://) |
| as_rq | together with as_sitesearch shows you results from URL, or from all except that URL (i (only |
| as_lq | this URL)| e (except this URL)) |
| hl | find sites related to URL, same as related: in the search box (URL) |
| lr | find sites linking to URL, same as link: in the search box (URL) |
| ie | specifies the interface language |
| oe | language restrict |
| safe | input encoding |
| filter | safe search filtering (active (default)| off) |
| Result modifiers | |
| num | number of results (<0..100>) |
| newwindow | open results in new window (1) |
| pws | disable personalized web search (0) |
| adtest | allows testing of ads without registering an impression, url’s are not clickable (on) |
| Buttons | |
| btnG | normal search from webinterface |
| btnI | I’m feeling lucky search (I’m+Feeling+Lucky) |
| Localization | |
| gl | country, for instance “US” |
| gll | latitude&longitude |
| gr | region, for instance GB-ENG |
| gcs | city, to use this gr must be set to the same value |
| gpc | postal code, only works if gl is set to “US” |
| gm | US designated metropolitan areas |
Tagged with: google • query term • search modifiers








