Redirected for correspondence when accessing google translate

I am trying to get data from Google Translate for my site. I use this sample to extract data from Google Translate:

http://translate.google.com/translate_a/t?client=t&text=find&hl=en&sl=en&tl=fr 

but now it redirects me to:

 http://ipv4.google.com/sorry 

This has worked great for me the past two years, but the problem came up last night. What causes this, and what can I do about it?

+7
php google-translate
source share
2 answers

Judging by the parameters in your URL, this is another link that should work: https://translate.google.co.uk/#en/fr/find

The setting seems to be https://translate.google.co.uk/# {source language} / {translate into language} / {text to translate}

However, I must point out that google translate scrambling is against TOS, they have api here: https://cloud.google.com/translate/docs

Unfortunately, it costs about $ 2 per thousand characters translated.

+1
source share

A free alternative that might be more suitable for you is Google Website Translator . Follow the instructions to get a snippet of code to add to your site to implement the translator tool.

+1
source share

All Articles