Skip to content

Instantly share code, notes, and snippets.

@leumasme
Created May 31, 2023 21:00
Show Gist options
  • Save leumasme/1f5ece050f51818d968f72a4ea82c5e1 to your computer and use it in GitHub Desktop.
Save leumasme/1f5ece050f51818d968f72a4ea82c5e1 to your computer and use it in GitHub Desktop.
Twitter API GraphQL ID List
// Add a webpack module to get the module export cache
(webpackChunk_twitter_responsive_web.push([[''],{},e=>{
window.moduleCache = [];
for(let c in e.c) {
window.moduleCache.push(e.c[c]);
}
}]));
// Find API definitions in the module cache
window.moduleCache.filter(x=> typeof x.exports == "object" && "queryId" in x.exports).map(x=>[x.exports.operationName,x.exports.queryId])
// api request urls are of the format `https://twitter.com/i/api/graphql/{MethodID}/{MethodName}?variables={HTMLEncodedJsonObject}`
ConversationControlDelete OoMO_aSZ1ZXjegeamF9QmA
ConversationControlChange hb1elGcj6769uT8qVYqtjw
DeleteTweet VaenaVgh5q5ih7kvyVjgtg
CreateHighlight 7jEc7ECTTDcNaqsMhjTxXg
UsersVerifiedAvatars P_Sp84IvEnCcfSlWDT7gMw
BakeryQuery pROR-yRiBVsEjJyHt3fvhg
RemoveFollower QpNfg0kpPRfjROQ_9eOLXA
UnmoderateTweet pVSyu6PA57TLvIE4nN2tsA
ProfileUserPhoneState 5kUWP8C1hcd6omvg6HXXTQ
TweetResultByRestId tkDbdTgMKI4EBb959FfKog
ModerateTweet pjFnHGVqCjTcZol0xcBJjw
UserSessionsList vJ-XatpmQSG8bDch8-t9Jw
CreateRetweet ojPdsZsimiJrUGLR1sjUtA
CreateNoteTweet Pwg0RQVkQa_axfgLgqQ4qA
UserByScreenName CgrrOldPft4MOIWoMlHW8w
DeleteBookmark Wlmlj2-xzyS1GN3a6cj-mQ
CheckTweetForNudge C2dcvh7H69JALtomErxWlA
CreateTweet jm93VcEnLxM7My_CL9C_EA
DeleteRetweet iQtK4dl5hBmXewYZuEOKVw
EnableVerifiedPhoneLabel C3RJFfMsb_KcEytpKmRRkw
UnmentionUserFromConversation xVW9j3OqoBRY9d6_2OONEg
DisableVerifiedPhoneLabel g2m0pAOamawNtVIfjXNMJg
FavoriteTweet lI07N6Otwv1PhnEgXILM7A
CreateBookmark aoDbu3RHznuiSkQ9aNM67Q
DeleteHighlight ea-VVDSLIEYNY2_2aPg3Uw
UsersByRestIds GD4q8bBE2i6cqWw2iT74Gg
UnfavoriteTweet ZYKSe-w7KEslx3JhSIk5LA
UserByRestId iMuA8BNF1TsHwjiEmybpHQ
Viewer k3027HdkVqbuDPpdoniLKA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment