steam-analytics-agent

Steam game analytics: player counts, ownership data, trending games, genre analysis via Steam Spy

  • 6 Entrypoints
  • v1.0.0 Version
  • Enabled Payments
steam-analytics-agent-production.up.railway.app

Entrypoints

Explore the capabilities exposed by this agent. Invoke with JSON, stream responses when available, and inspect pricing where monetization applies.

overview

Invoke

Free overview: top 5 trending Steam games (last 2 weeks)

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/overview/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {},
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://steam-analytics-agent-production.up.railway.app/entrypoints/overview/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {}
    }
  '

lookup

Invoke

Look up game details by Steam App ID

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/lookup/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "appid": {
      "type": "number",
      "description": "Steam App ID (e.g., 730 for CS:GO)"
    }
  },
  "required": [
    "appid"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://steam-analytics-agent-production.up.railway.app/entrypoints/lookup/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "appid": 0
      }
    }
  '

top

Invoke

Top 100 games by metric (recent activity, all-time, or owned)

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/top/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "metric": {
      "default": "recent",
      "description": "recent = last 2 weeks, forever = all-time playtime, owned = total owners",
      "type": "string",
      "enum": [
        "recent",
        "forever",
        "owned"
      ]
    },
    "limit": {
      "default": 20,
      "type": "number",
      "minimum": 1,
      "maximum": 100
    }
  },
  "required": [
    "metric",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://steam-analytics-agent-production.up.railway.app/entrypoints/top/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "metric": "recent",
        "limit": 1
      }
    }
  '

genre

Invoke

Get top games in a specific genre

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/genre/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "genre": {
      "type": "string",
      "description": "Genre name (e.g., Indie, Action, RPG, Strategy, Simulation)"
    },
    "limit": {
      "default": 20,
      "type": "number",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "genre",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://steam-analytics-agent-production.up.railway.app/entrypoints/genre/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "genre": "<Genre name (e.g., Indie, Action, RPG, Strategy, Simulation)>",
        "limit": 1
      }
    }
  '

tag

Invoke

Get top games with a specific Steam tag

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/tag/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "tag": {
      "type": "string",
      "description": "Steam tag (e.g., Multiplayer, Horror, Roguelike, Survival)"
    },
    "limit": {
      "default": 20,
      "type": "number",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "tag",
    "limit"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://steam-analytics-agent-production.up.railway.app/entrypoints/tag/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "tag": "<Steam tag (e.g., Multiplayer, Horror, Roguelike, Survival)>",
        "limit": 1
      }
    }
  '

compare

Invoke

Compare metrics for multiple games by App ID

Pricing Free
Network base
Invoke Endpoint POST /entrypoints/compare/invoke
Input Schema
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "type": "object",
  "properties": {
    "appids": {
      "minItems": 2,
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "number"
      },
      "description": "Array of Steam App IDs to compare"
    }
  },
  "required": [
    "appids"
  ],
  "additionalProperties": false
}
Invoke with curl
curl -s -X POST \
  'https://steam-analytics-agent-production.up.railway.app/entrypoints/compare/invoke' \
  -H 'Content-Type: application/json' \
  -d '
    {
      "input": {
        "appids": [
          0
        ]
      }
    }
  '

Client Example: x402-fetch

Use the x402-fetch helpers to wrap a standard fetch call and automatically attach payments. This script loads configuration from .env, pays the facilitator, and logs both the response body and the decoded payment receipt.

import { config } from "dotenv";
import {
  decodeXPaymentResponse,
  wrapFetchWithPayment,
  createSigner,
  type Hex,
} from "x402-fetch";

config();

const privateKey = process.env.AGENT_WALLET_PRIVATE_KEY as Hex | string;
const agentUrl = process.env.AGENT_URL as string; // e.g. https://agent.example.com
const endpointPath = process.env.ENDPOINT_PATH as string; // e.g. /entrypoints/echo/invoke
const url = `${agentUrl}${endpointPath}`;

if (!agentUrl || !privateKey || !endpointPath) {
  console.error("Missing required environment variables");
  console.error("Required: AGENT_WALLET_PRIVATE_KEY, AGENT_URL, ENDPOINT_PATH");
  process.exit(1);
}

/**
 * Demonstrates paying for a protected resource using x402-fetch.
 *
 * Required environment variables:
 * - AGENT_WALLET_PRIVATE_KEY    Wallet private key for signing payments
 * - AGENT_URL                   Base URL of the agent server
 * - ENDPOINT_PATH               Endpoint path (e.g. /entrypoints/echo/invoke)
 */
async function main(): Promise<void> {
  // const signer = await createSigner("solana-devnet", privateKey); // uncomment for Solana
  const signer = await createSigner("base-sepolia", privateKey);
  const fetchWithPayment = wrapFetchWithPayment(fetch, signer);

  const response = await fetchWithPayment(url, { method: "GET" });
  const body = await response.json();
  console.log(body);

  const paymentResponse = decodeXPaymentResponse(
    response.headers.get("x-payment-response")!
  );
  console.log(paymentResponse);
}

main().catch((error) => {
  console.error(error?.response?.data?.error ?? error);
  process.exit(1);
});

Manifest

Loading…
Fetching agent card…