Platforms/X (Twitter)/Profile

X (Twitter) Profile API

GET ยท 1 credit

Send a handle, an account id or a profile link, and get its name, bio, followers, following, post count and join date.

GET /v1/twitter/profile

What people use it for

  • Account research: compare accounts by followers, how much they post and how long they've been on X.
  • Growth tracking: record an account's followers every day and chart them.
  • Verification checks: see whether an account has a checkmark, and which kind.

How it works with other endpoints

Start here with a handle, id or link. The same input lists the account's latest posts in Profile tweets. A post's author_id from Tweet works as user_id here.

Limits

  • One account a call.
  • A handle that doesn't exist answers 404 NOT_FOUND.

Example request

const url = `${process.env.API_URL}/v1/twitter/profile?handle=NASA`;

const response = await fetch(url, {
  headers: { "x-api-key": process.env.API_KEY },
});

const { data } = await response.json();
console.log(data);

Parameters

ParameterRequiredDescription
handleNoAn X handle, with or without the @. Give handle, user_id or url.
user_idNoAn account's id, such as a post's author_id. Give handle, user_id or url.
urlNoA profile's link: x.com/<handle> or twitter.com/<handle>, with anything after it. Give handle, user_id or url.

Example response

{
  "data": {
    "id": "11348282",
    "handle": "NASA",
    "url": "https://x.com/NASA",
    "name": "NASA",
    "bio": "Explore the universe and discover our home planet with us.",
    "links": [
      "https://www.nasa.gov"
    ],
    "location": "Pale Blue Dot",
    "picture": "https://pbs.twimg.com/profile_images/nasa_400x400.jpg",
    "banner": "https://pbs.twimg.com/profile_banners/11348282/banner.jpg",
    "verified": true,
    "verified_type": "Government",
    "private": false,
    "followers": 89000000,
    "following": 180,
    "tweets": 72000,
    "created_at": "2007-12-19T20:20:32Z"
  },
  "page": null,
  "meta": {
    "platform": "twitter",
    "endpoint": "profile",
    "params": {
      "handle": "NASA"
    },
    "request_id": "sp_req_1f8c2d3e4a5b6c7d",
    "api_version": "v1",
    "fetched_at": "2026-11-30T09:30:00Z",
    "cached": false
  }
}

An illustrative answer: live answers have the same shape, with the page's current data.

Every field, with its type, is in the API reference, and every error code in Errors.

Price

Each call costs 1 credit, a not-found answer too. Cached answers and other errors cost nothing, and credits never expire. New accounts start with 100 free credits. See pricing for the packs.

FAQ

Which inputs does it take?

A handle (with or without the @), an account id such as a post's author_id, or a link: x.com/<handle> or twitter.com/<handle>.

What does verified_type mean?

Business for a gold checkmark, Government for a grey one, and null for a blue one or none. verified says whether there's a checkmark at all.

Does it work on protected accounts?

Yes. A protected account's profile comes back with private true; its posts answer 403 LOGIN_REQUIRED.

What does tweets count?

All of the account's posts, its replies and reposts included.

Works with

On other platforms

Use cases

Start free

Your first 100 credits are on us

Sign up, create a key and make your first call in a few minutes.

No credit card required