---
title: "Get price history for a SINGLE asset, optimized for AI analysis"
method: GET
path: "/agentFriendly/history/{slug}"
tags: ["AgentFriendly"]
---

# Get price history for a SINGLE asset, optimized for AI analysis

`GET /agentFriendly/history/{slug}`

Returns ~200 intelligently sampled price data points in CSV format for any custom time range. 'slug' must be a CoinCap asset slug — resolve it first with /agentFriendly/assets_search. CoinCap slugs differ from other providers: use 'xrp' (not 'ripple'), 'render' (not 'render-token'), 'fetch' (not 'fetch-ai'), 'avalanche' (not 'avalanche-2'). Unknown slugs return HTTP 404. For MULTIPLE assets in one call (comparisons, screening, movers) use /agentFriendly/full_assets_by_slug with slugs=a,b,c and includeHistory=true; for a single current snapshot use /assets/{slug}.

## Path parameters

- `slug` string, required

## Query parameters

- `start` integer
- `end` integer

## Response `200`

Historical price data with approximately 200 data points

- object
  - `timestamp` integer
  - `data` object
    - `slug` string
    - `startTime` integer
    - `endTime` integer
    - `intervalMinutes` integer
    - `dataPoints` integer
    - `history` string — CSV format data "timestamp,price" (one per line)

## Other responses

- `400` — Bad request - missing or invalid parameters
- `402` — Payment Required
- `404` — Asset not found or no history data available
- `500` — Internal server error

---

[API](https://skmtc.dev/coincap/apis/coincap-api.md) · [All operations](https://skmtc.dev/coincap/apis/coincap-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/coincap/coincap-api/revisions/e3d3739c2c03/schema)
