Translation API by Lokalise

Lokalise is loved by tech teams at 3000+ global companies
API translation that’s easy to integrate
Discover SDKs for popular programming languages, making it easy to integrate Lokalise into existing applications. With clear documentation and a playground to test endpoints, you’ll get API translation up and running in no time.
Try API translation for free

Translate text with AI for fast and accurate results
Use AI translation tailored to your business for accurate results in a matter of minutes. Automatically upload and download translated AI content via Lokalise API for a smooth translation process.
Explore AI translation

Automate translation tasks via API endpoints
Lokalise RESTful API lets developers quickly and easily integrate advanced translation features into their projects, simplifying product localization.

Get rid of manual translation tasks
List all translations
List all keys
Download files
Create a task
Upload a file
List all contributors
Lokalise also supports branching, so you can specify a project branch when sending a request.

Deploy translation updates instantly
Learn more about the Lokalise OTA SDK.
Translate text at scale with Lokalise RESTful API
A flexible and fully customizable API, supported by clear-how-to documentation and script templates for faster implementation.
-
Control and automate translation tasks with a feature-rich API.
-
Get notified about updates in your localization projects.
-
Jump-start multilingual projects without crafting custom solutions.
How Lokalise API works for translation
-
1
Connect API endpoints to your Lokalise project
Sign into Lokalise, go to your project and click more>settings, copy your project ID and paste into your endpoint templates.
-
2
Next, get your API token
Click on your profile avatar in the left-hand corner and choose profile settings. Go to API token tab and click ‘generate new token’ (read-only or read-and-write). Paste it to the API token header field in your endpoint templates.
-
3
Try API endpoints
To translate text files, you’ll need to use these two endpoints in this order:
Fill in the other parameters, like task description, due date, task type ‘translation’, source and target languages, and then click ‘try it’ to get an instant response. Click on the clipboard icon to copy the response or go to your Lokalise project to see updates triggered by your endpoints. -
4
Get translated text
Once files have been uploaded, and your translation task has been assigned and completed, fetch translations using the ‘Download files’ endpoint.
Note: if you want to translate with AI, you’ll need to set up automations inside Lokalise that trigger machine translations as soon as you create a task via the API.



