pagehive

get_values

Get up to 100 values by key in one call, in the order asked, including read_access.

ValuesRead-onlyAll plans

What it does

Get up to 100 values by key in one call, in the order asked, including read_access. Like get_value, it returns a secret value's content. missing lists the keys that don't exist or that this key can't read. read_access: public = pages, page scripts (bp.value) and GET /data/_values can read it. private (default) = pages can print it ({{ values.key }}) when the site owns it or has a share, but scripts and the public JSON can't. secret = for tokens, API keys and passwords: stored encrypted, never on a page, in a script, in the public JSON or in a site template; a page that uses it is refused at save; only get_value returns the content, and list_values shows the key only.

Plans

Works on every plan: Free, Basic, Pro and Ultra.

Parameters

NameTypeAbout
keysrequiredarray of stringUp to 100 value keys. Keys that don't exist come back in missing.

Example

Call get_values with these arguments:

{
  "keys": [
    "opening_hours",
    "today_total"
  ]
}

Ids like 01a1… stand for your own. list_sites and list_tables give you the real ones.

Related guides

  • ValuesSingle facts, such as a total, a status or a token.