Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

support for HL parameter

0 views
Skip to first unread message

beh...@netbasics.nl

unread,
Aug 23, 2006, 6:19:01 AM8/23/06
to
Hi,

Currently the Google API doesn't seem to support the 'hl' parameter.
This means half the world can't use the API properly!
Please let us know when this will be supported.

thanks.
Anne

Manfred

unread,
Aug 23, 2006, 7:48:22 AM8/23/06
to
Hi Anne,

> Currently the Google API doesn't seem to support the 'hl' parameter.

For the web search API this is the "lr" parameter, see
http://www.google.com/apis/reference.html#2_1

Manfred

beh...@netbasics.nl

unread,
Aug 23, 2006, 10:27:55 AM8/23/06
to

Manfred

unread,
Aug 23, 2006, 3:06:47 PM8/23/06
to

beh...@netbasics.nl wrote:
> When I set lr to "lang_nl" it doesn't give the same results as the ones
> I get when using www.google.nl
- Choosing a local datacenter (like www.google.nl) has no equivalent in
the
web search API.
- The hl parameter determines the "Interface Language" (defined in
"Preferences")
for display and messages to communicate with the user. No use for this
in an API.
Note: The default for hl depends on the datacenter.
- The "Search Language" (also defined in "Preferences") restricts the
search to
pages in that language. This is the "lr" parameter for the API.
Note: The API offers boolean expressions for it, so you can specify
lang_en|lang_nl (pages in English _or_ in Dutch).
- The site _query_ parameter let you choose the highest domain level
(site:.nl),
same for the API.
- In addition the API has the "restrict" parameter for choosing a
collection,
again with boolean operators (and, or, not, brackets).

Hope this gets you started,
Manfred

beh...@netbasics.nl

unread,
Aug 24, 2006, 3:44:19 AM8/24/06
to

Manfred wrote:
> beh...@netbasics.nl wrote:
> > When I set lr to "lang_nl" it doesn't give the same results as the ones
> > I get when using www.google.nl
> - Choosing a local datacenter (like www.google.nl) has no equivalent in
> the
> web search API.

I see. That's the problem. I need to determine the position in the
search results on www.google.nl of certain urls using certain keywords.


Are there plans for an option to select a data center in the API? That
would be of great value to non-Americans like me!

Anne

0 new messages