# Weekly Trending Topics & Hashtags for Content Research

**Use case:** 

Scrapes this week's trending topics and topic chips on X (Twitter). Set timeWindow=This week, resultTypes=trends and topicChips, and it returns the week's trends with rank, name, tweetVolume and location. Ideal for content calendars, SEO topic research and newsletter planning. Export to CSV or JSON.

## Input

```json
{
  "resultTypes": [
    "trends",
    "topicChips"
  ],
  "countries": [
    "United States"
  ],
  "categories": [
    "All"
  ],
  "timeWindow": "This week",
  "languages": [
    "en"
  ],
  "maxPostsPerFeed": 0
}
```

## Output

```json
{
  "resultType": {
    "label": "Type",
    "format": "text"
  },
  "country": {
    "label": "Country",
    "format": "text"
  },
  "category": {
    "label": "Category",
    "format": "text"
  },
  "timeWindow": {
    "label": "Time Window",
    "format": "text"
  },
  "rank": {
    "label": "Rank",
    "format": "number"
  },
  "name": {
    "label": "Trend / Topic",
    "format": "text"
  },
  "fullText": {
    "label": "Post Text",
    "format": "text"
  },
  "tweetUrl": {
    "label": "Post URL",
    "format": "link"
  },
  "authorHandle": {
    "label": "Author Handle",
    "format": "text"
  },
  "authorName": {
    "label": "Author Name",
    "format": "text"
  },
  "createdAt": {
    "label": "Posted At",
    "format": "text"
  },
  "lang": {
    "label": "Language",
    "format": "text"
  },
  "likeCount": {
    "label": "Likes",
    "format": "number"
  },
  "viewCount": {
    "label": "Views",
    "format": "number"
  },
  "repostCount": {
    "label": "Reposts",
    "format": "number"
  },
  "replyCount": {
    "label": "Replies",
    "format": "number"
  },
  "quoteCount": {
    "label": "Quotes",
    "format": "number"
  },
  "bookmarkCount": {
    "label": "Bookmarks",
    "format": "number"
  },
  "retweetCount": {
    "label": "Retweets",
    "format": "number"
  },
  "mediaType": {
    "label": "Media Type",
    "format": "text"
  },
  "imageUrls": {
    "label": "Image URLs",
    "format": "array"
  },
  "videoUrls": {
    "label": "Video URLs",
    "format": "array"
  },
  "hashtags": {
    "label": "Hashtags",
    "format": "array"
  },
  "mentions": {
    "label": "Mentions",
    "format": "array"
  },
  "externalUrls": {
    "label": "External URLs",
    "format": "array"
  },
  "isQuote": {
    "label": "Is Quote",
    "format": "boolean"
  },
  "quotedTweetUrl": {
    "label": "Quoted Post URL",
    "format": "link"
  },
  "tweetId": {
    "label": "Post ID",
    "format": "text"
  },
  "source": {
    "label": "Source",
    "format": "text"
  },
  "authorId": {
    "label": "Author ID",
    "format": "text"
  },
  "authorUrl": {
    "label": "Author URL",
    "format": "link"
  },
  "authorVerified": {
    "label": "Verified",
    "format": "boolean"
  },
  "authorFollowers": {
    "label": "Author Followers",
    "format": "number"
  },
  "authorFollowing": {
    "label": "Author Following",
    "format": "number"
  },
  "authorTweetsCount": {
    "label": "Author Posts",
    "format": "number"
  },
  "authorLocation": {
    "label": "Author Location",
    "format": "text"
  },
  "authorBio": {
    "label": "Author Bio",
    "format": "text"
  },
  "authorWebsite": {
    "label": "Author Website",
    "format": "link"
  },
  "authorProfileImage": {
    "label": "Author Profile Image",
    "format": "image"
  },
  "authorBannerImage": {
    "label": "Author Banner Image",
    "format": "image"
  },
  "authorCreatedAt": {
    "label": "Author Joined",
    "format": "text"
  },
  "query": {
    "label": "Search Query",
    "format": "text"
  },
  "searchUrl": {
    "label": "Search URL",
    "format": "link"
  },
  "tweetVolume": {
    "label": "Tweet Volume",
    "format": "number"
  },
  "woeid": {
    "label": "WOEID",
    "format": "number"
  },
  "locationName": {
    "label": "Location",
    "format": "text"
  },
  "asOf": {
    "label": "As Of",
    "format": "text"
  },
  "scrapedAt": {
    "label": "Scraped At",
    "format": "text"
  }
}
```

## About this Actor

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


## How to integrate an Actor?

This Task's input is already configured above. Use it as-is rather than inventing a new one.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For full API examples (JavaScript, Python, CLI, MCP, OpenAPI), see this Task's Actor page: https://apify.com/delicious_zebu/x-global-trending-scraper.md

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).
