{"uid":"cap_ee8oR3C9QCB5XN08ksGM4","slug":"twit-sh-twitter-x-user-profile-lookup-by-username-775d6642","name":"twit.sh Twitter/X User Profile Lookup by Username","description":"Real-time Twitter/X data for AI agents. No sign-up, no API keys. Pay per request in USDC on Base via x402. Fully autonomous.","url":"https://twit.sh/users/by/username","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"],"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":{"type":"json","example":{"data":{"id":"9253672","name":"Hal Finney","username":"halfin","verified":false,"description":"Running bitcoin.","public_metrics":{"like_count":300,"tweet_count":600,"followers_count":134000,"following_count":200}}}},"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.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_pdgIe-ATqW3KjJWzcKz2Y","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","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 (name, bio, follower counts, tweet count) by their screen name","exampleAgentPrompt":"Can you pull up the Twitter profile for @halfin — I want to see their bio, follower count, and how many tweets they've posted?","exampleUseCases":[{"title":"Influencer vetting before outreach","prompt":"Look up the Twitter profile for @lexfridman — I need their follower count, how many tweets they've posted, and a quick read of their bio before we reach out for a partnership."},{"title":"Resolving username to user ID","prompt":"Can you get me the Twitter user ID for the account @naval? I need the numeric ID to pass into another system."},{"title":"Competitor social media audit","prompt":"Fetch the public Twitter profile stats for @openai — follower count, tweet count, and their current bio description."}],"resultDescription":"A JSON object containing the user's numeric Twitter ID, display name, username, verified status, bio/description text, and public engagement metrics including follower count, following count, total tweet count, and total like count.","failureModes":["Username not found — returns a 404 or empty data object if the account does not exist or has been suspended","Payment failure — x402 micropayment in USDC not processed, request rejected before data is returned","Rate limiting — upstream Twitter/X API quota exceeded, may return a 429 or error response","Private/protected account — public metrics may be unavailable or limited for non-public accounts","Typo in username — silently returns no results if the username string is invalid or misspelled"],"whenToPreferThis":"Choose this endpoint when you need real-time Twitter/X user profile data without managing OAuth credentials or API keys. It is ideal for AI agents that need to enrich a dataset with social profile information, verify that a Twitter account exists, or retrieve follower/engagement metrics on demand. It is payment-per-call via USDC on Base, making it well-suited for low-volume or bursty lookups without subscription overhead. Prefer this over the official Twitter API when you want zero-setup access or are building autonomous agents that self-fund via x402.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-09-14T12:46:18.766Z","isFirstParty":false}