Skip to content
//Tweet Scraper example\\

Latest tweets from NASA, 15 tweets

Recent English tweets from a handle.

Updated December 3, 2026

What this example returns

This example returns up to 15 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

15

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 15

Tweet language tweetLanguage

English

Restricts tweets to the given language, given by an ISO 639-1 code. X uses its own code for a few languages and the search sends that one: Indonesian (id) is "in", Hebrew (he) is "iw", and Norwegian Bokmål (nb) and Nynorsk (nn) are both "no". The lang field of each post shows X's code.

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…

Custom map function customMapFunction

(object) => { return {...object} }

JavaScript function that receives each post and returns the object to store. That return value replaces the post. If the function throws, the run fails and stores nothing. If it returns nothing, that post is omitted, and if any post is omitted the run fails and stores nothing.

.json
{
  "customMapFunction": "(object) => { return {...object} }",
  "maxItems": 15,
  "sort": "Latest",
  "tweetLanguage": "en",
  "twitterHandles": [
    "NASA"
  ]
}

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.