TikTok Analytics API
Bring TikTok video performance data into your product, reporting workflow, automation, or AI system through one API.
- Retrieve views, likes, comments, and shares for TikTok videos
- Pull video performance from connected TikTok accounts
- Organize analytics with filtering, sorting, and pagination
- TikTok OAuth handled through PostPeer
{ "platforms": ["twitter", "linkedin"], "content": "Hello world!" }
"I was up and running on six different platforms in under 30 minutes. Strongly recommend!"
David Flor, Founder at Darklight Interactive
"Couldn't figure out the official Pinterest API. PostPeer was smooth. Using it daily."
Divanshu Khatter, Marketing Manager at Sembark
"Great integration experience. Jonathan ships fixes within hours. Mad respect for the speed."
Het Tikawala, Founder at Kalizzle AI Studio
Add Social Media to Your Product in Three Steps
Connect once, then publish, schedule, and read data through the same API.
01
Get Your API Key
Sign up and get your API key instantly. No sales calls or complicated setup.
02
Integrate in Minutes
Connect once to PostPeer to publish, schedule, analyze, manage comments, and handle messages.
03
Support Every Major Platform
Give your users access to major social platforms without building and maintaining each integration yourself.
New to PostPeer? Read the getting started guide
Explore Requests and Responses by Format
Use the same endpoint and change only the fields required for each publishing format.
curl "https://api.postpeer.dev/v1/analytics?platform=tiktok&accountId=acc_tt_321&sortBy=views&order=desc&limit=10" \
-H "x-access-key: your-api-key"{
"success": true,
"total": 1,
"page": 1,
"limit": 10,
"posts": [
{
"source": "platform",
"postId": null,
"content": "Quick tutorial on shipping AI features fast",
"publishedAt": "2026-05-28T14:22:00Z",
"aggregated": {
"impressions": null,
"reach": null,
"likes": 1842,
"comments": 73,
"shares": 218,
"saves": null,
"clicks": null,
"views": 42100,
"engagementRate": null
},
"platforms": [
{
"platform": "tiktok",
"platformPostId": "7123456789012345678",
"platformPostUrl": "https://www.tiktok.com/@youruser/video/7123456789012345678",
"metrics": {
"impressions": null,
"reach": null,
"likes": 1842,
"comments": 73,
"shares": 218,
"saves": null,
"clicks": null,
"views": 42100,
"engagementRate": null
}
}
]
}
]
}https://api.postpeer.dev/v1/analytics
Everything You Need for TikTok Analytics
Bring TikTok video performance into dashboards, SaaS products, reporting tools, automations, and internal analytics workflows.
Per-Video Metrics
Retrieve views, likes, comments, and shares for supported TikTok videos.
Connected Account Analytics
Use your connected TikTok integration to retrieve video performance through the same PostPeer analytics workflow used across supported platforms.
Unified Analytics Endpoint
Retrieve TikTok analytics through /v1/analytics instead of maintaining a separate analytics integration for TikTok.
Performance Sorting
Organize TikTok video results using supported analytics sorting parameters, including video-performance metrics such as views.
Pagination
Use page and limit to work through larger TikTok analytics result sets without loading everything in a single request.
Managed TikTok Connection
Connect TikTok through PostPeer's OAuth flow and use the resulting integration ID throughout your API workflow.
Need More Than Analytics?
Add publishing, scheduling, and messaging to the same connected TikTok workflow.
Ship TikTok Analytics in Any Stack
Whether your product is a Node app, a no-code workflow, or an AI agent, the same PostPeer API can power the publishing workflow.
Dev Stack
Typed SDKs and predictable REST APIs let you integrate PostPeer into the stack your application already uses.
- Node.js SDK
- Python SDK
- REST + cURL
- TypeScript-first types
AI Agents & MCP
Give Claude, Cursor, Codex, or your own AI agent the ability to publish, schedule, and interact with social workflows through PostPeer.
Connect via MCPBeyond TikTok: Every Supported Platform
Start with TikTok, then reach every other network through the same API.
Twitter/X API
Pull Twitter/X performance metrics.
YouTube API
Pull YouTube performance metrics.
Pinterest API
Pull Pinterest performance metrics.
LinkedIn API
Pull LinkedIn performance metrics.
TikTok API
Pull TikTok performance metrics.
Facebook API
Pull Facebook performance metrics.
Instagram API
Pull Instagram performance metrics.
Add More Social Capabilities
Use the same connected accounts to schedule, analyze, manage comments, and handle conversations.
Frequently Asked Questions
Power Your Next Project With a Unified Social Media API
Give your users posting, scheduling, analytics, and engagement features through one API your team can maintain.
Start with 20 free credits. No credit card required.