# Which pay-per-call APIs give public TikTok and X (Twitter) data?

> Search and read public TikTok videos and X posts with one key, paying per call with no monthly plan: views, likes, comments and authors as JSON, over HTTP or MCP.

Canonical page: https://okdata.online/answers/tiktok-x-pay-per-call-api/

**Short answer: **okdata sells public TikTok and X data per call, with no subscription and no developer approval: a TikTok video search or an X post search is one call ($0.002 and $0.002), and reading one video or post by link is $0.002 or $0.0003. One keyword on both platforms costs $0.004, and the same key works from a script or an AI agent over MCP.

Most teams that need TikTok and X data need it in bursts: a campaign check this week, a few hundred posts for a research project next month, an agent that looks something up when a user asks. A monthly plan sized for the busiest week is wasted money the rest of the time, and the official programs come with approval queues and tiers. Paying per call fits that shape better: you pay for the searches you run and nothing when you run none.

## What one key covers

| Need | Endpoint | Price |
|---|---|---|
| TikTok videos for a keyword, about 30 a page | [TikTok video search](/apis/tiktok/videos/search/) | $0.002 |
| X posts for a query (search operators work), about 20 a page | [X post search](/apis/x/posts/search/) | $0.002 |
| One TikTok video by link: views, likes, comments, shares | [TikTok video](/apis/tiktok/videos/get/) | $0.002 |
| One X post by link: views, likes, replies, reposts | [X post](/apis/x/posts/get/) | $0.0003 |
| Account profile and follower count | [TikTok user](/apis/tiktok/users/get/), [X user](/apis/x/users/get/) | $0.002, $0.0004 |

Both platforms come back in the same shape: `text`, `published_at`, `author`, and `metrics.views`, `likes`, `comments`. One parser handles both.

## A real run: same keyword, two different stories

On 30 November 2026 we searched "stanley cup" on both platforms, TikTok sorted by most liked and X by top. Two calls cost $0.004.

| | TikTok | X |
|---|---|---|
| Items returned | 30 | 20 |
| Top result | A 50-cup Stanley tumbler collection | "Back-to-back Stanley Cup champions!" (Florida Panthers) |
| Its numbers | 32,239,978 views, 3,775,971 likes | 3,220,283 views, 30,623 likes |

The same two words mean a drinking cup on TikTok and an ice-hockey trophy on X. If you track a brand or a topic across platforms, read a page of results first and tighten the query (`stanley tumbler`, or X operators such as `-nhl`) before you count anything.

## Budgeting

A daily check of five keywords on both platforms is ten calls, $0.04 a day. Re-reading 200 tracked videos and posts once a week is $0.23. Each further page is one more call with the cursor, so you only pay for the depth you need.

## From an AI agent

Add the okdata MCP server to Claude, Cursor or any MCP client and ask in plain words, for example "top TikTok videos about stanley cup this month, and what X is saying about it". The agent picks the endpoints and shows the cost of each call. New accounts get free credit.

## Endpoints used

- [TikTok video search](https://okdata.online/apis/tiktok/videos/search/) `tiktok.videos.search`: $0.002 per call · about 30 videos per page
- [X post search](https://okdata.online/apis/x/posts/search/) `x.posts.search`: $0.002 per call · about 20 posts per page
- [TikTok video detail](https://okdata.online/apis/tiktok/videos/get/) `tiktok.videos.get`: $0.002 per call
- [X post detail](https://okdata.online/apis/x/posts/get/) `x.posts.get`: $0.0003 per call
- [TikTok account profile](https://okdata.online/apis/tiktok/users/get/) `tiktok.users.get`: $0.002 per call
- [X account profile](https://okdata.online/apis/x/users/get/) `x.users.get`: $0.0004 per account · at most $0.04 per call

## More about TikTok

- [TikTok API](https://okdata.online/apis/tiktok/)
- [TikTok comments in Python for sentiment analysis (2026)](https://okdata.online/guides/tiktok-comments-python/)
- [How to get TikTok Creative Center top ads by API](https://okdata.online/guides/tiktok-creative-center-top-ads/)
- [How to collect TikTok Shop product reviews by keyword](https://okdata.online/guides/tiktok-shop-product-reviews/)
- [How to search X (Twitter) posts by keyword and export them](https://okdata.online/guides/x-search-posts-by-keyword/)
- [TikTok's Research API is only for academics. What can a company use instead?](https://okdata.online/answers/tiktok-research-api-alternative/)
- [TikTokApi keeps throwing EmptyResponseException. Is there a more reliable way to get TikTok data?](https://okdata.online/answers/tiktokapi-emptyresponseexception/)
- [twscrape says No active accounts and my X accounts keep getting locked. What now?](https://okdata.online/answers/twscrape-no-active-accounts/)
- [How much does the X (Twitter) API cost in 2026?](https://okdata.online/answers/x-api-pricing-2026/)
- [How fresh is the data from a social media API?](https://okdata.online/answers/how-fresh-is-social-media-api-data/)
- [Official platform APIs vs third-party data APIs (2026)](https://okdata.online/compare/official-apis-vs-data-apis/)
- [How to choose a social media data API (2026)](https://okdata.online/compare/social-media-data-apis/)
- [Profile API](https://okdata.online/roles/accounts-get/)
- [Post detail API](https://okdata.online/roles/posts-get/)

## Sources

Where people asked this (read 2026-11-30): 

- https://okdata.online/apis/tiktok/videos/search/
- https://okdata.online/apis/x/posts/search/

Updated 2026-11-30
