forked from syntaxerrors/Steam
-
Notifications
You must be signed in to change notification settings - Fork 0
Endpoints News
TeemoCell edited this page Jul 20, 2026
·
2 revisions
The news client uses ISteamNews/GetNewsForApp/v2.
$news = $steam->news();GetNewsForApp(
int $appId,
int $count = 5,
?int $maxLength = null,
?int $endDate = null,
array|string|null $feeds = null,
): mixed| Argument | Description |
|---|---|
$appId |
Steam application ID. |
$count |
Maximum number of news entries. |
$maxLength |
Optional maximum content length. |
$endDate |
Only return entries before this Unix timestamp. |
$feeds |
One feed name or an array of feed names. |
$response = $steam->news()->GetNewsForApp(
appId: 620,
count: 10,
maxLength: 500,
feeds: ['steam_community_announcements'],
);
foreach ($response->newsitems as $item) {
echo $item->title.PHP_EOL;
}Authenticated publisher news is documented under Publisher API.
Documentation for teemocell/steam-web-api · Licensed under the MIT License