---
title: "获取匹配歌曲的 ID 列表"
method: GET
path: "/songs/ids"
tags: ["歌曲管理"]
---

# 获取匹配歌曲的 ID 列表

`GET /songs/ids`

与 /songs 共享过滤条件，仅返回 ID。用于「全选当前筛选范围」场景。

## Query parameters

- `type` string
- `keyword` string
- `path_prefix` string
- `genre` string
- `artist` string
- `album` string
- `language` string
- `style` string
- `year` integer
- `decade` integer
- `exclude_playlist_labels` string
- `sort` 'id' | 'title' | 'artist' | 'album' | 'duration' | 'added_at' | 'updated_at' | 'file_modified_at' | 'year' | 'genre'
- `order` 'asc' | 'desc'

## Response `200`

成功返回 ID 列表

- object

## Other responses

- `500` — 服务器错误

---

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