Quickbase Tips

Your Quickbase API query isn't returning all the records. Handle pagination

API & integrationsDecember 1, 2026
Short answerThe RESTful API's run query and run report calls paginate automatically based on the size of the data, so one call can return only part of the result set. Read the metadata (totalRecords, numRecords, skip), keep requesting the next page with skip until you have everything, and sort by a stable key.

The problem

A report has 1,400 records, but your script, Make Request step or export only ever gets the first few hundred. No error, just missing data.

Why it happens

Quickbase’s RESTful API uses size-based pagination on run query (POST /v1/records/query) and run report (POST /v1/reports/{id}/run). It returns as many records as fit, based on the approximate size of each record. Wide tables with many fields return fewer records per page. Every response includes a metadata object:

"metadata": { "totalRecords": 1400, "numRecords": 312, "numFields": 18, "skip": 0, "top": 0 }

If numRecords is less than totalRecords, there’s more to fetch.

The fix: loop until you have everything

async function queryAll(tableId, select, where) {
  const all = [];
  let skip = 0;
  while (true) {
    const res = await qbFetch('https://api.quickbase.com/v1/records/query', {
      method: 'POST',
      headers, // QB-Realm-Hostname, Authorization, Content-Type
      body: JSON.stringify({
        from: tableId, select, where,
        sortBy: [{ fieldId: 3, order: 'ASC' }], // stable order: Record ID#
        options: { skip },
      }),
    });
    const { data, metadata } = await res.json();
    all.push(...data);
    skip += metadata.numRecords;
    if (metadata.numRecords === 0 || skip >= metadata.totalRecords) break;
  }
  return all;
}

For run report, skip and top go on the query string instead (/v1/reports/{id}/run?tableId=...&skip=...).

Gotchas

  • Sort by a stable key such as Record ID#. Without a fixed order, records can shift between pages and you’ll get duplicates or gaps.
  • Data can change mid-loop. For exports that must be exact, filter on Date Modified up to a fixed timestamp captured before the first page.
  • Select only the fields you need. Fewer fields per record means more records per page and fewer calls.
  • Pipelines Make Request steps that call the API get one page per call. Use the Quickbase channel’s search steps, or loop with skip, if you need the full set.
  • Respect rate limits while looping. Use backoff on 429s (see handling rate limits).

How to prevent it

Never assume one API call returns everything. Make every query helper paginate by default and log totalRecords vs. records received.

Seeing more than one of these problems? Find where your Quickbase is on the journey, and what usually fixes it.

Bigger than a quick fix?

Integrations

Connect Quickbase to QuickBooks, Microsoft 365, Google Workspace, payment processors and any system with an API.

Single integration package · From $4,950

Have a Quickbase problem that needs solving?

Tell us what is slowing you down. A 30-minute call is free, and you will leave with a clear next step whether or not we work together.

Book a free call

Loading available times…