aym / google-ajax-apis

Automatically exported from code.google.com/p/google-ajax-apis
0 stars 0 forks source link

Search API is using "lr" parameter for the choosen country/market by default #555

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Make any search on Google.se where the SERP will be different if "pages 
written in.." is choosen or not. Eg. make a standard search for "trees" on 
Google.se.

Example:
http://www.google.se/#hl=sv&source=hp&q=trees&aq=f&aqi=g10&aql=&oq=&gs_rfai=&fp=
ed969f816131ddba

2. Make the same call from the API with "gl=se" but no "lr" parameter set, 
which should return the same SERP as the call on step 1 above.

Example:
http://ajax.googleapis.com/ajax/services/search/web?v=1.0&key=API-KEY&start=0&rs
z=8&q=trees&gl=se

3. The resultset for the call in step 2 will be the same as if the "lr" 
parameter was set to "lr=lang_sv" which is wrong. Step 1 and 2 should return 
the same SERP but they don't.

Conclusion, Search API seem to use "lr" parameter for the choosen country by 
default. 

Original issue reported on code.google.com by reinebec...@gmail.com on 23 Jan 2011 at 8:45