100 free credits. No credit card required.Start building
Logo
X logo
100 free credits. No credit card required

X Profile Full API

Returns an X account's profile, its recent tweets, and computed metrics in one call: engagement rate by views and by followers, posting cadence, top post, and format mix.

GET /v1/twitter/profile/full

Last updated October 2026Maintained by the SocialCrawl team

When to use the X Profile Full API

Use it instead of calling profile and user/tweets yourself. The metrics are computed from one fetch of the account tweets, so check _warnings before reading cadence as a true rate.

From the API reference

Fans out to the X (Twitter) profile and recent-posts endpoints in parallel and returns the unified author, the recent-post list, and computed metrics: avg_engagement_rate, avg_engagement_rate_by_followers, posting cadence (with the window it was measured over), the top post, and the format mix. avg_engagement_rate is view-based: the mean of each post's (likes + comments + shares) / views, so only posts that carry a view count contribute, and it is null when none does. avg_engagement_rate_by_followers is the mean of likes + comments per post divided by the account's follower count, over every post that carries both, so it covers posts with no view count. One call reads one page of recent posts, which on X (Twitter) is about 10 to 20 tweets (a page of about 20, less the replies to other accounts), and computes the metrics over that page: posts can shorten the window but not lengthen it past one page, and _warnings says so when fewer posts came back than posts asked for. Pass posts_cursor back as cursor to read the next page, 5 credits a call. The profile leg is the only critical leg: if posts can't be fetched the call still returns the profile with post-dependent metrics null, and every leg's status is surfaced in legs[]. Flat 5 credits.

Searching 69 platforms in parallel

·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
·TikTok logoTikTok·Instagram logoInstagram·YouTube logoYouTube·Facebook logoFacebook·X logoX·LinkedIn logoLinkedIn·Reddit logoReddit·Threads logoThreads·Pinterest logoPinterest·Twitch logoTwitch·Truth Social logoTruth Social·Snapchat logoSnapchat·Kick logoKick·Bluesky logoBluesky·Kwai logoKwai·Rumble logoRumble·Spotify logoSpotify·Apple Music logoApple Music·TikTok Shop logoTikTok Shop·Amazon Shop logoAmazon Shop·Google Shopping logoGoogle Shopping·Trustpilot logoTrustpilot·TripAdvisor logoTripAdvisor·Yelp logoYelp·Linktree logoLinktree·Komi logoKomi·Pillar logoPillar·lnk.bio logolnk.bio·Facebook Ads logoFacebook Ads·Google Ads logoGoogle Ads·LinkedIn Ads logoLinkedIn Ads·Google Search logoGoogle Search·Google News logoGoogle News·Finance logoFinance·Polymarket logoPolymarket·Tavily logoTavily·Hacker News logoHacker News·GitHub logoGitHub·Perplexity logoPerplexity·Naver logoNaver·Utility logoUtility·Universal Search logoUniversal Search
X API

What can you do with the Profile Full API?

The Profile Full endpoint gives you structured X data with computed fields in a single request. No scraping infrastructure to build or maintain.

Example Request

# GET /v1/twitter/profile/full: 5 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
# --max-time 21: this endpoint's measured p99 latency x 1.5.
# --retry 3: retries timeouts, 429 and 5xx, honoring Retry-After.
# -o response.json keeps only the final attempt's body.
# One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
IDEMPOTENCY_KEY=$(od -An -N16 -tx1 /dev/urandom | tr -d ' \n')
curl -sS --max-time 21 --retry 3 -o response.json \
  -H "x-api-key: YOUR_API_KEY" \
  -H "Idempotency-Key: $IDEMPOTENCY_KEY" \
  "https://www.socialcrawl.dev/v1/twitter/profile/full?handle=mrbeast&posts=25" && cat response.json
# GET /v1/twitter/profile/full: 5 credits per call. Cache hits are free and failed calls are refunded.
# Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
import os
import random
import time
import uuid

import requests

API_KEY = os.environ.get("SOCIALCRAWL_API_KEY", "YOUR_API_KEY")
TIMEOUT_S = 21  # this endpoint's measured p99 latency x 1.5.
MAX_RETRIES = 3
URL = "https://www.socialcrawl.dev/v1/twitter/profile/full"


def backoff(attempt):
    # Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
    return 2 ** attempt * (0.5 + random.random() / 2)


