---
title: "Return faceted search results with pagination"
method: POST
path: "/faceted-search/{resultClass}/paginated"
---

# Return faceted search results with pagination

`POST /faceted-search/{resultClass}/paginated`

## Path parameters

- `resultClass` string, required

## Request body

- object
  - `page` integer
  - `pagesize` integer
  - `sortBy` string, nullable
  - `sortDirection` string, nullable
  - `constraints` object[], nullable
  - `langTag` string

## Response `200`

Paginated search results

- object
  - `data` object[] — Results as an array of objects
  - `page` integer — The current page
  - `pagesize` integer — Items per page
  - `resultClass` string — The class of the results
  - `sparqlQuery` string — The SPARQL query that was used for the results

## Changes

> 21 revisions in range; 1 could not be searched.

- **2023-12-18** `a73542e9848a` — 1 info
  - added the new optional request property `langTag`
- **2020-04-30** `b907579d6a5c` — 1 warning
  - removed the request property `langTag`

[Change history](https://skmtc.dev/semanticcomputing/apis/sampo-ui-api/changes/faceted-search/:resultClass/paginated/post.md)

---

[API](https://skmtc.dev/semanticcomputing/apis/sampo-ui-api.md) · [All operations](https://skmtc.dev/semanticcomputing/apis/sampo-ui-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/semanticcomputing/sampo-ui-api/revisions/7fb94a21eac7/schema)
