Logo
Twitter API Documentation

Blocks

Number of APIs: 3


1. Block a user ID

POST https://api.twitter.com/2/users/:id/blocking

Allows a user ID to block another user.

For full details, see the API reference for this endpoint.



2. Blocks lookup

GET https://api.twitter.com/2/users/:id/blocking

Returns a list of users who are blocked by the specified user ID.

For full details, see the API reference for this endpoint.



3. Unblock a user ID

DELETE https://api.twitter.com/2/users/:source_user_id/blocking/:target_user_id

Allows a user ID to unblock another user.

For full details, see the API reference for this endpoint.



ENDPOINTS