TikTok API for Developers — REST, MCP, Datasets

TikTok API for Developers

LamaTok is an unofficial TikTok Private API — a fault-tolerant REST API that exposes TikTok's full surface (users, videos, comments, hashtags, locations, music, downloads, plus DM and content-upload automation) without TikTok's OAuth approval process. You get an API key, you make HTTP calls, you get JSON back. Account pool, proxies, and challenge handling are managed for you.

Whether you're building an analytics dashboard, a creator-discovery tool, an automation workflow, or a research pipeline, LamaTok delivers a single REST surface from $0.001 per request.

What You Get

LamaTok exposes a single coherent REST surface across the TikTok entity graph:

ResourceEndpointsLookup by
User profile/v1/user/by/username, /v1/user/by/idunique_id or PK
User followers / following/v1/user/followers, /v1/user/followinguser PK, paginated
User media feed/v1/user/mediasuser PK, paginated
Videos & reels/v1/media/by/id, /v1/media/by/urlvideo PK or share URL
Comments & likers/v1/media/comments, /v1/media/likersvideo PK, paginated
Hashtags (challenges)/v1/hashtag/info, /v1/hashtag/mediasname or PK
Locations/v1/location/info, /v1/location/mediasname or PK
Music tracks/v1/music/info, /v1/music/mediasmusic PK
Content download/v1/media/downloadvideo PK (returns watermark-free URL)
DM & uploads/v1/direct/*, /v1/upload/*requires authenticated session

For the full interactive spec, see api.lamatok.com/docs (Swagger) or api.lamatok.com/redoc (ReDoc).

Why a Private API Instead of the Official TikTok APIs

TikTok ships two official APIs, both heavily gated:

  • TikTok Research API — academic researchers only. Requires institutional approval, restricted to public posts whose owners opted into research, capped query volume.
  • TikTok for Developers (login API) — OAuth-based, limited to your own authenticated account. Cannot read arbitrary public profiles or videos.

If you're building a commercial product or doing research that doesn't fit the academic gate, you need an unofficial private API. LamaTok exposes the surface developers actually want: any public user, any public video, full engagement metrics, downloads, plus write capabilities.

Pricing

LamaTok charges per request based on top-up tier. Funds never expire, no monthly subscription:

PlanMin depositPrice/requestEffective $/1k
Start$20$0.02$20
Basic$50$0.0025$2.50
Standard$100$0.001$1.00
Premium$300$0.0006$0.60
  • 100 free requests on signup, no credit card required
  • We charge only for successful responses (200, 403, 404). 5xx server errors are not billed.
  • Funds never expire
  • Volume discounts auto-apply as deposit tier increases
  • Payment methods: Visa/Mastercard, USDT (TRC-20, ERC-20, BEP-20)

Compared with Alternatives

ProviderTypeWrite opsAccount poolPer-request floor
LamaTokUnofficial private APIYes (DM, uploads)Yes — managed$0.0006
TikTok Research APIOfficial (academic)NoFree (gated)
TikTok for DevelopersOfficial (OAuth)Own account onlyFree (OAuth)
Apify TikTok ScraperActor-based scraperNoYou manage~$0.0023
Bright Data TikTok DatasetEnterprise datasetNo~$1 per profile
DataLikers TikTok APICached read APINo$0.0003

LamaTok vs DataLikers TikTok API — sibling products under the same operator. LamaTok is the live private API with write capabilities; DataLikers is the cached read-only layer with bundled Instagram + TikTok and an MCP Server for Claude. Pick LamaTok if you need DM automation, uploads, or sub-second freshness. Pick DataLikers if read-only Instagram+TikTok at $0.0003 per cached record fits the workload.

Three Integration Patterns

1. REST API (the default)

Standard HTTP, JSON in and JSON out. Best for production apps, analytics dashboards, ETL pipelines, and AI agents.

import requests

API_KEY = "your_lamatok_key"
BASE = "https://api.lamatok.com"

# Fetch a TikTok user by unique_id (handle)
resp = requests.get(
    f"{BASE}/v1/user/by/username",
    params={"username": "khaby.lame"},
    headers={"x-access-key": API_KEY},
)
data = resp.json()
print(f"Followers: {data['follower_count']:,}")
print(f"Videos:    {data['video_count']:,}")
const API_KEY = "your_lamatok_key";

const resp = await fetch(
  "https://api.lamatok.com/v1/user/by/username?username=khaby.lame",
  { headers: { "x-access-key": API_KEY } }
);
const data = await resp.json();
console.log(`Followers: ${data.follower_count.toLocaleString()}`);

2. MCP Server (for Claude / Cursor / Zed / Windsurf)

LamaTok ships a stdio MCP server published on npm as lamatok-mcp — ~19 TikTok tools auto-generated from the OpenAPI spec.

# Claude Code
claude mcp add lamatok -e LAMATOK_KEY=your-key -- npx -y lamatok-mcp

Same LAMATOK_KEY, same pricing. Works with Claude Desktop, Cursor, OpenAI Codex, Zed, Windsurf, or any MCP-compatible AI client. Source: github.com/subzeroid/lamatok-mcp.

3. Bulk / Research (Dataset Builder via DataLikers)

For pre-built TikTok datasets or millions-of-records research workloads, use the sibling product DataLikers Dataset Builder which caches LamaTok output at lower per-record cost.

Use Cases

  • Creator discovery and influencer outreach — search creators by hashtag, location, follower band, engagement rate
  • Brand monitoring across TikTok — comment search, brand-mention detection, sentiment summarization
  • Content / trend research — top videos under a hashtag, music-track propagation, regional differences
  • Automation workflows — DM outreach, content reposting, scheduled uploads, comment moderation
  • Machine learning pipelines — engagement features, audience modeling, viral-prediction training data
  • AI agents — give Claude / Cursor live TikTok data via the MCP server for content strategy, competitive analysis, creator outreach

FAQ

What is a TikTok private API and how is it different from the official one? The official TikTok APIs (Research API and TikTok for Developers) are gated — academic researchers only, or OAuth-restricted to your own account. A private API like LamaTok speaks directly to TikTok's internal endpoints and returns the same data the TikTok app sees, without OAuth or research approval.

Is LamaTok legal? LamaTok accesses public TikTok data — content that anyone with a TikTok account can see. Private accounts and logged-in-only data are not exposed. Check your local laws and TikTok's Terms of Service for your jurisdiction; for commercial use, consult counsel.

Do I need my own TikTok account to use LamaTok? No — LamaTok manages an account pool internally. You get an API key and make HTTP calls; the account management, proxy rotation, and challenge handling are all on our side.

What's the rate limit? There is no published per-request rate limit. We bill per successful response; concurrency is handled by our infrastructure. For sustained high-volume workloads (>100 RPS), contact us at [email protected] or @lamatok on Telegram for custom plans.

Does LamaTok support DM automation and content upload? Yes — /v1/direct/* for DM threads and /v1/upload/* for photo / video / reel uploads. These endpoints require an authenticated TikTok session (managed by LamaTok's account pool).

How does LamaTok compare to DataLikers TikTok API? Sibling products. LamaTok is the live private API with write capabilities and sub-second freshness. DataLikers caches the same data and bundles it with Instagram + an MCP server for Claude, at $0.0003 per cached record. Pick LamaTok for write-heavy workloads or maximum freshness; pick DataLikers for read-only bulk or cross-platform Instagram + TikTok.

Where are the docs?

Getting Started

Register for a LamaTok account to receive 100 free requests instantly. Try the TikTok endpoints in the interactive API docs, or wire up the MCP Server and let Claude do the TikTok research for you.

Related: LamaTok vs Apify TikTok, LamaTok vs TikTok Research API, Best TikTok API for Developers 2026, TikTok Private API Alternatives 2026.

Ready to get started?

100 free API requests. No credit card required.

Sign Up Free