def socialcrawl(params):
    # One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
    idempotency_key = str(uuid.uuid4())
    for attempt in range(MAX_RETRIES + 1):
        try:
            res = requests.get(
                URL,
                params=params,
                headers={"x-api-key": API_KEY, "Idempotency-Key": idempotency_key},
                timeout=TIMEOUT_S,
            )
            body = res.json()
        except (requests.RequestException, ValueError):
            # A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
            if attempt == MAX_RETRIES:
                raise
            time.sleep(backoff(attempt))
            continue
        if body["success"]:
            return body
        error = body["error"]
        # Branch on error["type"], never on the message text.
        if error["type"] == "RESOURCE_NOT_FOUND":
            return None  # refunded: nothing to read
        retry_after = res.headers.get("Retry-After")
        # SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
        permanent = error["type"] == "SERVICE_UNAVAILABLE" and retry_after is None
        if not error.get("retryable") or permanent or attempt == MAX_RETRIES:
            raise RuntimeError(f"{error['type']}: {error['message']} (request_id {body['request_id']})")
        # Retry-After (seconds) wins; otherwise back off.
        time.sleep(float(retry_after) if retry_after else backoff(attempt))


params = {
    "handle": "mrbeast",
    "posts": "25",
}
body = socialcrawl(params)
if body is not None:
    print(body["data"])
// GET /v1/twitter/profile/full: 5 credits per call. Cache hits are free and failed calls are refunded.
// Check the price first for 0 credits: add dry_run=1 to the query. Nothing is fetched or charged.
const API_KEY = process.env.SOCIALCRAWL_API_KEY ?? "YOUR_API_KEY";
const TIMEOUT_MS = 21_000; // this endpoint's measured p99 latency x 1.5.
const MAX_RETRIES = 3;

type Page = { next_cursor: string | null; has_more: boolean };
type SocialCrawlResponse =
  | { success: true; data: any; pagination?: Page; credits_used: number; request_id: string }
  | { success: false; error: { type: string; message: string; retryable: boolean }; request_id: string };

const sleep = (ms: number) => new Promise((resolve) => setTimeout(resolve, ms));
// Exponential backoff with jitter: about 1 s, 2 s, then 4 s.
const backoffMs = (attempt: number) => 2 ** attempt * 1000 * (0.5 + Math.random() / 2);

async function socialcrawl(url: URL) {
  // One Idempotency-Key per request, reused on every retry, so a retried call is never charged twice.
  const idempotencyKey = crypto.randomUUID();
  for (let attempt = 0; ; attempt++) {
    let res: Response;
    let body: SocialCrawlResponse;
    try {
      res = await fetch(url, {
        headers: {
          "x-api-key": API_KEY,
          "Idempotency-Key": idempotencyKey,
        },
        signal: AbortSignal.timeout(TIMEOUT_MS),
      });
      body = (await res.json()) as SocialCrawlResponse;
    } catch (error) {
      // A timeout, a dropped connection or a non-JSON gateway page: retry with the same key.
      if (attempt >= MAX_RETRIES) throw error;
      await sleep(backoffMs(attempt));
      continue;
    }
    if (body.success) return body;
    // Branch on error.type, never on the message text.
    if (body.error.type === "RESOURCE_NOT_FOUND") return null; // refunded: nothing to read
    const retryAfter = res.headers.get("Retry-After");
    // SERVICE_UNAVAILABLE without Retry-After is a withdrawn endpoint: permanent.
    const permanent = body.error.type === "SERVICE_UNAVAILABLE" && retryAfter === null;
    if (!body.error.retryable || permanent || attempt >= MAX_RETRIES) {
      throw new Error(`${body.error.type}: ${body.error.message} (request_id ${body.request_id})`);
    }
    // Retry-After (seconds) wins; otherwise back off.
    await sleep(retryAfter ? Number(retryAfter) * 1000 : backoffMs(attempt));
  }
}

const url = new URL("https://www.socialcrawl.dev/v1/twitter/profile/full");
url.searchParams.set("handle", "mrbeast");
url.searchParams.set("posts", "25");

const body = await socialcrawl(url);
if (body) console.log(body.data);

Parameters

ParameterRequiredDescription
handleNoX (Twitter) username or handle, with or without a leading @. One of the identity params is required.
postsNoHow many of the fetched recent posts to return and compute the metrics over (1-100, default 25). One call reads one page, which on X (Twitter) is about 10 to 20 tweets (a page of about 20, less the replies to other accounts), so a larger value returns that page and a `_warnings` note; pass posts_cursor back as cursor for the next page.
cursorNoPass a prior response's posts_cursor to read the next page of posts. Each call is a separate 5-credit call whose metrics cover that page only.
includeNoCSV subset of posts,computed (default both). include=computed omits the raw posts[] array from the response to save payload. The metrics are computed from the same fetched posts either way, so they do not change.
Example Response

