pagehive

query_tables

Run up to 10 query_table queries in one call, on the same or different tables.

TablesRead-onlyAll plansUpdated

What it does

Run up to 10 query_table queries in one call, on the same or different tables. Each item takes what query_table takes. results holds one answer per query in order, with its index: the query_table answer, or { table, error } for a query that failed, while the others still run.

Plans

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

Parameters

NameTypeAbout
queriesrequiredarray of objectsThe queries, each with table and the other query_table options.

Example

Call query_tables with these arguments:

{
  "queries": [
    {
      "table": "rules",
      "where": {
        "core": true
      },
      "fields": [
        "summary"
      ]
    },
    {
      "table": "skills",
      "search": "deploy",
      "fields": [
        "slug",
        "title"
      ],
      "limit": 5
    }
  ]
}

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

Related guides