-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Wrong endpoint. Use https://api.deepl.com For Deepl PRO auth key #8
Comments
Hi @ibelous, thank you for reporting your problem. |
Sorry no offense, but I don't see how this response addressed the problem. The API he/she made a request to was that of a deepl account or did you make a typo in your response to the issue? |
Hi @MystiqueMo, this is a fair question to ask, the naming of the different account types can be confusing. DeepL has two main account types: DeepL Pro (for our other platforms) and DeepL API (for our API). DeepL API accounts are further differentiated into two sub-types DeepL API Free and DeepL API Pro (this last one might lead to confusion). I figured out the original issue creator had a DeepL Pro account, rather than a DeepL API account. DeepL API accounts (both Free and Pro) include an authentication key for the API, and are supported by this client library, other account types are not. |
when i try to use the api i get this error {“message”:“Wrong endpoint. Use https://api.deepl.com/”} |
Hi @NaomiH0C, thanks for reporting your problem. Do you use an DeepL API Free or DeepL API Pro account? |
Okay, understood. Thanks for clarifying @daniel-jones-deepl. |
Hi,
When I try to use api-free key to translate text it works fine, but when I try to use Pro-key I get following error:
translator.translate_text('abc', target_lang='en-us').text
Translator calls v2 API and fails with this error. But when I tried to change api_call url from v2 to v1 it worked.
Is there any way to use my key with API v2 or change v2 call to v1 except for changing package source code?
I'm using python3.6.14 and requests==2.25.1
The text was updated successfully, but these errors were encountered: