Skip to content
GitHub

Data Access - Redivis

If you are not using R, you can read the tables directly from peekbank on Redivis, or browse and query them there in the browser.

Every Redivis version of the dataset holds one Peekbank release, named in its release_info table.

Which Redivis version holds which release
ReleaseRedivis version
2026.2v2.1
2026.1v1.4
2025.2v1.3
2025.1v1.2
2022.1v1.1
2021.1v1.0
2021.0v2.0

Reading a table with the Python client:

import redivis  # uv add redivis

table = (
    redivis.organization("datapages")
    .dataset("peekbank:a3v0", version="v2.1")
    .table("administrations")
)

df = table.to_pandas_dataframe()

Authentication uses a REDIVIS_API_TOKEN environment variable. For queries and the JavaScript client, see the Redivis client documentation.

Differences to peekbankr

peekbankr reshapes some of the Redivis tables before handing them out, creating minor differences to what you would get with direct access:

  • peekbankr fetches the aoi_timepoints table in the compressed run-length encoding. Accessing the raw table via the Redivis client is a larger transfer, so either run your queries on Redivis before fetching or pull aoi_timepoints_rle directly and expand the table yourself.
  • peekbankr adds a dataset_name column to administrations, subjects, trials, trial_types and stimuli.
  • trials.excluded and trial_types.vanilla_trial are 0/1 on Redivis, while peekbankr transforms them to TRUE/FALSE.