# TikTok Search Posts API | TikTok post search

**Use case:** 

Search TikTok posts with SocialDataX. Export videos, images, authors, engagement metrics and pagination to Dataset, CSV, Excel or API.

## Input

```json
{
  "operation": "search_posts",
  "keyword": "AI",
  "page_token": "***",
  "content_type": "all",
  "url": "",
  "tiktok_id": "",
  "profile_url": "",
  "max_items": 20,
  "auto_paginate": true
}
```

## Output

```json
{
  "operation": {
    "label": "Operation",
    "format": "string"
  },
  "item_index": {
    "label": "Item index",
    "format": "integer"
  },
  "title": {
    "label": "Title",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "content": {
    "label": "Content",
    "format": "string"
  },
  "share_url": {
    "label": "Share URL",
    "format": "string"
  },
  "post_url": {
    "label": "Post URL",
    "format": "string"
  },
  "video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "author_username": {
    "label": "Author username",
    "format": "string"
  },
  "author_name": {
    "label": "Author name",
    "format": "string"
  },
  "like_count": {
    "label": "Like count",
    "format": "integer"
  },
  "comment_count": {
    "label": "Comment count",
    "format": "integer"
  },
  "page_request_index": {
    "label": "Page request index",
    "format": "integer"
  },
  "page_has_more": {
    "label": "Page has more",
    "format": "boolean"
  }
}
```

## About this Actor

This example demonstrates how to use [TikTok API | search comments creator videos](https://apify.com/socialdatax/socialdatax-tiktok-data-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialdatax/socialdatax-tiktok-data-api) to learn more, explore other use cases, and run it yourself.