---
title: "Search Parties"
method: GET
path: "/search-parties"
tags: ["Parties", "Search"]
---

# Search Parties

`GET /search-parties`

Searches for parties.

- **q**: the query string
- **page_number**: page number of the results
- **page_size**:  results per page

This is a case-insensitive search that will match anywhere within the name of the party.

The results will have page and totalCount fields as well as a convenience link via the field nextPage.

## Query parameters

- `q` string, required
- `pageNumber` integer
- `pageSize` integer

## Response `200`

Success

- PartySearchResults
  - `totalCount` integer, required
  - `page` integer, required
  - `nextPage` string, nullable
  - `parties` PartyResult[], required
    - `name` string, required
    - `partyId` integer, required
    - `url` string, required

## Other responses

- `401` — Invalid or expired token
- `404` — Not found
- `422` — Error - 422

---

[API](https://skmtc.net/lexmachina/apis/lex-machina-api.md) · [All operations](https://skmtc.net/lexmachina/apis/lex-machina-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/lexmachina/lex-machina-api/revisions/5f519a7078fc/schema)
