Get Users By IDs
tweetapi_user_by_idsFetch up to 100 public Twitter user profiles by numeric ID in one call and see missing accounts in completeness.notReturned; use username lookup when you have usernames.
Instructions
Fetch up to 100 public user profiles in one call by numeric user ID. Missing accounts are listed in completeness.notReturned. Use tweetapi_user_by_usernames when you have usernames. Read-only. Needs a TweetAPI API key and makes one TweetAPI request per call, usually costing 1 unit; each result includes a cost estimate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| userIds | Yes | Comma-separated string or array of up to 100 numeric user IDs. | |
| responseFormat | No | full (default) returns TweetAPI's JSON unchanged. compact keeps full post text, IDs, links, original dates, counts, and cursors but drops bulky fields; output.fieldsOmitted lists what was dropped. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cost | Yes | ||
| mode | Yes | ||
| tool | Yes | ||
| notice | Yes | ||
| output | Yes | ||
| result | Yes | ||
| endpoint | Yes | ||
| usageDocs | No | ||
| pagination | No | Pagination exactly as TweetAPI returned it. | |
| statusCode | Yes | ||
| retrievedAt | Yes | When the MCP server received this response (ISO 8601). Not the post or profile date, and not a promise that X's data was fresh at that moment. | |
| completeness | Yes | ||
| resolvedInput | No | Identifiers the MCP server parsed from links or @handles before calling TweetAPI. |