Following V2

GET/tw-v2/user/following

Description

Get a paginated list of users that the specified account is following. Returns user objects with complete profile information.

Parameters

ParameterTypeRequiredDescription
userIdstringrequiredUnique Twitter/X user ID (e.g., '44196397')
cursorstringoptionalPagination cursor for fetching next page of results. Obtained from previous response.

Code Examples

const params = new URLSearchParams({
  userId: '44196397'
});

const response = await fetch(`https://api.tweetapi.com/tw-v2/user/following?${params}`, {
  method: 'GET',
  headers: {
    'X-API-Key': 'YOUR_API_KEY'
  }
});

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

Response

Success Response (200 OK)

200
{
  "data": [
    {
      "id": "95092020",
      "username": "jordanbpeterson",
      "name": "Dr Jordan B Peterson",
      "bio": "Best-Selling Author | Clinical Psychologist | #1 Education Podcast | Co-founder of @petersonacademy | Order my new book \"We Who Wrestle With God\" here:",
      "location": null,
      "website": "http://jordanbpeterson.com/books",
      "pinnedTweetIds": [
        "1949912864271323255"
      ],
      "avatar": "https://pbs.twimg.com/profile_images/1407056014776614923/TKBC60e1_400x400.jpg",
      "banner": "https://pbs.twimg.com/profile_banners/95092020/1744917990/1500x500",
      "profileImageShape": "Circle",
      "verified": false,
      "isBlueVerified": true,
      "verifiedType": null,
      "verifiedSince": null,
      "isIdentityVerified": false,
      "isProtected": false,
      "possiblySensitive": false,
      "profileInterstitialType": null,
      "withheldInCountries": [],
      "professional": {
        "type": "Creator",
        "category": [
          {
            "id": 144,
            "name": "Education",
            "icon_name": "IconBriefcaseStroke"
          }
        ],
        "restId": "1680046132699840514"
      },
      "businessAccount": null,
      "creatorSubscriptionsCount": 0,
      "hasHiddenSubscriptions": false,
      "highlightsInfo": null,
      "hasGraduatedAccess": true,
      "isProfileTranslatable": false,
      "hasCustomTimelines": true,
      "isTranslator": false,
      "affiliatesHighlightedLabel": {},
      "defaultProfile": false,
      "defaultProfileImage": false,
      "followerCount": 6154414,
      "followingCount": 1659,
      "tweetCount": 51578,
      "listedCount": 14926,
      "mediaCount": 7370,
      "favoritesCount": 227,
      "createdAt": "2009-12-06T23:33:02.000Z"
    },
    {
      "id": "39344374",
      "username": "DonaldJTrumpJr",
      "name": "Donald Trump Jr.",
      "bio": "Co-Founder @worldlibertyfi",
      "location": "Florida, USA",
      "website": "https://linktr.ee/donaldjtrumpjr",
      "pinnedTweetIds": [
        "1973176815415120331"
      ],
      "avatar": "https://pbs.twimg.com/profile_images/766652495858896897/LjrJJB9a_400x400.jpg",
      "banner": "https://pbs.twimg.com/profile_banners/39344374/1674355501/1500x500",
      "profileImageShape": "Circle",
      "verified": false,
      "isBlueVerified": true,
      "verifiedType": null,
      "verifiedSince": null,
      "isIdentityVerified": false,
      "isProtected": false,
      "possiblySensitive": false,
      "profileInterstitialType": null,
      "withheldInCountries": [],
      "professional": null,
      "businessAccount": null,
      "creatorSubscriptionsCount": 0,
      "hasHiddenSubscriptions": false,
      "highlightsInfo": null,
      "hasGraduatedAccess": true,
      "isProfileTranslatable": false,
      "hasCustomTimelines": true,
      "isTranslator": false,
      "affiliatesHighlightedLabel": {},
      "defaultProfile": false,
      "defaultProfileImage": false,
      "followerCount": 15512691,
      "followingCount": 2296,
      "tweetCount": 51834,
      "listedCount": 25067,
      "mediaCount": 3408,
      "favoritesCount": 38858,
      "createdAt": "2009-05-11T21:18:33.000Z"
    }
  ],
  "pagination": {
    "nextCursor": "1839632320121967803|1973625938591612856",
    "prevCursor": "-1|1973625938591612929"
  }
}

API Playground

GET/tw-v2/user/following

Press ⌘ + Enter to execute

curl -X GET "https://api.tweetapi.com/tw-v2/user/following" \
  -H "X-API-Key: YOUR_API_KEY"
Response

Click "Try It!" to see the response