# Bloxvalues — Wrapped API

> **You are on:** `https://api.paywithlocus.com/api` | [llms.txt](https://paywithlocus.com/llms.txt) | [docs](https://docs.paywithlocus.com)
>
> Locus runs on multiple environments -- make sure every URL you call matches your expected environment.
> | Environment | Landing | API | Docs |
> |---|---|---|---|
> | Production | paywithlocus.com | api.paywithlocus.com | docs.paywithlocus.com |
> | Beta | beta.paywithlocus.com | api.beta.paywithlocus.com | docs.paywithlocus.com |
> | Stage | stage.paywithlocus.com | api.stage.paywithlocus.com | docs.paywithlocus.com |
>
> If the API URL above doesn't match your expected environment, re-fetch this file from the correct domain.

> Check live dealer inventory and community-sourced trade values for Blox Fruits items, then instantly evaluate any trade to see if it's a win, fair deal, or loss. Get real-time pricing data and automatic trade assessments to make smarter in-game trading decisions.

**Category:** Entertainment | **Website:** [bloxvalues.net/blox-fruits-value-calculator/](https://bloxvalues.net/blox-fruits-value-calculator/) | **Docs:** [parse.bot/marketplace/83d24af3-2860-4f65-acbe-7cbc3cc00e58/bloxvalues-net-api](https://parse.bot/marketplace/83d24af3-2860-4f65-acbe-7cbc3cc00e58/bloxvalues-net-api)

Pay-per-use API proxy. Each call is automatically billed to your wallet in USDC.

## Access

**Base URL:** `https://api.paywithlocus.com/api/wrapped/parse-bloxvalues-net-api-83d24af3/`
**Auth:** `Authorization: Bearer <LOCUS_API_KEY>`

## Endpoints

### calculate_trade

Calculates Win/Fair/Lose for a proposed trade by comparing total trade values on each side. Fetches live values and returns a detailed breakdown with per-item values, demand, and trend. A >10% value difference results in Win or Lose; within 10% is Fair.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `their_items` | string | Yes | Comma-separated item names for the other side of the trade. Same format as your_items. |
| `value_type` | string | No | Which value to use for calculation. |
| `your_items` | string | Yes | Comma-separated item names for your side of the trade. Supports quantity via 'name:qty' format (e.g. 'Buddha:2,Dough'). |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bloxvalues-net-api-83d24af3/calculate_trade \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"their_items":"<string>","value_type":"<string>","your_items":"<string>"}'
```

### get_dealer_stock

Returns the current live Normal and Mirage dealer fruit inventories. Stock rotates periodically. Each item includes its beli price and Robux cost.

**Estimated cost:** Metered

_No parameters required._

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bloxvalues-net-api-83d24af3/get_dealer_stock \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{}'
```

### get_trade_values

Returns all Blox Fruits items with their current community trade values (regular and permanent), rarity, demand rating, trend, and category. Optionally filtered by category.

**Estimated cost:** Metered

| Field | Type | Required | Description |
|-------|------|----------|-------------|
| `category` | string | No | Filter by item category. Omitting returns all items. |

```bash
curl -X POST https://api.paywithlocus.com/api/wrapped/parse-bloxvalues-net-api-83d24af3/get_trade_values \
  -H "Authorization: Bearer YOUR_LOCUS_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"category":"<string>"}'
```
