{
  "openapi": "3.0.1",
  "info": {
    "title": "Bulk Translator — Texts, CSV, Excel, Subtitles & Datasets",
    "description": "Translate thousands of reviews, comments, product listings, subtitles (SRT/VTT) or any scraper dataset into 46 languages. Keeps every column, detects the language of each text, glossary and do-not-translate terms. Own AI model in the run: no API key, texts never leave Apify.",
    "version": "1.0",
    "x-build-id": "ThY1a8Mx9r0Ecq574"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tidydata~bulk-translator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tidydata-bulk-translator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tidydata~bulk-translator/runs": {
      "post": {
        "operationId": "runs-sync-tidydata-bulk-translator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tidydata~bulk-translator/run-sync": {
      "post": {
        "operationId": "run-sync-tidydata-bulk-translator",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "texts": {
            "title": "Texts",
            "type": "array",
            "description": "One text per line: reviews, comments, product titles, messages, posts… From the API, n8n, Make, Zapier or an AI agent you can also send objects, e.g. [{\"id\": \"P-1\", \"title\": \"…\", \"description\": \"…\"}] — every text field is translated and the other fields are kept.",
            "items": {
              "type": "string"
            }
          },
          "fileUrls": {
            "title": "Or: CSV, Excel, JSON, TXT, SRT or VTT files (links)",
            "type": "array",
            "description": "Links to CSV / TSV, Excel (.xlsx), JSON / JSON Lines, TXT (one text per line) or subtitle files (.srt, .vtt). Google Drive, Dropbox and OneDrive share links work. Subtitles come back as a translated .srt / .vtt file with the same timings.",
            "items": {
              "type": "string"
            }
          },
          "uploadedFiles": {
            "title": "Or: upload files",
            "type": "array",
            "description": "Upload CSV, Excel, JSON, TXT, SRT or VTT files from your computer: product catalogs, review exports, survey answers, app strings, subtitles…"
          },
          "datasetId": {
            "title": "Or: dataset of another Actor (chain it)",
            "type": "string",
            "description": "Translate the results of any scraper: reviews (Google Maps, Amazon, Trustpilot, Booking, App Store…), comments (YouTube, TikTok, Instagram, Reddit), products, job posts, listings. Pick the dataset or pass its ID from an integration / webhook."
          },
          "fieldsToTranslate": {
            "title": "Fields to translate",
            "type": "string",
            "description": "For files, datasets and objects: the column(s) to translate, separated by commas, e.g. text or title,description or a nested path like review.body. Empty = the main text field is found automatically. Each one gets a new column <field>_<language> (e.g. title_de)."
          },
          "targetLanguages": {
            "title": "Translate into",
            "type": "array",
            "description": "One or more languages (up to 10). Each text is translated into every language you pick.",
            "items": {
              "type": "string",
              "enum": [
                "ar",
                "bn",
                "bg",
                "ca",
                "zh",
                "zh-TW",
                "hr",
                "cs",
                "da",
                "nl",
                "en",
                "et",
                "tl",
                "fi",
                "fr",
                "de",
                "el",
                "he",
                "hi",
                "hu",
                "id",
                "it",
                "ja",
                "ko",
                "lv",
                "lt",
                "ms",
                "no",
                "fa",
                "pl",
                "pt-BR",
                "pt",
                "ro",
                "ru",
                "sr",
                "sk",
                "sl",
                "es",
                "sw",
                "sv",
                "ta",
                "th",
                "tr",
                "uk",
                "ur",
                "vi"
              ],
              "enumTitles": [
                "Arabic (ar)",
                "Bengali (bn)",
                "Bulgarian (bg)",
                "Catalan (ca)",
                "Chinese (Simplified) (zh)",
                "Chinese (Traditional) (zh-TW)",
                "Croatian (hr)",
                "Czech (cs)",
                "Danish (da)",
                "Dutch (nl)",
                "English (en)",
                "Estonian (et)",
                "Filipino (Tagalog) (tl)",
                "Finnish (fi)",
                "French (fr)",
                "German (de)",
                "Greek (el)",
                "Hebrew (he)",
                "Hindi (hi)",
                "Hungarian (hu)",
                "Indonesian (id)",
                "Italian (it)",
                "Japanese (ja)",
                "Korean (ko)",
                "Latvian (lv)",
                "Lithuanian (lt)",
                "Malay (ms)",
                "Norwegian (no)",
                "Persian (fa)",
                "Polish (pl)",
                "Portuguese (Brazil) (pt-BR)",
                "Portuguese (Portugal) (pt)",
                "Romanian (ro)",
                "Russian (ru)",
                "Serbian (sr)",
                "Slovak (sk)",
                "Slovenian (sl)",
                "Spanish (es)",
                "Swahili (sw)",
                "Swedish (sv)",
                "Tamil (ta)",
                "Thai (th)",
                "Turkish (tr)",
                "Ukrainian (uk)",
                "Urdu (ur)",
                "Vietnamese (vi)"
              ]
            },
            "default": [
              "en"
            ]
          },
          "sourceLanguage": {
            "title": "Source language",
            "enum": [
              "auto",
              "ar",
              "bn",
              "bg",
              "ca",
              "zh",
              "zh-TW",
              "hr",
              "cs",
              "da",
              "nl",
              "en",
              "et",
              "tl",
              "fi",
              "fr",
              "de",
              "el",
              "he",
              "hi",
              "hu",
              "id",
              "it",
              "ja",
              "ko",
              "lv",
              "lt",
              "ms",
              "no",
              "fa",
              "pl",
              "pt-BR",
              "pt",
              "ro",
              "ru",
              "sr",
              "sk",
              "sl",
              "es",
              "sw",
              "sv",
              "ta",
              "th",
              "tr",
              "uk",
              "ur",
              "vi"
            ],
            "type": "string",
            "description": "Leave on automatic for mixed-language data (each text is detected on its own).",
            "default": "auto"
          },
          "skipSameLanguage": {
            "title": "Skip texts already in the target language (free)",
            "type": "boolean",
            "description": "A Spanish review is not translated into Spanish: it is copied as it is and not charged.",
            "default": true
          },
          "textType": {
            "title": "Type of text",
            "enum": [
              "auto",
              "general",
              "reviews",
              "social",
              "product",
              "support",
              "email",
              "marketing",
              "news",
              "technical",
              "legal",
              "ui"
            ],
            "type": "string",
            "description": "Tells the model what it is translating, which helps with slang, short phrases and tone. Subtitles always use the subtitle style.",
            "default": "auto"
          },
          "tone": {
            "title": "Tone",
            "enum": [
              "default",
              "formal",
              "informal"
            ],
            "type": "string",
            "description": "Useful for languages with formal and informal 'you' (German Sie/du, French vous/tu, Spanish usted/tú…).",
            "default": "default"
          },
          "glossary": {
            "title": "Glossary",
            "type": "array",
            "description": "Fixed translations for your terms, one per line: 'running shoes = Laufschuhe'. With several target languages start each line with the language: 'de: running shoes = Laufschuhe', 'fr: running shoes = chaussures de course'.",
            "items": {
              "type": "string"
            }
          },
          "doNotTranslate": {
            "title": "Do not translate",
            "type": "array",
            "description": "Brand and product names, codes or words that must stay exactly as they are in every language, e.g. TidyData, AirPods, USB-C.",
            "items": {
              "type": "string"
            }
          },
          "includeInputFields": {
            "title": "Keep all the original fields",
            "type": "boolean",
            "description": "For files, datasets and objects: each result keeps every column of the original row plus the translated columns, so you can export one enriched table. Off = only the translated fields, their originals and the ID.",
            "default": true
          },
          "idField": {
            "title": "Field to copy as ID",
            "type": "string",
            "description": "Optional: a field copied to each result as 'id' (e.g. sku, reviewId, url). Empty = reviewId / commentId / id if present."
          },
          "maxTexts": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 200000,
            "type": "integer",
            "description": "Upper limit of texts / rows translated in one run.",
            "default": 10000
          },
          "maxFileSizeMb": {
            "title": "Max file size (MB)",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Bigger files are not downloaded (free).",
            "default": 100
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}