Aplikacje
Aktualności
Pobierz najnowsze aktualności dla gry Steam, wraz z community announcements i zewnętrzną prasą.
Endpoint
Ten endpoint zwraca najnowsze wpisy aktualności dla konkretnej gry Steam, agregując Steam Community Announcements oraz zewnętrzne feedy prasowe (PC Gamer, PCGamesN, SteamDB, Rock Paper Shotgun itd.). Wpisy są posortowane malejąco po publishedTimestamp.
GET /v2/steam/apps/{appid}/news
Wymagane parametry
appid
number
Steam application ID gry, której aktualności chcesz pobrać.
Uwierzytelnianie
Dołącz swój klucz API jako header x-api-key.
x-api-key: YourSecretAPIKey
Pola odpowiedzi
Odpowiedź to tablica wpisów aktualności.
Wpis aktualności
| Pole | Typ | Opis |
|---|---|---|
id | string | Unikalny identyfikator wpisu aktualności (ze Steam). |
title | string | Tytuł wpisu aktualności. |
url | string | URL do pełnego wpisu aktualności. Dla wpisów zewnętrznych jest to URL przekierowania Steam. |
urlExternal | boolean | Czy url wskazuje na treść poza Steam. |
author | string | Autor wpisu aktualności. Może być pustym stringiem. |
content | string | Treść wpisu aktualności. Może zawierać HTML. |
publishedTimestamp | number | Unix timestamp publikacji. |
feed | string | Nazwa wyświetlana feedu (np. "PC Gamer", "Community Announcements"). |
feedName | string | Wewnętrzny identyfikator feedu. |
feedType | number | Typ feedu. Zaobserwowane wartości: 0 dla zewnętrznych feedów prasowych, 1 dla Steam Community Announcements. |
appID | number | Steam application ID, z którym powiązany jest wpis. |
tags | array|undefined | Opcjonalna lista stringów-tagów przypisanych do wpisu (np. "steam_award_nomination_request"). Nieobecna w większości wpisów. |
Pole
content może zawierać HTML — sanitize je przed renderowaniem we własnym UI.Przykład odpowiedzi
Przykładowy output dla tego endpointu. Dla zwięzłości większość wpisów została pominięta.
response.json
{
"success": true,
"result": [
{
"id": "1828894815558283",
"title": "SPRING CLEAN",
"url": "https://steamstore-a.akamaihd.net/news/externalpost/steam_community_announcements/1828894815558283",
"urlExternal": true,
"author": "Errn",
"content": "NEW ITEM: ARMOURED LADDER HATCH...",
"publishedTimestamp": 1775151996,
"feed": "Community Announcements",
"feedName": "steam_community_announcements",
"feedType": 1,
"appID": 252490
},
{
"id": "1828894815563361",
"title": "Rust's Spring Clean update nerfs the shield meta and boosts early game energy",
"url": "https://steamstore-a.akamaihd.net/news/externalpost/PCGamesN/1828894815563361",
"urlExternal": true,
"author": "[email protected]",
"content": "The Rust April update is here...",
"publishedTimestamp": 1775327209,
"feed": "PCGamesN",
"feedName": "PCGamesN",
"feedType": 0,
"appID": 252490
},
{
"id": "1819386365102640",
"title": "Final Round of Voting - Rust in the Steam Awards",
"url": "https://steamstore-a.akamaihd.net/news/externalpost/steam_community_announcements/1819386365102640",
"urlExternal": true,
"author": "ashfacepunch",
"content": "We're through to the final round!...",
"publishedTimestamp": 1766430051,
"feed": "Community Announcements",
"feedName": "steam_community_announcements",
"feedType": 1,
"appID": 252490,
"tags": ["steam_award_vote_request", "mod_hide_library_overview"]
}
]
}