Dashboard

Quickstart

Download .md Download for AI agents

Get a key: sign in with an email address and start the 10-day free trial or pick a plan. Add each origin your page runs on to the key, http://localhost:5173 included (Keys and origins).

Paste this tag into a page to show a CS2 item. It works in every browser.

html
<img src="https://inspekt.gg/api/still?id=ak47_cu_ak47_cobra_gen&wear=0.1662&seed=55&view=front&w=640&h=400&key=cs2pk_your_key_here"
     referrerpolicy="strict-origin">

Replace cs2pk_your_key_here with your key. For an inspect link, replace id=…&wear=…&seed=… with inspect=<the link>. See Render API for every parameter.

Keep referrerpolicy="strict-origin" on every <img> and on every <iframe> you write yourself.

Test a still from a page on an allowed origin. Opened in the address bar, it gets 403 origin_required.

Render API or embed

Render APIEmbed
OutputOne webp image of the itemThe live 3D viewer, in an iframe
IntegrationOne <img> tagA script tag and an element
Needs WebGPUNoYes, in the visitor's browser
Counts asOne renderOne embed load

Start with stills, then add the embed to the pages that need 3D. The listing grid demo shows both, with the code for each card.

Embed in four steps

  1. Copy an inspect link

    Use a link with the item as hex after csgo_econ_action_preview: one copied from an item inside CS2, or a "gen" link, generated from the item's values, like this one:

    inspect link
    steam://rungame/730/76561202255233023/+csgo_econ_action_preview 001807209A0228043004388F85D7F30340950512E67D72

    Send the whole link, URL-encoded or not, or the hex alone.

    A Steam Community Market or Steam inventory link, ending in M…A…D… or S…A…D…, carries no item data. The Render API answers it with 400. The embed shows the bad-inspect card.

    To name an item by catalog id instead, pass s with wear and seed. The embed's s and the still's id take the same catalog id.

  2. Add the loader script, once per page

    html
    <script src="https://inspekt.gg/cs2embed.js"></script>
  3. Mount the viewer on an element with a size

    Height is required.

    html
    <div id="viewer" style="width:640px;height:400px"></div>
    <script>
      var viewer = CS2Embed.mount(document.getElementById('viewer'), {
        inspect: 'steam://rungame/730/76561202255233023/+csgo_econ_action_preview 001807209A0228043004388F85D7F30340950512E67D72',
        key: 'cs2pk_your_key_here',
        autorotate: true,
      });
    
      viewer.on('loaded', function (e) {
        console.log('rendered', e.id, 'in', e.ms, 'ms');
      });
    </script>

    See Embed parameters for every option and postMessage API for the handle's methods and events.

  4. Reload and check

    The frame shows a still of your item, then the live 3D view. A new still can take up to 95 seconds, and the 3D view can arrive first.

Before you ship

Next