---
title: "Search for songs, albums, and artists"
method: GET
path: "/api/search"
tags: ["search"]
---

# Search for songs, albums, and artists

`GET /api/search`

Search for songs, albums, and artists, with a maximum of {count} results each.

## Query parameters

- `q` string, required
- `count` integer

## Response `200`

OK

- object
  - `results` object, required
    - `songs` string[], required — An array of max 6 best-matching songs' IDs
    - `artists` integer[], required — An array of max 6 best-matching artists' IDs
    - `albums` number[], required — An array of max 6 best-matching albums' IDs

---

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