{
  "openapi": "3.0.1",
  "info": {
    "title": "NLLB-200 Website Translator",
    "description": "Translate any website into 50+ languages using Meta's NLLB-200 model � no API key required. Scrapes page content and returns original text alongside clean machine translations. Supports Spanish, French, German, Portuguese, Chinese, Arabic, Japanese, Korean, and many more.",
    "version": "1.0",
    "x-build-id": "YQ3Z6rlTcnb6qZx1a"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/sheshinmcfly~nllb-website-translator/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-sheshinmcfly-nllb-website-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/sheshinmcfly~nllb-website-translator/runs": {
      "post": {
        "operationId": "runs-sync-sheshinmcfly-nllb-website-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/sheshinmcfly~nllb-website-translator/run-sync": {
      "post": {
        "operationId": "run-sync-sheshinmcfly-nllb-website-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",
        "required": [
          "urls"
        ],
        "properties": {
          "urls": {
            "title": "URLs to translate",
            "type": "array",
            "description": "One or more web page URLs to translate.",
            "default": [
              "https://en.wikipedia.org/wiki/Artificial_intelligence"
            ],
            "items": {
              "type": "string"
            }
          },
          "targetLang": {
            "title": "Target language",
            "type": "string",
            "description": "Language to translate into. Use ISO 639-1 codes: es (Spanish), fr (French), de (German), pt (Portuguese), zh (Chinese), ar (Arabic), ja (Japanese), ko (Korean), ru (Russian), hi (Hindi), etc.",
            "default": "es"
          },
          "sourceLang": {
            "title": "Source language",
            "type": "string",
            "description": "Language of the original content. Use 'auto' to detect automatically (recommended), or an ISO 639-1 code like 'en', 'fr', 'de'.",
            "default": "auto"
          },
          "provider": {
            "title": "Preferred translation provider",
            "enum": [
              "auto",
              "deepl",
              "huggingface",
              "libretranslate",
              "mymemory"
            ],
            "type": "string",
            "description": "Which provider to use first. If it fails or isn't configured, the actor falls back automatically through the chain: DeepL → HuggingFace NLLB → LibreTranslate → MyMemory.",
            "default": "auto"
          },
          "deeplApiKey": {
            "title": "DeepL API Key",
            "type": "string",
            "description": "Free DeepL API key from deepl.com/pro-api. Gives 500,000 characters/month free. Supports 29 languages with top-tier quality."
          },
          "huggingfaceToken": {
            "title": "HuggingFace API Token",
            "type": "string",
            "description": "Free HuggingFace token from huggingface.co/settings/tokens. Uses Meta's NLLB-200 model supporting 200+ languages."
          },
          "libretranslateUrl": {
            "title": "LibreTranslate Instance URL",
            "type": "string",
            "description": "Custom LibreTranslate instance URL. Leave blank to use public instances automatically. Example: https://libretranslate.com"
          },
          "libretranslateApiKey": {
            "title": "LibreTranslate API Key",
            "type": "string",
            "description": "API key for your LibreTranslate instance (optional for public instances)."
          },
          "mymemoryEmail": {
            "title": "MyMemory Email (optional)",
            "type": "string",
            "description": "Provide your email to increase MyMemory quota from 1,000 to 10,000 words/day."
          },
          "maxCharsPerPage": {
            "title": "Max characters per page",
            "minimum": 500,
            "maximum": 50000,
            "type": "integer",
            "description": "Limit how much text is translated per page. Higher values = more content but more API usage. Recommended: 5,000–15,000.",
            "default": 5000
          },
          "maxDepth": {
            "title": "Crawl depth",
            "minimum": 0,
            "maximum": 2,
            "type": "integer",
            "description": "0 = only the given URLs. 1 = also follow internal links one level deep. 2 = two levels deep.",
            "default": 0
          },
          "maxPages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 500,
            "type": "integer",
            "description": "Maximum total pages to translate across all URLs and depth levels.",
            "default": 10
          },
          "useSitemap": {
            "title": "Discover pages via sitemap.xml",
            "type": "boolean",
            "description": "If enabled, the actor will fetch sitemap.xml from each domain and translate all discovered URLs (up to maxPages).",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy Configuration",
            "type": "object",
            "description": "Apify proxy settings. Datacenter proxies are sufficient for most sites."
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}