What is the OAuth scope for the Google Translation API?
Question: Surely someone else is using the API, I've looked and searched, I cannot seem
to find the correct value to place for the scope parameter when
authenticating:

I've looked at all these scope lists, nothing, tried the OAuth 2.0 playground,
translation is not there.

[oauth playground v1](http://googlecodesamples.com/oauth_playground/)

[oauth playground v2](https://developers.google.com/oauthplayground/)

[oath supported
scopes](https://developers.google.com/gdata/articles/oauth#TokenScope)

[auth scopes](https://developers.google.com/gdata/faq#AuthScopes)

Any clues welcomed, thank you.

Error message:

    
    
    Error: invalid_request
    
    Missing required parameter: scope
    
    Learn more
    Request Details
    

**Update**

User Ezra explained that OAuth2 authentication is not needed for the
Translation API.

I got down this road by this path:

I was trying to make the sample code here work:

[translation api sample code](http://code.google.com/p/google-api-python-
client/source/browse/samples/translate/main.py)

And didn't have the apiclient.discovery module

    
    
    from apiclient.discovery import build
    

I went off looking for that which landed me [here to this quick-start
configurator](https://developers.google.com/api-client-
library/python/start/installation) which gave me an autogenerated translation
api project [here](https://google-api-client-
libraries.appspot.com/quickstart/c/gen?api=translate&language=python&language_variant=stable&platform=appengine&version=v2):

This starter project which is supposed to be tailored for Translation API
includes a whole bunch of OAuth configuration and so I wound up asking the
question because of the error mentioned here

    
    
     exception calling translation api: <HttpError 400 when requesting    https://www.googleapis.com/language/translate/v2?q=zebra&source=en&alt=json&target=fr&key=MYSECRETKEYWENTHERE returned "Bad Request">
    

The code I'm using to make said call which errors out in this way is:

    
    
       service = build('translate', 'v2',
            developerKey='MYSECRETKEYWENTHERE')
    result = service.translations().list(
      source='en',
      target=lang,
      q='zebra'
    ).execute()
    

If I make the same call directly that the error complains about, it works ok

    
    
    https://www.googleapis.com/language/translate/v2?key=MYSECRETKEYWENTHERE&q=zebra&target=fr&alt=json&source=en
    

**Updated Again**

Okay, I removed all the OAuth code from the sample project and then ran it
again and then finally noticed that I had a typo in my secret key... donk

Thanks for the answers!

.

Thank you


Answer: According to [Google's
documentation](https://developers.google.com/gdata/faq#AuthScopes), you have
to look at the documentation for your specific API.

Update as per [this Google Group
question](https://groups.google.com/forum/?fromgroups=#!topic/google-ajax-
search-api/oVTXDbTKhF8):

"The Translate API (both v1 and v2) is an unauthenticated API, so you don't
need to use OAuth with it. Instead, for v2, you should use an API key, which
you can get here: <http://code.google.com/apis/console>"

