本文へ移動
TurnitPass
開発者API v1APIキーを取得
ドキュメントを見る

開発者クイックスタート

最初のリクエストを送信

APIキーを作成し、ヒューマナイズ、AI検出、引用の各エンドポイントを呼び出します。

準備

1

サインイン

Google でサインインし、ワークスペースを開きます。

2

語数を追加

プランまたは1回限りの語数チャージを選びます。

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 }
}
エラーは error、code、message フィールドを含む JSON で返ります。

その他の例

AI検出のリクエスト
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 が含まれます。

次のステップ