Skip to main content
GET
/
2
/
activity
/
subscriptions
Get X activity subscriptions
curl --request GET \
  --url https://api.x.com/2/activity/subscriptions \
  --header 'Authorization: Bearer <token>'
{
  "data": [
    {
      "created_at": "2023-11-07T05:31:56Z",
      "event_type": "<string>",
      "filter": {
        "keyword": "The President",
        "user_id": "2244994945"
      },
      "subscription_id": "1146654567674912769",
      "updated_at": "2023-11-07T05:31:56Z",
      "tag": "<string>",
      "webhook_id": "1146654567674912769"
    }
  ],
  "errors": [
    {
      "title": "<string>",
      "type": "<string>",
      "detail": "<string>",
      "status": 123
    }
  ],
  "meta": {
    "next_token": "<string>",
    "result_count": 123
  }
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

max_results
integer<int32>

The maximum number of results to return per page.

Required range: 1 <= x <= 100
pagination_token
string

This parameter is used to get the next 'page' of results. A base32 pagination token.

Minimum string length: 16

Response

The request has succeeded.

data
object[]
errors
object[]
Minimum array length: 1
meta
object