jhessu / google-ajax-apis

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

Web search API: add charset restrictions #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Ajax Web Search API: Add language or/and charset restrictions. ex: retrieve
only spanish contents (spain, argentina, mexico, etc), or don't retrieve
pages of a certain charset... etc

Original issue reported on code.google.com by lisba...@gmail.com on 1 May 2008 at 6:19

GoogleCodeExporter commented 8 years ago

Original comment by internal...@gmail.com on 1 May 2008 at 6:33

GoogleCodeExporter commented 8 years ago

Original comment by jrgeer...@gmail.com on 4 Jun 2008 at 12:30

GoogleCodeExporter commented 8 years ago
But this is already supported, just not well documented, I had to gather 
details from
these pages:

http://code.google.com/apis/ajaxsearch/documentation/#fonje
http://code.google.com/apis/ajaxsearch/documentation/reference.html
http://www.google.com/coop/docs/cse/resultsxml.html

Basically you add "&lr=lang_XX" to your query, where XX is an ISO-639-1 code 
for the
language, e.g. lang_ja is Japanese.

Original comment by asheme...@gmail.com on 6 Jun 2008 at 2:23

GoogleCodeExporter commented 8 years ago
Thanks ashemedai

Original comment by internal...@gmail.com on 6 Jun 2008 at 5:34