
Knowledge Base
Articles In This Section
API EditRecord | ADVANCEDHow to Use API_CopyMasterDetail in Quickbase to Copy Parent and Child RecordsHow to use API ImportFromCSV in QuickbaseHow to Use API_PurgeRecords in QuickbaseHow to Utilize API AddRecord in Quickbase (Guide)Sections
API_DoQuery is a Quickbase API function used to retrieve specific records from a table—similar to performing a filtered search or running a report within Quickbase.
At its core, API_DoQuery allows you to request a subset of table data by sending either:
The API then returns only the records that match your criteria.
API_DoQuery functions much like a Quickbase report. You can control:
This makes it a flexible tool for extracting structured data programmatically.
Use API_DoQuery when you need to:
When working in Quickbase, you can retrieve data using either standard reports or the API_DoQuery endpoint. While reports are useful for everyday users, API_DoQuery provides significantly more flexibility, scalability, and control—especially for integrations and automation.

API_DoQuery is designed for developers and technical teams who need to connect Quickbase with other systems like CRMs, ERPs, or data warehouses. Use it when:
Unlike standard reports, API_DoQuery allows you to control how much data is returned and process it in batches
Benefits:
With API_DoQuery, you can fine-tune how data is returned using parameters like:
This level of control is not available in standard Quickbase reports.
API_DoQuery allows you to retrieve live data on demand, making it ideal for:
If you're building a custom front end, analytics layer, or middleware, API_DoQuery gives you the flexibility to shape the data exactly how you need it.
Standard Quickbase reports are still useful and are faster to set up (and require no code), use a Quickbase Standard Report when
They are faster to set up and require no coding.
For organizations across the U.S. and globally using Quickbase for operations, API_DoQuery is essential for:
Teams in industries like construction, healthcare, financial services, and SaaS often rely on API-based querying to manage high-volume, real-time data workflows.
API_DoQuery in Quickbase allows you to retrieve filtered records from a table using either a saved report (QID) or a custom query string. Both methods return the same data but differ in flexibility and maintenance.
The simplest way to use API_DoQuery is by referencing a Query ID (qid) from an existing Quickbase report.
Example: If you have a report showing records created today (e.g., qid=18), your API call would look like (see image below):

This request returns the exact same records you would see if you ran report qid 18 directly inside Quickbase.
Using saved reports is recommended because:
Instead of using a saved report, you can define your own filters using the query parameter.
query= in your API requestExample Use Case: To return records created today, you would construct a query string that filters by the Date Created field.
Both QID-based queries and custom queries return the same results when configured identically.
Use QIDs when possible.
They are easier to maintain and reduce development overhead.
Use custom queries when needed for flexibility or dynamic filtering.
Once you define what records to return, you can further optimize your response using additional parameters.
The clist parameter defines which fields (columns) are returned.
Example: See image below

This returns:
Key Notes
Sorts by:
Key Notes
Quickbase option features are advanced parameters used in API calls like API_DoQuery to control how data is returned.
They allow you to:
Option features are essential for:
The options parameter combines multiple instructions using a period (.) separator.
Example Structure

Returns a maximum number of records.
Best for:
Skips a number of records before returning results.
Best for:
Returns recently added or modified records only.
Best for:
Sorts results in ascending order.
Sorts results in descending order.
You can combine multiple features in a single request:

This allows you to:
To use Quickbase API_DoQuery and option features, your request must be authenticated.
Without authentication, the API request will fail.
API_DoQuery is a Quickbase API call used to retrieve filtered records from a table using either a saved report (QID) or a custom query string. It functions similarly to running a report but allows programmatic access to data.
A QID (Query ID) is the unique identifier of a saved Quickbase report. When used in API_DoQuery, it returns the same records and filters defined in that report.
Both return the same data if configured identically.
Use a QID when:
Use custom queries for dynamic or programmatic filtering.
The clist parameter defines which fields (columns) are returned in the API response using field ID numbers. If omitted, Quickbase returns default table fields.
The slist parameter controls the sort order of returned records based on field IDs. If not included, the default table sort is applied.
Use the options parameter with num-n, such as:
options=num-100
This limits the response to 100 records.
Use:
num-n to limit resultsskp-n to skip recordsExample:
options=num-100.skp-100
This returns the second page of results.
Option features are parameters in API_DoQuery that control how data is returned, including limiting, skipping, sorting, and filtering records.
Use the onlynew option in your API call:
options=onlynew
This returns recently added or modified records.
Use:
slist for field-based sortingoptions=sort-A (ascending) or sort-D (descending)You must authenticate using:
Without authentication, the request will fail.
Common causes include:
Yes. API_DoQuery replicates Quickbase reports, including filters, fields, and sorting, but allows access via API for integrations and automation.
To improve performance:
Resources


© 2026 Quandary Consulting Group. All Rights Reserved.
Privacy Policy