Google translate free API - RIP



oh google. fucking over people whenever they feel like it

what a honey badger
 
I haven't used the API, however it does seem to be easy to use translate without it,
Just send a request like this:
GET http://translate.google.com/translate_a/t?client=t&text=i%20don't%20need%20no%20API&hl=en&sl=auto&tl=es&multires=1&otf=2&ssel=0&tsel=3&uptl=es&alttl=en&sc=1 HTTP/1.1
Host: translate.google.com
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Referer: Google Translate
Where bold text is the text you want to translate, en is the language you translate from, and es is the language you translate to, and it returns the translated text.
Not the perfect solution, because of the limited length of the GET request, but I'm sure you can split up the text with whatever programming language you are using.
 
** Class: babelfish
** Purpose: Translate text using Altavista Babelfish
** Filename: babelfish.class.php
** Author: Vedanta Barooah

Used this for a project previously, dont know where I got it but it worked fine and was easy enough for a php novice like me to get to grips with.