1.3.5 • Published 5 years ago

steam-game-browser v1.3.5

Weekly downloads
36
License
ISC
Repository
-
Last release
5 years ago

Steam game browser

Search any game in Steam

You can search by App ID or App Name, example:

const sgb = require("steam-game-browser")

// Search a game by name
sgb.searchByName("Grand Theft Auto V", (err, data) => {
    if (err) return console.error(err) // If the game isn't found or you didn't add a string
    console.log(data) // Read the Game Object section, this shows in the console the name, the AppID, required age, if it's free, controller support, dlc, detailed description, short description
})

// Search a game by ID
sgb.searchById("271590", (err, data) => {
    if (err) return console.error(err) // If the game isn't found or you didn't add a string or integer
    console.log(data) // Read the Game Object section, this shows in the console the name, the AppID, required age, if it's free, controller support, dlc, detailed description, short description
})

Game Object

The game object is something like this:

{
    "type": "game",
    "name": "Some game name",
    "steam_appid": "123121231212",
    "required_age": "18",
    "is_free": true,
    "detailed_description": "It's a game, a normal game...",
    "about_the_game": "You're looking a example of a game object",
    "short_description": "Normal game",
    "supported_languages": "English*, Spanish*. * languages with full audio support",
    "header_image": "https//steam-cdn...",
    "website": "some.game",
    "pc_requirements": {
        "minimum": "Basic PC",
        "recommended": "Ultra PC"
    },
    "mac_requirements": {
        "minimum": "Have money to a Mac",
        "recommended": "The lastest Mac"
    },
    "linux_requirements": {
        "minimum": "Have a PC with Linux OS",
        "recommended": "Have a PC with Windows..."
    },
    "developers": ["Drylotrans"],
    "publishers": ["Drylotrans"],
    "price_overview": {
        "currency": "USD",
        "initial": 99999999999,
        "final": 99999999999,
        "discount_percent": 0,
        "initial_formatted": "",
        "final_formatted": 99.999.999.999
    },
    "packages": [1212312, 12312312, 123121212, 1212312],
    "package_groups": [
        {
            "name": "default",
            "title": "Buy my game",
            "description": "Please don't buy it",
            "selection_text": "Select a purcharse option",
            "save_text": "",
            "display_type": 0,
            "is_recurring_subscription": false,
            "subs": [
                {
                    "packageid": 123123,
                    "percent_savings_text": "",
                    "percent_savings": "",
                    "option_text": "My game - 99,999,999,999",
                    "option_description": "",
                    "can_get_free_license": "0",
                    "is_free_license": false,
                    "price_in_cents_with_discount": 99.999.999.999
                }
            ]
        }
    ],
    "platforms": {
        "windows": true,
        "mac": true,
        "linux": true
    },
    "metacritic": {
        "score": 100,
        "url": "https//metacrtic.c"
    },
    "categories": [
        {
            "id": 2,
            "description": "Single-player"
        },
        {
            "id": 1,
            "description": "Multi-player"
        },
        {
            "id":22,
            "description":"Steam Achievements"
        },
        {
            "id":28,
            "description":
            "Full controller support"
        }
    ],
    "genres": [
        {
            "id": "1",
            "description": "Action"
        },
        {
            "id": "25",
            "description": "Adventure"
        }
    ],
    "screenshots": [
        {
            "id": 0,
            "path_thumbnail": "https//steamcdn...",
            "path_full": "https//steamcdn..."
        }
    ],
    "movies": [
        {
            "id": 123112312,
            "name": "My game trailer",
            "thumbnail": "https//steamcdn...",
            "webm": {
                "480": "https//steamcdn...",
                "max": "https//steamcdn..."
            },
            "highlight": true
        }
    ],
    "recommendations": {
        "total": 12321123123213123123123
    },
    "achievements": {
        "total": 12121212,
        "highlighted": [
            {
                "name": "Thanks for buy it",
                "path": "https//steamcdn..."
            }
        ]
    },
    "release_date": {
        "coming_soon": false,
        "date": "01 Feb, 2019"
    },
    "support_info": {
        "url": "https//steamcdn...",
        "email": "example@example.example"
    },
    "background": "https//steamcdn...",
    "content_descriptors": {
        "ids": [1],
        "notes": null
    }
}
1.3.5

5 years ago

1.3.0

5 years ago

1.2.5

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.0

5 years ago