To help us discourage this behavior without impacting legitimate
developers, we're adding a new parameter to the RESTful interface,
userip. With this parameter, developers have the option of supplying
the IP address of the end-user on whose behalf they are making the API
request. Doing so will help us distinguish this legitimate server-
side traffic from the more abusive scraping in which there are no end-
users.
Use of this new parameter is *not* required. However, if it is not
included with server-side requests, those requests are more likely to
be interpreted and automatically blocked as abuse, especially in
situations where a server is sending a high volume of traffic to the
API. Additional safeguards you can take include setting setting a
valid HTTP referer (as required by our Terms of Use) and using an API
key (http://code.google.com/apis/ajaxsearch/signup.html). These
additional measures will help us contact you in case there are
problems with your website or application (sometimes a programming
error results in massive traffic, forcing us to block your access if
we are unable to contact you). In choosing to utilize this parameter,
please be sure that you're in compliance with any local laws,
including any laws relating to disclosure of personal information
being sent.
Check the documentation for usage of the new parameter:
http://code.google.com/apis/ajaxsearch/documentation/reference.html#_intro_fonje
And don't hesitate to send us your feedback in this group.
Thanks,
Adam Feldman
Product Manager
Google Developer Team
Would it be possible to update these samples to include this?
http://code.google.com/apis/ajaxsearch/documentation/#fonje_snippets
Even if it's commented out (if you feel that is necessary) but showing
it's preferred but not required as you stated in your post.
Cheers!
Vision Jinx
> Check the documentation for usage of the new parameter:http://code.google.com/apis/ajaxsearch/documentation/reference.html#_...
Happy coding,
Jeff
Just to be sure, I'm using the languageDetection API to detect (and
validate) the language of Word documents: to do so I'm extracting the
text and send several requests (using Flex/Flash) to the API and
compute the result. Using Firebug, I can see that now my requests are
blocked for a certain amount of time (from few ms to several seconds!)
before being "released". So I added an API key today to get around
this problem. Is it the correct way or am I missing something?
Thanks in advance,
Cyril
> Check the documentation for usage of the new parameter:http://code.google.com/apis/ajaxsearch/documentation/reference.html#_...
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
jrge...@gmail.com
If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
> --
> You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group.
> To post to this group, send email to google-ajax...@googlegroups.com.
> To unsubscribe from this group, send email to google-ajax-searc...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
>
Cyril
On Feb 16, 5:27 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> You'll probably also want to include the userip parameter.
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.com
Jeremy R. Geerdes
Effective website design & development
Des Moines, IA
For more information or a project quote:
http://jgeerdes.home.mchsi.com
If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church!
Can you tell me the referer that you're using with your API requests
and/or the IP address the requests are coming from? Feel free to
respond to me directly, and I'll investigate for you.
Thanks,
Adam
Thx
On Feb 18, 1:43 pm, Jeremy Geerdes <jrgeer...@gmail.com> wrote:
> Yeah, I didn't think about that when I posted that comment. Sorry!
>
> Jeremy R. Geerdes
> Effective website design & development
> Des Moines, IA
>
> For more information or a project quote:http://jgeerdes.home.mchsi.com
If you're using Flash, I believe your requests should be originating
with the end user - therefore, we would see their IP address, not
yours, which means you don't need to use the userip parameter and you
shouldn't run into any problems over this.
I can assure you that when requests are blocked due to suspected
abuse, they're blocked outright, with an error message returned,
rather than simply a reduction in the quality of service - so if
you're getting results, you're not blocked and any slowdown wouldn't
be related.
I hope this helps,
Adam
We have added a nice "Google Translate" button to our client which
will issue translation of all sentences in a document through ajax
calls from java (could be thousands of calls). I have recently run
into getting the translations banned due to possible abuse of the
service, which makes this feature a no-no for us. Is this really
violating anything? If so, do you have any plans of releasing some
costly company version where it's possible to translate more than
"Hello world" once each minute?
Thanks!
/R
Are you using the userip parameter in your server-side requests? If
so, please let me know the IP address of your server and/or the http
referer that you're including with your requests (feel free to respond
here or off thread if you prefer).
If you're making the requests client side, please post a URL to your
website.
Either way, I'm glad to investigate and help you resolve the problem.
Cheers,
Adam
------------------------------------------------------------------------------------------------------
The intent of the http referer requirement, as described in the
documentation, is to accurately identify your site/app. Inclusion of
a referer that points to more information (e.g. a download page) is
sufficient.
Also, you're correct that the userip parameter is designed for server-
side, not client-side, requests.
In the future, please ask your questions in the group so that everyone
can benefit from the answers :)
Cheers,
Adam
On Tue, Mar 23, 2010 at 1:37 PM, Hugo <hha...@gmail.com> wrote:
Adam, what is Google's position regarding API calls from native apps?
Specifically I am working on an iPhone/Android app that would make API
calls. Of course the call isn't originating from a web page so there
is no way that a technically accurate http referer header can be
provided (however a useful referer header could be added to the
request and pointing to a page describing API usage context & contact
for more info...). Is there a possible exception to the "accurate http
referer" rule in that context? or at least a looser interpretation?
As a side note, in that case the IP seen by google would be the IP of
the client, I assume that would make the use of the userip parameter
irrelevant?
Thanks!