{"uid":"cap_r7eYUt_HlB7Cb863_TkwI","slug":"readx-get-usernames-by-user-id-14df7424","name":"ReadX — Get Usernames by User ID","description":"Resolve up to 20 numeric user ids to @usernames (map; null on per-id failure). Example: GET /api/tools/get_usernames?user_ids=12,44196397","url":"https://readx.sh/api/tools/get_usernames","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"code":0,"data":{"0":null,"12":"jack","44196397":"elonmusk"}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.01","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.01/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.01","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm__YGPHHhupnc3AEzvhnHI7","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.01","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up X/Twitter usernames (handles) for one or more numeric user IDs, returning a mapping of ID to username.","exampleAgentPrompt":"What's the X/Twitter username for user ID 44196397? Use ReadX to look it up without needing an API key.","exampleUseCases":[{"title":"Resolve follower IDs to usernames","prompt":"I have a list of X user IDs from a dataset — can you look up their usernames so I know who these accounts actually are?"},{"title":"Identify account behind a numeric ID","prompt":"Who owns X/Twitter user ID 12? Look up the username for me."},{"title":"Enrich analytics data with handles","prompt":"My analytics export has raw Twitter user IDs but no screen names — can you resolve these IDs to their current usernames so I can read the report properly?"}],"resultDescription":"A JSON object with a 'data' field mapping numeric user IDs (as string keys) to their current X/Twitter usernames (handles). Null values indicate IDs that could not be resolved. Also returns a 'code' field (0 on success).","failureModes":["Invalid or non-existent user ID returns null for that entry","Malformed request returns a non-zero error code","Payment failure (x402) if USDC balance is insufficient — endpoint returns 402 before processing","Rate limits or upstream X API unavailability may cause transient errors"],"whenToPreferThis":"Use this endpoint when you have numeric X/Twitter user IDs and need to resolve them to human-readable usernames, without requiring X API credentials. Ideal for enriching datasets, analytics pipelines, or any workflow that surfaces raw X user IDs. Prefer over official X API when you want pay-per-call micropayment access with no key management.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:53:44.439Z","isFirstParty":false}