# NFT Collection Trait Distribution

> NFT Collection Trait Distribution is a paid API for AI agents from x402.professorsausages.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns a cached trait distribution table (type → value → count) for an NFT collection on a given chain

## Facts

- Endpoint: GET https://x402.professorsausages.com/nft/:chain/collection/:address/traits
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/nft-collection-trait-distribution-d1b5307c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_CxDpCdlpU0JE0Dg-gS0jb

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 nft-collection-trait-distribution-d1b5307c
```

Example prompt: Can you pull the trait distribution table for the NFT collection at address 0xBC4CA0EdA7647A8aB7C2061c2E118A18a936f13D on Ethereum — I want to see how many tokens have each trait type and value.

## When to prefer this

Use this endpoint when you need a fast, low-cost snapshot of trait distribution for an NFT collection to assess rarity, perform trait analysis, or build rarity scores. Prefer this over scraping marketplaces when you need raw counts by trait type/value. The 24-hour cache makes it ideal for analytics dashboards but not for real-time rarity recalculations on actively minting collections.

## Known failure modes

- Invalid or unsupported chain identifier returns an error
- Contract address not found or not an NFT collection returns empty or error
- Collection has no on-chain trait metadata returns empty distribution
- Cache miss on a new or rarely-queried collection may cause slight latency
- Malformed contract address format returns validation error

## How this service works

Collection trait distribution table (type → value → count) — cached ≤24h

## Output

A structured table mapping each trait type (e.g. 'Background', 'Eyes') to its possible values and the count of NFTs in the collection that hold each value. Data is cached and refreshed at most every 24 hours.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/nft-collection-trait-distribution-d1b5307c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.professorsausages.com](https://www.zero.xyz/host/x402.professorsausages.com/llms.txt)
