# Twitter scraping tool for public posts

**Use case:** 

Find public Twitter/X posts about web scraping. Get post text, links, authors, media, and engagement counts.

## Input

```json
{
  "target": "searchPosts",
  "trendRegionId": "1",
  "searchQuery": "\"web scraping\" lang:en -filter:retweets",
  "searchMode": "latestAndTop",
  "links": "include",
  "media": "include",
  "postKinds": [
    "originalPosts",
    "quotePosts",
    "replies"
  ],
  "shouldIncludePromotedPosts": false,
  "networkType": "followers",
  "maxNbItemsToScrape": 25
}
```

## Output

```json
{
  "rowType": {
    "label": "Result type",
    "format": "text"
  },
  "postText": {
    "label": "Post text",
    "format": "text"
  },
  "postUrl": {
    "label": "Post link",
    "format": "link"
  },
  "postDateTime": {
    "label": "Post time",
    "format": "date"
  },
  "authorHandle": {
    "label": "Author",
    "format": "text"
  },
  "nbLikes": {
    "label": "Likes",
    "format": "number"
  },
  "nbReposts": {
    "label": "Reposts",
    "format": "number"
  },
  "nbReplies": {
    "label": "Replies",
    "format": "number"
  },
  "nbViews": {
    "label": "Views",
    "format": "number"
  },
  "profileUrl": {
    "label": "Profile link",
    "format": "link"
  },
  "handle": {
    "label": "Handle",
    "format": "text"
  },
  "displayName": {
    "label": "Display name",
    "format": "text"
  },
  "bio": {
    "label": "Bio",
    "format": "text"
  },
  "followersCount": {
    "label": "Followers",
    "format": "number"
  },
  "trendName": {
    "label": "Trend",
    "format": "text"
  },
  "trendRank": {
    "label": "Rank",
    "format": "number"
  },
  "tweetVolume": {
    "label": "Post volume",
    "format": "number"
  },
  "regionName": {
    "label": "Region",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [Twitter (X) Scraper](https://apify.com/maximedupre/twitter-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/twitter-scraper) to learn more, explore other use cases, and run it yourself.