Syncing User Subscriptions

The output for the webhook matches the API end point for the same topic.
So if you can call the topic. Thats the same payload you get from the webhook.

So follows matches the output of Helix described here

On the URL/Topic

https://api.twitch.tv/helix/users/follows?to_id=CHANNELID&first=1

{
    "total": 2822,
    "data": [
        {
            "from_id": "SOMNEID",
            "from_name": "SOMENAME",
            "to_id": "SOMEID",
            "to_name": "SOMENAME",
            "followed_at": "2019-08-22T20:09:27Z"
        }
    ],
    "pagination": {
        "cursor": "eyJiIjpudWxsLCJhIjp7IkN1cnNvciI6IjE1NjY1MDQ1Njc0Mjc0Nzg0OTQifX0"
    }
}

The webhook will omit total and pagination. Heres a real one from my log:

{“data”:[{“followed_at”:“2019-08-31T10:04:35Z”,“from_id”:“117945302”,“from_name”:“nenow95”,“to_id”:“26610234”,“to_name”:“CohhCarnage”}]}

This matches the example that is in the Webhook docs

https://dev.twitch.tv/docs/api/webhooks-reference/#topic-user-follows

It’s a Object that contains an array of data

Subscribers will match the output of

https://api.twitch.tv/helix/subscriptions/events?broadcaster_id=CHANNELID&first=1

heres a real webhook from my webhook log

image