# Cannastack Cannabis Price History

> Cannastack Cannabis Price History is a paid API for AI agents from cannastack.0x402.sh, paid per call via x402, $0.02/call, status down (last checked 2026-09-15).

Returns historical price data and trend analysis for a specific cannabis strain over a configurable time window across US dispensaries

## Facts

- Endpoint: POST https://cannastack.0x402.sh/api/price-history
- Price: $0.02/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/cannastack-cannabis-price-history-3036e45c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_SCBA1UAJyNg5-cO5zkc1i

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 cannastack-cannabis-price-history-3036e45c -d '<json body>'
```

Example prompt: Can you pull up the price history for Gelato 42 over the last 30 days and tell me if prices are trending up or down at US dispensaries?

## When to prefer this

Use this endpoint when you need time-series price data and trend analysis for a specific cannabis strain, rather than just a current snapshot price. Prefer it over a menu or availability endpoint when the user's goal is understanding price movement, market trends, or deciding when to buy based on historical pricing patterns. Best suited for single-strain, date-window queries.

## Known failure modes

- Unknown or misspelled strain name returns empty history array with zero data points
- Days parameter too large may return sparse data if strain lacks historical coverage
- Rate limiting or payment failure returns an error if the x402 payment is not properly attached
- Strain available only in certain states may return limited geographic coverage
- Very recently listed strains may have insufficient history for meaningful trend analysis

## How this service works

Agent-native cannabis data. Dispensary menus, prices, deals, and strain availability across the US, priced like an API call via x402.

## Output

A JSON response containing: a stats object with trend direction (up/down/flat), oldest recorded price, current price, percent change, and data point count; a history array of individual price records with dispensary name, strain name, recorded timestamp, and eighth price; and a human-readable summary string. Response typically arrives in under 100ms.

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "ok": true,
  "query": {
   "days": 30,
   "strain": "Gelato 42"
  },
  "stats": {
   "trend": "down",
   "oldest": 32,
   "current": 28,
   "change_pct": -12.5,
   "data_points": 14
  },
  "history": [
   {
    "item_name": "Gelato 42",
    "recorded_at": "2026-05-10T14:22:00Z",
    "price_eighth": 28,
    "dispensary_name": "Native Roots"
   }
  ],
  "summary": "14 price changes in the last 30 days. Current: $28. Trend: down (-12.5%).",
  "response_ms": 81
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/cannastack-cannabis-price-history-3036e45c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from cannastack.0x402.sh](https://www.zero.xyz/host/cannastack.0x402.sh/llms.txt)
