Stichoza / google-translate-php

🔤 Free Google Translate API PHP Package. Translates totally free of charge.
MIT License
1.82k stars 383 forks source link

gtranslate api limit? #125

Closed gibigate closed 4 years ago

gibigate commented 4 years ago

The documentation says that there are limits and you need to register in google console. But in your documentation i cant find any words about it.

I think you should say detail about free limits in docs

frzsombor commented 4 years ago

The limitation is that Google watches the frequency of requests coming from a single IP address and if they suspect that the requests are automated based on their hight frequency, they will block the IP address where the requests are coming from, for a shorter or longer time which can vary from a few minutes to more than 12-24 hours. Unfortunately there is absolutely zero public information available on what are Google's rules for flagging IP addresses, what are the limits, how long they block IPs, etc as their abuse detection algorithm must be very complex and each case is different. You have to experiment with your usage and find out if you need proxies or not and if yes, how many. Also, there is always an easier, hassle-free way by paying for an API key usage at Google. Thats all we know.

gibigate commented 4 years ago

Does your library support google API? How i can add my credentials ?

frzsombor commented 4 years ago

This library is not using the official Google translate API, but trying to provide a free unofficial alternative to it. If you are planning to use Google's API, please check the official documentation on that.

gibigate commented 4 years ago

Thank you