{"uid":"cap_mRZLI1ckkA8rL2-HQ36qM","slug":"x-data-gateway-lookup-user-profile-by-numeric-id-6854ee4a","name":"X Data Gateway – Lookup User Profile by Numeric ID","description":"Look up a public X user by numeric ID. Same fields as username lookup. e.g. GET /users/by/id?id=44196397","url":"https://x-data-gateway.annushka1190.workers.dev/users/by/id","method":"GET","headers":{},"bodySchema":{"type":"object","$schema":"https://json-schema.org/draft/2020-12/schema","required":["input"],"properties":{"input":{"type":"object","required":["type","method"],"properties":{"type":{"type":"string","const":"http"},"method":{"enum":["GET","HEAD","DELETE"],"type":"string"},"queryParams":{"type":"object","required":["id"],"properties":{"id":{"type":"string","description":"Numeric X user ID"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":{"type":"json","example":{"data":{}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.004","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.004/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.004","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_sIKxgUylCbIqOww9tQcWR","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.004","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Fetches a Twitter/X user's public profile data (username, display name, follower count, etc.) by their numeric user ID, paid per-request in USDC via x402.","exampleAgentPrompt":"Look up the Twitter/X profile for user ID 44196397 and tell me their username, display name, and follower count.","exampleUseCases":[{"title":"Resolve influencer identity from numeric ID","prompt":"I have the numeric X user ID 783214 — can you look up that account and tell me the username and how many followers they have?"},{"title":"Enrich dataset with Twitter profile info","prompt":"For each X user ID in my list, look up their display name and follower count so I can enrich my spreadsheet with that info."},{"title":"Verify public account details","prompt":"Can you fetch the public profile for Twitter user ID 17919972 and confirm what their current username and display name are?"}],"resultDescription":"A JSON object containing the user's numeric ID, username handle, display name, and follower count (e.g. {\"data\":{\"id\":\"44196397\",\"username\":\"elonmusk\",\"displayname\":\"Elon Musk\",\"followersCount\":200000000}}). Returns data for a single user matching the provided numeric ID.","failureModes":["Invalid or non-numeric user ID returns an error response","User ID not found (deleted or suspended account) returns empty or 404-style error","Payment failure via x402 if USDC balance is insufficient","Rate limiting or worker errors if the upstream X API is unavailable","Providing a username instead of a numeric ID will fail since only numeric IDs are accepted"],"whenToPreferThis":"Use this endpoint when you have a numeric X/Twitter user ID and need to resolve it to a username, display name, or follower count without setting up a Twitter Developer account or managing API keys. Ideal for agents needing quick, pay-per-request identity resolution on X with no subscription overhead. Prefer this over the Twitter API directly when you want frictionless micropayment access via x402/USDC.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-13T12:50:29.265Z","isFirstParty":false}