# Twitter Scraper for Public Media Research

**Use case:** 

Run a Twitter scraper preset that extracts public image, video, and GIF media URLs with tweet text, authors, engagement, and source links.

## Input

```json
{
  "targets": [
    "#nasa"
  ],
  "maxItems": 25,
  "mediaTypes": [
    "image",
    "video",
    "gif"
  ]
}
```

## Output

```json
{
  "tweetUrl": {
    "label": "Tweet URL",
    "format": "string"
  },
  "authorUsername": {
    "label": "Author",
    "format": "string"
  },
  "text": {
    "label": "Text",
    "format": "string"
  },
  "mediaType": {
    "label": "Media type",
    "format": "string"
  },
  "mediaUrl": {
    "label": "Media URL",
    "format": "string"
  },
  "thumbnailUrl": {
    "label": "Thumbnail",
    "format": "string"
  },
  "postedAt": {
    "label": "Posted at",
    "format": "string"
  },
  "engagement": {
    "label": "Engagement",
    "format": "object"
  },
  "scrapedAt": {
    "label": "Scraped at",
    "format": "string"
  }
}
```

## About this Actor

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