Skip to main content

Dataset metadata

Use liberator.metadata() to fetch concordance-backed metrics for one or more datasets — row counts, symbol counts, and start/end timestamps — without downloading source rows. This is a Liberator 2.3+ API. It calls POST /liberator/metadata and is separate from liberator.query() / liberator.get_dataframe(). Do not pass summary or symbol to query; those parameters belong only on metadata.
The Python SDK helper ships with Liberator 2.3 client packages. Download the latest liberator.py from your Liberator Profile page if your client does not yet expose liberator.metadata.

Parameters

Grain matrix (summary × symbol)

Basic example

Whole-dataset summary

Per-symbol metrics

Multiple datasets

Windowed metadata

Return shape

liberator.metadata() returns a list of metric dictionaries (the metrics array from the streamed response). Typical fields include: The HTTP response is streamed NDJSON (heartbeat frames, then a final {"metrics": [...]} object). The Python helper consumes heartbeats and returns only the metrics list.