Scraper API
Xx.postAvailable
X post
Its text, time, author, like, reply, repost, quote and view counts, links and media.
Give it an X post's address, or its id.
1 unit a run, for runs that return data. Runs that fail cost nothing. How units work
- Counted
- 1 unit a run
- Inputs
- 2
- Record
- 22 fields
- A run takes
- up to 5 minutes
- Records kept
- 7 days
- Measured
- its success, on the status page
POST/v1/scrapers/x.post/runs
sent, and answered
a record of the run22 fields
ok1 unit a run
A record this scraper returned for this input. The first 9 of its 22 fields are set down here; the whole record is below.

What it is used for
- Measure a post
- A public post's likes, replies, reposts, quotes, bookmarks and views, with its text and media.
- Keep a record of a statement
- Hold the text, the time and the author of a post, with the links and accounts it mentions.
- Report on a campaign
- Read the posts of a campaign by address and put the figures in one table.
What you send
An X post's address, or its id. These are its 2 inputs, as its schema has them.
urlstring One of the two- The post's address, e.g. https://x.com/jack/status/20 (a twitter.com address works too).
post_idstring One of the two- The post's id instead: the digits at the end of its address.
A request, ready to send
It starts a run with the input shown at the top of this page, waits up to 60 seconds for it, and reads its records. Put your key in the variable it reads.
# Start a run and wait up to 60 seconds for it to finish
curl -X POST "https://api.enrichednow.com/v1/scrapers/x.post/runs?wait=60" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
-H "Content-Type: application/json" \
-d '{"input":{"url":"https://x.com/jack/status/20"}}'
# Read its records, with the id the first call answered
curl "https://api.enrichednow.com/v1/runs/$RUN_ID/records?limit=100" \
-H "Authorization: Bearer $ENRICHEDNOW_API_KEY"from enrichednow import EnrichedNow
client = EnrichedNow() # reads ENRICHEDNOW_API_KEY
# Start a run, wait for it to end, and get its records
result = client.scrape("x.post", {
"url": "https://x.com/jack/status/20",
})
print(result.run.id, result.run.status, result.run.record_count)
# Read its records: pages are fetched as you go
for record in result.records:
print(record)Install it with pip install enrichednow, then save as run.py and run python3 run.py
import EnrichedNow from "enrichednow";
const client = new EnrichedNow(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
const { run, records } = await client.scrape("x.post", {
url: "https://x.com/jack/status/20",
});
console.log(run.id, run.status, run.record_count);
// Read its records: pages are fetched as you go
for await (const record of records) console.log(record);Install it with npm install enrichednow, then save as run.mjs and run node run.mjs
package main
import (
"context"
"fmt"
"log"
"time"
enrichednow "github.com/enrichednow/enrichednow-go"
)
func main() {
client, err := enrichednow.NewClient() // reads ENRICHEDNOW_API_KEY
if err != nil {
log.Fatal(err)
}
ctx, cancel := context.WithTimeout(context.Background(), 10*time.Minute)
defer cancel()
// Start a run, wait for it to end, and get its records
run, records, err := client.Scrape(ctx, "x.post", map[string]any{"url": "https://x.com/jack/status/20"})
if err != nil {
log.Fatal(err)
}
fmt.Println(run.ID, run.Status, run.RecordCount)
// Read its records: pages are fetched as you go
for records.Next() {
fmt.Println(string(records.Current()))
}
if err := records.Err(); err != nil {
log.Fatal(err)
}
}Install it with go get github.com/enrichednow/enrichednow-go@latest, then save as run.go and run go run run.go
import com.enrichednow.EnrichedNowClient;
import com.enrichednow.ScrapeResult;
import java.util.Map;
public class Run {
public static void main(String[] args) {
EnrichedNowClient client = EnrichedNowClient.fromEnv(); // reads ENRICHEDNOW_API_KEY
// Start a run, wait for it to end, and get its records
ScrapeResult result = client.scrape("x.post", Map.of("url", "https://x.com/jack/status/20"));
System.out.println(result.run().id() + " " + result.run().status() + " " + result.run().recordCount());
// Read its records: pages are fetched as you go
for (Map<String, Object> record : result.records()) {
System.out.println(record);
}
}
}Add com.enrichednow:enrichednow-java:0.4.0 to your Maven or Gradle build, then save as Run.java
enrichednow run x.post --input url=https://x.com/jack/status/20Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh
What comes back
Its text, time, author, like, reply, repost, quote and view counts, links and media. A record has 22 fields. One we could not read is null, never an empty string or a zero.
{
"id": "20",
"url": "https://x.com/jack/status/20",
"text": "just setting up my twttr",
"created_at": "2006-03-21T20:50:14Z",
"language": "en",
"author_username": "jack",
"author_name": "jack",
"author_id": "12",
"author_verified": true,
"like_count": 325022,
"reply_count": 19260,
"repost_count": 126409,
"quote_count": 8040,
"bookmark_count": 25558,
"view_count": null,
"hashtags": [],
"mentions": [],
"urls": [],
"media": [],
"quoted_post_id": null,
"possibly_sensitive": null,
"fetched_at": "2026-11-19T18:07:42.682944Z"
}The scraper returned this record for the input above, reading a saved copy of the page, not the live site.
The fields of a record
idstring- X's id of the post.
urlstring- The post's address.
textstring or null- The post's text as written. Links appear in X's short form (t.co);
urlsgives where they lead. created_atdatetime or null- When the post was published, in UTC.
languagestring or null- The language X detects in the text, e.g. en; null when the page does not say.
author_usernamestring or null- The handle of the account that posted it, without the @.
author_namestring or null- That account's display name.
author_idstring or null- X's numeric id of that account.
author_verifiedboolean or null- True when that account carries a verification badge.
like_countinteger or null- Number of likes.
reply_countinteger or null- Number of replies.
repost_countinteger or null- Number of reposts.
quote_countinteger or null- Number of posts that quote this one.
bookmark_countinteger or null- Number of bookmarks; null where the page does not state it.
view_countinteger or null- Number of views; null where the page does not state it.
hashtagslist of strings- The hashtags written in the text, without the #, in order.
mentionslist of strings- The handles the text mentions, without the @, in order.
urlslist of strings- The full addresses of the links in the text, in order.
medialist of objects- The post's photos, videos and GIFs, in order.Each holds
type,url,video_url,duration_ms,width,height,alt_text. quoted_post_idstring or null- The id of the post this one quotes, when it quotes one.
possibly_sensitiveboolean or null- True when X marks the post's media as possibly sensitive.
fetched_atdatetime- When the page was read, in UTC.
Units and limits
- Counted per request
- Billed per request: a run that returns data costs 1 unit, however many records it returns.
- A miss costs nothing
- A run that fails, that meets something not supported yet, or that you cancel costs nothing. You pay for runs that return data.
- What bounds a run
- A run may take up to 5 minutes. Its records are read in pages of up to 1,000 and are kept for 7 days.
What it does not do
- The replies under a post are not read.
Questions
What does X post return?
Its text, time, author, like, reply, repost, quote and view counts, links and media. A record has 22 fields, among them id, url, text, created_at, language and author_username. A value that could not be read is null, never an empty string or a zero.
What do I send?
An X post's address, or its id. Of url and post_id, send one of the two.
How is it counted?
Billed per request: a run that returns data costs 1 unit, however many records it returns. A run that fails, that meets something not supported yet, or that you cancel costs nothing. The first 1,000 units each month are free.
What does it not do?
The replies under a post are not read.
How long are the records kept, and in what format do they come?
Records are kept for 7 days after the run ended, and read in pages of up to 1,000. They come as JSON, as NDJSON with one record a line, or as CSV with a column for each field.
Can an AI assistant call it?
Yes. Through the EnrichedNow MCP server an assistant calls the tool run_scraper with the scraper_id x.post and the same input. It costs what the same API call costs.
X
Public X accounts and their posts, as a visitor who is not signed in sees them.
X profile
x.profileAn X account's handle, or its profile address. Its names, bio, location, link, badge, follower, following and post counts, and its recent posts.
- Industry
- Social and video
- Where
- Worldwide
Run it on an input of your own.
Create an account, make a key, and send the request above with your own input. The first 1,000 units each month are free.