Skip to content

Instantly share code, notes, and snippets.

@cmj
Last active December 30, 2025 05:21
Show Gist options
  • Select an option

  • Save cmj/0fbe65d42b2d96f70e09b0bedaaad6ae to your computer and use it in GitHub Desktop.

Select an option

Save cmj/0fbe65d42b2d96f70e09b0bedaaad6ae to your computer and use it in GitHub Desktop.
> $ endpoints.sh $AUTH_TOKEN # Using Android bearerToken
1) -oaLodhGbbnzJBACb1kk2Q/UserByScreenName 8) q94uRCEn65LZThakYcPT6g/TweetDetail 15) BbGLL1ZfMibdFNWlk7a0Pw/ListTimeline
2) u7wQyGi6oExe8_TRWGMq4Q/UserResultByScreenNameQuery 9) 7xflPyRiUxGVbJd4uWmbfg/TweetResultByRestId 16) oRJs8SLCRNRbQzuZG93_oA/UserTweets
3) oPppcargziU1uDQHAUmH-A/UserResultByIdQuery 10) nzme9KiYhfIOrrLrPP_XeQ/TweetResultByIdQuery 17) kkaJ0Mf34PZVarrxzLihjg/UserTweetsAndReplies
4) 3JNH4e9dq1BifLxAa3UMWg/UserWithProfileTweetsQueryV2 11) gkjsKepM6gl_HmFWoWKfgg/SearchTimeline 18) Y4Erk_-0hObvLpz0Iw3bzA/ConversationTimeline
5) 8IS8MaO-2EN6GZZZb8jF0g/UserWithProfileTweetsAndRepliesQueryV2 12) iTpgCtbdxrsJfyx0cFjHqg/ListByRestId 19) wfglZEC0MRgBdxMa_1a5YQ/Retweeters
6) 36oKqyQ7E_9CmtONGjJRsA/UserMedia 13) -kmqNvm5Y-cVrfvBy6docg/ListBySlug
7) PDfFf8hGeJvUCiTyWtw4wQ/MediaTimelineV2 14) P4NpVZDqUD_7MEM84L-8nw/ListMembers
Choose endpoint ('enter' for list, ^C to quit): 1
{"data":{"user":{"result":{"__typename":"User","id":"VXNlcjoxMg==","rest_id":"12","affiliates_highlighted_label":{"label":{"url":{"url":"https://twitter.com/Square","urlType":"DeepLink"},"badge":{"url":"https://pbs.twimg.com/profile_images/1285655593592791040/HtwPZgej_bigger.jpg"},"description":"Square","userLabelType":"BusinessLabel","userLabelDisplayType":"Badge"}},"avatar":{"image_url":"https://pbs.twimg.com/profile_images/1661201415899951105/azNjKOSH_normal.jpg"},"core":{"created_at":"Tue Mar 21 20:50:14 +0000 2006","name":"jack","screen_name":"jack"},"dm_permissions":{"can_dm":true},"follow_request_sent":false,"has_graduated_access":true,"is_blue_verified":true,"legacy":{"default_profile":false,"default_profile_image":false,"description":"no state is the best state","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"primal.net/jack","expanded_url":"http://primal.net/jack","url":"https://t.co/ZEpOg6rn5L","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":36638,"followers_count":6246803,"friends_count":3,"has_custom_timelines":true,"is_translator":false,"listed_count":32996,"media_count":2959,"normal_followers_count":6246803,"pinned_tweet_ids_str":["1833951636005552366"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/12/1742427520","profile_interstitial_type":"","statuses_count":30227,"translator_type":"regular","url":"https://t.co/ZEpOg6rn5L","want_retweets":false,"withheld_in_countries":[]},"location":{"location":""},"media_permissions":{"can_media_tag":true},"profile_image_shape":"Circle","profile_bio":{"description":"no state is the best state"},"privacy":{"protected":false},"relationship_perspectives":{"following":false},"verification":{"verified":false},"profile_description_language":"en","legacy_extended_profile":{},"is_profile_translatable":false,"verification_info":{"reason":{"description":{"text":"This account is verified because it's an affiliate of @Square on X. Learn more","entities":[{"from_index":54,"to_index":61,"ref":{"url":"https://twitter.com/Square","url_type":"ExternalUrl"}},{"from_index":68,"to_index":78,"ref":{"url":"https://help.twitter.com/en/rules-and-policies/profile-labels","url_type":"ExternalUrl"}}]},"verified_since_msec":"1324658988066"}},"business_account":{},"creator_subscriptions_count":0}}}}
-----
https://api.x.com/graphql/-oaLodhGbbnzJBACb1kk2Q/UserByScreenName
status: 200 limit: 149/150 reset: Mon 21:31:33
Choose endpoint ('enter' for list, ^C to quit): ^C
> $ vi endpoints.sh # Change to iPhone bearerToken
> $ endpoints.sh $AUTH_TOKEN
1) -oaLodhGbbnzJBACb1kk2Q/UserByScreenName 8) q94uRCEn65LZThakYcPT6g/TweetDetail 15) BbGLL1ZfMibdFNWlk7a0Pw/ListTimeline
2) u7wQyGi6oExe8_TRWGMq4Q/UserResultByScreenNameQuery 9) 7xflPyRiUxGVbJd4uWmbfg/TweetResultByRestId 16) oRJs8SLCRNRbQzuZG93_oA/UserTweets
3) oPppcargziU1uDQHAUmH-A/UserResultByIdQuery 10) nzme9KiYhfIOrrLrPP_XeQ/TweetResultByIdQuery 17) kkaJ0Mf34PZVarrxzLihjg/UserTweetsAndReplies
4) 3JNH4e9dq1BifLxAa3UMWg/UserWithProfileTweetsQueryV2 11) gkjsKepM6gl_HmFWoWKfgg/SearchTimeline 18) Y4Erk_-0hObvLpz0Iw3bzA/ConversationTimeline
5) 8IS8MaO-2EN6GZZZb8jF0g/UserWithProfileTweetsAndRepliesQueryV2 12) iTpgCtbdxrsJfyx0cFjHqg/ListByRestId 19) wfglZEC0MRgBdxMa_1a5YQ/Retweeters
6) 36oKqyQ7E_9CmtONGjJRsA/UserMedia 13) -kmqNvm5Y-cVrfvBy6docg/ListBySlug
7) PDfFf8hGeJvUCiTyWtw4wQ/MediaTimelineV2 14) P4NpVZDqUD_7MEM84L-8nw/ListMembers
Choose endpoint ('enter' for list, ^C to quit): 1
{"data":{"user":{"result":{"__typename":"User","id":"VXNlcjoxMg==","rest_id":"12","affiliates_highlighted_label":{"label":{"url":{"url":"https://twitter.com/Square","urlType":"DeepLink"},"badge":{"url":"https://pbs.twimg.com/profile_images/1285655593592791040/HtwPZgej_bigger.jpg"},"description":"Square","userLabelType":"BusinessLabel","userLabelDisplayType":"Badge"}},"avatar":{"image_url":"https://pbs.twimg.com/profile_images/1661201415899951105/azNjKOSH_normal.jpg"},"core":{"created_at":"Tue Mar 21 20:50:14 +0000 2006","name":"jack","screen_name":"jack"},"dm_permissions":{"can_dm":true},"follow_request_sent":false,"has_graduated_access":true,"is_blue_verified":true,"legacy":{"default_profile":false,"default_profile_image":false,"description":"no state is the best state","entities":{"description":{"urls":[]},"url":{"urls":[{"display_url":"primal.net/jack","expanded_url":"http://primal.net/jack","url":"https://t.co/ZEpOg6rn5L","indices":[0,23]}]}},"fast_followers_count":0,"favourites_count":36638,"followers_count":6246804,"friends_count":3,"has_custom_timelines":true,"is_translator":false,"listed_count":32996,"media_count":2959,"normal_followers_count":6246804,"pinned_tweet_ids_str":["1833951636005552366"],"possibly_sensitive":false,"profile_banner_url":"https://pbs.twimg.com/profile_banners/12/1742427520","profile_interstitial_type":"","statuses_count":30227,"translator_type":"regular","url":"https://t.co/ZEpOg6rn5L","want_retweets":false,"withheld_in_countries":[]},"location":{"location":""},"media_permissions":{"can_media_tag":true},"profile_image_shape":"Circle","profile_bio":{"description":"no state is the best state"},"privacy":{"protected":false},"relationship_perspectives":{"following":false},"verification":{"verified":false},"profile_description_language":"en","legacy_extended_profile":{},"is_profile_translatable":false,"verification_info":{"reason":{"description":{"text":"This account is verified because it's an affiliate of @Square on X. Learn more","entities":[{"from_index":54,"to_index":61,"ref":{"url":"https://twitter.com/Square","url_type":"ExternalUrl"}},{"from_index":68,"to_index":78,"ref":{"url":"https://help.twitter.com/en/rules-and-policies/profile-labels","url_type":"ExternalUrl"}}]},"verified_since_msec":"1324658988066"}},"business_account":{},"creator_subscriptions_count":0}}}}
-----
https://api.x.com/graphql/-oaLodhGbbnzJBACb1kk2Q/UserByScreenName
status: 200 limit: 149/150 reset: Mon 21:32:03
Choose endpoint ('enter' for list, ^C to quit):
Dec 29 21:08:51 [sessions] parsing JSONL account sessions file: ./sessions.jsonl
Dec 29 21:08:51 [sessions] successfully added 1 valid account sessions
Dec 29 21:08:51 Starting Nitter at http://n
Dec 29 21:08:51 Connected to Redis at localhost:6379
Dec 29 21:09:33 Bearer AAAAAAAAAAAAAAAAAAAAAAj4AQAAAAAAPraK64zCZ9CSzdLesbE7LB%2Bw4uE%3DVJQREvQNCZJNiz3rHO7lOXlkVOQkzzdsgu6wWgcazdMUaGoUGm
Dec 29 21:10:26 Bearer AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F
Dec 29 21:10:32 Bearer AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F
Dec 29 21:10:35 Bearer AAAAAAAAAAAAAAAAAAAAAAj4AQAAAAAAPraK64zCZ9CSzdLesbE7LB%2Bw4uE%3DVJQREvQNCZJNiz3rHO7lOXlkVOQkzzdsgu6wWgcazdMUaGoUGm
Dec 29 21:13:25 Bearer AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F
Dec 29 21:13:30 Bearer AAAAAAAAAAAAAAAAAAAAAAj4AQAAAAAAPraK64zCZ9CSzdLesbE7LB%2Bw4uE%3DVJQREvQNCZJNiz3rHO7lOXlkVOQkzzdsgu6wWgcazdMUaGoUGm
Dec 29 21:13:31 Bearer AAAAAAAAAAAAAAAAAAAAAAj4AQAAAAAAPraK64zCZ9CSzdLesbE7LB%2Bw4uE%3DVJQREvQNCZJNiz3rHO7lOXlkVOQkzzdsgu6wWgcazdMUaGoUGm
Dec 29 21:13:31 Bearer AAAAAAAAAAAAAAAAAAAAAFXzAwAAAAAAMHCxpeSDG1gLNLghVe8d74hl6k4%3DRUMF4xAQLsbeBhTSRrCiQpJtxoGWeyHrDb5te2jpGskWDFW82F
Dec 29 21:13:36 Bearer AAAAAAAAAAAAAAAAAAAAAAj4AQAAAAAAPraK64zCZ9CSzdLesbE7LB%2Bw4uE%3DVJQREvQNCZJNiz3rHO7lOXlkVOQkzzdsgu6wWgcazdMUaGoUGm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment