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:
Request for executing queries with pagination.
Base query filter for entities.
Base query filter for entities.
Specifies the type of filter to be applied in a query node.
Defines how the results should be sorted.
The number of items to take. If not specified, the underlying implementation will use a default value.
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 items, ending with entity_id_1, your subsequent call can include search_after=entity_id_1 to fetch the next page.
Represents the configuration for loading an entity.
The renditions that will be loaded with the resulting entities.
curl -i -X POST \
https://your-server/api/entities/searchAfter \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"filter": {
"type": "Negating",
"relation": "string",
"id": 0
},
"take": 25,
"sorting": [
{
"field_type": "Property",
"field": "string",
"culture": "string",
"order": "Desc"
}
],
"search_after": [
"string"
],
"renditions": [
"string"
],
"nested_relations": [
"string"
],
"load_configuration": {
"culture_option": {
"load_option": "None",
"cultures": [
"string"
]
},
"property_option": {
"load_option": "None",
"properties": [
"string"
]
},
"relation_option": {
"load_option": "None",
"relations": [
{
"name": "string",
"role": "Parent"
}
],
"max_related_items": 0
}
}
}'
{ "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 }