Skip to Content
tikdataapi.com

Für Agenten

Geben Sie einem LLM oder Agenten die ganze API mit einer Zeile.

Alles, was ein Agent braucht, ist nur eine URL entfernt. Wählen Sie die, die zum Client passt.

BedarfURL
Doku, kurzer Indexhttps://tikdataapi.com/llms.txt
Doku, alles in einer Dateihttps://tikdataapi.com/llms-full.txt
Eine Doku-Seite als Markdown.md an ihre URL anhängen, zum Beispiel https://tikdataapi.com/docs/coverage.md
Vertrag, OpenAPI 3.1https://api.tikdataapi.com/openapi.yaml oder https://tikdataapi.com/openapi.json
Tools, MCP-Serverhttps://api.tikdataapi.com/mcp (meldet sich selbst an, oder Header x-api-key)
Live-Zustand, JSONhttps://api.tikdataapi.com/status
Verzeichnis aller oben genanntenhttps://api.tikdataapi.com/

Jede Doku-Seite antwortet auf eine Anfrage mit Accept: text/markdown außerdem in Markdown.

Prompt zum Einfügen

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).

MCP in einer Zeile

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

Kein Schlüssel darin: Der Server meldet den Client über einen Browser an, und der Client erhält eigene Zugangsdaten. Andere Clients und die Header-Variante für eine Maschine ohne Browser: siehe MCP-Server. Die 27 Tools sind nur lesend und als solche annotiert, sodass Clients, die nur lesende Tools automatisch freigeben, nicht bei jedem Aufruf nachfragen.

Warum die API für Agenten einfach ist

  • Flache Objekte. Ein User, ein Video, ein Comment und ein Hashtag haben auf jedem Endpunkt dieselbe Form. Keine Hüllen, durch die man sich graben muss.
  • Stabile Fehlercodes. no_credits, not_found, rate_limited, busy, upstream_rate_limited. Die Fehlerseite sagt, was bei jedem zu tun ist. Fehlgeschlagene Anfragen kosten nichts.
  • Kosten in der Antwort. credits_charged und balance_remaining bei jedem Aufruf, sodass ein Agent ohne zweite Anfrage budgetieren kann.
  • Zeit an jedem Objekt. collected_at sagt, wann wir es bei TikTok gelesen haben, sodass ein Agent weiß, wie alt eine Zahl ist.
  • Cursor statt Seitenzahlen. next_cursor ist opak; geben Sie ihn als cursor zurück. Kein Cursor bedeutet das Ende.
  • Batch. Bis zu 100 Benutzernamen oder Video-IDs in einem Aufruf, eine Abrechnung, Fehler pro Objekt. Siehe Batch.
  • Idempotente Lesezugriffe. Alles ist ein Lesezugriff. Wiederholen ist immer sicher; eine Wiederholung innerhalb des Cache-Fensters kostet die Hälfte.
  • Ein Schlüssel pro Agent. Erstellen Sie im Dashboard einen Schlüssel pro Agent, damit sich jeder einzeln widerrufen lässt.