# Twitter trends scraper for current topics

**Use case:** 

Export current Twitter/X trending topics for Worldwide or a verified country-level region with trend names, ranks, search URLs, and volumes.

## Input

```json
{
  "target": "trendingTopics",
  "trendRegionId": "1",
  "profileSearchQueries": [
    "AI researcher"
  ],
  "searchQuery": "OpenAI",
  "searchMode": "latestAndTop",
  "links": "include",
  "media": "include",
  "shouldIncludeOriginalPosts": true,
  "shouldIncludeQuotePosts": true,
  "shouldIncludeReplies": true,
  "shouldIncludeReposts": false,
  "shouldIncludePromotedPosts": false,
  "maxNbItemsToScrape": 25
}
```

## Output

```json
{
  "postText": {
    "label": "Post text",
    "format": "string"
  },
  "postUrl": {
    "label": "Post URL",
    "format": "string"
  },
  "authorHandle": {
    "label": "Author",
    "format": "string"
  },
  "authorDisplayName": {
    "label": "Author name",
    "format": "string"
  },
  "nbLikes": {
    "label": "Likes",
    "format": "number"
  },
  "nbReposts": {
    "label": "Reposts",
    "format": "number"
  },
  "nbReplies": {
    "label": "Replies",
    "format": "number"
  },
  "nbViews": {
    "label": "Views",
    "format": "number"
  },
  "searchQuery": {
    "label": "Search query",
    "format": "string"
  },
  "sourceType": {
    "label": "Source type",
    "format": "string"
  },
  "resultPosition": {
    "label": "Position",
    "format": "number"
  },
  "rowType": {
    "label": "Row type",
    "format": "string"
  },
  "profileUrl": {
    "label": "Profile URL",
    "format": "string"
  },
  "handle": {
    "label": "Handle",
    "format": "string"
  },
  "displayName": {
    "label": "Display name",
    "format": "string"
  },
  "bio": {
    "label": "Bio",
    "format": "string"
  },
  "followersCount": {
    "label": "Followers",
    "format": "number"
  },
  "trendName": {
    "label": "Trend",
    "format": "string"
  },
  "trendRank": {
    "label": "Rank",
    "format": "number"
  },
  "tweetVolume": {
    "label": "Tweet volume",
    "format": "number"
  },
  "regionName": {
    "label": "Region",
    "format": "string"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## 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.