# EventSub vs PubSub for subscription events

**URL:** <https://discuss.dev.twitch.com/t/eventsub-vs-pubsub-for-subscription-events/29800>\
**Category:** API\
**Created:** [January 6, 2021, 10:44am UTC](https://discuss.dev.twitch.com/t/eventsub-vs-pubsub-for-subscription-events/29800 "2021-01-06T10:44:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cezarsmpio](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/cezarsmpio/32/10854_2.png) [@cezarsmpio](https://discuss.dev.twitch.com/u/cezarsmpio)\
**Post date:** [January 6, 2021, 10:44am UTC](https://discuss.dev.twitch.com/t/eventsub-vs-pubsub-for-subscription-events/29800/1 "2021-01-06T10:44:54Z")

</div>

Hey everyone, I’ve been using the Twitch API EventSub for quite a while and it’s been working fine, however, I noticed that for the same event, we receive different payloads on EventSub and PubSub.

For example, the EventSub subscription payload looks like:

```auto
"event": {
        "user_id": "1234",
        "user_name": "cool_user",
        "broadcaster_user_id": "1337",
        "broadcaster_user_name": "cooler_user",
        "tier": "1000",
        "is_gift": false
    }

```

On the other hand, the PubSub (WebSockets) payload has much more valuable info, such as `cumulative_months`, `streak_months`, `context` and `sub_message`:

```auto
"data": {
    "topic": "channel-subscribe-events-v1.44322889",
    "message": {
      "user_name": "tww2",
      "display_name": "TWW2",
      "channel_name": "mr_woodchuck",
      "user_id": "13405587",
      "channel_id": "89614178",
      "time": "2015-12-19T16:39:57-08:00",
      "sub_plan": "1000",
      "sub_plan_name": "Channel Subscription (mr_woodchuck)",
      "cumulative_months": 9,
      "streak_months": 3,
      "context": "resub",
      "is_gift": false,
      "sub_message": {
        "message": "A Twitch baby is born! KappaHD",
        "emotes": [
          {
            "start": 23,
            "end": 7,
            "id": 2867
          }
        ]
      }
    }
  }

```

Is there any explanation behind why we don’t have the same amount of information on EventSub and are there plans to include the same info on EventSub?

According to the documentation, EventSub is going to be the main single source of truth for real time events.

---

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [January 6, 2021, 12:11pm UTC](https://discuss.dev.twitch.com/t/eventsub-vs-pubsub-for-subscription-events/29800/2 "2021-01-06T12:11:54Z")

</div>

TLDR: the subscriber topic doesn’t do what you think it does, it only fires data for a “brand new sub payment” so no resubs

User voices exist to extend:

> **[Please provide an event sub that emits "resub payments"](https://twitch.uservoice.com/forums/310213-developers/suggestions/42008110-please-provide-an-event-sub-that-emits-resub-even)**
>
> Subscribe topic only broadcasts "new subscriptions"
> 
> So when a subscription "expires" we don't get a "payment notification" for a Resub
> 
> This is NOT a eventsub for the "chat notification" see...

> **[Please provide an event sub that emits "sub notifications"](https://twitch.uservoice.com/forums/310213-developers/suggestions/42008104-please-provide-an-event-sub-that-emits-sub-notifi)**
>
> Please provide an eventsub notification topic for sub notifications
> 
> Which would be a "clone" of messages appearing in chat for sub/resub notifications
> 
> For resubs the chat message and emote placement would be included

> **[Please provide an eventsub that emits unsubscribe/subscription end events](https://twitch.uservoice.com/forums/310213-developers/suggestions/42008170-please-provide-an-eventsub-that-emits-unsubscribe)**
>
> Using event sub it should be possible to ONLY use event sub to maintain a list of people subscribed to a channel. (after an initial paint from Helix)
> 
> Using the current topics it's not possible to do that.
> 
> 
> I currently have to fetch once using...

And if the uservoices that I have listed is insufficent for your needs, take a gander at my quick sheet

> **[TwitchDev Uservoice tracking](https://docs.google.com/spreadsheets/d/1qBSpjUNQWNruxGz1xku7rPXlCZybXSOGmbAATmLJKNs/edit#gid=0)**
>
> FRUSTRATIONS
> 
> Type,Link,Brief Description,Raised,Created,Status,State Change
> API,https://twitch.uservoice.com/forums/310213-developers/suggestions/37563241-expose-vips-in-the-api,VIPS a...

And/or raise your own uservoice

---

<div class="post-metadata">

**Author:** ![cezarsmpio](https://d3ovvz0v2ajtpu.cloudfront.net/user_avatar/discuss.dev.twitch.com/cezarsmpio/32/10854_2.png) [@cezarsmpio](https://discuss.dev.twitch.com/u/cezarsmpio)\
**Post date:** [January 6, 2021, 12:35pm UTC](https://discuss.dev.twitch.com/t/eventsub-vs-pubsub-for-subscription-events/29800/3 "2021-01-06T12:35:58Z")

</div>

That’s great! Voted on all of them!

I think I will need to use a mix of EventSub and PubSub for the time being. No problem at all, but it would be better to have a single source of truth for all events.

Thanks!

---

<div class="post-metadata">

**Author:** ![system](https://d2opxh93rbxzdn.cloudfront.net/original/2X/0/05909729875cce3b53e59d5561c4d23bb14948fc.png) [@system](https://discuss.dev.twitch.com/u/system)\
**Post date:** [February 5, 2021, 12:35pm UTC](https://discuss.dev.twitch.com/t/eventsub-vs-pubsub-for-subscription-events/29800/4 "2021-02-05T12:35:59Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
