Skip to main content
GET
/
2
/
activity
/
stream
Activity Stream
curl --request GET \
  --url https://api.x.com/2/activity/stream \
  --header 'Authorization: Bearer <token>'
{
  "data": {
    "event_type": "<string>",
    "filter": {
      "user_id": "2244994945"
    },
    "payload": {
      "after": "<string>",
      "before": "<string>"
    },
    "tag": "<string>"
  },
  "errors": [
    {
      "detail": "<string>",
      "status": 123,
      "title": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

backfill_minutes
integer

The number of minutes of backfill requested.

Required range: 0 <= x <= 5
start_time
string<date-time>

YYYY-MM-DDTHH:mm:ssZ. The earliest UTC timestamp from which the Post labels will be provided.

end_time
string<date-time>

YYYY-MM-DDTHH:mm:ssZ. The latest UTC timestamp from which the Post labels will be provided.

Response

The request has succeeded.

An activity event or error that can be returned by the x activity streaming API.

data
object
errors
object[]
Minimum length: 1