Skip to Content
tikdataapi.com

エージェント向け

1 行で API 全体を LLM やエージェントに渡せます。

エージェントに必要なものは、すべて URL 1 つで手に入ります。クライアントに合ったものを選んでください。

用途URL
ドキュメント(短い索引)https://tikdataapi.com/llms.txt
ドキュメント(全体を 1 ファイルで)https://tikdataapi.com/llms-full.txt
ドキュメントの 1 ページを Markdown でURL に .md を付ける(例:https://tikdataapi.com/docs/coverage.md)
仕様(OpenAPI 3.1)https://api.tikdataapi.com/openapi.yaml、または https://tikdataapi.com/openapi.json
ツール(MCP サーバー)https://api.tikdataapi.com/mcp(サインインは自動、またはヘッダー x-api-key)
稼働状況(JSON)https://api.tikdataapi.com/status
上記すべての一覧https://api.tikdataapi.com/

ドキュメントのどのページも、Accept: text/markdown を付けたリクエストには Markdown で応答します。

貼り付け用のプロンプト

Use the tikdataapi.com API to read public TikTok data: profiles, videos, comments, replies, hashtags, sounds,
video, account, sound, live and hashtag search, follower and following lists, reposts, playlists, related and
trending videos, whether an account is live, and video transcripts.
Docs: https://tikdataapi.com/llms-full.txt. Base URL https://api.tikdataapi.com, header x-api-key: tt_live_...
Every response has credits_charged and balance_remaining; stop when balance_remaining is 0. Errors are JSON
with a stable "code" field. Pages return next_cursor; pass it back as cursor. Find accounts with account search
(short profiles; read the full profile with /v1/users/{user}). Hashtag search ranks the hashtags of the videos of
the general search: its counts are of those videos, not the totals of TikTok (read /v1/hashtags/{name} for those).

1 行で MCP を使う

claude mcp add --transport http tikdataapi https://api.tikdataapi.com/mcp

キーは含まれていません。サーバーがブラウザ経由でクライアントをサインインさせ、クライアントは専用の認証情報を取得します。ほかのクライアントや、ブラウザのないマシン向けのヘッダー形式については、MCP サーバーをご覧ください。27 個のツールは読み取り専用で、そのことを示すアノテーションが付いているため、読み取り専用のツールを自動承認するクライアントでは、呼び出しのたびに確認を求められることはありません。

エージェントにとって使いやすい理由

  • フラットなオブジェクト。 User、Video、Comment、Hashtag は、どのエンドポイントでも同じ形です。掘り下げなければならないラッパーはありません。
  • 安定したエラーコード。 no_credits、not_found、rate_limited、busy、upstream_rate_limited。それぞれの対処法はエラーのページにあります。失敗したリクエストは無料です。
  • レスポンスにコストが入る。 すべての呼び出しに credits_charged と balance_remaining が付くため、エージェントは追加のリクエストなしで予算を管理できます。
  • すべてのオブジェクトに時刻が付く。 collected_at は TikTok から読み取った時刻を示すため、エージェントは数値がどのくらい古いかを把握できます。
  • ページ番号ではなくカーソル。 next_cursor は不透明な値です。cursor として渡し返してください。カーソルがなければ終わりです。
  • バッチ。 1 回の呼び出しで最大 100 件のユーザー名または動画 ID を扱え、課金は 1 回、エラーはアイテムごとに返ります。バッチをご覧ください。
  • 冪等な読み取り。 すべてが読み取りです。リトライは常に安全で、キャッシュの保持時間内の繰り返しは半額です。
  • エージェントごとのキー。 エージェントごとに 1 つのキーをダッシュボードで作成しておけば、1 つだけを無効化できます。