Last updated
Was this helpful?
Last updated
Was this helpful?
This section is broken down into Browse Content and Search. is a simple method of getting or reading the content of a database table. It can be optionally combined with paging.
is an advanced method of filtering, sorting, and paging database content. It is flexible and powerful and enables you to return content based on the parameters you define.
Please note that the Metadata APIs for browsing content do not react to API Access settings. All fields will be returned regardless of this setting.
Browse table content is a simple method of getting content (database records) in a database table. It requires a workspace ID and table ID, while paging is optional.
Example response body:
Search via the Metadata API is powerful and flexible to return the exact database content you are searching for.
In this example, we will search the Items table where ID = 10
Search can be done as a single object or array if there is only one search parameter. If there are multiple parameters then it must be an array.
You can pass just what you want in the request body. For example, if all we want to do is search then we just need to pass search to the body.
With paging, sort, and search as an array.
With paging, sort, and search as a single object.
With just search, as an array.
With just search, as a single object.
For this example, all of the above are acceptable for the request body.
Example response body:
In this example, we are searching for content where price is > 30 and price is < 70.
Example request body:
Example response body:
In this example, we will search for where the price is < 30 or the price is > 70
Example request body:
Notice how the or is formatted after the Price is > 70 expression.
Example response body:
The IN and NOT IN operators are great for working with lists and can also be thought of as another version of "or" operators. In the first example, we will search where the ID is IN [2,3,7].
Example request body:
Example response body:
In the second example, we will search where ID is NOT IN [1,2,3,4,6,7,8,9]
Example request body:
Example response body:
Sort is flexible, like search, in the sense that it accepts a single object or an array for a single sort parameter. It also supports multiple sorts, which require an array format.
In this example, we will sort the category table by the name in ascending order.
Example request body:
Also acceptable:
Example response body:
In this example, we will first sort the content by rating in descending order, then the name in ascending order.
Example request body:
Example response body: