About this endpoint
What it does
Searches for artworks using the provided query filters and returns a paginated list of matching artworks. The response includes the requested number, offset, a collection of artworks, and the total available count.
Query Parameter(s)
| Attribute | Type | Description |
|---|---|---|
| type | String | Artwork type filter. Pattern: any string, max length 1000. |
| query | String | Search text. Pattern: any string, max length 300. |
| number | Integer | Number of results to return. Minimum 1, maximum 10. |
| offset | Integer | Pagination offset. Minimum 0, maximum 1000. |
| origin | String | Origin filter. Pattern: any string, max length 100. |
| material | String | Material filter. Pattern: any string, max length 1000. |
| max-ratio | Number | Maximum ratio filter. Minimum 0, maximum 10. |
| min-ratio | Number | Minimum ratio filter. Minimum 0, maximum 10. |
| technique | String | Technique filter. Pattern: any string, max length 13. |
| latest-end-date | Integer | Latest end date filter. |
| earliest-end-date | Integer | Earliest end date filter. |
| latest-start-date | Integer | Latest start date filter. |
| earliest-start-date | Integer | Earliest start date filter. |
Response
Returns a JSON object with number and offset integers, an artworks array of objects, and an available integer. Each artwork item contains an id integer, plus nullable image and title string fields.
| Parameter | Type | Description |
|---|---|---|
| number | Integer | Number value echoed in the response. |
| offset | Integer | Offset value echoed in the response. |
| artworks | Object Array | List of matching artworks. Each item contains id, image, and title. |
| artworks[].id | Integer | Artwork identifier. |
| artworks[].image | String | Artwork image URL or value; nullable. |
| artworks[].title | String | Artwork title; nullable. |
| available | Integer | Total number of artworks available for the given search criteria. |



