Google Translator avatar
Google Translator

Pricing

$6.00/month + usage

Go to Store
Google Translator

Google Translator

Developed by

Web Harvester

Maintained by Community

Translate any text to any of the supported languages using https://translate.google.com/

0.0 (0)

Pricing

$6.00/month + usage

5

Monthly users

5

Runs succeeded

>99%

Last modified

a year ago

You can access the Google Translator programmatically from your own applications by using the Apify API. You can also choose the language preference from below. To use the Apify API, you’ll need an Apify account and your API token, found in Integrations settings in Apify Console.

1{
2  "openapi": "3.0.1",
3  "info": {
4    "version": "0.1",
5    "x-build-id": "mMK9SQJrMKfJCzlkK"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/web.harvester~google-translator/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-web.harvester-google-translator",
16        "x-openai-isConsequential": false,
17        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
18        "tags": [
19          "Run Actor"
20        ],
21        "requestBody": {
22          "required": true,
23          "content": {
24            "application/json": {
25              "schema": {
26                "$ref": "#/components/schemas/inputSchema"
27              }
28            }
29          }
30        },
31        "parameters": [
32          {
33            "name": "token",
34            "in": "query",
35            "required": true,
36            "schema": {
37              "type": "string"
38            },
39            "description": "Enter your Apify token here"
40          }
41        ],
42        "responses": {
43          "200": {
44            "description": "OK"
45          }
46        }
47      }
48    },
49    "/acts/web.harvester~google-translator/runs": {
50      "post": {
51        "operationId": "runs-sync-web.harvester-google-translator",
52        "x-openai-isConsequential": false,
53        "summary": "Executes an Actor and returns information about the initiated run in response.",
54        "tags": [
55          "Run Actor"
56        ],
57        "requestBody": {
58          "required": true,
59          "content": {
60            "application/json": {
61              "schema": {
62                "$ref": "#/components/schemas/inputSchema"
63              }
64            }
65          }
66        },
67        "parameters": [
68          {
69            "name": "token",
70            "in": "query",
71            "required": true,
72            "schema": {
73              "type": "string"
74            },
75            "description": "Enter your Apify token here"
76          }
77        ],
78        "responses": {
79          "200": {
80            "description": "OK",
81            "content": {
82              "application/json": {
83                "schema": {
84                  "$ref": "#/components/schemas/runsResponseSchema"
85                }
86              }
87            }
88          }
89        }
90      }
91    },
92    "/acts/web.harvester~google-translator/run-sync": {
93      "post": {
94        "operationId": "run-sync-web.harvester-google-translator",
95        "x-openai-isConsequential": false,
96        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
97        "tags": [
98          "Run Actor"
99        ],
100        "requestBody": {
101          "required": true,
102          "content": {
103            "application/json": {
104              "schema": {
105                "$ref": "#/components/schemas/inputSchema"
106              }
107            }
108          }
109        },
110        "parameters": [
111          {
112            "name": "token",
113            "in": "query",
114            "required": true,
115            "schema": {
116              "type": "string"
117            },
118            "description": "Enter your Apify token here"
119          }
120        ],
121        "responses": {
122          "200": {
123            "description": "OK"
124          }
125        }
126      }
127    }
128  },
129  "components": {
130    "schemas": {
131      "inputSchema": {
132        "type": "object",
133        "required": [
134          "targetLanguage"
135        ],
136        "properties": {
137          "text": {
138            "title": "Text",
139            "type": "string",
140            "description": "Text to be translated (max 5000 characters)"
141          },
142          "sourceLanguage": {
143            "title": "Source Language",
144            "enum": [
145              "auto",
146              "af",
147              "sq",
148              "am",
149              "ar",
150              "hy",
151              "as",
152              "ay",
153              "az",
154              "bm",
155              "eu",
156              "be",
157              "bn",
158              "bho",
159              "bs",
160              "bg",
161              "ca",
162              "ceb",
163              "ny",
164              "zh-CN",
165              "zh-TW",
166              "co",
167              "hr",
168              "cs",
169              "da",
170              "dv",
171              "doi",
172              "nl",
173              "en",
174              "eo",
175              "et",
176              "ee",
177              "tl",
178              "fi",
179              "fr",
180              "fy",
181              "gl",
182              "ka",
183              "de",
184              "el",
185              "gn",
186              "gu",
187              "ht",
188              "ha",
189              "haw",
190              "iw",
191              "hi",
192              "hmn",
193              "hu",
194              "is",
195              "ig",
196              "ilo",
197              "id",
198              "ga",
199              "it",
200              "ja",
201              "jw",
202              "kn",
203              "kk",
204              "km",
205              "rw",
206              "gom",
207              "ko",
208              "kri",
209              "ku",
210              "ckb",
211              "ky",
212              "lo",
213              "la",
214              "lv",
215              "ln",
216              "lt",
217              "lg",
218              "lb",
219              "mk",
220              "mai",
221              "mg",
222              "ms",
223              "ml",
224              "mt",
225              "mi",
226              "mr",
227              "mni-Mtei",
228              "lus",
229              "mn",
230              "my",
231              "ne",
232              "no",
233              "or",
234              "om",
235              "ps",
236              "fa",
237              "pl",
238              "pt",
239              "pa",
240              "qu",
241              "ro",
242              "ru",
243              "sm",
244              "sa",
245              "gd",
246              "nso",
247              "sr",
248              "st",
249              "sn",
250              "sd",
251              "si",
252              "sk",
253              "sl",
254              "so",
255              "es",
256              "su",
257              "sw",
258              "sv",
259              "tg",
260              "ta",
261              "tt",
262              "te",
263              "th",
264              "ti",
265              "ts",
266              "tr",
267              "tk",
268              "ak",
269              "uk",
270              "ur",
271              "ug",
272              "uz",
273              "vi",
274              "cy",
275              "xh",
276              "yi",
277              "yo",
278              "zu"
279            ],
280            "type": "string",
281            "description": "Language of the text to be translated, default is Auto Detect",
282            "default": "auto"
283          },
284          "targetLanguage": {
285            "title": "Target Language",
286            "enum": [
287              "af",
288              "sq",
289              "am",
290              "ar",
291              "hy",
292              "as",
293              "ay",
294              "az",
295              "bm",
296              "eu",
297              "be",
298              "bn",
299              "bho",
300              "bs",
301              "bg",
302              "ca",
303              "ceb",
304              "ny",
305              "zh-CN",
306              "zh-TW",
307              "co",
308              "hr",
309              "cs",
310              "da",
311              "dv",
312              "doi",
313              "nl",
314              "en",
315              "eo",
316              "et",
317              "ee",
318              "tl",
319              "fi",
320              "fr",
321              "fy",
322              "gl",
323              "ka",
324              "de",
325              "el",
326              "gn",
327              "gu",
328              "ht",
329              "ha",
330              "haw",
331              "iw",
332              "hi",
333              "hmn",
334              "hu",
335              "is",
336              "ig",
337              "ilo",
338              "id",
339              "ga",
340              "it",
341              "ja",
342              "jw",
343              "kn",
344              "kk",
345              "km",
346              "rw",
347              "gom",
348              "ko",
349              "kri",
350              "ku",
351              "ckb",
352              "ky",
353              "lo",
354              "la",
355              "lv",
356              "ln",
357              "lt",
358              "lg",
359              "lb",
360              "mk",
361              "mai",
362              "mg",
363              "ms",
364              "ml",
365              "mt",
366              "mi",
367              "mr",
368              "mni-Mtei",
369              "lus",
370              "mn",
371              "my",
372              "ne",
373              "no",
374              "or",
375              "om",
376              "ps",
377              "fa",
378              "pl",
379              "pt",
380              "pa",
381              "qu",
382              "ro",
383              "ru",
384              "sm",
385              "sa",
386              "gd",
387              "nso",
388              "sr",
389              "st",
390              "sn",
391              "sd",
392              "si",
393              "sk",
394              "sl",
395              "so",
396              "es",
397              "su",
398              "sw",
399              "sv",
400              "tg",
401              "ta",
402              "tt",
403              "te",
404              "th",
405              "ti",
406              "ts",
407              "tr",
408              "tk",
409              "ak",
410              "uk",
411              "ur",
412              "ug",
413              "uz",
414              "vi",
415              "cy",
416              "xh",
417              "yi",
418              "yo",
419              "zu"
420            ],
421            "type": "string",
422            "description": "The language into which the text should be translated",
423            "default": "es"
424          },
425          "textList": {
426            "title": "Text List",
427            "type": "array",
428            "description": "A list of text to be translated. (max 5000 characters for each text)"
429          },
430          "translationsList": {
431            "title": "Translation List",
432            "type": "array",
433            "description": "You can add multiple translations to the list, each translation here has it's own translation options: text (max 5000 characters), sourceLanguage, targetLanguage"
434          }
435        }
436      },
437      "runsResponseSchema": {
438        "type": "object",
439        "properties": {
440          "data": {
441            "type": "object",
442            "properties": {
443              "id": {
444                "type": "string"
445              },
446              "actId": {
447                "type": "string"
448              },
449              "userId": {
450                "type": "string"
451              },
452              "startedAt": {
453                "type": "string",
454                "format": "date-time",
455                "example": "2025-01-08T00:00:00.000Z"
456              },
457              "finishedAt": {
458                "type": "string",
459                "format": "date-time",
460                "example": "2025-01-08T00:00:00.000Z"
461              },
462              "status": {
463                "type": "string",
464                "example": "READY"
465              },
466              "meta": {
467                "type": "object",
468                "properties": {
469                  "origin": {
470                    "type": "string",
471                    "example": "API"
472                  },
473                  "userAgent": {
474                    "type": "string"
475                  }
476                }
477              },
478              "stats": {
479                "type": "object",
480                "properties": {
481                  "inputBodyLen": {
482                    "type": "integer",
483                    "example": 2000
484                  },
485                  "rebootCount": {
486                    "type": "integer",
487                    "example": 0
488                  },
489                  "restartCount": {
490                    "type": "integer",
491                    "example": 0
492                  },
493                  "resurrectCount": {
494                    "type": "integer",
495                    "example": 0
496                  },
497                  "computeUnits": {
498                    "type": "integer",
499                    "example": 0
500                  }
501                }
502              },
503              "options": {
504                "type": "object",
505                "properties": {
506                  "build": {
507                    "type": "string",
508                    "example": "latest"
509                  },
510                  "timeoutSecs": {
511                    "type": "integer",
512                    "example": 300
513                  },
514                  "memoryMbytes": {
515                    "type": "integer",
516                    "example": 1024
517                  },
518                  "diskMbytes": {
519                    "type": "integer",
520                    "example": 2048
521                  }
522                }
523              },
524              "buildId": {
525                "type": "string"
526              },
527              "defaultKeyValueStoreId": {
528                "type": "string"
529              },
530              "defaultDatasetId": {
531                "type": "string"
532              },
533              "defaultRequestQueueId": {
534                "type": "string"
535              },
536              "buildNumber": {
537                "type": "string",
538                "example": "1.0.0"
539              },
540              "containerUrl": {
541                "type": "string"
542              },
543              "usage": {
544                "type": "object",
545                "properties": {
546                  "ACTOR_COMPUTE_UNITS": {
547                    "type": "integer",
548                    "example": 0
549                  },
550                  "DATASET_READS": {
551                    "type": "integer",
552                    "example": 0
553                  },
554                  "DATASET_WRITES": {
555                    "type": "integer",
556                    "example": 0
557                  },
558                  "KEY_VALUE_STORE_READS": {
559                    "type": "integer",
560                    "example": 0
561                  },
562                  "KEY_VALUE_STORE_WRITES": {
563                    "type": "integer",
564                    "example": 1
565                  },
566                  "KEY_VALUE_STORE_LISTS": {
567                    "type": "integer",
568                    "example": 0
569                  },
570                  "REQUEST_QUEUE_READS": {
571                    "type": "integer",
572                    "example": 0
573                  },
574                  "REQUEST_QUEUE_WRITES": {
575                    "type": "integer",
576                    "example": 0
577                  },
578                  "DATA_TRANSFER_INTERNAL_GBYTES": {
579                    "type": "integer",
580                    "example": 0
581                  },
582                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
583                    "type": "integer",
584                    "example": 0
585                  },
586                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
587                    "type": "integer",
588                    "example": 0
589                  },
590                  "PROXY_SERPS": {
591                    "type": "integer",
592                    "example": 0
593                  }
594                }
595              },
596              "usageTotalUsd": {
597                "type": "number",
598                "example": 0.00005
599              },
600              "usageUsd": {
601                "type": "object",
602                "properties": {
603                  "ACTOR_COMPUTE_UNITS": {
604                    "type": "integer",
605                    "example": 0
606                  },
607                  "DATASET_READS": {
608                    "type": "integer",
609                    "example": 0
610                  },
611                  "DATASET_WRITES": {
612                    "type": "integer",
613                    "example": 0
614                  },
615                  "KEY_VALUE_STORE_READS": {
616                    "type": "integer",
617                    "example": 0
618                  },
619                  "KEY_VALUE_STORE_WRITES": {
620                    "type": "number",
621                    "example": 0.00005
622                  },
623                  "KEY_VALUE_STORE_LISTS": {
624                    "type": "integer",
625                    "example": 0
626                  },
627                  "REQUEST_QUEUE_READS": {
628                    "type": "integer",
629                    "example": 0
630                  },
631                  "REQUEST_QUEUE_WRITES": {
632                    "type": "integer",
633                    "example": 0
634                  },
635                  "DATA_TRANSFER_INTERNAL_GBYTES": {
636                    "type": "integer",
637                    "example": 0
638                  },
639                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
640                    "type": "integer",
641                    "example": 0
642                  },
643                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
644                    "type": "integer",
645                    "example": 0
646                  },
647                  "PROXY_SERPS": {
648                    "type": "integer",
649                    "example": 0
650                  }
651                }
652              }
653            }
654          }
655        }
656      }
657    }
658  }
659}

Google Translator OpenAPI definition

OpenAPI is a standard for designing and describing RESTful APIs, allowing developers to define API structure, endpoints, and data formats in a machine-readable way. It simplifies API development, integration, and documentation.

OpenAPI is effective when used with AI agents and GPTs by standardizing how these systems interact with various APIs, for reliable integrations and efficient communication.

By defining machine-readable API specifications, OpenAPI allows AI models like GPTs to understand and use varied data sources, improving accuracy. This accelerates development, reduces errors, and provides context-aware responses, making OpenAPI a core component for AI applications.

You can download the OpenAPI definitions for Google Translator from the options below:

If you’d like to learn more about how OpenAPI powers GPTs, read our blog post.

You can also check out our other API clients:

Pricing

Pricing model

Rental 

To use this Actor, you have to pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage.

Free trial

1 day

Price

$6.00