# Loyal Spark - Get Program Analytics

> Loyal Spark - Get Program Analytics is a paid API for AI agents from api.loyalspark.online, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-13).

Retrieves analytics data for a loyalty rewards program on the Loyal Spark onchain protocol running on Base L2

## Facts

- Endpoint: POST https://api.loyalspark.online/x402-gateway/mcp-tools/get_program_analytics
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loyal-spark-get-program-analytics-fb4a01bc
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap__eRdFYMxCFsW0LPnEFTpr

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability loyal-spark-get-program-analytics-fb4a01bc -d '<json body>'
```

Example prompt: Pull the analytics for my Loyal Spark loyalty program on Base — I want to see how many tokens have been earned, redeemed, and are currently in circulation.

## When to prefer this

Use this endpoint when you need to retrieve performance and engagement analytics for a specific loyalty rewards program deployed on the Loyal Spark onchain protocol on Base L2. Prefer this over generic blockchain analytics tools when you specifically need loyalty program metrics like token earn/redeem rates, participant counts, and P2P trading volume within the Loyal Spark ecosystem.

## Known failure modes

- Invalid or missing program ID returns an error response
- Program not found on Base L2 returns 404-equivalent error
- Payment of $0.01 USDC not provided or failed triggers x402 payment required response
- Malformed request body returns validation error
- Network or RPC issues with Base L2 may cause timeouts

## How this service works

Onchain loyalty protocol on Base L2. Launch B20 rewards, earn and redeem tokens, trade P2P, automate with AI agents via REST and MCP.

## Output

Returns JSON analytics data for a specified loyalty rewards program, including token issuance metrics, redemption rates, active participant counts, P2P trade volume, and other engagement statistics for the onchain ERC-20 loyalty protocol on Base L2.

## Example request

```json
{
 "id": 1,
 "method": "tools/call",
 "params": {
  "name": "get_platform_info",
  "arguments": {}
 },
 "jsonrpc": "2.0"
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "toolName",
    "inputSchema"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "mcp"
    },
    "example": {
     "type": "object"
    },
    "toolName": {
     "type": "string"
    },
    "transport": {
     "enum": [
      "streamable-http",
      "sse"
     ],
     "type": "string"
    },
    "description": {
     "type": "string"
    },
    "inputSchema": {
     "type": "object"
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loyal-spark-get-program-analytics-fb4a01bc/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.loyalspark.online](https://www.zero.xyz/host/api.loyalspark.online/llms.txt)
