# Export Recent Tweets from a Twitter (X) Account

**Use case:** 

Start with up to 10 recent tweets from NASA. Enter another public X username or profile link to export its tweets, replies, quotes, and retweets with dates, text, author details, and engagement counts. Download the dataset as CSV, Excel, or JSON.

## Input

```json
{
  "screenNames": [
    "https://x.com/NASA"
  ],
  "userIds": [],
  "maxTweetsPerAccount": 10,
  "tweetType": "all",
  "includeRetweets": true,
  "mediaType": "any",
  "startDate": "",
  "endDate": ""
}
```

## Output

```json
{
  "status": {
    "label": "Status",
    "format": "string"
  },
  "message": {
    "label": "Message",
    "format": "string"
  },
  "created_at": {
    "label": "Posted at (UTC)",
    "format": "string"
  },
  "post_type": {
    "label": "Post type",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "author.username": {
    "label": "Username",
    "format": "text"
  },
  "tweet_url": {
    "label": "Tweet link",
    "format": "string"
  },
  "like_count": {
    "label": "Likes",
    "format": "integer"
  },
  "reply_count": {
    "label": "Replies",
    "format": "integer"
  },
  "retweet_count": {
    "label": "Reposts",
    "format": "integer"
  },
  "view_count": {
    "label": "Views",
    "format": "integer"
  }
}
```

## How it works

### 1. Sign up on Apify or log in

The X (Twitter) User Tweets & Replies Scraper Actor is ready to run with the inputs already set for "Export Recent Tweets from a Twitter (X) Account". [Sign up or log in](https://console.apify.com/create-task-from-example/Blx3JC2Iy8Al4gbgv) and you'll land in Apify Console with a copy of this exact task.

### 2. Start the "Export Recent Tweets from a Twitter (X) Account" task

The X (Twitter) User Tweets & Replies Scraper Actor will start running based on the input automatically. You can also change all the input fields, like 👤 usernames or x profile links, 🆔 numeric x user ids, and more, to match your specific use case.

### 3. Receive the "Export Recent Tweets from a Twitter (X) Account" output

Monitor the progress in real time. You will be notified as soon as your dataset is complete and ready for review. Each result includes data such as status, message, posted at (utc), and more.

### 4. Integrate into your workflow

The final output is delivered in JSON, CSV, or Excel format, ready to be plugged into your workflow. You can also [run the "Export Recent Tweets from a Twitter (X) Account" task via API](https://apify.com/arjun_code/x-twitter-user-tweets-scraper.md).

## FAQ

### Can I use a different account?

Yes. Replace the NASA profile link with a public X username, @handle, or profile URL. No X login is required.

### What is included by default?

The example saves up to 10 recent tweets from one account, including available replies, quotes, and retweets. Open Run summary for the saved count and any account messages.

### Can I open the results in a spreadsheet?

Yes. Use the run's Export menu to download CSV or Excel. Use JSON if you need nested author, media, or quoted tweet details.

## About this Actor

This example demonstrates how to use [X (Twitter) User Tweets & Replies Scraper](https://apify.com/arjun_code/x-twitter-user-tweets-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/arjun_code/x-twitter-user-tweets-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/arjun_code/x-twitter-user-tweets-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`).
