# X Twitter User Posts API | Twitter timeline

**Use case:** 

Export X/Twitter user posts with SocialDataX. Includes post IDs, text, media, engagement metrics, URLs and pagination.

## Input

```json
{
  "operation": "list_user_posts",
  "keyword": "OpenAI",
  "sort_type": "hot",
  "page_token": "***",
  "post_url": "",
  "user_id": "",
  "username": "OpenAI",
  "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"
  },
  "share_url": {
    "label": "Share URL",
    "format": "string"
  },
  "post_url": {
    "label": "Post URL",
    "format": "string"
  },
  "video_url": {
    "label": "Video URL",
    "format": "string"
  },
  "like_count": {
    "label": "Like count",
    "format": "integer"
  },
  "comment_count": {
    "label": "Comment count",
    "format": "integer"
  },
  "publish_time": {
    "label": "Publish time",
    "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 [X API | Twitter API comments user posts](https://apify.com/socialdatax/socialdatax-x-data-api) with a specific input configuration. Visit the [Actor detail page](https://apify.com/socialdatax/socialdatax-x-data-api) to learn more, explore other use cases, and run it yourself.