What's new See our recent updates

X (Twitter) API

Pull any public X account's profile, audience counts and newest posts as clean JSON
  • Followers, following, post and media counts, verification label, professional type and join date
  • The newest posts a profile shows, up to 5 with the pinned post first, with likes, reposts, replies, quotes, bookmarks and views
  • Photos, videos and GIFs with direct MP4 links, plus links, mentions, hashtags and the post each one quotes
No credit card required.
          curl --get https://www.searchapi.org/api/v1/search \
  -d engine="x_profile" \
  -d username="NASA"
        

X Profile Results

Get JSON results in seconds

A profile comes back as clean JSON with its counts and labels, followed by its newest posts and their engagement.

X Profile Results
{
  "search_metadata": {
    "id": "search_T6wHSdh0kZa36p04wC6Hhcbw",
    "status": "Success",
    "created_at": "2026-11-21T14:04:35Z",
    "request_time_taken": 6.43,
    "parsing_time_taken": 0.0,
    "total_time_taken": 6.43,
    "request_url": "https://x.com/NASA",
    "html_url": "https://www.searchapi.io/api/v1/searches/search_T6wHSdh0kZa36p04wC6Hhcbw.html",
    "json_url": "https://www.searchapi.io/api/v1/searches/search_T6wHSdh0kZa36p04wC6Hhcbw"
  },
  "search_parameters": {
    "engine": "x_profile",
    "username": "NASA"
  },
  "profile": {
    "id": "11348282",
    "username": "NASA",
    "name": "NASA",
    "link": "https://x.com/NASA",
    "bio": "Making the seemingly impossible, possible. ✨",
    "external_link": "http://www.nasa.gov/",
    "location": "Pale Blue Dot",
    "followers": 92191243,
    "following": 115,
    "posts": 74570,
    "media_posts": 28260,
    "is_verified": true,
    "verified_type": "Government",
    "affiliates": 85,
    "birth_date": "1958-10-01",
    "created_at": "2007-12-19T20:20:32Z",
    "avatar": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
    "banner": "https://pbs.twimg.com/profile_banners/11348282/1788992290"
  },
  "posts": [
    {
      "position": 1,
      "id": "2123820070803542306",
      "link": "https://x.com/NASA/status/2123820070803542306",
      "text": "LIVE: Watch as an uncrewed SpaceX Dragon spacecraft undocks from the @space_station and begins its journey to bring research samples and hardware back to Earth. https://x.com/i/broadcasts/2evOEzWEYBkWyn",
      "iso_date": "2026-11-20T16:45:38Z",
      "language": "en",
      "likes": 2169,
      "reposts": 321,
      "comments": 112,
      "quotes": 18,
      "saves": 77,
      "views": 834316,
      "content_links": [
        {
          "text": "x.com/i/broadcasts/2…",
          "link": "https://x.com/i/broadcasts/2evOEzWEYBkWyn"
        }
      ],
      "mentions": [
        "Space_Station"
      ]
    },
    "..."
  ]
}

Developer experience

Easy integration

Integrating is as simple as making a GET HTTP request.

GET
https://www.searchapi.org/api/v1/search?engine=x_profile&username=NASA
Request
import requests

url = "https://www.searchapi.org/api/v1/search"
params = {
  "engine": "x_profile",
  "username": "NASA"
}

response = requests.get(url, params=params)
print(response.text)

Structured Profile Data

Everything you need in one response

Each X profile is parsed into clean JSON, ready for your pipeline.

Profile & Bio

Display name, bio with full links, website, location, avatar, banner and join date

Audience Counts

Followers, following, total posts and media posts as exact numbers

Verification & Labels

Verified checkmark and its type, X Professional type and category, and affiliate badges

Recent Posts

Up to 5 of the newest posts the profile shows, the pinned post first, with full text and date

Engagement

Likes, reposts, replies, quotes and bookmarks for each post, and views where X shows them

Media & Quoted Posts

Images, videos and GIFs with dimensions and MP4 links, plus each quoted post and its author

Simple Pricing

Pricing plans

  • Pay per success
  • Built in location geo-targetting
  • Only premium proxies

Developer Plan

$4 per 1,000 searches

$40 / month

What's included
  • 10,000 Searches

Production Plan

$3 per 1,000 searches

$100 / month

What's included
  • 35,000 Searches
  • Team Management
  • Legal Protection Guarantee
  • 99.9% SLA

BigData Plan

$2.5 per 1,000 searches

$250 / month

What's included
  • 100,000 Searches
  • Team Management
  • Legal Protection Guarantee
  • 99.9% SLA
  • Medium Throughput

Scale Plan

$2 per 1,000 searches

$500 / month

What's included
  • 250,000 Searches
  • Team Management
  • Legal Protection Guarantee
  • 99.9% SLA
  • High Throughput

Trusted by industry leaders

Anthropic logo Bain & Company logo DataRails logo Scale AI logo Ahrefs logo Demyst logo

Robust Infrastructure

Handle even the most demanding needs

Sub-2 second average response time

Performance

Sub-2 second average response time

Optimized for low latency, delivering rapid results for AI applications, SEO analysis, and research.

100% success rate

100% Success Rate

Guaranteed query completion

Guaranteed success with built-in auto-retry mechanism and adaptive error handling to ensure complete data collection.

Scalable proxy rotation

Proxy Management

Scalable proxy rotation

Our built-in proxy rotator and auto-retry mechanisms ensure scalability, handling millions of searches daily across a global network of 100M+ proxies.

Advanced CAPTCHA bypass

Captcha Solving

Advanced CAPTCHA bypass

Mimics real human behavior with full browser rendering, JavaScript execution, and CAPTCHA solving for uninterrupted data scraping.

Open-source integrations

Integrations

Open-source integrations

Easily integrate with popular open-source tools like Dify, Flowise, LangChain, and Haystack to extend functionality with minimal setup.

Get started with SearchApi today

No credit card required. No commitment. Cancel anytime.