---
title: "Search for artifacts by content"
method: POST
path: "/search/artifacts"
tags: ["Search", "Artifacts"]
---

# Search for artifacts by content

`POST /search/artifacts`

## Request

- The document declares no server URL.
- Auth: none declared

Returns a paginated list of all artifacts with at least one version that matches the
posted content.

This operation can fail for the following reasons:

* Provided content (request body) was empty (HTTP error `400`)
* A server error occurred (HTTP error `500`)

## Query parameters

- `canonical` boolean
- `artifactType` string
- `groupId` string
- `offset` integer
- `limit` integer
- `order` 'asc' | 'desc'
- `orderby` 'groupId' | 'artifactId' | 'createdOn' | 'modifiedOn' | 'artifactType' | 'name'
- `skipCount` boolean

## Request body `*/*`

- string, binary

## Response `200`

On a successful response, returns a result set of artifacts - one for each artifact
in the registry that matches the criteria.

- ArtifactSearchResults: Describes the response received when searching for artifacts.
  - `artifacts` SearchedArtifact[], required: The artifacts returned in the result set.
    - `name` string
    - `description` string
    - `createdOn` string, date-time, required
    - `owner` string, required
    - `artifactType` string, required
    - `modifiedOn` string, date-time, required
    - `modifiedBy` string, required
    - `groupId` string, required: An ID of a single artifact group.
    - `artifactId` string, required: The ID of a single artifact.
    - `labels` Labels: User-defined name-value pairs. Name and value must be strings.
  - `count` integer, required: The total number of artifacts that matched the query that produced the result set (may be more than the number of artifacts in the result set).

## Other responses

- `400`: Common response for all operations that can return a `400` error.
- `401`: Common response for all operations that can return a `401` error indicating authentication is required.
- `403`: Common response for all operations that can return a `403` error indicating the user is authenticated but not authorized.
- `500`: Common response for all operations that can fail with an unexpected server error.

## Changes

- **2026-10-31** `ff9684af2aad`: 20 info
  - added the optional property `ruleViolation/causes/items/code` to the response with the `400` status
  - added the optional property `ruleViolation/causes/items/code` to the response with the `401` status
  - added the optional property `ruleViolation/causes/items/code` to the response with the `403` status
  - added the optional property `ruleViolation/causes/items/code` to the response with the `500` status
  - …16 more
- **2026-10-29** `f17f5df4e79c`: 4 info
  - added the optional property `ruleViolation` to the response with the `400` status
  - added the optional property `ruleViolation` to the response with the `401` status
  - added the optional property `ruleViolation` to the response with the `403` status
  - added the optional property `ruleViolation` to the response with the `500` status
- **2026-06-23** `649594fdc80a`: 1 info
  - added the new optional `query` request parameter `skipCount`
- **2025-12-16** `440db8997574`: 2 info
  - added the non-success response with the status `401`
  - added the non-success response with the status `403`
- **2024-10-23** `66022b1b6c9a`: 1 info
  - added the new enum value `groupId` to the `query` request parameter `orderby`

[Operation history](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3/changes/search/artifacts/post.md)

---

[API](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3.md) - [All operations](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3/llms.txt) - [OpenAPI document](https://skmtc.dev/apicurio/apis/apicurio-registry-api-v3/revisions/ff9684af2aad?raw)
