Free Google Translate API using python
How can we use google translate API ?
You are in the right place for above question because we will explain with example .
Basically everyone know about the Google Translate because if someone doesn't know more than one language then google translate will be required for translate keyword or any language.
Suppose if you want to translate english to hindi with any keyword like Education then result will be शिक्षा in hindi and if you translate Facebook then result will be same as Facebook in hindi so some of translate will be same result. that's why we are using google translate for exact result.
Please follow the below steps for google translate api
1. Generate key
Click on below link for generate api key
Google Translate API KeyOnce you entered on Google Translate API page then you will see the complete details of API . please find the below screenshot for your reference .
Here you will see the three highlighted content in red color
1. type of request, 2. Rapid api key, 3. log in or sign up1. Type of request basically is multiple request type where you can select the request type like I select as python.
2. Rapid api key basically is API key which will be use for Google Translate api and once you sign in or sign up completed successfully then the API KEY will be generated automatically.
3. log in or sign up should be complete for showing api key.
Once you have login successfully then you will see the auto generated api key as you can see in the below screenshot with highlighted. Please copy generated api key for use in later.
Example of Google Translate API
In below example there are three parameters which you need to send with payload.
As you can see in below example we passed math value in q parameter and result is showing गणित so here you can see translate english to hindi and also you can choose any one language .
Result :
Response :{
"data": { "translations": [ { "translatedText": "गणित" } ] }
}
Also you can see the below Postman request for you reference
Hope you like it , please comment if you have any doubt .
How to setup free Google SMTP server
How to send email from gmail using python
Setup django project in pythonanywhere
How to upload file in S3 bucket in python
Free live cricket score API for python
0 Comments