What does the X Profile Full API return?

Every response follows one unified schema. Here is a real, unmodified response body, so you can see the exact fields you get back before spending a credit.

Example response
{
  "success": true,
  "platform": "twitter",
  "endpoint": "/v1/twitter/profile/full",
  "data": {
    "profile": {
      "id": "2455740283",
      "username": "MrBeast",
      "display_name": "MrBeast",
      "avatar_url": "https://pbs.twimg.com/profile_images/2008838029776158720/oDvxIJ1X_normal.jpg",
      "bio": "I want to make the world a better place",
      "verified": true,
      "followers": 35000247,
      "following": 2312,
      "posts_count": 8027,
      "likes_count": null,
      "url": "https://x.com/MrBeast",
      "location": "Follow me for a cookie",
      "private": false,
      "joined_at": "2014-04-21",
      "ext": {
        "cover_url": "https://pbs.twimg.com/profile_banners/2455740283/1767807630",
        "bio_link": "https://linktr.ee/beastgames"
      }
    },
    "posts": [
      {
        "post": {
          "id": "2104666840249381004",
          "url": "https://x.com/MrBeast/status/2104666840249381004",
          "content": {
            "text": "Eat Everything In A Grocery Store Win $1,000,000 goes live this Saturday! This video is a mini movie https://t.co/0wRjCWlrsq",
            "media_urls": "https://pbs.twimg.com/media/HTVHVWUWAAEoMA8.jpg",
            "thumbnail_url": "https://pbs.twimg.com/media/HTVHVWUWAAEoMA8.jpg",
            "duration_seconds": null
          },
          "author": {
            "username": "MrBeast",
            "display_name": "MrBeast",
            "avatar_url": "https://example.com/redacted",
            "verified": true
          },
          "engagement": {
            "views": 1917984,
            "likes": 26695,
            "comments": 1241,
            "shares": 672,
            "saves": 968
          },
          "flags": {
            "nsfw": false,
            "spoiler": null,
            "pinned": false,
            "deleted": false
          },
          "published_at": "2026-09-28T20:17:32.000Z",
          "ext": {
            "author_followers": 35000322,
            "author_following": 2312,
            "author_posts_count": 8027,
            "content_language": "en",
            "quote_count": 106,
            "all_media_urls": null,
            "author_id": "2455740283"
          }
        },
        "computed": {
          "engagement_rate": 0.014916,
          "language": "en",
          "content_category": "entertainment",
          "estimated_reach": 2301581
        }
      },
      {
        "post": {
          "id": "2104088159629775087",
          "url": "https://x.com/MrBeast/status/2104088159629775087",
          "content": {
            "text": "If you want to watch it \n\nhttps://youtu.be/PyLGTmWz37U?is=6nmBT55iWvM0nq-X",
            "media_urls": null,
            "thumbnail_url": null,
            "duration_seconds": null
          },
          "author": {
            "username": "MrBeast",
            "display_name": "MrBeast",
            "avatar_url": "https://example.com/redacted",
            "verified": true
          },
          "engagement": {
            "views": 425831,
            "likes": 875,
            "comments": 213,
            "shares": 55,
            "saves": 30
          },
          "flags": {
            "nsfw": false,
            "spoiler": null,
            "pinned": false,
            "deleted": false
          },
          "published_at": "2026-09-27T05:58:03.000Z",
          "ext": {
            "author_followers": 35000322,
            "author_following": 2312,
            "author_posts_count": 8027,
            "content_language": "en",
            "quote_count": 3,
            "all_media_urls": null,
            "author_id": "2455740283"
          }
        },
        "computed": {
          "engagement_rate": 0.002684,
          "language": null,
          "content_category": "other",
          "estimated_reach": 510997
        }
      }
    ],
    "computed": {
      "avg_engagement_rate": 0.0113515,
      "avg_engagement_rate_by_followers": 0.003705,
      "posts_per_week": 0.12,
      "cadence_window_days": 449.4,
      "top_post": {
        "url": "https://x.com/MrBeast/status/1941802940768850033",
        "engagement_total": 36587577
      },
      "format_mix": {
        "image": 2,
        "text": 6
      }
    },
    "posts_cursor": "DAAHCgABHToFUYE__-0LAAIAAAATMjEwMTAwOTA4ODYyMDUxMTQ3MwgAAwAAAAIAAA",
    "legs": [
      {
        "endpoint": "/v1/twitter/profile",
        "status": 200,
        "credits_used": 1,
        "latency_ms": 984,
        "error": null
      },
      {
        "endpoint": "/v1/twitter/user/user_5f036a",
        "status": 200,
        "credits_used": 1,
        "latency_ms": 1555,
        "error": null
      }
    ],
    "_warnings": [
      "posts=25 was requested and 8 came back: one call reads one page of recent posts, and the metrics are computed over that page. Pass posts_cursor back as cursor to read the next page."
    ]
  },
  "credits_used": 5,
  "request_id": "req_example000000",
  "cached": false,
  "credits_remaining": 9999,
  "source": "captured",
  "captured_at": "2026-10-02T12:41:29.594Z",
  "redacted": true
}

