# Loot Expected-Value Calculator

> Loot Expected-Value Calculator is a paid API for AI agents from market.datapackvibe.com, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Calculates the expected reward value from a loot table by combining item values with their drop probabilities.

## Facts

- Endpoint: POST https://market.datapackvibe.com/x402/loot-expected-value?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-03
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/loot-expected-value-calculator-4217349a
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SFabp8JGoL5Wft2cz83XF

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 loot-expected-value-calculator-4217349a -d '<json body>'
```

Example prompt: I have three items in a loot table worth 10, 25, and 100 gold with drop chances of 70%, 25%, and 5% — what's the expected value per kill?

## When to prefer this

Use this endpoint when you need a fast, single-call computation of expected loot value from a discrete probability distribution — ideal for game designers balancing loot tables, analysts evaluating gacha systems, or agents automating game economy calculations without writing custom math code.

## Known failure modes

- Mismatched array lengths between values and probabilities may return an error or incorrect result
- Probabilities that don't sum to 1.0 may produce misleading expected values
- Empty arrays may return zero or a validation error
- Non-numeric values in the arrays will likely cause a parsing error

## How this service works

Loot expected-value calculator: Calculate expected reward value from item values and drop probabilities.

## Output

Returns the expected reward value — the probability-weighted average of all item values in the loot table, representing the average payout per loot roll.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "values": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "default": [
    10,
    25,
    100
   ]
  },
  "probabilities": {
   "type": "array",
   "items": {
    "type": "number"
   },
   "default": [
    0.7,
    0.25,
    0.05
   ]
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/loot-expected-value-calculator-4217349a/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from market.datapackvibe.com](https://www.zero.xyz/host/market.datapackvibe.com/llms.txt)
