Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.mavera.io/llms.txt

Use this file to discover all available pages before exploring further.

TikTok’s Business API exposes the creative performance data, audience demographics, and trend signals that most marketing teams never touch. These five jobs pull that data through Mavera’s surfaces (Video Analysis, Focus Groups, Personas, Mave Agent, Generate) to score video hooks, rank creatives by behavioral metrics, test concepts with generational personas, and measure how audio choice affects emotional response.

API Reference Card

DetailValue
Base URLhttps://business-api.tiktok.com/open_api/v1.3/
AuthOAuth 2.0 — Access-Token: {token} header
Rate limits10–20 QPS depending on endpoint; 10,000 daily for reporting
Mavera basehttps://app.mavera.io/api/v1
Mavera authAuthorization: Bearer mvra_live_...
All examples use three environment variables: TIKTOK_ACCESS_TOKEN, TIKTOK_ADVERTISER_ID, and MAVERA_API_KEY. TikTok tokens are long-lived but can be revoked. Store them in your secrets manager.

Prerequisites

1

TikTok for Business account

Register at TikTok for Business. Create or link an ad account with active campaigns.
2

Marketing API access

Apply for API access at TikTok Marketing API. Obtain your App ID, Secret, and complete the OAuth flow.
3

Mavera API key

Get your key from Mavera dashboard.
4

Environment variables

export TIKTOK_ACCESS_TOKEN="...", export TIKTOK_ADVERTISER_ID="...", and export MAVERA_API_KEY="mvra_live_xxxxx"

Jobs

#JobTikTok DataMavera SurfaceOutput
1Ad Video Analysis PipelineVideo ads from ad/get/Video AnalysisHook scoring, emotional arc, cognitive load
2Cross-Creative LeaderboardCreatives + performanceVideo AnalysisPredictive scoring vs actual CTR
3Audience → Gen Z Focus GroupAudience demographicsPersonas + Focus GroupsGenerational concept testing
4Trend → Content PipelineTrending hashtagsMave Agent + GenerateBrand-aligned trend content
5Sound/Music Impact AnalysisSame visual, different audioVideo AnalysisEmotional intensity comparison

Rate Limits & Production Notes

TikTok EndpointLimitStrategy
Ad Management (/ad/get/)10 QPSBatch with page_size up to 1000
Reporting (/reports/)10–20 QPS; 10,000/dayCache daily; run overnight jobs
Research API1,000/dayPrioritize; cache trend data for 6h
File Info (/file/video/)20 QPSRate-limit downloads; use CDN caching
TikTok enforces QPS limits (queries per second) rather than daily totals for most endpoints. However, the Reporting API has a 10,000 daily limit. All code includes per-request delays. For production batch jobs processing 50+ creatives, implement a semaphore (asyncio.Semaphore(10) in Python, p-limit(10) in Node).
Checklist: Store tokens in env vars or secrets manager. TikTok tokens are long-lived but verify with GET /oauth2/token_info/. Handle pagination via page and page_size params. Monitor X-TT-RateLimit-Remaining headers. Compress video before Mavera upload. Cache TikTok data for daily analysis runs. Monitor Mavera credits at Dashboard.

All Integrations

TikTok Marketing API

Video Analysis

Personas

Focus Groups

Mave Agent