{"uid":"cap_lNAuQa2LxQpWsVUT-EBEC","slug":"twitter-x-user-lookup-by-username-064c480e","name":"Twitter/X User Lookup by Username","description":"","url":"https://twit-api-production-de12.up.railway.app/users/by/username","method":"POST","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"],"type":"string"},"queryParams":{"type":"object","required":["username"],"properties":{"username":{"type":"string","description":"Twitter screen name without @"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"unknown","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_ssFVxl2K3PKJlMpGUaRE-","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":null,"unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Looks up a Twitter/X user profile by their username and returns user account details","exampleAgentPrompt":"Can you look up the Twitter user profile for the username 'elonmusk' and tell me their user ID and account details?","exampleUseCases":null,"resultDescription":"Returns Twitter/X user profile data for the given username, likely including user ID, display name, handle, follower/following counts, bio, and account metadata.","failureModes":["Username not found — user does not exist or has been suspended","Rate limit exceeded — too many requests to the underlying Twitter API","Invalid username format — username contains disallowed characters","Authentication failure — upstream Twitter API credentials expired or invalid","Payment not processed — x402 micropayment not completed, request rejected"],"whenToPreferThis":"Use this endpoint when you need to resolve a Twitter/X username to a structured user profile or user ID, especially in workflows that require Twitter identity resolution or need to enrich data with Twitter account metadata. Best when you have a known username and need the associated profile details.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-15T00:36:43.231Z","isFirstParty":false}