Morse translator API gives you API access to morse translator, so that you can integrate this functionality in your websites or applications.

To access the web version of the translator click here.

API End Points

The end point for connecting : If you subscribe directly from us use this endpoint.
https://api.funtranslations.com/translate/
	

Ratelimiting

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.

Authentication

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.

Translating English text to morse

public ratelimited

To translate from English to morse use the following API.

POST  /morse

Translate from English to morse.

Parameters
Parameter NameParameter TypeDescription
textstringText to translate.
output
The result is a json object with the converted text.

Here is the full url to use.

	https://api.funtranslations.com/translate/morse.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=Morse code is a dit and dah" https://api.funtranslations.com/translate/morse.json
	

The above call if successful will return a json response something like this.

{
  "success": {
    "total": 1
  },
  "contents": {
    "translated": "-- --- .-. ... .     -.-. --- -.. .     .. ...     .-     -.. .. -     .- -. -..     -.. .- .... ",
    "text": "Morse code is a dit and dah",
    "translation": "morse"
  }
}
	

Translating Morse code to English public ratelimited

To translate from Morse code to English use the following API.

POST  /morse2english

Translate from Morse code to English.

Parameters
Parameter NameParameter TypeDescription
textstringText to translate.
output
The result is a json object with the converted text.

Here is the full url to use.

	http://api.funtranslations.com/translate/morse2english.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.

http://api.funtranslations.com/translate/morse2english.json?text=--%20---%20.-.%20...%20.%20%20%20%20%20-.-.%20---%20-..%20.%20%20%20%20%20..%20...%20%20%20%20%20.-%20%20%20%20%20-..%20..%20-%20%20%20%20%20.-%20-.%20-..%20%20%20%20%20-..%20.-%20....%20

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=-- --- .-. ... .     -.-. --- -.. .     .. ...     .-     -.. .. -     .- -. -..     -.. .- .... " http://api.funtranslations.com/translate/morse2english.json
	

The above call if successful will return a json response something like this.

{
  "success": {
    "total": 1
  },
  "contents": {
    "translated": "-- --- .-. ... .     -.-. --- -.. .     .. ...     .-     -.. .. -     .- -. -..     -.. .- .... ",
    "text": "Morse code is a dit and dah",
    "translation": "morse"
  }
}
	

Translating English to Morse code with audio public ratelimited

To translate from Morse code to English with audio use the following API.

POST  /morse/audio

Translate from English to Morse code with audio.

Parameters
Parameter NameParameter TypeDescription
textstringText to translate.
speednumberAudio speed.
tonenumberAudio Tone.
output
The result is a json object with the converted text and audio file (wav) as base64 encoded string.

Here is the full url to use.

	http://api.funtranslations.com/translate/morse/audio.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.

http://api.funtranslations.com/translate/morse/audio.json?text=Morse%20code%20is%20dit%20and%20dash

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=Morse code is dit and dash" http://api.funtranslations.com/translate/morse/audio.json
	

The above call if successful will return a json response something like this.

{
    "success": {
        "total": 1
    },
    "contents": {
        "translated": {
            "audio": "data:audio/wave;base64,UklGRjiBCQBXQVZFZm1...
        },
        "text": "Morse code is dit and dash",
        "speed": "5 WPM",
        "tone": "700 Hz",
        "translation": {
            "source": "english",
            "destination": "morse audio"
        }
    }
}
	

Subscribe

Fun Translations Morse API Basic

$4.99/mo

No contracts. Anytime cancellation.
1 API Key
1000 API Calls / day
Best in class backend tools
Easy to use REST API
Immediate provisioning

Fun Translations Morse API Premium

$9.99/mo

No contracts. Anytime cancellation.
1 API Key
5000 API Calls / day
Best in class backend tools
Easy to use REST API
Immediate provisioning

Fun Translations Morse API Ultra

$24.99/mo

No contracts. Anytime cancellation.
1 API Key
12500 API Calls / day
Best in class backend tools
Easy to use REST API
Immediate provisioning