Platforms/X (Twitter)/Profile tweets

X (Twitter) Profile Posts API

GET ยท 1 credit

Send a handle, an account id or a profile link, and get its latest posts: the 5 its profile shows logged out, the pinned one first.

GET /v1/twitter/profiles/tweets

What people use it for

  • Account monitoring: check an account's newest posts every few minutes and act on new ones.
  • Announcement tracking: read the post a brand or an agency pins to its profile.
  • Engagement checks: compare an account's latest posts by likes, reposts and views.

How it works with other endpoints

Start from the same input Profile takes. Each post's id goes to Tweet, to Tweet replies and, for a video, to Tweet transcript.

Limits

  • The latest 5 posts; no next page.
  • A protected account answers 403 LOGIN_REQUIRED.

Example request

const url = `${process.env.API_URL}/v1/twitter/profiles/tweets?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": "1916982720317821050",
      "url": "https://x.com/NASA/status/1916982720317821050",
      "text": "The Milky Way rises over the launch pad. https://t.co/aB3dE5fG7h",
      "created_at": "2026-11-28T03:12:00Z",
      "language": "en",
      "author_id": "11348282",
      "author_handle": "NASA",
      "author_name": "NASA",
      "author_picture": "https://pbs.twimg.com/profile_images/nasa_400x400.jpg",
      "author_verified": true,
      "likes": 48000,
      "reply_count": 1200,
      "retweet_count": 6100,
      "quote_count": 420,
      "bookmark_count": 2300,
      "views": 3100000,
      "media": [
        {
          "type": "photo",
          "url": "https://pbs.twimg.com/media/milky-way.jpg",
          "video_url": null,
          "width": 2048,
          "height": 1365,
          "duration_seconds": null
        }
      ],
      "links": [
        "https://www.nasa.gov/image-of-the-day"
      ],
      "mentions": [],
      "hashtags": [],
      "quoted_id": null,
      "reply_to_id": null,
      "reply_to_handle": null,
      "sensitive": false,
      "pinned": true
    }
  ],
  "page": null,
  "meta": {
    "platform": "twitter",
    "endpoint": "profile_tweets",
    "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

How many posts can I get?

The 5 the profile shows a logged-out visitor, with its pinned post first. There is no next page.

Does it include replies and reposts?

No. It lists the account's own posts, without its replies and reposts.

How do I tell the pinned post?

pinned is true for it. Only this endpoint says whether a post is pinned.

What about protected accounts?

A protected account answers 403 LOGIN_REQUIRED.

Works with

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