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:
1 parent
2800d2fb2e
commit
20c1fd7be9
1 file changed
+1
-1
+1
-1
@@ -6,7 +6,7 @@ const steamScraper = async (resData) => {
|
||||
if (steamId === null || steamId === '') {
|
||||
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 steamWebUrl = `https://store.steampowered.com/app/${steamId}`
|
||||
try {
|
||||
|
||||
Reference in new issue
Block a user