Overview
The Follow endpoint allows you to follow a user by their user ID. Use Lookup User first if you only have a username.Authentication
Requires a valid API key with a connected X account.Input
| Field | Type | Description |
|---|---|---|
target_user_id | string | Required. The numeric user ID of the account to follow |
Getting a User ID
If you have a username instead of a user ID, use Lookup User first:Credit Usage
This endpoint charges 1 credit per follow.Notes
- If the target account is private, the response may include
pending_follow: true