Live sample illustrating the unified response shape. Field values reflect the record you query.

API Details

How does the X Profile Full API work?

Send a GET request with your API key and get back clean, structured JSON in our unified schema. Supported computed fields are populated when the source provides the required inputs.

Method

GET

Response

JSON

Why SocialCrawl

Why use SocialCrawl for X Profile Full data?

We handle the complexity of X data extraction so you can focus on building. Unified schema, AI enrichment, and zero platform logic in your code.

Developer First

How do you scrape social media data in seconds?

The fastest social media scraping API for developers. Scrape profiles, posts, comments, and analytics from 69 platforms covering 10B+ monthly active users.

One schema, every platform

Query 69 platforms with identical response structures. Write your integration once.

Computed fields, not just scraped

When an endpoint supports these metrics and the source provides the required inputs, the normalized record includes engagement_rate, estimated_reach, content_category, and language. Ready to use.

See your data before you code

Visual Data Explorer. Paste any URL, get rich result cards, sortable tables, CSV export.

import requests

response = requests.get(
    'https://www.socialcrawl.dev/v1/tiktok/profile',
    params={'handle': 'charlidamelio'},
    headers={'x-api-key': 'sc_YOUR_API_KEY'}
)
data = response.json()
[ .JSON ]
{
  "success": true,
  "platform": "tiktok",
  "data": {
    "author": {
      "username": "charlidamelio",
      "followers": 152400000
    },
    "engagement": {
      "likes": 12400000000,
      "engagement_rate": 0.087
    },
    "metadata": {
      "language": "en",
      "content_category": "lifestyle"
    }
  }
}
+ 69 platforms
FAQ

Have a question? We got answers

Find answers to frequently asked questions about SocialCrawl's API, pricing, and capabilities.

Contact us
What does the Twitter Analytics API return in one call?
One call to GET /v1/twitter/profile/full returns three things at once: the profile, the recent tweets, and computed analytics: average engagement rate, posting cadence (tweets per week), the top tweet by engagement, and the format mix. No single endpoint produces that combination.
How do I fetch a account's profile, tweets, and analytics together?
Send a GET request to /v1/twitter/profile/full with the handle parameter (no @ symbol). SocialCrawl fans out to the profile and tweets endpoints in parallel and merges them, so you get the profile, recent tweets, and computed metrics back in a single response instead of three separate calls.
What analytics does the twitter analytics api compute?
It computes four metrics over the recent tweets: average engagement rate (the mean of each tweet's engagement rate), tweets per week from the publish-date span, the top tweet by total engagement, and a format mix counting video, image, and text tweets. These are deterministic, no AI guesswork.
How much does the twitter analytics api cost per call?
A flat 5 credits per call, regardless of how many tweets come back. The profile is the critical part: if the profile can't be fetched the call fails and refunds; if only the tweets are missing you still get the profile and the call is charged. New accounts get 100 free credits, no card.
How many tweets can I pull and can I page deeper?
The posts parameter caps the window from 1 to 100 tweets (default 25), and every computed metric averages over exactly that window. The response returns a posts_cursor you can pass back on a follow-up call to deepen the tweet window when you need a longer history.
What happens if a account has no recent tweets?
The profile is the critical leg, so you always get it. If the tweets can't be fetched the response returns the profile with an empty tweets array, the post-dependent analytics come back null honestly rather than faked, and the per-leg status is shown in the legs array.

Ask AI about SocialCrawl

Ready to scrape X Profile Full data?

Get your API key and start pulling X data in under 60 seconds.

Start for free

🤖 AI agent or LLM? Read this page as markdown