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:
@ -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 {
|
||||||
|
Reference in New Issue
Block a user