Home  >  Q&A  >  body text

How to use Google Translate API for free in Reactjs

<p>I am building a new website using Reactjs and need to use API for translation Do you know any reliable free APIs? I used the Google Translate API for free a few years ago</p> <p>But I don’t think it’s free anymore? </p> <p>However, the number of words that need to be translated will not exceed 1,000 And it will only be used to translate from one language to another, so the traffic between languages ​​will not be huge</p>
P粉178894235P粉178894235452 days ago605

reply all(1)I'll reply

  • P粉743288436

    P粉7432884362023-08-17 00:49:14

    If it's just for a pet project, there are several libraries that can be recommended to bypass the limitations of google translate api.

    1. You can use a proxy server

    Please take a look at this library and read the documentation carefully, luckily I saw that the library is still under maintenance. I saw that this library uses a proxy server to achieve unlimited google translate.

    1. Use crawler tools to simulate using google translate

    Please check out this repository for examples of how to use the crawler tool to use the Google API without restrictions .

    This tool utilizes puppeeter, a very popular crawler tool, to access Google Translate through the browser, so you can use Google Translate without restrictions.

    reply
    0
  • Cancelreply