GET /labs/1/tweets/stream/compliance

Streams compliance activities.

Because of the high volume of compliance activities, the stream is divided into 8 partitions, each one delivering ~12.5% of the overall volume. In order to get all compliance events, your client will need to connect to all partitions at the same time.

Endpoint URL

https://api.twitter.com/labs/1/tweets/stream/compliance

Authentication and rate limits

Authentication methods
supported by this endpoint

OAuth 2.0 Bearer token

Rate limit400 requests per 15-minute window

Learn more about rate limits.



Query parameters

NameTypeDescription
partition
 Required 
numberThe partition number to connect to (1 to 8).


Example requests

  • cURL
  • twurl
curl -X GET -H "Authorization: Bearer $BEARER_TOKEN" "https://api.twitter.com/labs/1/tweets/stream/compliance?partition=1"
twurl --bearer "/labs/1/tweets/stream/compliance?partition=1"

Example responses

The endpoint will return compliance event objects as defined in the Tweet compliance page.

Was this document helpful?

Thank you

Thank you for the feedback. We’re really glad we could help!

Thank you for the feedback. How could we improve this document?

Thank you for the feedback. Your comments will help us improve our documents in the future.