# Twitter Image Scraper for Direct Image URLs

**Use case:** 

Extract public Twitter/X image URLs from known tweet URLs and export source-hosted images with tweet and author context.

## Input

```json
{
  "targets": [
    "https://x.com/teslaownersSV/status/2004891561180758165"
  ],
  "maxItems": 5,
  "mediaTypes": [
    "image"
  ]
}
```

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