Use the Querying API to fetch multiple pages of search results sequentially. This REST API lets you to retrieve entities that match a specific criteria.
Use the Querying API to fetch multiple pages of search results sequentially. This REST API lets you to retrieve entities that match a specific criteria.
To use the Querying API, you need:
The number of items to take. If not specified, a default value is used.
To retrieve the next page of results using a set of sort values from the previous results. For example, if you make a request and receive 100 results, ending with entity_id_1, your subsequent query can include search_after=entity_id_1 to fetch the next page.
curl -i -X GET \
'https://your-server/api/entities/searchAfter?culture=en-us&members=Title%2CFilename&nestedRelations=string&order=desc&query=Definition.Name%20%3D%3D%20'\''M.Asset'\''&renditions=string&searchAfter=string&sort=created_on&sortCulture=en-us&take=25' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'
{ "last_hit_data": [ "string" ], "items": [ { … } ], "total_items": 0, "returned_items": 0, "offset": 0, "next": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "previous": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "identifier": "string", "self": { "href": "string", "filename_properties": [ … ], "title": "string", "templated": false }, "property1": null, "property2": null }