The docs are a bit confusing on this one. The Translate API v1 - which I suspect you're using - utilizes the url to generate API keys. The documentation says that you need to register for one, but the API key is technically not required. What IS required is a valid HTTP_REFERER header. In the case of a Chrome extension or any other non-web application, I would recommend posting a webpage somewhere (e.g., free hosting service, blog, etc.) that includes a basic description of your application and contact information for you, the developer, so that Google can contact you if necessary.
The Translate API v2 requires an API key, but it is not generated based on the url of your application. Rather, it is generated for the particular application via the API Console, which is available at http://code.google.com/apis/console . Jeremy R. Geerdes Generally Cool Guy Des Moines, IA For more information or a project quote: [email protected] If you're in the Des Moines, IA, area, check out Debra Heights Wesleyan Church! On May 6, 2011, at 4:37 PM, Mike wrote: > Hi, > > My Chrome extension stopped working because Google Translate API now > requires API key. The key is restricted to a url that must be provided > to obtain a key. Comments for the generated key say: "This key is good > for all URLs in this directory:" <provided url>. > > Not clear, which Translate API key can I use in a Chrome extension > that is not linked to a particular url. The extension can reside on > any computer and can be applied to any webpage, i.e to any url. > > API key can be generated for http://* url. Does this represent the > case when Translate API can be used with any url? What about https://? > Can multiple keys be used with the same code? > > Thanks, > > Mike > > -- > You received this message because you are subscribed to the Google Groups > "Google AJAX APIs" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-ajax-search-api?hl=en. > -- You received this message because you are subscribed to the Google Groups "Google AJAX APIs" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-ajax-search-api?hl=en.
