# santyvv-data Historical Token Price by Contract

> santyvv-data Historical Token Price by Contract is a paid API for AI agents from santyvv-x402.santyvv1993.workers.dev, paid per call via x402, $0.01/call, status unknown (last checked 2026-10-03).

Returns the historical price of an ERC-20 token at a specific Unix timestamp, identified by its contract address

## Facts

- Endpoint: GET https://santyvv-x402.santyvv1993.workers.dev/api/crypto/token-price-historical?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/santyvv-data-historical-token-price-by-contract-ec66c39e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_UYGLyBouRHuveeAUyabub

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 santyvv-data-historical-token-price-by-contract-ec66c39e
```

Example prompt: What was the price of the WETH token (contract 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2) on Ethereum at Unix timestamp 1700000000?

## When to prefer this

Use this endpoint when you need the price of a specific ERC-20 token at an exact past moment in time identified by Unix timestamp and contract address — ideal for transaction audits, historical portfolio valuations, P&L calculations, and tax reporting where point-in-time accuracy is critical. Prefer this over live-price endpoints when the moment of interest is in the past.

## Known failure modes

- Invalid or non-existent contract address returns an error or empty result
- Unix timestamp out of supported historical range returns no data
- Unsupported chain or network returns an error
- Token contract with no price feed history at that timestamp returns null or error
- Missing required query parameters returns a 400-level validation error

## How this service works

Historical token price by contract at a Unix timestamp

## Output

Returns the historical USD price (or equivalent denomination) of the specified ERC-20 token contract at the requested Unix timestamp, allowing point-in-time valuation of on-chain assets

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/santyvv-data-historical-token-price-by-contract-ec66c39e/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from santyvv-x402.santyvv1993.workers.dev](https://www.zero.xyz/host/santyvv-x402.santyvv1993.workers.dev/llms.txt)
