---
title: "Search contracts"
method: GET
path: "/search/contracts"
tags: ["Search", "Contracts"]
---

# Search contracts

`GET /search/contracts`

Searches for artifacts that have contract metadata labels. Filters by status, owner team, and compatibility group.

## Query parameters

- `status` string
- `ownerTeam` string
- `compatibilityGroup` string
- `offset` integer
- `limit` integer
- `order` 'asc' | 'desc'
- `orderby` 'name' | 'createdOn' | 'modifiedOn'

## Response `200`

A paginated list of artifacts that have contract metadata.

- 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

- `500` — Common response for all operations that can fail with an unexpected server error.

---

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