{"uid":"cap_uyedMsTf3XGZK6KrbooIx","slug":"readx-get-username-api-46bd97f7","name":"ReadX Get Username API","description":"Resolve a numeric user id to its current @username. Example: GET /api/tools/get_username?user_id=12","url":"https://readx.sh/api/tools/get_username","method":"GET","headers":{},"bodySchema":{"type":"object","properties":{"required":{"type":"string"},"properties":{"type":"string"}}},"responseSchema":{"type":"json","example":{"code":0,"data":{"username":"jack"}}},"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_sDk81XlOkqmjMcUDUNZ45","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":"Resolves a Twitter/X user identifier to their canonical username via a pay-per-call micropayment API","exampleAgentPrompt":"What's the Twitter/X username for user ID 12? Look it up via ReadX — no need for API keys, just pay per call.","exampleUseCases":null,"resultDescription":"Returns a JSON object with a status code and a data object containing the resolved username string (e.g. {\"code\":0,\"data\":{\"username\":\"jack\"}})","failureModes":["User ID not found — returns non-zero code","Invalid or malformed user identifier — returns error code","Payment failure via x402 micropayment — HTTP 402 response requiring USDC payment on Base or Solana","Rate limiting or temporary service unavailability"],"whenToPreferThis":"Use this endpoint when you need to resolve a Twitter/X user identifier to a username without managing traditional API keys, and are comfortable paying $0.03 USDC per call via x402 micropayments on Base or Solana. Ideal for lightweight, on-demand username lookups in agent workflows.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T00:45:24.831Z","isFirstParty":false}