Lists a user owns
Lists created by a user, as in the Lists tab of their profile.
/user/{userId}/listsParameters
userIdpath · string · requiredNumeric user ID (digits only, up to 30). To pass a handle instead, use -1 here and set username.
usernamequery · string · optionalHandle, with or without @. When set, it is used instead of userId: the API looks up the ID first, which makes the call a little slower. Still one billed call.
countquery · integer · optional · default 20Number of lists to ask X for, 1 to 100. Other values fall back to 20. X treats it as a hint.
cursorquery · string · optionalBottom cursor from the previous page. Leave it out for the first page. See Pagination.
Paginated: pass the bottom cursor of one page as cursor to get the next. Each page is one billed call. See Pagination.
Notes
- Private lists are only visible to their owner, so they are not included.
Example request
curl 'https://api.twittrapi.com/user/11348282/lists?count=20' \
--header 'X-API-KEY: YOUR_API_KEY'import httpx
# No SDK method for this endpoint yet, so this is a plain HTTP call.
resp = httpx.get(
"https://api.twittrapi.com/user/11348282/lists",
headers={"X-API-KEY": "YOUR_API_KEY"},
params={
"count": "20",
},
timeout=60,
)
data = resp.json()import { TwittrAPI } from "twittrapi";
const client = new TwittrAPI({ apiKey: process.env.TWITTRAPI_API_KEY });
// No wrapper method for this endpoint yet; client.get() sends the same authenticated GET.
const data = await client.get({
path: "/user/11348282/lists",
query: {
count: "20",
},
});curl 'https://twitter-aio.p.rapidapi.com/user/11348282/lists?count=20' \
--header 'x-rapidapi-key: YOUR_RAPIDAPI_KEY' \
--header 'x-rapidapi-host: twitter-aio.p.rapidapi.com'Base URL https://api.twittrapi.com, key in the X-API-KEY header. Python and Node.js use the official SDKs.
Response
Raw JSON of X's ListOwnerships query. Each entry holds a list (TimelineTwitterList) with name, description, member_count, subscriber_count, mode and the owner. X may add an errors array next to complete data when it cannot decode one nested field of a list; the lists are still there.
Simple format (?format=simple or X-Response-Format: simple): Collection of List objects {id, name, description, createdAt, memberCount, followerCount, private, bannerUrl, owner}. Schema.
{
"data": {
"user": {
"result": {
"__typename": "User",
"timeline": {
"timeline": {
"instructions": [
{
"type": "TimelineClearCache"
},
{
"direction": "Top",
"type": "TimelineTerminateTimeline"
},
{
"entries": [
{
"content": {
"__typename": "TimelineTimelineItem",
"clientEventInfo": {
"component": "OwnershipsSgs",
"element": "list"
},
"entryType": "TimelineTimelineItem",
"itemContent": {
"__typename": "TimelineTwitterList",
"itemType": "TimelineTwitterList",
"list": {
"created_at": 1758734092000,
"custom_banner_media": {
"media_info": {
"original_img_height": 500,
"original_img_url": "https://pbs.twimg.com/list_banner_img/1970901044382007297/XIE8aYVx?format=jpg&name=orig",
"original_img_width": 1500,
"salient_rect": {
"height": 1,
"left": 773,
"top": 250,
"width": 1
}
}
},
"custom_banner_media_results": {
"result": {
"__typename": "ApiMedia",
"id": "QXBpTWVkaWE6DAAICgABG1oMDr3WAAEAAA==",
"media_id": "1970901044382007297",
"media_info": {
"__typename": "ApiImage",
"color_info": {
"palette": [
{
"percentage": 35.39,
"rgb": {
"blue": 171,
"green": 181,
"red": 181
}
},
{
"percentage": 26.13,
"rgb": {
"blue": 61,
"green": 87,
"red": 237
}
},
{
"percentage": 12.01,
"rgb": {
"blue": 109,
"green": 62,
"red": 5
}
},
{
"percentage": 5.31,
"rgb": {
"blue": 27,
"green": 20,
"red": 33
}
},
{
"percentage": 2.58,
"rgb": {
"blue": 25,
"green": 28,
"red": 109
}
}
]
},
"original_img_height": 500,
"original_img_url": "https://pbs.twimg.com/list_banner_img/1970901044382007297/XIE8aYVx?format=jpg&name=orig",
"original_img_width": 1500,
"salient_rect": {
"height": 1,
"left": 773,
"top": 250,
"width": 1
}
},
"media_key": "32_1970901044382007297"
}
},
"default_banner_media": {
"media_info": {
"original_img_height": 375,
"original_img_url": "https://pbs.twimg.com/media/GkIQyCGWYAA4UdW.png",
"original_img_width": 1125,
"salient_rect": {
"height": 1,
"left": 562,
"top": 187,
"width": 1
}
}
},
"default_banner_media_results": {},
"description": "Members of NASA's 2025 astronaut candidate class",
"facepile_urls": [],
"following": false,
"id": "TGlzdDoxOTcwODk5NzUwNDgxMjYwODc4",
"id_str": "1970899750481260878",
"is_member": false,
"member_count": 5,
"members_context": "5 members",
"mode": "Public",
"muting": false,
"name": "2025 Astronaut Candidates",
"pinning": false,
"subscriber_count": 31,
"user_results": {
"result": {
"__typename": "User",
"action_counts": {
"favorites_count": 17128
},
"affiliates_highlighted_label": {},
"avatar": {
"image_url": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg"
},
"banner": {
"image_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290"
},
"core": {
"created_at": "Wed Dec 19 20:20:32 +0000 2007",
"name": "NASA",
"screen_name": "NASA"
},
"follow_request_sent": false,
"has_graduated_access": true,
"id": "VXNlcjoxMTM0ODI4Mg==",
"is_blue_verified": true,
"location": {
"location": "Pale Blue Dot"
},
"media_permissions": {
"can_media_tag": true
},
"notifications_settings": {
"notifications_enabled": false
},
"parody_commentary_fan_label": "None",
"pinned_items": {},
"possibly_sensitive": false,
"privacy": {
"protected": false
},
"profile_bio": {
"description": "Making the seemingly impossible, possible. ✨",
"entities": {
"description": {},
"url": {
"urls": [
{
"display_url": "nasa.gov",
"expanded_url": "http://www.nasa.gov/",
"indices": [
0,
23
],
"url": "https://t.co/9NkQJKAnuU"
}
]
}
}
},
"profile_description_language": "en",
"profile_image_shape": "Square",
"profile_metadata": {
"profile_interstitial_type": ""
},
"profile_translation": {
"translator_type": "regular"
},
"relationship_counts": {
"followers": 92039893,
"following": 115
},
"relationship_perspectives": {
"blocked_by": false,
"blocking": false,
"followed_by": false,
"following": false,
"live_following": false,
"muting": false
},
"rest_id": "11348282",
"super_follow_eligible": false,
"super_followed_by": false,
"super_following": false,
"tweet_counts": {
"media_tweets": 28269,
"tweets": 74595
},
"verification": {
"verified": false,
"verified_type": "Government"
},
"website": {
"url": "https://t.co/9NkQJKAnuU"
},
"legacy": {
"blocked_by": false,
"blocking": false,
"can_media_tag": true,
"created_at": "Wed Dec 19 20:20:32 +0000 2007",
"default_profile_image": false,
"description": "Making the seemingly impossible, possible. ✨",
"entities": {
"description": {},
"url": {
"urls": [
{
"display_url": "nasa.gov",
"expanded_url": "http://www.nasa.gov/",
"indices": [
0,
23
],
"url": "https://t.co/9NkQJKAnuU"
}
]
}
},
"fast_followers_count": 0,
"favourites_count": 17128,
"follow_request_sent": false,
"followed_by": false,
"followers_count": 92039893,
"following": false,
"friends_count": 115,
"is_translator": false,
"location": "Pale Blue Dot",
"media_count": 28269,
"muting": false,
"name": "NASA",
"needs_phone_verification": false,
"normal_followers_count": 92039893,
"notifications": false,
"possibly_sensitive": false,
"profile_banner_url": "https://pbs.twimg.com/profile_banners/11348282/1788992290",
"profile_image_url_https": "https://pbs.twimg.com/profile_images/1321163587679784960/0ZxKlEKB_normal.jpg",
"profile_interstitial_type": "",
"protected": false,
"screen_name": "NASA",
"statuses_count": 74595,
"time_zone": "",
"translator_type": "regular",
"url": "https://t.co/9NkQJKAnuU",
"utc_offset": 0,
"verified": false,
"verified_type": "Government",
"want_retweets": false,
"withheld_description": "",
"withheld_scope": ""
}
}
}
}
}
},
"entryId": "list-1970899750481260878",
"sortIndex": "2127343840028262400"
},
{
"content": {
"__typename": "TimelineTimelineItem",
"clientEventInfo": {
"component": "OwnershipsSgs",
"element": "list"
},
"entryType": "TimelineTimelineItem",
"itemContent": {
"__typename": "TimelineTwitterList",
"itemType": "TimelineTwitterList",
"list": {
"created_at": 1592703110000,
"custom_banner_media": {
"media_info": {
"original_img_height": 500,
"original_img_url": "https://pbs.twimg.com/list_banner_img/1274515341184577548/gTzTNefR?format=jpg&name=orig",
"original_img_width": 1500,
"salient_rect": {
"height": 1,
"left": 774,
"top": 250,
"width": 1
}
}
},
"custom_banner_media_results": {
"result": {
"__typename": "ApiMedia",
"id": "QXBpTWVkaWE6DAAICgABEa/88zwXsAwAAA==",
"media_id": "1274515341184577548",
"media_info": {
"__typename": "ApiImage",
"color_info": {
"palette": [
{
"percentage": 68.11,
"rgb": {
"blue": 101,
"green": 140,
"red": 171
}
},
{
"percentage": 13.03,
"rgb": {
"blue": 35,
"green": 49,
"red": 61
}
},
{
"percentage": 7.65,
"rgb": {
"blue": 26,
"green": 69,
"red": 120
}
},
{
"percentage": 5.6,
"rgb": {
"blue": 95,
"green": 112,
"red": 124
}
},
{
"percentage": 2.49,
"rgb": {
"blue": 56,
"green": 120,
"red": 182
}
}
]
},
"original_img_height": 500,
"original_img_url": "https://pbs.twimg.com/list_banner_img/1274515341184577548/gTzTNefR?format=jpg&name=orig",
"original_img_width": 1500,
"salient_rect": {
"height": 1,
"left": 774,
"top": 250,
"width": 1
}
},
"media_key": "32_1274515341184577548"
}
},
"default_banner_media": {
"media_info": {
"original_img_height": 375,
"original_img_url": "https://pbs.twimg.com/media/GkIQZXyWsAAs-uP.png",
"original_img_width": 1125,
"salient_rect": {
"height": 1,
"left": 562,
"top": 187,
"width": 1
}
}
},
"default_banner_media_results": {},
"description": "Our Mars Perseverance rover is slated to launch to the Red Planet July 30, 2020. Join our countdown!",
"facepile_urls": [
"https://pbs.twimg.com/profile_images/1730424889843355648/b_8Lj-2e_mini.jpg",
"https://pbs.twimg.com/profile_images/1382655672786026503/Ik77fcQQ_mini.jpg",
"https://pbs.twimg.com/profile_images/2117360967524720640/KBVW_ywU_mini.jpg"
],
"followers_context": "127 followers including @themoththeman",
"following": false,{
"data": [
{
"id": "1970899750481260878",
"name": "2025 Astronaut Candidates",
"description": "Members of NASA's 2025 astronaut candidate class",
"createdAt": "2025-09-24T17:14:52Z",
"memberCount": 5,
"followerCount": 31,
"private": false,
"bannerUrl": "https://pbs.twimg.com/list_banner_img/1970901044382007297/XIE8aYVx?format=jpg&name=orig",
"owner": {
"id": "11348282",
"username": "NASA"
}
},
{
"id": "1274515338479177729",
"name": "#CountdownToMars 🚀",
"description": "Our Mars Perseverance rover is slated to launch to the Red Planet July 30, 2020. Join our countdown!",
"createdAt": "2020-06-21T01:31:50Z",
"memberCount": 9,
"followerCount": 127,
"private": false,
"bannerUrl": "https://pbs.twimg.com/list_banner_img/1274515341184577548/gTzTNefR?format=jpg&name=orig",
"owner": {
"id": "11348282",
"username": "NASA"
}
}
],
"nextCursor": "5513570520153907201|2127343840028262393",
"previousCursor": null,
"hasNextPage": true
}In the raw format, field names and nesting come from X and can change without notice. See Response format; the simple format keeps a fixed schema.
Errors
- 422userId is not numeric, or the username lookup failed.
- 400userId is -1 and username is missing, or the username contains characters X blocks.
- 404The user could not be found.
Errors every endpoint can return (401, 402, 403, 404, 408, 409, 429, 5xx), and which of them are charged, are on the Errors page. Calls that fail with 400, 407, 408, 409 or a 5xx error are refunded.