Skip to content
//Tweet Scraper example\\

NASA tweets with images, 10 tweets

Only tweets that include an image.

Updated December 3, 2026

What this example returns

This example returns up to 10 tweets.

The dataset’s “Summary Data (check Storage tab for all fields)” view shows 12 columns: URL, Twitter URL, ID, Text, Retweet Count, Reply Count, Like Count, Quote Count, Created At, Bookmark Count, Is Retweet, and Is Quote. See every output field.

What each setting does

The input this example runs Tweet Scraper with. “Try this input” opens it in the console, where you can run it as-is or change any field first.

Twitter handles twitterHandles

NASA

X handles (with or without @) whose posts you want. With Sort Latest the newest posts come first. They come from the public profile timeline; when X shows logged-out visitors an older selection of an account's posts instead, recent posts come from a search index (typically a few hours behind live X). Replies to other…

Maximum posts in total (all inputs) maxItems

10

Maximum number of posts for the whole run, in total across all handles, search terms, URLs and conversation IDs. Inputs run in the order you entered them, so with several inputs the first ones can use up the whole limit and the later ones get no posts. For posts from each input, also set Maximum posts per input below…

Default: 20 → this example uses 10

Only image onlyImage

Yes

If selected, only returns tweets that contain images.

Sort By sort

Latest

Top: the most relevant public posts. Latest: newest first via a search index, typically a few hours behind live X. Keyword search looks at the past day, then the past week and month. A handle returns its newest posts first (see Twitter handles). Latest + Top runs both and removes duplicates. Top on a handle returns…

.json
{
  "twitterHandles": [
    "NASA"
  ],
  "maxItems": 10,
  "sort": "Latest",
  "onlyImage": true
}

What it costs

You pay for the events the actor reports, such as each result or page it produces. Platform usage is included in the event prices: compute, proxies, browser and storage cost nothing extra.

  • Tweetfrom $0.00012One post (tweet) saved to the dataset.
  • Extra search input$0.0075Each search after the first that the run sends to the search index: a keyword search ("Latest + Top" is two searches) or a handle read from the search index.
  • Actor start$0.0158Charged once per run.

Full pricing

Other ways to run Tweet Scraper

All examples of Tweet Scraper

About Tweet Scraper

Scrape public posts from X (Twitter) profiles and tweet URLs: text, timestamps, likes, reposts, replies, views, media, and author details, straight from the logged-out page.

Price:
From $0.12 / 1,000 results
Developer:
Echofield
Categories:
Social media, News

Tweet Scraper pageOutput fieldsPricing

Related actors

//From the blog\\

Latest articles

All articles

The internet is full of data.
Start owning yours.

Scrape.ly gives you the infrastructure, the tooling, and the team to extract, process, and operationalize web data at any scale. Setup takes minutes.

No credit card. No setup calls.