Skip to the content

Scraper API

X

x.profileAvailable

X profile

Its names, bio, location, link, badge, follower, following and post counts, and its recent posts.

Give it an X account's handle, or its profile address.

1 unit a run, for runs that return data. Runs that fail cost nothing. How units work

Counted
1 unit a run
Inputs
1, 1 required
Record
20 fields
A run takes
up to 5 minutes
Records kept
7 days
Measured
its success, on the status page

POST/v1/scrapers/x.profile/runs

{
"input": {
"username": "BBCWorld"
}
}

sent, and answered

a record of the run20 fields

{
username: "BBCWorld"
url: "https://x.com/BBCWorld"
user_id: "742143"
name: "BBC News (World)"
bio: "News, features and analysis from the World's newsroom. Breaking news, …
location: "London, UK"
website: "http://www.bbc.com/news"
verified: true
verified_type: "Business"
… 11 more fields

ok1 unit a run

A record this scraper returned for this input. The first 9 of its 20 fields are set down here; the whole record is below.

x.com
The page X profile reads, as a browser shows it
The page this scraper reads, photographed in a browser on 18 November 2026. It belongs to its publisher, who has no part in this service.

What it is used for

Size up an account
A public account's followers, following, number of posts, bio, location and website, with its most recent posts.
Follow growth
Read an account on a schedule and keep the series of followers and posts.
Check who an account is
verified, verified_type and affiliation say what kind of account it is and which organisation it belongs to.

What you send

An X account's handle, or its profile address. It is the one input.

usernamestring Required
The account's handle, e.g. NASA or @NASA, or its profile address (https://x.com/NASA).

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.profile/runs?wait=60" \
  -H "Authorization: Bearer $ENRICHEDNOW_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"input":{"username":"BBCWorld"}}'

# 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.profile", {"username": "BBCWorld"})
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.profile", { username: "BBCWorld" });
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.profile", map[string]any{"username": "BBCWorld"})
	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.profile", Map.of("username", "BBCWorld"));
        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.profile --input username=BBCWorld

Install it with curl -fsSL https://raw.githubusercontent.com/enrichednow/enrichednow-cli/main/install.sh | sh

What comes back

Its names, bio, location, link, badge, follower, following and post counts, and its recent posts. A record has 20 fields. One we could not read is null, never an empty string or a zero.

A record x.profile returned
{
  "username": "BBCWorld",
  "url": "https://x.com/BBCWorld",
  "user_id": "742143",
  "name": "BBC News (World)",
  "bio": "News, features and analysis from the World's newsroom. Breaking news, follow @BBCBreaking. UK news, @BBCNews. Latest sports news @BBCSport",
  "location": "London, UK",
  "website": "http://www.bbc.com/news",
  "verified": true,
  "verified_type": "Business",
  "protected": false,
  "follower_count": 42365039,
  "following_count": 17,
  "post_count": 413114,
  "media_count": 27349,
  "created_at": "2007-02-01T07:44:29Z",
  "avatar_url": "https://pbs.twimg.com/profile_images/1529107170448523264/q3VwEx38_normal.jpg",
  "banner_url": "https://pbs.twimg.com/profile_banners/742143/1663658662",
  "affiliation": "BBC News (UK)",
  "recent_posts": [
    {
      "id": "2123109427188244685",
      "url": "https://x.com/BBCWorld/status/2123109427188244685",
      "text": "Minister criticises Belfast IT firm's notification delay over credit unions data breach https://t.co/l2kUaxTwOK",
      "created_at": "2026-11-18T17:41:47Z",
      "language": "en",
      "author_username": "BBCWorld",
      "author_name": "BBC News (World)",
      "author_id": "742143",
      "author_verified": true,
      "like_count": 17,
      "reply_count": 1,
      "repost_count": 5,
      "quote_count": 0,
      "bookmark_count": 2,
      "view_count": 37078,
      "hashtags": [],
      "mentions": [],
      "urls": [
        "https://bbc.in/4C9xfaf"
      ],
      "media": [],
      "quoted_post_id": null,
      "possibly_sensitive": false,
      "fetched_at": "2026-11-19T18:07:42.685306Z"
    },
    {
      "id": "2123099226917707977",
      "url": "https://x.com/BBCWorld/status/2123099226917707977",
      "text": "Inside the old gas pipeline where Ukraine is fighting an underground war https://t.co/SRlTvnqLK1",
      "created_at": "2026-11-18T17:01:15Z",
      "language": "en",
      "author_username": "BBCWorld",
      "author_name": "BBC News (World)",
      "author_id": "742143",
      "author_verified": true,
      "like_count": 64,
      "reply_count": 11,
      "repost_count": 17,
      "quote_count": 0,
      "bookmark_count": 4,
      "view_count": 44791,
      "hashtags": [],
      "mentions": [],
      "urls": [
        "https://bbc.in/4jpeMzb"
      ],
      "media": [],
      "quoted_post_id": null,
      "possibly_sensitive": false,
      "fetched_at": "2026-11-19T18:07:42.685306Z"
    }
  ],
  "fetched_at": "2026-11-19T18:07:42.685306Z"
}

