# TikTok influencer engagement analysis example

**Use case:** 

Extract Khaby Lame's public creator profile and calculate views, interactions, and engagement rates from recent TikTok posts.

## Input

```json
{
  "creators": [
    "@khaby.lame"
  ],
  "recentPostCount": 3,
  "includePostDetails": true,
  "snapshotLabel": "Back-to-school campaign — week 1"
}
```

## Output

```json
{
  "username": {
    "label": "Username",
    "format": "string"
  },
  "displayName": {
    "label": "Display name",
    "format": "string"
  },
  "isVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "followerCount": {
    "label": "Followers",
    "format": "integer"
  },
  "followingCount": {
    "label": "Following",
    "format": "integer"
  },
  "totalLikesCount": {
    "label": "Profile likes",
    "format": "integer"
  },
  "totalVideoCount": {
    "label": "Videos",
    "format": "integer"
  },
  "recentPostSampleSize": {
    "label": "Posts analyzed",
    "format": "integer"
  },
  "averageViewsPerPost": {
    "label": "Average views",
    "format": "number"
  },
  "medianViewsPerPost": {
    "label": "Median views",
    "format": "number"
  },
  "averageEngagementsPerPost": {
    "label": "Average engagements",
    "format": "number"
  },
  "engagementRateByViews": {
    "label": "Engagement by views (%)",
    "format": "number"
  },
  "engagementRateByFollowers": {
    "label": "Engagement by followers (%)",
    "format": "number"
  },
  "snapshotLabel": {
    "label": "Snapshot label",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  },
  "profileUrl": {
    "label": "Profile URL",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [TikTok Creator Analytics Scraper](https://apify.com/automation-lab/tiktok-creator-analytics-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/automation-lab/tiktok-creator-analytics-scraper) to learn more, explore other use cases, and run it yourself.