Creates an inspect URL from an EconItem
The item data to encode
The generated inspect URL
const cs2 = new CS2Inspect();
const item: EconItem = {
defindex: WeaponType.AK_47,
paintindex: 44, // Fire Serpent
paintseed: 661,
paintwear: 0.15
};
const url = cs2.createInspectUrl(item);
Decodes a MASKED inspect URL into an EconItem (synchronous, offline)
⚠️ ONLY works with MASKED URLs (URLs containing encoded protobuf data) ❌ Does NOT work with UNMASKED URLs (market/inventory links) - use inspectItem() instead
The MASKED inspect URL to decode
The decoded item data
Error if URL is unmasked or invalid
const cs2 = new CS2Inspect();
// This works - masked URL with protobuf data
const maskedUrl = "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20001807A8...";
const item = cs2.decodeMaskedUrl(maskedUrl);
// This will throw an error - unmasked URL
const unmaskedUrl = "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198123456789A987654321D456789123";
// cs2.decodeMaskedUrl(unmaskedUrl); // ❌ Throws error
Analyzes an inspect URL structure
The URL to analyze
Analyzed URL information
Validates an EconItem
The item to validate
Validation result
Validates an inspect URL
The URL to validate
Validation result
Gets basic URL information without full decoding
The URL to analyze
Basic URL information
Optional
estimatedInspects ANY inspect URL (both masked and unmasked) - Universal method
✅ Works with MASKED URLs (decoded offline using protobuf data) ✅ Works with UNMASKED URLs (fetched via Steam client) 🔄 Automatically detects URL type and uses appropriate method
Any valid inspect URL (masked or unmasked)
Promise resolving to the decoded item data
Error if Steam client is required but not available
const cs2 = new CS2Inspect({
steamClient: {
enabled: true,
username: 'your_username',
password: 'your_password'
}
});
await cs2.initializeSteamClient();
// Works with masked URLs (offline)
const maskedUrl = "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20001807A8...";
const maskedItem = await cs2.inspectItem(maskedUrl);
// Works with unmasked URLs (via Steam client)
const unmaskedUrl = "steam://rungame/730/76561202255233023/+csgo_econ_action_preview%20S76561198123456789A987654321D456789123";
const unmaskedItem = await cs2.inspectItem(unmaskedUrl);
Inspects ANY inspect URL (both masked and unmasked) - Universal method
Any valid inspect URL (masked or unmasked)
Promise resolving to the decoded item data
Use inspectItem() instead for clearer naming
Get Steam client status and statistics
Steam client status information
Updates the configuration
New configuration options
Gets current configuration
Current configuration
Main CS2 Inspect URL API class