For developers

We provide access to the API for integration Harakat in your projects. The cost of using API Multillect is calculated based on the number of characters in a query. Price: $5 per 1000000 symbols.

Setting and removal of vocalizations is carried out by sending an HTTP request at https://api.multillect.com/translate/json/1.0/<account-id>, where <account-id> is a unique identifier for a customer account.

Acceptable methods: GET and POST.
Answer type: JSON
Answer encoding: UTF-8

Query options:

Parameter Compulsive Description
method yes Acceptable methods:
   
Method Description
translate/api/vocalize Set vocalizations
translate/api/unvocalize Remove vocalizations
text yes The original Arabic text in UTF-8 (text length must be at least 2 characters)
key yes Secret key

Answer

Response is a JSON-object with such properties:

Property Description
result Contains an object with the result of the operation, or "null" in the case of error
 
Property Description
text Result of setting or removal vocalizations
error Contains an object that describes the error or "null" if successful
 
Property Description
code Error code
message Error text

Example 1

GET  https://api.multillect.com/translate/json/1.0/2711024?method=translate/api/vocalize&text=أنت&sig=38f4c080a05411e6a0328c89a5a1fd3

{
  "result": {
    "text": "أَنْتَ"
  },
  "error": null,
  "timestamp": 1478025858,
  "id": null
}

Example 2

GET  https://api.multillect.com/translate/json/1.0/2711024?method=translate/api/unvocalize&text=أَنْتِ&sig=38f4c080a05411e6a0328c89a5a1fd3

{
  "result": {
    "text": "أنت"
  },
  "error": null,
  "timestamp": 1478025732,
  "id": null
}