Input Arguments
The input arguments that can be used when querying the Search API are discussed in this section.
In order to perform these operations, ensure that you have the proper authentication (if necessary) and user permissions.
The after argument in the query is the cursor and is used when you want to paginate search results. The argument takes a string value, which is a base64-encoded version of the offset. In the following query, we’re getting the items after the second item by giving the after argument a value of "MQ==" (base64-encoded version of 1).
You can use the cursor field to get the cursor value for each item. To learn more about this argument as well as pagination, head to the pagination section.
This argument does the opposite of what the after argument does. It gets the values that are before the specified offset value provided to the argument. In the query below, we are getting all the items that exist before the third item by giving the argument a value of "Mg==" (base64-encoded version of 2).