The scraper returned this record for the input above, reading a saved copy of the page, not the live site.

Values shortened for this page: recent_posts: 5 items, the first 2 shown.

The fields of a record

usernamestring
The account's handle, without the @, as X writes it.
urlstring
The profile's address.
user_idstring or null
X's numeric id of the account.
namestring or null
The display name.
biostring or null
The profile's bio text; null when the account wrote none.
locationstring or null
The location the account wrote on its profile, as written.
websitestring or null
The link on the profile, in full; null when there is none.
verifiedboolean or null
True when the profile carries a verification badge.
verified_typestring or null
The kind of badge when X states one: Business or Government; null for an individual's badge or none.
protectedboolean or null
True when the account's posts are shown only to followers it approved.
follower_countinteger or null
Number of followers.
following_countinteger or null
Number of accounts this one follows.
post_countinteger or null
Number of posts the account has published.
media_countinteger or null
Number of the account's posts that carry a photo or a video.
created_atdatetime or null
When the account was created, in UTC.
avatar_urlstring or null
The profile picture.
banner_urlstring or null
The banner image across the top of the profile; null when there is none.
affiliationstring or null
The organisation whose badge the profile shows beside its name, when it shows one.
recent_postslist of objects
The account's own posts that the profile page carries for a visitor who is not signed in: a handful, a pinned post first and then newest first, without replies. Empty for a protected account.Each holds id, url, text, created_at, language, author_username, author_name, author_id, author_verified, like_count, reply_count, repost_count, quote_count, bookmark_count, view_count, hashtags, mentions, urls, media, quoted_post_id, possibly_sensitive, fetched_at.
fetched_atdatetime
When the profile page was read, in UTC.

The whole schema, in its reference

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 recent posts are the handful X shows a visitor who is not signed in: the account's own posts, without replies.
  • A protected account's header is returned without posts.
  • Followers and following are not read.

Scraper API pricing: how units workThe five ways a run ends

Questions

What does X profile return?

Its names, bio, location, link, badge, follower, following and post counts, and its recent posts. A record has 20 fields, among them username, url, user_id, name, bio and location. A value that could not be read is null, never an empty string or a zero.

What do I send?

An X account's handle, or its profile address. The input username is required.

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 recent posts are the handful X shows a visitor who is not signed in: the account's own posts, without replies. A protected account's header is returned without posts. Followers and following 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.profile and the same input. It costs what the same API call costs.

Used in this playbook

A playbook runs X profile as one of its steps and hands back the finished list. Its runs of this scraper cost what they cost here, and the playbook adds nothing.

  • Finance

    Social Sentiment

    How often the tickers and brands you follow are mentioned on social sources, in what tone, and how both moved since the last run.

X

Public X accounts and their posts, as a visitor who is not signed in sees them.

  • X post

    x.post

    An X post's address, or its id. Its text, time, author, like, reply, repost, quote and view counts, links and media.

X on the line-up

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.