The Sentiment API analyzes Arabic and Turkish text through one endpoint, with no language parameter and no translation step. Each message returns scores for 28 emotions (the GoEmotions taxonomy), the top emotion and a valence score from -1 to 1. The same call handles English, French, Spanish and German, so mixed-language feedback can go in a single batch. A short message costs $0.00089, paid per message from prepaid credit with no subscription.
This page shows what the model actually returns for Arabic and Turkish, including the cases where it is unsure. For the background on why these languages are hard (right-to-left script, dialects, agglutinative morphology), read the multilingual sentiment analysis guide.
Real outputs in Arabic and Turkish
Unedited results from the production API on 1 November 2026. Scores are rounded; English glosses are ours and were not sent to the API.
| Text | Top emotion | Top scores (of 28) | Valence |
|---|---|---|---|
| الخدمة كانت ممتازة وشكراً جزيلاً على سرعة الرد Arabic: “The service was excellent, thank you so much for the quick reply” | gratitude | gratitude 0.956, admiration 0.251, neutral 0.051 | 1.00 |
| انتظرت ساعتين ولم يرد أحد، هذا مخيب للآمال جداً Arabic: “I waited two hours and nobody answered, this is very disappointing” | disappointment | disappointment 0.978, caring 0.052, neutral 0.051 | -0.46 |
| Ürünü çok beğendim, teşekkürler! Turkish: “I really liked the product, thanks!” | gratitude | gratitude 0.953, love 0.870, sadness 0.053 | 1.00 |
| Kargo iki hafta gecikti ve kimse cevap vermedi, çok sinirliyim. Turkish: “The delivery was two weeks late and nobody replied, I'm very angry” | annoyance | annoyance 0.343, disappointment 0.313, nervousness 0.102 | -0.22 |
| Ürünü hiç beğenmedim, param çöpe gitti. Turkish: “I didn't like the product at all, my money went down the drain” | neutral | neutral 0.112, sadness 0.100, disapproval 0.097 | -0.07 |
Reading the results honestly
The clear cases are clear: Arabic gratitude and disappointment, and Turkish gratitude, all score above 0.95 for the expected emotion, and the valence points the right way. The Turkish positive review also shows multi-label output: gratitude and love both score high because the text expresses both.
The last two Turkish rows are weaker, and we show them on purpose:
- çok sinirliyim ("I'm very angry") comes out as
annoyanceanddisappointmentat around 0.3 each, notanger. Direction right, intensity understated. - hiç beğenmedim ("I didn't like it at all") gets no confident label: the top score is 0.11. The valence is slightly negative, but the model is unsure. Turkish negation is a verb suffix (beğendim / beğenmedim), which is hard for any model.
Calling the API
Send Arabic and Turkish text exactly as written, UTF-8 encoded. Batches can mix languages:
curl -X POST https://emotions.togoder.click/api/analyze/batch \
-H "Content-Type: application/json" \
-H "Authorization: Bearer $SENTIMENT_API_KEY" \
-d '{"texts": ["الخدمة كانت ممتازة", "Ürünü çok beğendim", "Great service"]}'
# → 202 with one job_id per text. The whole batch is one debit from your credit.The API docs have complete Python and JavaScript clients.
Caveats: dialects, Arabizi, negation
- Dialects. We haven't measured accuracy per Arabic dialect. Expect Modern Standard Arabic to work best, and test Egyptian, Levantine, Gulf or Maghrebi text on your own samples.
- Arabizi. Arabic written in Latin letters and digits ("7abibi") is much harder for any model trained mainly on Arabic script. If your data has a lot of it, validate carefully.
- Turkish without diacritics. Users often type "cok guzel" for "çok güzel". Scores may differ between the two spellings; keep the original characters when you can.
- Long texts. The model reads up to 512 tokens. Arabic and Turkish words often split into several tokens, so split long reviews into sentences.
- Other languages. The model is intended for six languages. Text in other languages still gets a result, but its quality is not known.
Other options for Arabic and Turkish
The large cloud language APIs (Azure AI Language and Google Cloud Natural Language) support sentiment in many languages; check their current language-support pages for Arabic and Turkish. They return polarity (positive, neutral, negative, with confidence or magnitude), not named emotions. Open multilingual sentiment models on Hugging Face are another route if you can host them.
| Option | Arabic / Turkish output | You run it? | Billing |
|---|---|---|---|
| Sentiment API | 28 emotions + valence | No | Per message, prepaid credit, no subscription |
| Cloud NLP APIs (Azure, Google) | Polarity labels or score | No | Per text unit or record; cloud account |
| Open multilingual models | Depends on the model | Yes | Your compute |
Choose a polarity API if you only need positive/negative trends and already use that cloud. Choose emotion output when the next step depends on whether a customer is disappointed, angry or confused. For a fuller comparison, see AWS Comprehend vs. Google vs. Azure.
Frequently asked questions
Is there a sentiment analysis API for Arabic and Turkish?
Yes. The Sentiment API scores Arabic and Turkish text (as well as English, French, Spanish and German) through the same endpoint, with no language parameter. Each message returns 28 emotion scores and a valence score from -1 to 1, and is paid per message from prepaid credit with no subscription.
Do I need to tell the API which language the text is in?
No. There is no language parameter. Send the text as it is, in Arabic script or Turkish with its own characters, and the multilingual model handles it. Mixed-language batches are fine.
Does it work on Arabic dialects?
It returns results for dialectal Arabic, but we have not measured its accuracy per dialect. Multilingual models generally do best on Modern Standard Arabic and worse on dialects and romanized Arabic (Arabizi). Test on a sample of your own data first.
Should I translate Arabic or Turkish to English first?
You don't need to. Translation adds cost and latency and can lose slang, intensity and negation. It can still be a useful baseline: score a labelled sample both ways and keep whichever agrees better with your labels.
How much does Arabic or Turkish analysis cost?
The same as any other language: one price per message up to 256 characters, with a small surcharge per 1,000 extra characters. The live price is on the pricing page and in GET /api/pricing.