## Reference: Tape

Prints + daily bars

**Availability: live** on `https://api.cardog.app`.

### GET /v2/tape/live

The live tape: freshest prints, seconds old *Since 2026-07-30.*

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `limit` | integer | no | Print cap |

**Response 200** `TapeLive`: Prints + throughput counters

- `prints` (object[]): Recent price observations (one per listing), newest first. Capped by `limit`.
  - `prints[].ref` (string): Ref of the instrument (the thing being priced: a model year or a squish) this observation belongs to, e.g. "model-year:toyota/rav4/2021"
  - `prints[].label`? (string): Display label from the entity registry, e.g. "Toyota RAV4 2021"
  - `prints[].price` (number)
  - `prints[].domain` (string): Seller website domain the price was observed on
  - `prints[].at` (string): Observation timestamp (ISO 8601)
  - `prints[].vinTail` (string): Last 6 characters of the VIN, enough to deduplicate. The full VIN is never returned.
- `perMinute` (integer): Price observations per minute, averaged over the trailing 5 minutes
- `today` (integer): Price observations since midnight
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 401, 402, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/tape/live" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const tapeLive = await client.v2.tape.live();
console.log(tapeLive.prints);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

tape_live = client.v2.tape.live()
print(tape_live.prints)
```

### GET /v2/tape/history/{ref}

Daily bars for one instrument over a window *Since 2026-07-30.*

**Path parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `ref` | string | yes | An instrument ref. Slashes in refs must be URL-encoded (%2F). |

**Query parameters**

| Name | Type | Required | Description |
| --- | --- | --- | --- |
| `window` | "1w" \| "1m" \| "3m" \| "6m" \| "ytd" \| "1y" \| "3y" \| "5y" \| "10y" \| "all" | no | History window |

**Response 200** `TapeHistory`: Ascending daily bars from daily snapshots and observed prints

- `ref` (string)
- `grain` ("mmy" | "mmy.drive" | "mmy.fuel" | "mmy.body" | "squish"): Level of detail the instrument is priced at: "mmy" (model year), "mmy.drive", "mmy.fuel" or "mmy.body" (model year split by drive type, fuel type, or body style), or "squish" (exact configuration: WMI + VDS + model year, plant-agnostic)
- `window` ("1w" | "1m" | "3m" | "6m" | "ytd" | "1y" | "3y" | "5y" | "10y" | "all")
- `bars` (object[]): One bar (one day's aggregate of prices) per day, oldest first
  - `bars[].day` (string): The day this bar covers (ISO date, YYYY-MM-DD)
  - `bars[].median` (number | null): Median asking price that day
  - `bars[].p25` (number | null): 25th percentile of asking prices that day
  - `bars[].p75` (number | null): 75th percentile of asking prices that day
  - `bars[].best` (number | null): Lowest asking price that day
  - `bars[].count` (integer | null): Number of live listings that day. Set on bars with source "fold".
  - `bars[].prints` (integer | null): Number of price observations aggregated into the bar. Set on bars with source "prints".
  - `bars[].source` (string): How the bar was built: "fold" (a once-daily snapshot of live listings) or "prints" (built from individual price observations). Other values may be added.
- `links`? (object): Related resources, keyed by relation name, each a server-relative path. Example: {"recalls": "/v2/recalls/entity/model-year:toyota/rav4/2021"}

**Errors** (all use the ErrorEnvelope): 400, 401, 402, 404, 429, 500

**Example: cURL**

```bash
curl "https://api.cardog.app/v2/tape/history/model-year:honda%2Fcr-v%2F2026?window=1y" \
  -H "x-api-key: $CARDOG_API_KEY" \
  -H "Cardog-Version: 2026-10-26"
```

**Example: TypeScript** (`npm install @cardog/api`)

```typescript
import { CardogClient } from "@cardog/api";

const client = new CardogClient({ apiKey: process.env.CARDOG_API_KEY });

const tapeHistory = await client.v2.tape.history("model-year:honda/cr-v/2026", { window: "1y" });
console.log(tapeHistory.ref);
```

**Example: Python** (`pip install cardog`)

```python
import os

from cardog import Cardog

client = Cardog(api_key=os.environ["CARDOG_API_KEY"])

tape_history = client.v2.tape.history("model-year:honda/cr-v/2026", window="1y")
print(tape_history.ref)
```

---

Previous: [Quotes](https://cardog.app/docs/reference/quotes.md) (API reference)
Next: [Recalls](https://cardog.app/docs/reference/recalls.md) (API reference)
