# steam-price-api

> Gets market information from steam servers

Latest version **2.0.0** (published 2019-06-25) · MIT license · 0 weekly downloads

## Install

```sh
npm install steam-price-api
pnpm add steam-price-api
yarn add steam-price-api
bun add steam-price-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2019-06-25 |
| First published | 2018-06-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Unpacked size | 6.5 KB |
| Known vulnerabilities | 0 (+1 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 18 |
| Author | OlleThunberg |
| Maintainers | cloudian |
| Keywords | steam market, market api steam, steam-pricing, steam-market-api, steam-market-pricing, steam prices, csgo item prices, steam item prices, steamapi, steamcommunity, steam market pricing |

## Links

- npm: https://www.npmjs.com/package/steam-price-api
- Repository: https://github.com/ThunbergOlle/steam-price
- Homepage: https://github.com/ThunbergOlle/steam-price#readme
- Issues: https://github.com/ThunbergOlle/steam-price/issues
- npm.io page: https://npm.io/package/steam-price-api

## Dependencies (1)

- [request](https://npm.io/package/request.md) ^2.87.0

## Recent versions

- 2.0.0 (latest) — 2019-06-25
- 1.2.3 — 2018-10-24
- 1.2.2 — 2018-06-01
- 1.2.1 — 2018-06-01
- 1.2.0 — 2018-06-01
- 1.0.1 — 2018-06-01
- 1.0.0 — 2018-06-01

## README

# Steam-price-API
This is a module developed by OlleThunberg that lets you easily check in-game items values.

**Install**
```js
npm install steam-price-api --save
```

**Import**
```js
const steamprice = require('steam-price-api');
```

## Methods
```js
//For one item
steamprice.getprice(appid, itemname, currency);
```
- `appid` : The games appid. (730 = CSGO)
- `itemname` : The items market name. (Example: Clutch Case)
- `currency` : The currency in **numbers**. (1 = USD);

## Examples

### Get One Item: 
```js
steamprice.getprice(730, 'Clutch Case', '1').then(data => {
    console.log(data);
}).catch(err => console.log(err));
```
**Output**
```json
{ "success": true,
  "lowest_price": "$0.21",
  "volume": "31,939",
  "median_price": "$0.21" }
```

---


### Get Multiple Items:
```js
const items = [
    'Clutch Case Key',
    'Clutch Case'
]
steamprice.getprices(730, items, '1').then(data => {
    console.log(data);
}).catch(err => console.log(err));
```
**Output**
```json
{ "success": true,
  "lowest_price": "$2.56",
  "volume": "3,110",
  "median_price": "$2.56" }
{ "success": true,
  "lowest_price": "$0.21",
  "volume": "31,939",
  "median_price": "$0.21" }
```
## License
MIT License

Copyright (c) 2018 Olle Thunberg

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

---
_Source: https://npm.io/package/steam-price-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
