Skip to content

API for searching on the Steam store. (Edited for Deno & NSFW content search)

Notifications You must be signed in to change notification settings

mixerrules/steam-store-search

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 

Repository files navigation

@mixerrules/steam-store-search

(A modified fork of @jeppevinkel/steam-store-search)

Api for searching games from the Steam store. This search API works by calling the regular steam store page and scraping the results from the page. It doesn't yet support scrolling the page, so it might be limited in the number of results per search query.

Differences

The main Differences between @jeppevinkel/steam-store-search and @mixerrules/steam-store-search are as follows:

  • This version is able to to look up NSFW games that are normally block by the default preferences for an unsigned in account.
  • Rewrote major sections of SteamSearch.ts to use DOMParser & Element from deno_dom instead of using Cheerio & Axios.
  • Fixed alot of other things little to allow for it to be used locally with Deno.

Usage

// Latest build from main branch
import {SteamSearch, QueryBuilder, ResultType} from "https://raw.githubusercontent.com.com/mixerrules/steam-store-search/src/index.ts"

// Latest build release hosted from denoland
import * as steamStoreSearch from "https://deno.land/x/steam_store_search@1.0.0/src/index.ts";


let query = QueryBuilder.create()
    .search('counter-strike')

SteamSearch.search(query).then((results) => {
    for (let result of results) {
        const type = result.type == ResultType.App ? 'App' : 'Bundle'
        console.log(`[${type}] (${result.appId}) ${result.title}`)
    }
})

Docs

Note: The docs between these versions should be the same but might change in the future https://jeppevinkel.github.io/steam-store-search

Contributing

Pull requests are welcome. For design changes, please open an issue to discuss what you would like to change.

License

MIT

About

API for searching on the Steam store. (Edited for Deno & NSFW content search)

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%