Yet Another Dataset Translator avatar

Yet Another Dataset Translator

Try for free

No credit card required

Go to Store
Yet Another Dataset Translator

Yet Another Dataset Translator

mvolfik/yet-another-dataset-translator
Try for free

No credit card required

Actor to translate datasets with field selection and source language detection. Requires Google Translate API Key.

You can access the Yet Another Dataset Translator programmatically from your own applications by using the Apify API. You can 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.0",
5    "x-build-id": "yinEkHimJooO9e3y0"
6  },
7  "servers": [
8    {
9      "url": "https://api.apify.com/v2"
10    }
11  ],
12  "paths": {
13    "/acts/mvolfik~yet-another-dataset-translator/run-sync-get-dataset-items": {
14      "post": {
15        "operationId": "run-sync-get-dataset-items-mvolfik-yet-another-dataset-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/mvolfik~yet-another-dataset-translator/runs": {
50      "post": {
51        "operationId": "runs-sync-mvolfik-yet-another-dataset-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/mvolfik~yet-another-dataset-translator/run-sync": {
93      "post": {
94        "operationId": "run-sync-mvolfik-yet-another-dataset-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          "dataset_ids",
135          "target_language",
136          "field_patterns_to_translate"
137        ],
138        "properties": {
139          "dataset_ids": {
140            "title": "Dataset IDs to translate",
141            "minItems": 1,
142            "uniqueItems": true,
143            "type": "array",
144            "description": "IDs of datasets to translate",
145            "items": {
146              "type": "string"
147            }
148          },
149          "api_key": {
150            "title": "Google Translate API key",
151            "type": "string",
152            "description": "See https://cloud.google.com/translate/docs/setup for setup instructions"
153          },
154          "target_language": {
155            "title": "Target language",
156            "enum": [
157              "en",
158              "cs",
159              "nl",
160              "fr",
161              "de",
162              "it",
163              "pt",
164              "es"
165            ],
166            "type": "string",
167            "description": "Language to translate into",
168            "default": "en"
169          },
170          "field_patterns_to_translate": {
171            "title": "Patterns of fields to translate",
172            "minItems": 1,
173            "type": "array",
174            "description": "You can use sipmly full names of the fields, but you can also use globs: * matches any number of characters, ? matches any single character, [seq] matches any character in seq",
175            "items": {
176              "type": "string"
177            }
178          },
179          "detect_language_threshold": {
180            "title": "Language detection threshold",
181            "pattern": "^0(\\.[0-9]+)?$",
182            "type": "string",
183            "description": "If the confidence of detected language is lower than this threshold, the text is translated. Default is 0.7. Use 0 to always translate.",
184            "default": "0.7"
185          },
186          "output_dataset_id": {
187            "title": "Output dataset ID",
188            "type": "string",
189            "description": "ID of the dataset to store the results in"
190          },
191          "translation_marker_field": {
192            "title": "Translation marker field",
193            "type": "string",
194            "description": "This field will contain True if the text was translated, False otherwise"
195          },
196          "original_value_field_prefix": {
197            "title": "Original value field prefix",
198            "type": "string",
199            "description": "This prefix will be added to the names of fields containing original values"
200          }
201        }
202      },
203      "runsResponseSchema": {
204        "type": "object",
205        "properties": {
206          "data": {
207            "type": "object",
208            "properties": {
209              "id": {
210                "type": "string"
211              },
212              "actId": {
213                "type": "string"
214              },
215              "userId": {
216                "type": "string"
217              },
218              "startedAt": {
219                "type": "string",
220                "format": "date-time",
221                "example": "2025-01-08T00:00:00.000Z"
222              },
223              "finishedAt": {
224                "type": "string",
225                "format": "date-time",
226                "example": "2025-01-08T00:00:00.000Z"
227              },
228              "status": {
229                "type": "string",
230                "example": "READY"
231              },
232              "meta": {
233                "type": "object",
234                "properties": {
235                  "origin": {
236                    "type": "string",
237                    "example": "API"
238                  },
239                  "userAgent": {
240                    "type": "string"
241                  }
242                }
243              },
244              "stats": {
245                "type": "object",
246                "properties": {
247                  "inputBodyLen": {
248                    "type": "integer",
249                    "example": 2000
250                  },
251                  "rebootCount": {
252                    "type": "integer",
253                    "example": 0
254                  },
255                  "restartCount": {
256                    "type": "integer",
257                    "example": 0
258                  },
259                  "resurrectCount": {
260                    "type": "integer",
261                    "example": 0
262                  },
263                  "computeUnits": {
264                    "type": "integer",
265                    "example": 0
266                  }
267                }
268              },
269              "options": {
270                "type": "object",
271                "properties": {
272                  "build": {
273                    "type": "string",
274                    "example": "latest"
275                  },
276                  "timeoutSecs": {
277                    "type": "integer",
278                    "example": 300
279                  },
280                  "memoryMbytes": {
281                    "type": "integer",
282                    "example": 1024
283                  },
284                  "diskMbytes": {
285                    "type": "integer",
286                    "example": 2048
287                  }
288                }
289              },
290              "buildId": {
291                "type": "string"
292              },
293              "defaultKeyValueStoreId": {
294                "type": "string"
295              },
296              "defaultDatasetId": {
297                "type": "string"
298              },
299              "defaultRequestQueueId": {
300                "type": "string"
301              },
302              "buildNumber": {
303                "type": "string",
304                "example": "1.0.0"
305              },
306              "containerUrl": {
307                "type": "string"
308              },
309              "usage": {
310                "type": "object",
311                "properties": {
312                  "ACTOR_COMPUTE_UNITS": {
313                    "type": "integer",
314                    "example": 0
315                  },
316                  "DATASET_READS": {
317                    "type": "integer",
318                    "example": 0
319                  },
320                  "DATASET_WRITES": {
321                    "type": "integer",
322                    "example": 0
323                  },
324                  "KEY_VALUE_STORE_READS": {
325                    "type": "integer",
326                    "example": 0
327                  },
328                  "KEY_VALUE_STORE_WRITES": {
329                    "type": "integer",
330                    "example": 1
331                  },
332                  "KEY_VALUE_STORE_LISTS": {
333                    "type": "integer",
334                    "example": 0
335                  },
336                  "REQUEST_QUEUE_READS": {
337                    "type": "integer",
338                    "example": 0
339                  },
340                  "REQUEST_QUEUE_WRITES": {
341                    "type": "integer",
342                    "example": 0
343                  },
344                  "DATA_TRANSFER_INTERNAL_GBYTES": {
345                    "type": "integer",
346                    "example": 0
347                  },
348                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
349                    "type": "integer",
350                    "example": 0
351                  },
352                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
353                    "type": "integer",
354                    "example": 0
355                  },
356                  "PROXY_SERPS": {
357                    "type": "integer",
358                    "example": 0
359                  }
360                }
361              },
362              "usageTotalUsd": {
363                "type": "number",
364                "example": 0.00005
365              },
366              "usageUsd": {
367                "type": "object",
368                "properties": {
369                  "ACTOR_COMPUTE_UNITS": {
370                    "type": "integer",
371                    "example": 0
372                  },
373                  "DATASET_READS": {
374                    "type": "integer",
375                    "example": 0
376                  },
377                  "DATASET_WRITES": {
378                    "type": "integer",
379                    "example": 0
380                  },
381                  "KEY_VALUE_STORE_READS": {
382                    "type": "integer",
383                    "example": 0
384                  },
385                  "KEY_VALUE_STORE_WRITES": {
386                    "type": "number",
387                    "example": 0.00005
388                  },
389                  "KEY_VALUE_STORE_LISTS": {
390                    "type": "integer",
391                    "example": 0
392                  },
393                  "REQUEST_QUEUE_READS": {
394                    "type": "integer",
395                    "example": 0
396                  },
397                  "REQUEST_QUEUE_WRITES": {
398                    "type": "integer",
399                    "example": 0
400                  },
401                  "DATA_TRANSFER_INTERNAL_GBYTES": {
402                    "type": "integer",
403                    "example": 0
404                  },
405                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
406                    "type": "integer",
407                    "example": 0
408                  },
409                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
410                    "type": "integer",
411                    "example": 0
412                  },
413                  "PROXY_SERPS": {
414                    "type": "integer",
415                    "example": 0
416                  }
417                }
418              }
419            }
420          }
421        }
422      }
423    }
424  }
425}

Yet Another Dataset 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 Yet Another Dataset 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:

Developer
Maintained by Community

Actor Metrics

  • 1 monthly user

  • 1 bookmark

  • Created in May 2023

  • Modified 2 years ago

Categories