Ensure API Response is in English

added English to the API URL to ensure the returned JSON is in English. I'm leaving the Headers language in place, but it is not as reliable
This commit is contained in:
2025-06-29 11:50:29 -04:00
parent 2800d2fb2e
commit 20c1fd7be9

View File

@ -6,7 +6,7 @@ const steamScraper = async (resData) => {
if (steamId === null || steamId === '') { if (steamId === null || steamId === '') {
return 'Please enter a valid Steam Id' return 'Please enter a valid Steam Id'
} }
const steamApiUrl = `https://store.steampowered.com/api/appdetails/?appids=${steamId}` const steamApiUrl = `https://store.steampowered.com/api/appdetails/?appids=${steamId}&l=english`
const steamRatingApiUrl = `https://store.steampowered.com/appreviews/${steamId}?json=1` const steamRatingApiUrl = `https://store.steampowered.com/appreviews/${steamId}?json=1`
const steamWebUrl = `https://store.steampowered.com/app/${steamId}` const steamWebUrl = `https://store.steampowered.com/app/${steamId}`
try { try {