We provide a simple and affordable REST API. Get your API key by signing up (free).
You can either send GET or POST requests to the API endpoint. A JSON response is returned to each request.
GET/POST https://language.uclassify.com/translate/v1/
Name | Type | Description |
---|---|---|
key | string | Your read key (found in your account). |
source | string | The source language that is going to be translated. Must be set to 'sv', 'es' or 'fr' for now. |
target | string | The target language to translate to. Must be set to 'en' for now. |
t | string | The text to translate, this parameter can be repeated for multiple texts. Max query length for GET is 2Kb and 1 MB for POST. |
https://language.uclassify.com/translate/v1/?key=YOUR_READ_API_KEY_HERE&source=sv&target=en&t=hej+v%c3%a4rlden&t=hur+m%c3%a5r+du%3fExample CURL POST request
curl -X POST -H "Content-Type: application/json" --data "{\"key\":\"YOUR_READ_API_KEY_HERE\",\"source\":\"sv\",\"target\":\"en\",\"quality\":null,\"t\":[\"hej allihopa\",\"att vara eller att inte vara\"]}" https://language.uclassify.com/translate/v1/Python example
import requests data = { 'key': 'YOUR_READ_API_KEY_HERE', 'source': 'sv', 'target': 'en', 't': ['hej världen', 'hur mår du?'] } response = requests.post('https://language.uclassify.com/translate/v1/', json=data) print(response.content)Example response
{ "source": "sv", "target": "en", "remaining": 0, "translations": [ "hello world", "how are you?" ] }The
remaining
field indicates how many charactes are left of the daily qouta.
Initially we will only target English from a few requested languages. If you have specific language requests, please let me know.
Source | Target | Status |
---|---|---|
Swedish (sv) | English (en) | Released |
French (fr) | English (en) | Released |
Spanish (es) | English (en) | Released |
The translation algorithm learns by reading huge amounts of human translated texts and dictionaries. Those datasets have been collected from the following public sources: