Twitter (X) User Followings
https://api.sandbase.ai/v1/api/twitter/web/user-followingsReturns a list of accounts followed by a specified Twitter (X) user. Results provide follower counts, friend counts, media statistics, and profile details.
- Price
- $0.0015USD / callFirst 100 calls per day free (shared per organization)
- Method
- POST
- Response
- JSON
- Parameters
- 1 required · 1 optional
Try the model
Playground
[
{
"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"
},
{
"created_at": "Fri Feb 20 21:38:25 +0000 2009",
"description": "Elevating the future of Europe through space.\n\nPlease see our Privacy Notice: https://t.co/UkkEqaKmlL",
"followers_count": 1900933,
"friends_count": 996,
"media_count": 14594,
"name": "European Space Agency",
"profile_image": "https://pbs.twimg.com/profile_images/2034944299855749122/jIXX0fj6_normal.jpg",
"screen_name": "esa",
"statuses_count": 64144,
"user_id": "21436960",
"website": "https://www.esa.int/"
},
{
"created_at": "Tue Jul 10 21:51:25 +0000 2012",
"description": "We are going for all of humanity.",
"followers_count": 1208234,
"friends_count": 65,
"media_count": 2442,
"name": "NASA Artemis",
"profile_image": "https://pbs.twimg.com/profile_images/2042236624377921536/axp_8Jli_normal.jpg",
"screen_name": "NASAArtemis",
"statuses_count": 8204,
"user_id": "632344577",
"website": "https://www.nasa.gov/humans-in-space/artemis/"
},
{
"created_at": "Tue Mar 17 17:45:41 +0000 2009",
"description": "NASA’s favorite (habitable) planet. 🌎💚 Studying Earth from ground to orbit.",
"followers_count": 3724430,
"friends_count": 86,
"media_count": 12229,
"name": "NASA Earth",
"profile_image": "https://pbs.twimg.com/profile_images/2040064373323083776/2ez7ntt1_normal.jpg",
"screen_name": "NASAEarth",
"statuses_count": 25005,
"user_id": "24919888",
"website": "https://science.nasa.gov/earth/"
},
{
"created_at": "Sat Jan 31 03:19:43 +0000 2009",
"description": "The Jet Propulsion Laboratory advances science and discovery through NASA robotic missions exploring Earth, the solar system, and the universe.",
"followers_count": 3715570,
"friends_count": 129,
"media_count": 5554,
"name": "NASA JPL",
"profile_image": "https://pbs.twimg.com/profile_images/1967683664789327872/pL3ATPuZ_normal.jpg",
"screen_name": "NASAJPL",
"statuses_count": 13398,
"user_id": "19802879",
"website": "https://jpl.nasa.gov"
},
{
"created_at": "Tue Jun 23 21:54:57 +0000 2009",
"description": "Lead center for the @Space_Station and Orion spacecraft. Home to Mission Control and the nation's astronaut corps. 🚀\n\nhttps://t.co/7u1SQekfru",
"followers_count": 2259568,
"friends_count": 169,
"media_count": 6737,
"name": "NASA's Johnson Space Center",
"profile_image": "https://pbs.twimg.com/profile_images/1920920885742944256/yqDqTY93_normal.jpg",
"screen_name": "NASAJohnson",
"statuses_count": 21149,
"user_id": "50115087",
"website": "http://www.nasa.gov/johnson"
},
{
"created_at": "Thu Mar 26 21:16:15 +0000 2009",
"description": "Your backstage pass to the universe and how NASA studies it. Exoplanets, black holes, dark energy, and more!",
"followers_count": 1120568,
"friends_count": 80,
"media_count": 5110,
"name": "NASA Universe",
"profile_image": "https://pbs.twimg.com/profile_images/1374017044266557440/aggBOWBw_normal.jpg",
"screen_name": "NASAUniverse",
"statuses_count": 12589,
"user_id": "26853548",
"website": "https://universe.nasa.gov/"
},
{
"created_at": "Thu Jun 19 03:18:45 +0000 2008",
"description": "NASA’s official X account for all things Mars. Join us as we explore the Red Planet!",
"followers_count": 1587108,
"friends_count": 177,
"media_count": 980,
"name": "NASA Mars",
"profile_image": "https://pbs.twimg.com/profile_images/1273027228410867713/iTO6CkbM_normal.jpg",
"screen_name": "NASAMars",
"statuses_count": 3352,
"user_id": "15165502",
"website": "https://science.nasa.gov/mars/"
},
{
"created_at": "Thu Jun 19 03:16:46 +0000 2008",
"description": "Join us as we explore the worlds of our solar system.",
"followers_count": 2968389,
"friends_count": 140,
"media_count": 3335,
"name": "NASA Solar System",
"profile_image": "https://pbs.twimg.com/profile_images/1852211324224442369/9KHp7JLo_normal.jpg",
"screen_name": "NASASolarSystem",
"statuses_count": 9786,
"user_id": "15165493",
"website": "https://science.nasa.gov/solar-system"
},
{
"created_at": "Tue Aug 02 19:33:27 +0000 2011",
"description": "Explora el universo y descubre tu planeta natal con nosotros, la cuenta oficial de la NASA en español.",
"followers_count": 2127714,
"friends_count": 234,
"media_count": 3603,
"name": "NASA en español",
"profile_image": "https://pbs.twimg.com/profile_images/1597637362267340800/U6B1DIqL_normal.jpg",
"screen_name": "NASA_es",
"statuses_count": 5561,
"user_id": "347420129",
"website": "http://www.nasa.gov/es"
},
{
"created_at": "Fri Oct 03 16:53:02 +0000 2008",
"description": "🚀We are the world’s preeminent launch complex for government and commercial space access. We usually post in ET.",
"followers_count": 2983614,
"friends_count": 189,
"media_count": 6185,
"name": "NASA's Kennedy Space Center",
"profile_image": "https://pbs.twimg.com/profile_images/1113501416558141440/csp6nhvI_normal.png",
"screen_name": "NASAKennedy",
"statuses_count": 19611,
"user_id": "16580226",
"website": "http://www.nasa.gov/kennedy"
},
{
"created_at": "Wed Jun 09 12:52:58 +0000 2010",
"description": "This is the NASA History Office's official X account. We're happy that you share our passion for aerospace history.",
"followers_count": 1164052,
"friends_count": 165,
"media_count": 14873,
"name": "NASA History Office",
"profile_image": "https://pbs.twimg.com/profile_images/2014039001301168128/ToSMo3kF_normal.jpg",
"screen_name": "NASAhistory",
"statuses_count": 25416,
"user_id": "153784150",
"website": "https://www.nasa.gov/history"
},
{
"created_at": "Wed Feb 04 15:20:48 +0000 2009",
"description": "Welcome to your friendly neighborhood space flight center, home to the largest community of scientists & engineers on Earth.",
"followers_count": 932896,
"friends_count": 143,
"media_count": 8793,
"name": "NASA Goddard",
"profile_image": "https://pbs.twimg.com/profile_images/1481736805837852673/M8JDB3NL_normal.jpg",
"screen_name": "NASAGoddard",
"statuses_count": 26128,
"user_id": "20060293",
"website": "http://nasa.gov/goddard"
},
{
"created_at": "Tue May 20 18:48:56 +0000 2008",
"description": "Sharing inspiring stories, moments of awe, and one-of-a-kind artifacts from aviation and space history. Start exploring: https://t.co/Nw4JxChkHI ✈️ 🚀 🪐",
"followers_count": 398620,
"friends_count": 531,
"media_count": 20809,
"name": "National Air and Space Museum",
"profile_image": "https://pbs.twimg.com/profile_images/1535273844679643136/zo0Ww2Ia_normal.jpg",
"screen_name": "airandspace",
"statuses_count": 49999,
"user_id": "14848513",
"website": "http://s.si.edu/legal"
},
{
"created_at": "Fri Jan 18 21:35:19 +0000 2008",
"description": "Official Twitter account of NASA’s Chandra X-ray Observatory. Operated for NASA by Smithsonian (SAO). Verification: https://t.co/oQRMjHqCRI Legal: https://t.co/BUQNO29Sjg",
"followers_count": 419254,
"friends_count": 198,
"media_count": 4661,
"name": "Chandra Observatory",
"profile_image": "https://pbs.twimg.com/profile_images/1108130632511750148/5qH27iUx_normal.png",
"screen_name": "chandraxray",
"statuses_count": 78126,
"user_id": "12415722",
"website": "http://chandra.si.edu"
},
{
"created_at": "Fri Sep 10 19:48:53 +0000 2010",
"description": "Powered by data, driven by discovery, made for everyone.",
"followers_count": 1328135,
"friends_count": 84,
"media_count": 4630,
"name": "NASA Science",
"profile_image": "https://pbs.twimg.com/profile_images/2046257502250258432/Ja13oc9e_normal.jpg",
"screen_name": "NASAScience_",
"statuses_count": 20714,
"user_id": "189253902",
"website": "http://science.nasa.gov"
},
{
"created_at": "Wed Apr 01 20:16:15 +0000 2009",
"description": "#NASAMarshall delivers NASA's most vital propulsion systems, launch vehicles, cutting-edge science, and more.\nVerification: https://t.co/f1Rtti0Zm6",
"followers_count": 836516,
"friends_count": 87,
"media_count": 8978,
"name": "NASA Marshall",
"profile_image": "https://pbs.twimg.com/profile_images/1253313775610089472/ORgz4LwP_normal.jpg",
"screen_name": "NASA_Marshall",
"statuses_count": 20872,
"user_id": "28184452",
"website": "https://www.nasa.gov/marshall/"
},
{
"created_at": "Mon Nov 30 21:37:50 +0000 2009",
"description": "The Canadian Space Agency coordinates all civil, space-related programs on behalf of the Government of Canada. Terms: https://t.co/58Nfe1GL0V (Français @asc_csa)",
"followers_count": 361167,
"friends_count": 1166,
"media_count": 9307,
"name": "Canadian Space Agency",
"profile_image": "https://pbs.twimg.com/profile_images/1636344641543872514/nGFS2okP_normal.jpg",
"screen_name": "csa_asc",
"statuses_count": 40095,
"user_id": "93714983",
"website": "http://asc-csa.gc.ca"
},
{
"created_at": "Thu May 14 18:55:50 +0000 2026",
"description": "Serving President Donald J. Trump as the 16th @NASA Deputy Administrator | Working alongside @NASAAdmin to lead the next Golden Age of space discovery 🚀",
"followers_count": 5485,
"friends_count": 6,
"media_count": 21,
"name": "Deputy Administrator Matt Anderson",
"profile_image": "https://pbs.twimg.com/profile_images/2057553771987709952/K86JzAU2_normal.jpg",
"screen_name": "NASADepAdmin",
"statuses_count": 68,
"user_id": "2054998853900775424",
"website": null
},
{
"created_at": "Tue Aug 09 14:55:39 +0000 2011",
"description": "@csa_asc astronaut. Artemis II crewmember | Astronaute @asc_csa. Membre de l’équipage d’Artemis II",
"followers_count": 149742,
"friends_count": 155,
"media_count": 1097,
"name": "Jeremy R. Hansen",
"profile_image": "https://pbs.twimg.com/profile_images/1642912851558891525/f87hT-Qd_normal.jpg",
"screen_name": "Astro_Jeremy",
"statuses_count": 2847,
"user_id": "351640699",
"website": "http://www.asc-csa.gc.ca"
},
{
"created_at": "Wed Jul 08 12:51:11 +0000 2009",
"description": "Official X account of the #USNavy. Celebrating 250 years of service, strength and sea power. (Following, reposts and links ≠ endorsement)",
"followers_count": 1949399,
"friends_count": 1180,
"media_count": 16513,
"name": "U.S. Navy",
"profile_image": "https://pbs.twimg.com/profile_images/1907855411685822464/UoaDw_4U_normal.jpg",
"screen_name": "USNavy",
"statuses_count": 39944,Examples
Select an example to load its inputs and result into the playground.
Model card
Specifications
Pricing
- Base price
- $0.0015 / run
- Daily free calls
- First 100 calls per day free (shared per organization)
Request & response
- Method
- POST
- Request body
- application/json
- Response
- application/json
- Execution
- sync
Parameters
- screen_name
- string · required
- cursor
- string · optional
Access
- Provider
- API
- Platform API
- Base URL
- https://api.sandbase.ai
- Endpoint
- /v1/api/twitter/web/user-followings
- Authentication
- Bearer API key
API README
Twitter (X) User Followings API
Retrieve the list of accounts that a user follows using their screen_name. Paginate through extended results by passing the cursor from previous responses.
Use cases
- Audit the public accounts followed by a specific profile.
- Track network connections and interest graphs across Twitter (X).
- Collect profile statistics for accounts in a user following list.
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"}'
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
screen_name | string | Yes | Screen Name, for example: elonmusk, can be obtained from the user's homepage link, for example: elonmusk in https://twitter.com/elonmusk |
cursor | string | No | Cursor, default is None, used for paging, obtained from the last request |
Example response
Real response for the request above, trimmed to the main fields. User names and long IDs are masked.
{
"following": [
{
"description": "The official X account for the NASA Hubble Space Telescope, managed and operated by NASA'…",
"followers_count": 8900825,
"friends_count": 44,
"media_count": 3138,
"name": "Hubble",
"screen_name": "<user>",
"statuses_count": 8467,
"user_id": "<user>"
}
]
}
Notes
screen_namecorresponds to the handle found in the user profile URL.- Pass
cursorfrom the previous response to paginate through followings.
Related APIs
- Twitter (X) Latest Tweet Comments: Returns recent replies and comment timelines for a specific post using its tweet ID, with cursor support for multi-page results.
- Twitter (X) Tweet Comments: Returns comment threads and replies under a specified tweet.
- Twitter (X) Retweet User List: Returns a list of users who reposted a specific post using its tweet ID, including follower counts, media counts, and user identifiers.
Start building
Send your first request
Platform API endpoint with unified authentication and usage tracking.
# The quoted heredoc keeps Unicode and shell metacharacters unchanged.
result=$(curl --fail-with-body --silent \
-X POST "https://api.sandbase.ai/v1/api/twitter/web/user-followings" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
--data-binary @- <<'SANDBASE_JSON'
{
"screen_name": "NASA"
}
SANDBASE_JSON
)
printf '%s\n' "$result"Explore more
Related APIs
| API | Price | Response | Released |
|---|---|---|---|
Twitter (X) User FollowingsThis API Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Twitter | $0.0015 per call | JSON | Jul 31, 2026 |
Questions
FAQ
How do I use the Twitter (X) User Followings API?
Send a POST request to https://api.sandbase.ai/v1/api/twitter/web/user-followings with your SandBase API key in the Authorization header (Bearer) and the parameters as a JSON body. You can also try it in the Playground on this page without writing code.
How much does the Twitter (X) User Followings API cost?
$0.0015 per call. Every organization gets 100 free calls per UTC day, shared across eligible SandBase APIs including this one; after that each call is billed at this price from your SandBase balance. There is no subscription.
What parameters does the Twitter (X) User Followings API accept?
Required: screen_name (string). Optional: cursor (string). The Parameters table and the Playground on this page list every field.
What does the Twitter (X) User Followings API return?
A JSON response returned in the same HTTP request (synchronous). The README on this page includes a sample response.
Do I need a Twitter developer account or API key?
No. Twitter (X) User Followings runs through SandBase, so one SandBase API key covers this endpoint and every other API and model in the catalog. You do not need to apply for Twitter API access separately.
