Answers / TikTok

How do I connect an AI assistant to TikTok?

Add https://posttodata.com/mcp as a remote MCP server with an Authorization: Bearer YOUR_API_KEY header. Ask in plain words: the model calls search_posts with platform tiktok, then get_comments on the videos it picks, and cites each video's link.

TikTok · comments · $0.003 a call · one verified website trial · updated 2026-11-13

Run it live

Calls run only when you press Run. Opening this page does not spend credit.

Loading…

Your results will appear here. Choose a platform and action, then press Run.

Real API calls require verification for one trial, or a signed-in account with prepaid credit.

From code

curl
curl "https://posttodata.com/v1/tiktok/comments?id=7626055267020754206&limit=5" -H "Authorization: Bearer YOUR_API_KEY"
Python
import requests

r = requests.get(
    "https://posttodata.com/v1/tiktok/comments",
    headers={"Authorization": "Bearer YOUR_API_KEY"},
    params={"id": "7626055267020754206", "limit": 5},
)
for item in r.json()["data"]["items"]:
    print(item["url"], item.get("text") or item.get("title"))

From your AI

Claude and ChatGPT clients that support OAuth can sign in without pasting a key. Follow the client setup guide. The command below is the API-key option for Claude Code.

Add the MCP server once
claude mcp add --transport http posttodata https://posttodata.com/mcp --header "Authorization: Bearer YOUR_API_KEY"

Then ask

“Search TikTok for pour-over coffee, pick the three most-played videos and summarize their comments.”

The model calls get_comments with platform tiktok.

Good to know

  • No TikTok account is needed.
  • Each call states its price in meta.billing.
  • Comments come with like and reply counts, so the model can weigh them.

Full reference in the docs. All TikTok endpoints are on the TikTok API page.

More answers