# Twitter Scraper Apify

**Use case:** 

Find up to 5 images, videos, or GIFs in public posts from verified authors on the @NASA profile. The dataset includes direct media links and post data for an Apify workflow.

## Input

```json
{
  "target": "profiles",
  "tweetTargets": [
    "https://x.com/teslaownersSV/status/2004891561180758165"
  ],
  "replyScope": "none",
  "profiles": [
    "@NASA"
  ],
  "profileFilters": {
    "authorVerification": "verified"
  },
  "mediaTypes": [
    "image",
    "video",
    "gif"
  ],
  "maxItems": 5
}
```

## Output

```json
{
  "mediaUrl": {
    "label": "Media URL",
    "format": "string"
  },
  "thumbnailUrl": {
    "label": "Thumbnail URL",
    "format": "string"
  },
  "mediaType": {
    "label": "Media type",
    "format": "string"
  },
  "tweetUrl": {
    "label": "Tweet URL",
    "format": "string"
  },
  "authorUsername": {
    "label": "Author username",
    "format": "string"
  },
  "authorName": {
    "label": "Author name",
    "format": "string"
  },
  "text": {
    "label": "Post text",
    "format": "string"
  },
  "postedAt": {
    "label": "Posted at",
    "format": "string"
  },
  "altText": {
    "label": "Alt text",
    "format": "string"
  },
  "mediaIndex": {
    "label": "Media order",
    "format": "integer"
  },
  "attachmentCount": {
    "label": "Attachment count",
    "format": "integer"
  },
  "engagement": {
    "label": "Engagement",
    "format": "object"
  },
  "target": {
    "label": "Target",
    "format": "string"
  },
  "targetType": {
    "label": "Target type",
    "format": "string"
  }
}
```

## About this Actor

This example demonstrates how to use [Twitter Media Scraper](https://apify.com/maximedupre/twitter-media-scraper.md) with a specific input configuration. Visit the [Actor detail page](https://apify.com/maximedupre/twitter-media-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/maximedupre/twitter-media-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`).
