steamgames
Version:
A package for fetching game data from Steam APIs
10 lines (9 loc) • 430 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.getSteamPriceOverview = getSteamPriceOverview;
async function getSteamPriceOverview(appids, country) {
const appidsParam = appids.join(",");
const response = await fetch(`http://store.steampowered.com/api/appdetails?filters=price_overview&appids=${appidsParam}&cc=${country}`);
const data = await response.json();
return data;
}