Users Endpoints

Block a User

Block a user

post/twitter/user/block

Request

  • Base URL: https://api.twexapi.io
  • URL: https://api.twexapi.io/twitter/user/block
  • Auth: HTTP bearer

Request body

usernamestring required

The username of the user to block.

cookiestring required

The user's own authorized Twitter session credentials or auth_token (BYOC — Bring Your Own Cookie). Stateless proxy execution with zero credential retention. See Authentication Security and How to get Cookie.

Example request

{
  "cookie": "ct0=abc123... or 2c4a4e1832096aa694c739b83c83b6d96d43eba7"
}

Response

Blocked user information

codeinteger

HTTP status code

msgstring

Response message

Example response

{
  "data": {
    "id": "1717001045992251392",
    "name": "Cryptoklepto",
    "screen_name": "CK_Cryptoklepto",
    "created_at": "Mon Oct 28 02:32:47 +0000 2024",
    "created_at_datetime": "2024-10-28T02:32:47.000Z",
    "urls": [
      {
        "url": "https://www.google.com",
        "expanded_url": "https://www.google.com",
        "display_url": "www.google.com"
      }
    ],
    "verified_type": "government",
    "profile_image_shape": "Circle",
    "location": "New York, USA"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.