Today, we’re providing developers with the ability to view whether an account that mentions your subscribed user is blocked. Previously, when using the Account Activity API, there was no way to see if an account that mentioned your subscribed user was blocked. This meant that your app could have still attempted to act on or surface these activities. We want to be sure you have relevant information and this new update can help you easily decide what to do with activities from users your subscribers have blocked.

You can see a boolean field user_has_blocked on the top level of the JSON response, set to either “true” or “false.” This will only be visible in the payload when a user mentions the subscribed user, and this field is available on both the sandbox/premium and enterprise versions of the Account Activity API.

If your subscribed user is mentioned by an account that is blocked, you will see the following user_has_blocked field set to “true” in your payload:

{

  "for_user_id": "2244994945",

  "user_has_blocked": "true",

  "tweet_create_events": ...

If your subscribed user is mentioned by an account that isn’t blocked, you will see the following user_has_blocked field set to “false” in your payload:

{

  "for_user_id": "2244994945",

  "user_has_blocked": "false",

  "tweet_create_events": ...

Please review the Account Activity API data objects documentation and FAQs for more details.

3 Likes