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

# Search for artifacts by content

`POST /search/artifacts`

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

## Query parameters

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

## 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.
    - `id` string, required — The ID of a single artifact.
    - `name` string
    - `description` string
    - `createdOn` string, date-time, required
    - `createdBy` string, required
    - `type` string, required
    - `labels` string[]
    - `state` 'ENABLED' | 'DISABLED' | 'DEPRECATED', required — Describes the state of an artifact or artifact version. The following states are possible: * ENABLED * DISABLED * DEPRECATED
    - `modifiedOn` string, date-time
    - `modifiedBy` string
    - `groupId` string — An ID of a single artifact group.
  - `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

- `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.

---

[API](https://skmtc.net/apicurio/apis/apicurio-registry-api-v2.md) · [All operations](https://skmtc.net/apicurio/apis/apicurio-registry-api-v2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apicurio/apicurio-registry-api-v2/revisions/f177177d6a5a/schema)
