# Download as SQLite: `GET /v1/datasets/{name}/download`

Cost: 500 credits (500 (failed requests are free)). Docs: https://scrapercompany.com/docs/reference/datasets-download

A signed link (valid 15 minutes) to the gzipped SQLite file: tables
``items`` and ``observations``, view ``latest``. Open it with sqlite3,
DuckDB, pandas or Datasette.

Parameters:

- `name` (string; required)
- `day` (string (date) | null; optional): A past day's file, while kept: the newest 7 days and the first of each of the last 12 months. Omit for the latest, which holds the whole history.

Base URL: `https://api.scrapercompany.com`. Auth: send your key in the `x-api-key` header. A failed request (4xx or 5xx) or an empty result costs 0 credits.

- [Full API reference as one Markdown file](https://scrapercompany.com/llms-full.txt)
- [OpenAPI spec](https://scrapercompany.com/openapi.json)
