![Google Translator avatar](https://images.apifyusercontent.com/Tr_U0oiy6RSyTyjbajh-ekI4VYu2wPrKNyGOydKYA_I/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9BaEFuQ2pSbEprU3IweTJMZi9tTExFRGZEcXNxa0tzbkMzbS1Hb29nbGVfVHJhbnNsYXRlX0ljb24ucG5n.webp)
Google Translator
Try for free
1 day trial then $6.00/month - No credit card required now
View all Actors![Google Translator](https://images.apifyusercontent.com/Tr_U0oiy6RSyTyjbajh-ekI4VYu2wPrKNyGOydKYA_I/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9BaEFuQ2pSbEprU3IweTJMZi9tTExFRGZEcXNxa0tzbkMzbS1Hb29nbGVfVHJhbnNsYXRlX0ljb24ucG5n.webp)
![Google Translator](https://images.apifyusercontent.com/Tr_U0oiy6RSyTyjbajh-ekI4VYu2wPrKNyGOydKYA_I/rs:fill:250:250/aHR0cHM6Ly9hcGlmeS1pbWFnZS11cGxvYWRzLXByb2QuczMuYW1hem9uYXdzLmNvbS9BaEFuQ2pSbEprU3IweTJMZi9tTExFRGZEcXNxa0tzbkMzbS1Hb29nbGVfVHJhbnNsYXRlX0ljb24ucG5n.webp)
Google Translator
web.harvester/google-translator
Try for free
1 day trial then $6.00/month - No credit card required now
Translate any text to any of the supported languages using https://translate.google.com/
The code examples below show how to run the Actor and get its results. To run the code, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token, which you can find under Settings > Integrations in Apify Console. Learn more
1# Set API token
2API_TOKEN=<YOUR_API_TOKEN>
3
4# Prepare Actor input
5cat > input.json <<'EOF'
6{
7 "text": "I want to translate this text",
8 "sourceLanguage": "auto",
9 "targetLanguage": "es"
10}
11EOF
12
13# Run the Actor using an HTTP API
14# See the full API reference at https://docs.apify.com/api/v2
15curl "https://api.apify.com/v2/acts/web.harvester~google-translator/runs?token=$API_TOKEN" \
16 -X POST \
17 -d @input.json \
18 -H 'Content-Type: application/json'
Developer
Maintained by Community
Actor metrics
- 5 monthly users
- 4 stars
- 94.1% runs succeeded
- Created in Dec 2022
- Modified 8 months ago
Categories