npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

steamanalyst

v1.0.0

Published

Official JavaScript/TypeScript client for the SteamAnalyst CS2 Pricing API — real-time Counter-Strike 2 skin prices from 30+ marketplaces

Readme

SteamAnalyst JavaScript SDK

The official JavaScript/TypeScript client for the SteamAnalyst CS2 Pricing API.

Get real-time Counter-Strike 2 skin prices aggregated from 30+ marketplaces — including Buff, CSFloat, DMarket, SkinBaron, CS.Money, and more.

npm version License: MIT


About SteamAnalyst

SteamAnalyst is the leading price aggregator for CS2 skins, trusted by over 1 million monthly users since 2013. Unlike the Steam Market API, SteamAnalyst provides accurate, manipulation-resistant pricing by aggregating real transaction data from 30+ skin marketplaces.

Learn more about our methodology


Getting Started

1. Get Your API Key

Sign up for a free or paid API key at steamanalyst.com/api-info.

| Plan | Requests | Best For | |------|----------|----------| | Hobby (Free) | 100/day | Personal projects, testing | | Pro | Custom | Trading bots, commercial apps |

2. Install

npm install steamanalyst

3. Use

import SteamAnalyst from "steamanalyst";

const client = new SteamAnalyst("your_api_key");

// Get a single item price
const item = await client.getPrice("AK-47 | Redline (Field-Tested)");
console.log(item.price); // 25.50

API Reference

Full API documentation is available at api.steamanalyst.com/docs.

getPrice(marketName)

Get the current price for a single CS2 item.

const item = await client.getPrice("AWP | Dragon Lore (Factory New)");
// { market_name: "AWP | Dragon Lore (Factory New)", price: 12500.00 }

getAllPrices()

Get prices for every CS2 item in a single request. Requires a paid API key.

const items = await client.getAllPrices();
console.log(`Loaded ${items.length} items`);

getGamePrices(marketName?)

Get CS2 item data from the v2 endpoint. Pass an optional marketName for a single item.

// All items
const all = await client.getGamePrices();

// Single item
const knife = await client.getGamePrices("Karambit | Fade (Factory New)");

getMarketPrices()

Compare prices across 30+ skin marketplaces — find the best deals instantly. Requires a paid API key.

const data = await client.getMarketPrices();

const redline = data.markets_prices["AK-47 | Redline (Field-Tested)"];
console.log(`Buff: $${redline.buff}`);
console.log(`CSFloat: $${redline.float}`);
console.log(`DMarket: $${redline.dmarket}`);

Supported marketplaces include: Buff, CSFloat, DMarket, SkinBaron, CS.Money, BitSkins, Tradeit, Waxpeer, ShadowPay, LootFarm, SkinFlow, and many more.


Examples

Price Checker

import SteamAnalyst from "steamanalyst";

const client = new SteamAnalyst("your_api_key");

const items = [
  "AK-47 | Redline (Field-Tested)",
  "AWP | Asiimov (Field-Tested)",
  "M4A4 | Howl (Factory New)",
];

for (const name of items) {
  const { price } = await client.getPrice(name);
  console.log(`${name}: $${price}`);
}

Find the Cheapest Marketplace

import SteamAnalyst from "steamanalyst";

const client = new SteamAnalyst("your_api_key");
const data = await client.getMarketPrices();

const item = "AK-47 | Redline (Field-Tested)";
const prices = data.markets_prices[item];

const cheapest = Object.entries(prices)
  .filter(([, price]) => price > 0)
  .sort(([, a], [, b]) => a - b)[0];

console.log(`Cheapest for ${item}: ${cheapest[0]} at $${cheapest[1]}`);

Error Handling

import SteamAnalyst, { SteamAnalystError } from "steamanalyst";

const client = new SteamAnalyst("your_api_key");

try {
  const item = await client.getPrice("Nonexistent Skin");
} catch (error) {
  if (error instanceof SteamAnalystError) {
    console.error(`API Error [${error.code}]: ${error.message}`);
    // API Error [ITEM_NOT_FOUND]: Item not found
  }
}

Rate Limits

Rate limits depend on your API plan:

| Plan | Rate Limit | Daily Limit | |------|-----------|-------------| | Hobby (Free) | 30 req/min | 100 req/day | | Pro | 300 req/min | Unlimited |

Rate limit info is returned in response headers (X-RateLimit-Remaining). The SDK throws a SteamAnalystError with code RATE_LIMIT_EXCEEDED when you hit the limit.


Requirements

  • Node.js 18+ (uses native fetch)
  • Zero dependencies

TypeScript

Full TypeScript support is included out of the box. All methods return typed responses.

import SteamAnalyst, { PriceData, MarketsPriceData, SteamAnalystError } from "steamanalyst";

Links


License

MIT - see LICENSE

Built and maintained by SteamAnalyst — tracking CS2 skin prices since 2013.