Skip to content

HasBitsMethods ​

php
trait Zairakai\LaravelTwitch\Services\Concerns\HasBitsMethods

Twitch Bits API methods.

Source: src/Services/Concerns/HasBitsMethods.php

Methods ​

getBitsLeaderboard() ​

php
public function getBitsLeaderboard(int $count = 10, string $period = 'ALL', string $userId = null, string $startedAt = null): DataCollection

Get the top bits leaderboard for a broadcaster's channel.

ParameterDescription
$countNumber of results to return (1-100)
$periodDAY, WEEK, MONTH, YEAR, or ALL

Returns DataCollection<int, BitsLeaderboardEntry>

getCheermotes() ​

php
public function getCheermotes(string $broadcasterId = null): DataCollection

Get the list of Cheermotes for a broadcaster's channel.

Returns DataCollection<int, Cheermote>

getCustomPowerUps() ​

php
public function getCustomPowerUps(string $broadcasterId, string|array|null $powerUpIds = null): DataCollection

Get a broadcaster's custom Bits Power-ups (the catalog entries - distinct from a specific redemption of one, see ChannelCustomPowerUpRedemptionAddEvent).

ParameterDescription
$powerUpIdsFilter by specific Power-up id(s), max 50

Returns DataCollection<int, CustomPowerUp>

getExtensionTransactions() ​

php
public function getExtensionTransactions(string $extensionId, string|array|null $transactionIds = null, string $after = null, int $first = 20): PaginatedResult

Get a list of transactions for an extension.

ParameterDescription
$transactionIdsFilter by specific transaction ID(s)

Returns PaginatedResult<ExtensionTransaction>

Documentation of 4.1.4 , built from a03e949 on 4.1.4 by pipeline #2949087255 on 2026-10-11.