Translate texts and documents from the command line

Interact with translation REST API directly from the command line or Bash scripts without installing any software. Translate texts and documents to and from English, French, Chinese, Spanish, German, Italian, Russian, Arabic, Polish and other languages.

  • GroupDocs.Translation Cloud SDK for .NET
  • GroupDocs.Translation Cloud SDK for Java
  • GroupDocs.Translation Cloud SDK for Python
  • GroupDocs.Translation Cloud SDK for Android

GroupDocs.Translation offers real-time machine translation for texts, documents, images and resources. Powerful machine learning algorithms and sophisticated neural networks provide a quality close to that of a professional human translator, but much faster and more cost-effective. Running on a high-performance cloud server hosted by GroupDocs, it can translate PDF, Microsoft Office and OpenOffice documents, Markdown files, images and .NET resources into 46 European, Middle East and Asian languages (across 128 language pairs). The API not only translates text, but also accurately preserves metadata, structure, styles, and layout of documents.

The service provides a versatile and easy-to-use REST API, which can be accessed without installing any software. Just use cURL commands and combine them into scripts for complex tasks. You can also use third party REST API tools like Postman. This allows you to use GroupDocs.Translation on any platform with an internet connection, even those not yet covered by the SDK.

Advanced features of document translation REST API

Translates to and from 46 European, Middle East and Asian languages

Translates tables in Word documents and PowerPoint presentations

Translates headers and footers in documents

Translates footnotes and endnotes in Word documents

Translates image captions in Word documents

Translates text frames, charts and slides in PowerPoint presentations

Translates texts inside spreadsheet cells

Translates charts and pivot tables in Excel workbooks

Translates Markdown files preserving all common Markdown formatting

Translates files from URLs and public repositories

Converts results into different formats without additional software

API explorer based on Swagger collection

Any language, platform and storage service provider

GroupDocs.Translation is a REST API that can easily be integrated into any application written in any programming language capable of handling HTTP requests and responses. It natively supports all popular cloud storage services such as Google Cloud, Drive, DropBox and Amazon S3 to interact without any dependencies.

Quick start with Translation REST API

GroupDocs.Translation Cloud API comes with detailed developer references and live code examples for all major programming languages to start working with API features in no time. Simply create a free account at GroupDocs Cloud, get APP SID & Key information to communicate with GroupDocs Cloud API and you are ready to make an API request on any platform using cURL commands.

Translate text - cURL

  //Get your App SID, App Key and Storage Name at https://dashboard.groupdocs.cloud (free registration is required).
  // Getting token
  curl --location --reqest POST 'https://id.groupdocs.cloud/connect/token' \
      --header 'Content-Type: application/x-www-form-urlencoded' \
      --data-urlencode 'grant_type=client_credentials' \
      --data-urlencode 'client_id=CLIENT-ID-VALUE' \
      --data-urlencode 'client_secret=CLIENT-SECRET-VALUE'
  //response
  {
      "access_token": "eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...BUNNec2iRtStPW2Ywek4iJmYwMbWONQ",
      "expires_in": 3600,
      "token_type": "Bearer"
  }
  // Sending text for translation
  curl --location --request POST 'https://api.groupdocs.cloud/v2.0/translation/text' \
      --header 'Content-Type: application/json' \
      --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...UV1hLfgNCSQ4VKGCOA' \
      --data '{
          "sourceLanguage": "en",
          "targetLanguages": [
              "de"
          ],
          "texts": [
              "Hello, world! I can read this text in my language."
          ]
      }'
  //response
  {
      "status": 202,
      "message": "Starting translation",
      "id": "a4fc6c6e-81b0-43c8-b62b-b8bb99520ce9"
  }
  //getting translation
  curl --request GET --location 'https://api.groupdocs.cloud/v2.0/translation/text/a4fc6c6e-81b0-43c8-b62b-b8bb99520ce9' \
      --header 'Authorization: Bearer eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9...UV1hLfgNCSQ4VKGCOA'	
  //response
  {
      "status": 200,
      "message": "Text translated successfully",
      "translations": {
          "de": [
              "Hallo, Welt! Ich kann diesen Text in meiner Sprache lesen."
          ]
      }
  }	

English - Türkçe English - Nederlands English - Gaeilge English - Norsk (bokmål / riksmål) English - Việtnam English - Lietuvių English - Magyar English - 中文 English - ไทย / Phasa Thai English - 日本語 English - עברית English - Српски English - Polski English - Deutsch English - Русский English - Български English - فارسی English - 한국어 English - Português English - العربية English - Ελληνικά English - Italiano English - Latviešu English - Bahasa Indonesia English - Bahasa Melayu English - Azərbaycanca / آذربايجان English - Українська English - Slovenčina English - Dansk English - Español English - Hrvatski English - Română English - Suomi English - ქართული English - Svenska English - Česky English - বাংলা English - Français Русский - English Deutsch - Italiano Deutsch - English Deutsch - Français Deutsch - Polski Français - Deutsch Français - العربية Français - Italiano Français - English 中文 - English Español - English Español - العربية Italiano - English Italiano - Français Italiano - Deutsch العربية - Español العربية - English العربية - Türkçe العربية - Français Português - English Polski - English Polski - Deutsch Українська - English Việtnam - English Bahasa Indonesia - English हिन्दी - English Ελληνικά - English Nederlands - English Magyar - English Svenska - English Türkçe - English Türkçe - العربية 한국어 - English 日本語 - English Suomi - English Česky - English Gaeilge - English Slovenčina - English فارسی - English Azərbaycanca / آذربايجان - English עברית - English ไทย / Phasa Thai - English Română - English Bahasa Melayu - English Български - English বাংলা - English Norsk (bokmål / riksmål) - English Dansk - English Latviešu - English Lietuvių - English Hrvatski - English Српски - English

GroupDocs.Translation Cloud offers SDKs for popular programming languages and platforms:

  English
aa549fe