Google Translation Scraper avatar

Google Translation Scraper

Try for free

1 day trial then $5.00/month - No credit card required now

View all Actors
Google Translation Scraper

Google Translation Scraper

dev_bodex/google-translation-scraper
Try for free

1 day trial then $5.00/month - No credit card required now

This Google Translation Scraper Actor automates extracting translations for any input text from Google Translate. Built with Node.js and Puppeteer, it efficiently retrieves translations in multiple languages, providing structured data for use in language apps, research, or educational projects.

This Apify actor utilizes Google Translate to translate text between various languages. It's useful for scraping translations, automating multilingual content, and integrating translation capabilities into your workflows.

Features

  • Text Translation: Translate text from one language to another using Google Translate.
  • Multiple Language Support: Supports translations for a wide range of languages.
  • Automatic Language Detection: Detect the source language automatically when not provided.
  • Batch Translations: Translate multiple texts in one request.

Input

The actor accepts the following input parameters:

ParameterTypeDescription
sourceTextStringThe text you want to translate.
targetStringThe target language or language code (e.g., en for English, es for Spanish, fr for French).
sourceStringThe source language or language code (e.g., en for English, es for Spanish, fr for French).

Example Input

1{
2  "sourceText": "How are you",
3  "source": "en"
4  "target": "spanish",
5}

Output

The output is a JSON object containing the original text, the translated text, the source language, and other relevant data.

Example Output

1[{
2  "source": {
3    "language": "english",
4    "iso-code": "en",
5    "text": "How are you"
6  },
7  "target": {
8    "language": "spanish",
9    "iso-code": "es",
10    "text": [
11      "Cómo estás"
12    ]
13  }
14}]

#Usage

  • Deploy the Actor: Deploy this actor on Apify by uploading the source code and configuring the environment.
  • Run the Actor: You can run the actor with the Apify SDK or directly from the platform's console.
  • View the Output: The output will be available in the actor's execution results in JSON format.

Notes

Ensure the target and source provided is a valid language or language code (e.g., fr for French, de for German, en for English, es for Spanish).

Supported Languages

This actor supports all the languages available in Google Translate

Developer
Maintained by Community
Actor metrics
  • 1 monthly user
  • 1 star
  • 100.0% runs succeeded
  • Created in Oct 2024
  • Modified about 1 month ago