Overview
The Lookup User endpoint resolves an X username to a user ID and profile details. This is useful for getting theuser_id required by other endpoints like Send DM and Follow.
Authentication
Requires a valid API key with a connected X account.Response Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the lookup succeeded |
user_id | string | The X user’s numeric ID |
username | string | The X username (handle) |
name | string | The user’s display name |
bio | string | The user’s profile bio (optional) |
follower_count | number | Number of followers (optional) |
following_count | number | Number of accounts followed (optional) |
credits_used | number | Credits charged for this request |
credits_remaining | number | Remaining credits on your plan |
daily_actions_remaining | number | Remaining daily actions |