# TikTok Data API

Get TikTok profiles, posts and search results in TikTok's own format.

by Apify Ready to run $0.0028 per search

## Example

### You ask your agent

“Get NASA's TikTok follower count, total likes and number of videos.”

### You get

**UID:** 7664638705177150477

**Bio URL:** go.nasa.gov/3WyvlQi

**Nickname:** NASA

**Signature:** Making the seemingly impossible, possible.✨

**Aweme count:** 70

**Follower count:** 2,213,506

**Following count:** 23

**Total favorited:** 11,857,134

**What your agent sends and gets back (JSON)**

Your agent works out the exact inputs, such as IDs, dates and settings, from what you ask.

### Request

```
{
  "tool_id": "apify.scraptik-tiktok-api",
  "input": {
    "input": {
      "username": "nasa",
      "operation": "profile"
    },
    "maxItems": 10
  }
}
```

### Response

```
{
  "items": [
    {
      "user": {
        "uid": "7664638705177150477",
        "bio_url": "go.nasa.gov/3WyvlQi",
        "sec_uid": "MS4wLjABAAAAU9BRVzC8oCaegVnia8IbqWhPb_-dbU7s00Y3wS1_Nx8g5RUaYvyXrpejgjdxTwd6",
        "nickname": "NASA",
        "signature": "Making the seemingly impossible, possible.✨",
        "unique_id": "nasa",
        "aweme_count": 70,
        "follower_count": 2213506,
        "following_count": 23,
        "total_favorited": 11857134,
        "verification_type": 0,
        "enterprise_verify_reason": "institution account"
      },
      "status_code": 0
    }
  ],
  "item_count": 1
}
```

## Use it with your agent

Copy the prompt and paste it into your agent, then tell it what you need.

Read https://scrollport.com/start. Use my existing Scrollport connection, or help me connect if needed. Help me use TikTok Data API (tool ID: apify.scraptik-tiktok-api). Ask me for the details you need, then show me the result.

Provider access is included. If your agent isn't connected to Scrollport yet, it will help you set that up.

No agent yet? [Create your account on the web](https://scrollport.com/sign-up) and connect one from your dashboard later.

## Other tools for this job

[Compare all 27 →](https://scrollport.com/tools/tiktok-api)

- [Search TikTok across all content by keyword](https://scrollport.com/tools/providers/tikhub/tiktok-app-v3-fetch-general-search-result) TikHub $0.0025 per request $0.0025 per request
- [Search TikTok hashtags by keyword](https://scrollport.com/tools/providers/tikhub/tiktok-app-v3-fetch-hashtag-search-result) TikHub $0.0025 per request $0.0025 per request
- [Search TikTok photo posts by keyword](https://scrollport.com/tools/providers/tikhub/tiktok-web-fetch-search-photo) TikHub $0.0025 per request $0.0025 per request

## Questions

**Is TikTok Data API by Apify free?**

Scrollport has no free tier: it costs $0.0028 per search, paid per use from a prepaid wallet with no subscription. Connecting your first agent adds $1 of trial credit, so you can try it before adding funds.

**Do I need an API key from Apify?**

No. Your agent runs it through your Scrollport connection (MCP, the Scrollport CLI or the HTTP API), and Scrollport handles access to Apify, so you don't sign up with Apify or manage an API key.

## Details

**About this tool**

Call one TikTok operation per run: a profile by username, a user's posts by secUserId (from the profile), a post by video ID, or posts or users matching a keyword. List operations return up to maxItems entries, at most 10. Results come in TikTok's own response format, including counts, captions, music and IDs. You're charged per call. The worked example shows selected fields: long text is shortened, nested lists keep one item and expiring media links are left out.

**All inputs and outputs**

### Input

`input` object · required

Provider-specific public source, URL or search criteria.

`maxItems` integer · optional

Maximum number of records to return.

minimum: 1 · maximum: 10

### Output

`item_count` number

`items` array

Result records.

**Errors and limits**

- `upstream_error`: The scraper could not return usable results; the wallet was not charged.Check the input and limits, or retry later.

---

Canonical page: https://scrollport.com/tools/providers/apify/scraptik-tiktok-api
