Sand AISand AI MAGI-2MAGI-2가 이제 SandBase에서 제공됩니다: 네이티브 오디오가 포함된 1080p 동영상지금 사용해 보기

Twitter (X) User Followings

API 문서
https://api.sandbase.ai/v1/api/twitter/web/user-followings

Returns a list of accounts followed by a specified Twitter (X) user. Results provide follower counts, friend counts, media statistics, and profile details.

가격
$0.001USD / 호출
메서드
POST
응답
JSON
매개변수
필수 1개 · 선택 사항 1개

Playground

입력
Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk
Cursor, default is None, used for paging, obtained from the last request
출력예시
응답outputs · 2.1 KB · 51줄
[
  {
    "data": {
      "following": [
        {
          "created_at": "Thu Mar 06 20:15:02 +0000 2008",
          "description": "The official X account for the NASA Hubble Space Telescope, managed and operated by NASA's Goddard Space Flight Center.",
          "followers_count": 8900825,
          "friends_count": 44,
          "media_count": 3138,
          "name": "Hubble",
          "profile_image": "https://pbs.twimg.com/profile_images/3468011581/efb985f24af0a814a722457a768f3cc5_normal.jpeg",
          "screen_name": "NASAHubble",
          "statuses_count": 8467,
          "user_id": "14091091",
          "website": "http://www.nasa.gov/mission_pages/hubble/main/index.html"
        },
        {
          "created_at": "Tue Apr 07 15:40:56 +0000 2009",
          "description": "The Official *NASA* Webb X account. \n\nThe world's most powerful space telescope. Launched: Dec. 25, 2021. First images revealed: July 12, 2022.",
          "followers_count": 3516695,
          "friends_count": 63,
          "media_count": 3178,
          "name": "NASA Webb Telescope",
          "profile_image": "https://pbs.twimg.com/profile_images/1767989888916299776/hFYvpxZM_normal.jpg",
          "screen_name": "NASAWebb",
          "statuses_count": 11577,
          "user_id": "29472803",
          "website": "https://nasa.gov/webb"
        },
        {
          "created_at": "Thu May 23 15:25:28 +0000 2013",
          "description": "NASA's page for the latest mission and science updates from the International Space Station.",
          "followers_count": 8892518,
          "friends_count": 156,
          "media_count": 8445,
          "name": "International Space Station",
          "profile_image": "https://pbs.twimg.com/profile_images/1949871812176732160/ZesOirrR_normal.jpg",
          "screen_name": "Space_Station",
          "statuses_count": 20182,
          "user_id": "1451773004",
          "website": "http://www.nasa.gov/station"
        },
        "… 64 more items in the full response"
      ],
      "more_users": true,
      "next_cursor": "1597662469098825850|2107451161811353531",
      "status": "ok"
    }
  }
]

예시

예시를 선택하면 입력값과 결과가 플레이그라운드에 로드됩니다.

API README

Twitter (X) User Followings API

Returns a page of the accounts that a Twitter (X) user follows. It needs the screen_name of that user, such as NASA. Each account comes with its profile details and activity counts.

Use cases

  • Map which accounts an organization or person follows to study its interests and partners.
  • Build a list of followed accounts and sort them by followers_count to find the most visible ones.
  • Collect user_id values of followed accounts to look up their full profiles in bulk.
  • Check the website and description of followed accounts to sort them into groups such as missions, agencies or people.

Request

curl -X POST "https://api.sandbase.ai/v1/api/twitter/web/user-followings" \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"screen_name": "NASA"}'

The result is returned in outputs[0].data.

Parameters

NameTypeRequiredDescription
screen_namestringYesScreen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk
cursorstringNoCursor, default is None, used for paging, obtained from the last request

Example response

Real response for the request above, trimmed: lists keep their first item and long strings are cut.

{
  "following": [
    {
      "created_at": "Thu Mar 06 20:15:02 +0000 2008",
      "description": "The official X account for the NASA Hubble Space Telescope, managed and operated…",
      "followers_count": 8894641,
      "friends_count": 44,
      "media_count": 3158,
      "name": "Hubble",
      "profile_image": "https://pbs.twimg.com/profile_images/3468011581/efb985f24af0a814a722457a768f3cc5…",
      "screen_name": "NASAHubble",
      "statuses_count": 8503,
      "user_id": "14091091",
      "website": "http://www.nasa.gov/mission_pages/hubble/main/index.html"
    }
  ],
  "more_users": true,
  "next_cursor": "1597662469098825850|2117523447289479099",
  "status": "ok"
}

Response fields

FieldMeaning
following[]List of accounts that the requested user follows. Each item is one account.
following[].screen_name / following[].nameThe handle and the display name of the followed account.
following[].user_idNumeric ID of the followed account, returned as a string.
following[].followers_count / following[].friends_countNumber of followers the account has and number of accounts it follows.
following[].statuses_count / following[].media_countNumber of posts the account has made and number of media items it has posted.
following[].description / following[].websiteBio text and website link from the account profile. Some items leave them out.
following[].created_atDate and time the account was created, in a format like Thu Mar 06 20:15:02 +0000 2008.
following[].profile_imageURL of the account's profile picture.
more_userstrue when more followed accounts are available on a next page.
next_cursorCursor value to send as cursor in the next request to get the next page.

Notes

  • Take screen_name from the profile link. In https://twitter.com/elonmusk the value is elonmusk.
  • To page through results, pass the next_cursor value from the last response as cursor. Keep going while more_users is true.
  • Some followed accounts have no description key, so check for it before you read it.
  • To see who follows the user instead, use Twitter (X) User Followers.

Pricing

$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.

더 살펴보기

관련 API

모든 API
API가격응답
Twitter$0.001 / 호출JSON
Twitter$0.001 / 호출JSON
Twitter$0.001 / 호출JSON
Twitter$0.001 / 호출JSON
Twitter$0.001 / 호출JSON
Twitter$0.001 / 호출JSON

가이드:X API alternative: pay per call, not per postBest Twitter API in 2026: X API Pricing Compared

질문

FAQ

Twitter (X) User Followings API를 어떻게 사용하나요?

Authorization 헤더(Bearer)에 SandBase API 키를 넣고, 매개변수를 JSON 본문으로 담아 https://api.sandbase.ai/v1/api/twitter/web/user-followings에 POST 요청을 보내세요. 이 페이지의 Playground에서도 코드를 작성하지 않고 직접 테스트할 수 있습니다.

Twitter (X) User Followings API 비용은 얼마인가요?

호출당 $0.001, SandBase 잔액에서 청구됩니다. 사용한 호출에 대해서만 요금이 부과되며, 구독은 없습니다.

Twitter (X) User Followings API는 어떤 매개변수를 받나요?

필수: screen_name (string). 선택: cursor (string). 이 페이지의 Parameters 표와 Playground에 모든 필드가 나와 있습니다.

Twitter (X) User Followings API는 무엇을 반환하나요?

같은 HTTP 요청에서 반환되는 JSON 응답입니다(동기식). 이 페이지의 README에 샘플 응답이 포함되어 있습니다.

Twitter 개발자 계정이나 API 키가 필요한가요?

아니요. Twitter (X) User Followings은 SandBase를 통해 실행되므로, SandBase API 키 하나로 이 엔드포인트와 카탈로그의 다른 모든 API 및 모델을 사용할 수 있습니다. Twitter API 액세스를 별도로 신청할 필요는 없습니다.