تخطَّ إلى المحتوى
TurnitPass
المطوّرونAPI v1احصل على مفتاح API
تصفّح التوثيق

المطوّرونالبدء السريع

أرسل طلبك الأول

أنشئ مفتاح API، ثم استدعِ نقاط نهاية أنسنة النص وكشف الذكاء الاصطناعي والاستشهاد.

الإعداد

1

سجّل الدخول

سجّل الدخول باستخدام Google وافتح مساحة العمل.

2

أضف كلمات

اختر خطة أو شحنة كلمات لمرة واحدة.

3

أنشئ مفتاح API

سمِّ المفتاح في مساحة العمل واحفظه على خادمك.

4

أرسل طلبًا

استدعِ /humanize باستخدام المثال أدناه.

أول استدعاء API

استبدل tp_live_your_api_key بمفتاحك. أرسل الطلبات من خادمك، لا من المتصفح.

طلب أنسنة النص
curl
curl -X POST https://turnitpass.com/api/v1/humanize \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","mode":"reduce-aigc"}'
طلب إعادة الصياغة
curl
curl -X POST https://turnitpass.com/api/v1/paraphrase \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","mode":"academic"}'

الاستجابة

الاستجابة
200 OK
{
  "output": "…",
  "words_used": 142,
  "words_remaining": 2858,
  "usage": { "words": 142, "characters": 861 },
  "metrics": { "kind": "heuristic_estimate", "aiLikeScore": 18, "naturalTone": 82, "sentenceVariety": 74, "readability": 68 }
}
تُرجع الأخطاء JSON يحتوي على الحقول error وcode وmessage.

أمثلة إضافية

طلب كشف الذكاء الاصطناعي
POST /api/v1/detect
curl -X POST https://turnitpass.com/api/v1/detect \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"text":"Paste the draft you want to revise.","language":"en","source_kind":"paste"}'
طلب الاستشهاد
POST /api/v1/citation
curl -X POST https://turnitpass.com/api/v1/citation \
  -H "Authorization: Bearer tp_live_your_api_key" \
  -H "Content-Type: application/json" \
  -d '{"input":"https://example.com/research-article","style":"apa"}'
تتضمن استجابات الاستشهاد وقائمة المراجع نصًا منسّقًا وBibTeX وRIS.

الخطوات التالية