Profile

Exact followers, bio and verified badge of a public X (formerly Twitter) account, with its latest posts and their engagement.

Try it in the dashboard 100 free credits when you sign up, no card.

GET/v1/x/profile

Costs 1 credit per request. Only requests that return data are charged.

Parameters

NameTypeDescription
usernamerequired string Username (nasa), handle (@nasa) or profile URL on x.com or twitter.com.
limitoptional integer How many of the latest posts to return. Default: 20. From 1 to 20.

Example request

curl "https://pipefetch.com/v1/x/profile?username=nasa&limit=10" \
  -H "x-api-key: YOUR_API_KEY"

Example response

A real answer to the request above. Long texts and lists are shortened here, and the people who wrote comments, reviews or posts are replaced by a stand-in.

200 OK · application/json
{
  "data": {
    "profile": {
      "id": "11348282",
      "username": "NASA",
      "url": "https://x.com/nasa",
      "displayName": "NASA",
      "description": "Making the seemingly impossible, possible. ✨",
      "location": "Pale Blue Dot",
      "website": "http://www.nasa.gov/",
      "isVerified": true,
      "isProtected": false,
      "followerCount": 92211040,
      "followingCount": 115,
      "postCount": 74560,
      "listedCount": 96877,
      "createdAt": "2007-12-19T20:20:32.000Z",
      "profileImageUrl": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
      "bannerUrl": "https://pbs.twimg.com/profile_banners/11348282/1788992290"
    },
    "posts": [
      {
        "id": "2123169377855922254",
        "url": "https://x.com/nasa/status/2123169377855922254",
        "text": "A successful stellar merger 🤝\n\nScientists recently spotted a star slightly less massive than the Sun merging into a puffy supergiant star in the outs…",
        "createdAt": "2026-11-18T21:40:00.000Z",
        "language": "en",
        "isRepost": false,
        "repostedFrom": null,
        "isQuote": false,
        "likeCount": 4247,
        "repostCount": 656,
        "replyCount": 134,
        "quoteCount": 43,
        "bookmarkCount": 261,
        "viewCount": 562309,
        "hashtags": [],
        "mentions": [],
        "links": [
          "https://go.nasa.gov/492jZad"
        ],
        "mediaType": "photo",
        "imageUrls": [
          "https://pbs.twimg.com/media/HXb7dixXQAAIk5w.jpg"
        ],
        "videoUrls": []
      },
      {
        "id": "2123156140288610715",
        "url": "https://x.com/nasa/status/2123156140288610715",
        "text": "Join us for a @Reddit AMA from the International Space Station!\n\n@astro_anil (in orbit) and @zenanaut (on Earth) are taking your questions about how t…",
        "createdAt": "2026-11-18T20:47:24.000Z",
        "language": "en",
        "isRepost": false,
        "repostedFrom": null,
        "isQuote": false,
        "likeCount": 855,
        "repostCount": 85,
        "replyCount": 54,
        "quoteCount": 8,
        "bookmarkCount": 44,
        "viewCount": 369731,
        "hashtags": [],
        "mentions": [
          "Reddit",
          "astro_anil"
        ],
        "links": [
          "https://www.reddit.com/r/space/"
        ],
        "mediaType": "photo",
        "imageUrls": [
          "https://pbs.twimg.com/media/HXb3QZUW8AAmr-Z.jpg"
        ],
        "videoUrls": []
      }
    ]
  },
  "credits": {
    "used": 1,
    "remaining": 99
  }
}

Good to know

  • Follower, following, post and list counts are the exact numbers, not the rounded ones X displays (92.2M).
  • posts holds up to 20 of the latest posts, in the order of the account's timeline. There are no further pages, and replies are not included.
  • A repost carries the text, counts, media and time of the original post, and repostedFrom names the account it came from.
  • A protected account returns its profile with isProtected true and no posts.
  • An account that does not exist or is suspended answers 404 profile_not_found and costs nothing.

Errors

Every error has the same shape, and none of them is charged. The full list is in the error reference.

Looking for an overview and use cases? See the X (Twitter) Profile API page.