Valyrian translator API gives you API access to valyrian translator, so that you can integrate this functionality in your websites or applications.
To access the web version of the translator click here.
https://api.funtranslations.com/translate/
Our translation API is public. To maintain our service level we ratelimit the number of API calls. For public API calls this is 60 API calls a day with distribution of 5 calls an hour. For paid plans this limit is increased according to the service level described in the plan.
For public calls you don't need to pass any API key. Just invoke the endpoint (see examples below). For paid subscriptions you need to pass the API key.
Currently we support API Key based authentication. Please set a request header 'X-FunTranslations-Api-Secret' with value of your API key. Alternatively you can also pass api_key= as a request parameter, though we strongly discourage this mode of passing the key.
To translate from English to valyrian use the following API.
Translate from English to valyrian.
ParametersParameter Name | Parameter Type | Description |
---|---|---|
text | string | Text to translate. |
Here is the full url to use.
https://api.funtranslations.com/translate/valyrian.json
Here is an example using your browser to convert the given text. Click on the below link to get the json response for the text.
Here is an example using CURL to convert the given text.
curl -v -i -X POST -H 'X-Funtranslations-Api-Secret: <api_key>' -d "text=I am Daenerys Stormborn of the House Targaryen, of the blood of Old Valyria. Valyrian is my mother tongue." https://api.funtranslations.com/translate/valyrian.json
The above call if successful will return a json response something like this.
{ "success": { "total": 1 }, "contents": { "translated": "Nyke daenerys jelmāzmo hen targārio lentrot, hen valyrio uēpo ānogār iksan. Valyrīha iksos issa muñnykeā ēngos.", "text": "I am Daenerys Stormborn of the House Targaryen, of the blood of Old Valyria. Valyrian is my mother tongue.", "translation": "valyrian" } }
1 API Key |
1000 API Calls / day |
Best in class backend tools |
Easy to use REST API |
Immediate provisioning |
1 API Key |
5000 API Calls / day |
Best in class backend tools |
Easy to use REST API |
Immediate provisioning |
1 API Key |
12500 API Calls / day |
Best in class backend tools |
Easy to use REST API |
Immediate provisioning |