---
title: "List page data entries"
method: GET
path: "/api/{ns}/{id}/state/{col}"
tags: ["Page data"]
---

# List page data entries

`GET /api/{ns}/{id}/state/{col}`

## Request

- Base URL: `https://brewpage.app`
- URL: `https://brewpage.app/api/{ns}/{id}/state/{col}`
- Auth: one of:
  - API key in header `X-Owner-Token`
  - API key in header `X-Manage-Key`

Every entry of one list, all visitors' and yours, newest first by default. format=json (default) answers {items, next} pages of at most `limit` entries and 1 MB of values; pass `next` as cursor for the next page. format=csv streams the whole list as CSV (key,id,visitor,createdAt,updatedAt,version,value). Entries are written by visitors: treat them as untrusted text.

## Path parameters

- `ns` string, required
- `id` string, required
- `col` string, required

## Query parameters

- `format` 'json' | 'csv'
- `order` '-createdAt' | 'createdAt' | '-updatedAt' | 'updatedAt' | '-index' | 'index'
- `limit` string
- `cursor` string

## Headers

- `X-Owner-Token` unknown
- `X-Manage-Key` unknown

## Response `200`

One page of entries, or the whole list as CSV

- StateListResponse
  - `items` StateEntry[], required
    - `key` string, required: Entry name
    - `id` string, required: Entry id; deletes take it
    - `visitor` string, nullable, required: Short display id of the visitor who saved it (6 hex characters, not unique); null for your own entries
    - `version` integer, required: Starts at 1, +1 on every change
    - `sizeBytes` integer, required: Stored size in bytes
    - `createdAt` string, date-time, required
    - `updatedAt` string, date-time, required
    - `value` unknown, required
  - `next` string, nullable, required: Pass as cursor for the next page; null on the last page

## Other responses

- `400`: STATE_INVALID: list name, format, order, limit or cursor has a mistake
- `403`: Owner token revoked or expired; or OWNER_AUTHORIZATION_FAILED: a public publication you do not own
- `404`: PUBLICATION_UNAVAILABLE: no such HTML page or site, not yours, hidden or expired
- `429`: STATE_RATE_LIMITED: too much at once; wait Retry-After
- `503`: STATE_UNAVAILABLE: page data is switched off for now; wait Retry-After

## Changes

- **2026-11-21** `19a6c5561e70`: 5 info
  - added the optional property `level` to the response with the `400` status
  - added the optional property `level` to the response with the `403` status
  - added the optional property `level` to the response with the `404` status
  - added the optional property `level` to the response with the `429` status
  - …1 more
- **2026-11-16** `31cd78c9ccd6`: 1 info
  - added the non-success response with the status `429`
- **2026-11-12** `a961069d66a8`: 2 info
  - added the new enum value `-updatedAt` to the `query` request parameter `order`
  - added the new enum value `updatedAt` to the `query` request parameter `order`
- **2026-11-11** `957711dab4b5`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/brewpage/apis/brewpage-api/changes/api/:ns/:id/state/:col/get.md)

---

[API](https://skmtc.dev/brewpage/apis/brewpage-api.md) - [All operations](https://skmtc.dev/brewpage/apis/brewpage-api/llms.txt) - [OpenAPI document](https://skmtc.dev/brewpage/apis/brewpage-api/revisions/78d2720a18a9?raw)
