# Getting total bits via API request instead of PubSub

**URL:** <https://staging-discuss.dev.twitch.com/t/getting-total-bits-via-api-request-instead-of-pubsub/10366>\
**Category:** API\
**Created:** [May 15, 2017, 10:27pm UTC](https://staging-discuss.dev.twitch.com/t/getting-total-bits-via-api-request-instead-of-pubsub/10366 "2017-05-15T22:27:07Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![BarryCarlyon](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/barrycarlyon/32/253_2.png) [@BarryCarlyon](https://staging-discuss.dev.twitch.com/u/BarryCarlyon)\
**Post date:** [May 16, 2017, 7:40am UTC](https://staging-discuss.dev.twitch.com/t/getting-total-bits-via-api-request-instead-of-pubsub/10366/3 "2017-05-16T07:40:50Z")

</div>

> [@Alca](#):
>
> [https://api.twitch.tv/bits/](https://api.twitch.tv/bits/)

Further more, it’s a unsupported end point, so it can and will break at any time and isn’t really for 3rd party devs.

Currently the only way to get the total spend, is via the `total_bits_used` message key over pubsub, when someone cheers.

A subscribers level is under `sub_plan` in the subscribers API as outlined here [Subscriptions Beta Changes](https://staging-discuss.dev.twitch.com/t/subscriptions-beta-changes/10023)

---

_[View the full topic](https://staging-discuss.dev.twitch.com/t/getting-total-bits-via-api-request-instead-of-pubsub/10366)._
