API Reference
Integrate Delingo translation into your app with a simple JSON API.
Example: Translate
curl -s https://delingo.net/v1/translate \
-H "Content-Type: application/json" \
-H "X-Delingo-API-Key: YOUR_DEMO_API_KEY" \
-d '{"text":"こんにちは、元気ですか?","target_lang":"en"}'
1
curl -s https://delingo.net/v1/translate \\
2
-H "Content-Type: application/json" \\
3
-H "X-Delingo-API-Key: YOUR_DEMO_API_KEY" \\
4
-d '{"text":"こんにちは、元気ですか?","target_lang":"en"}'
Example response
1
{
2
"source_lang": "ja",
3
"target_lang": "en",
4
"translation": "Hello, how are you?"
5
}
Replace YOUR_DEMO_API_KEY with the key you were issued. Responses are JSON.
DeLingo