Audiobookshelf
v0.4.0Browse your Audiobookshelf libraries and keep listening progress, bookmarks and playlists in sync
These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.
list_libraries List libraries
Lists the Audiobookshelf libraries the API key’s user can access, with their id, name and media type (book or podcast). Start here — every other library tool needs a library id.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
get_library Get library
Fetches a single library including its folders and scanner settings.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
get_library_stats Get library stats
Statistics for one library: number of items, authors and genres, total duration and size, longest and largest items.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
get_library_filter_data Get library filter data
Returns the values that can be filtered on in this library: authors, genres, tags, series, narrators, languages and publishers, each with the id or name to pass to list_library_items as filter_value.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
list_library_items List library items
Lists items (books or podcasts) of a library, paginated, sortable and filterable. Use get_library_filter_data first to learn the valid filter values. Filter groups — valued (need filter_value): genres, tags, series, authors, progress, narrators, publishers, publishedDecades, missing, languages, tracks, ebooks; standalone: issues, feed-open, share-open, recent.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
collapse_series | boolean | Collapse books of the same series into one entry |
descending | boolean | Reverse the sort order, default false |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
filter_group | string | Filter group. The server encodes group and value into the base64 form its API expects. |
filter_value | string | Value for filter_group: an id for authors/series, a name for genres/tags/narrators/languages/publishers, one of finished/in-progress/not-started/not-finished for progress. Must be omitted for the stan… |
limit | integer | Number of entries to return, default 25, max 100 |
page | integer | 0-based page number, default 0 |
sort | string | Sort key in dot notation. Common values: media.metadata.title, media.metadata.authorName, media.metadata.publishedYear, media.duration, birthtimeMs, addedAt, size, progress, random. |
search_library Search a library
Full-text search within one library. Matches books, podcasts, series, authors, narrators and tags. Use this for "do I own X?" questions; use list_library_items with a filter for "show me all X" questions.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
q * | string | Search query |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
limit | integer | Number of entries to return, default 12, max 100 |
get_personalized_shelves Get personalized shelves
The shelves of the Audiobookshelf home screen for this user: Continue Listening, Continue Series, Recently Added, Newest Episodes, Listen Again and so on. The fastest answer to "what am I listening to right now?".
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
limit | integer | Number of entries to return, default 10, max 100 |
list_series List series
Lists the series of a book library with their number of books and total duration. To list the books of one series, call list_library_items with filter_group="series" and filter_value=<series id>.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
descending | boolean | Reverse the sort order |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
limit | integer | Number of entries to return, default 25, max 100 |
page | integer | 0-based page number, default 0 |
sort | string | Sort key, e.g. name, numBooks, addedAt, totalDuration |
get_series Get series
Fetches a single series by id, including its books. To list the books with paging and sorting, use list_library_items with filter_group="series" instead.
| Parameter | Type | Description |
|---|---|---|
series_id * | string | Series id |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
list_authors List authors
Lists all authors of a book library with their number of books. To list the books of one author, call list_library_items with filter_group="authors" and filter_value=<author id>.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library id, as returned by list_libraries |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
get_author Get author
Fetches a single author, optionally with the library items attributed to them.
| Parameter | Type | Description |
|---|---|---|
author_id * | string | Author id |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
include_items | boolean | Also return the author’s library items, default false |
library_id | string | Restrict the returned items to this library |
list_tags List tags
Lists all tags used on the server, across libraries. Tags are the user-defined labels on library items.
list_genres List genres
Lists all genres used on the server, across libraries. Genres come from the media metadata, not from the user.
get_server_status Get server status
Version and initialization state of the Audiobookshelf server. Useful to check connectivity and whether the server is new enough for API keys (2.26.0 or later).
get_library_item Get library item
Fetches one book or podcast including its metadata, tags and the listening progress of the API key’s user. Chapters, audio files and tracks are not part of the compact projection — use get_item_chapters for chapters, or detail="full" for everything.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
get_item_chapters Get item chapters
Returns the chapter list of a book with start and end times in seconds. Separate from get_library_item because long audiobooks can have hundreds of chapters.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
get_podcast_episode Get podcast episode
Fetches one podcast episode with its publication date, duration and description.
| Parameter | Type | Description |
|---|---|---|
episode_id * | string | Podcast episode id |
library_item_id * | string | Library item id of the podcast the episode belongs to |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
list_recent_episodes List recent podcast episodes
Lists the most recently published episodes across a podcast library — the "Newest Episodes" view. Only works on libraries with mediaType "podcast".
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Id of a podcast library |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
limit | integer | Number of entries to return, default 25, max 100 |
page | integer | 0-based page number, default 0 |
get_me Get the current user
Returns the Audiobookshelf user the API key acts on behalf of, with their permissions and accessible libraries. The compact projection reports media progress and bookmarks as counts — the full user object embeds every single one of them. Credential fields are removed from both projections.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
list_items_in_progress List items in progress
The items the user has started but not finished, newest first — the "Continue Listening" list across all libraries. The entries carry progressLastUpdate but not the position itself; use get_media_progress for that. For podcasts, recentEpisode names the episode in progress.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
limit | integer | Number of entries to return, default 25, max 100 |
get_media_progress Get media progress
The listening progress of the current user for one book or podcast episode: position, percentage and whether it is finished. Returns a 404 error when the item has never been started.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
episode_id | string | Podcast episode id — required for podcast episodes, omitted for books |
get_listening_stats Get listening stats
Aggregated listening statistics of the current user: total time, time per weekday, the last 30 days, the ten most listened items and the ten most recent sessions. detail="full" returns the complete per-day history and the full metadata of every item ever listened to, which is the largest response this API produces.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
get_year_stats Get stats for a year
The "year in review" statistics of the current user for one calendar year: books finished, time listened, top authors and genres.
| Parameter | Type | Description |
|---|---|---|
year * | integer | Calendar year, e.g. 2026 |
list_listening_sessions List listening sessions
The playback sessions of the current user, newest first — each entry is one listening stretch with device, position and time listened.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
limit | integer | Number of entries to return, default 10, max 100 |
page | integer | 0-based page number, default 0 |
list_bookmarks List bookmarks
The bookmarks of the current user — either all of them, or those of one library item. A bookmark is a named position in seconds. Audiobookshelf has no bookmarks endpoint: they are a field on the account, so this reads /api/me and filters here. That is why there is no pagination — you get all of them.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
library_item_id | string | Restrict the result to the bookmarks of this library item |
list_collections List collections
Lists collections — the curated, ordered groups of books. Without library_id it returns the collections of every accessible library. Collections are shared server-wide; playlists are private per user.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
library_id | string | Restrict the result to this library |
get_collection Get collection
Fetches one collection with the books it contains, in order.
| Parameter | Type | Description |
|---|---|---|
collection_id * | string | Collection id, as returned by list_collections |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
list_playlists List playlists
Lists the playlists of the API key’s user. Without library_id it returns the playlists of every accessible library. Playlists are private per user and can hold books or podcast episodes; collections are shared server-wide and hold books only.
| Parameter | Type | Description |
|---|---|---|
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
library_id | string | Restrict the result to this library |
get_playlist Get playlist
Fetches one playlist with its entries, in order.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | Playlist id, as returned by list_playlists |
detail | string | "compact" (default) returns a projection with the fields that matter for browsing; "full" returns the raw Audiobookshelf object including audio files, tracks and chapters, which is very large. |
set_media_progress Set media progress
Creates or updates the listening progress of the API key’s user for one book or podcast episode. Set is_finished=true to mark it as finished, is_finished=false to reopen it (which resets the position to 0), or current_time to jump to a position in seconds. Audiobookshelf also marks an item finished on its own once less than ten seconds remain.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
current_time | number | New playback position in seconds |
episode_id | string | Podcast episode id — required to address a podcast episode, omitted for books |
hide_from_continue_listening | boolean | Hide the item from the "Continue Listening" shelf without changing its position |
is_finished | boolean | Mark the item as finished (true) or unfinished (false) |
progress | number | Progress as a fraction between 0 and 1. Only used when is_finished is not given. |
delete_media_progress Delete media progress
Deletes a progress record of the API key’s user, which removes the listening history for that item — position, finished state and dates. Takes the media progress id (field "id" of get_media_progress), not the library item id. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
media_progress_id * | string | Media progress id, from the "id" field of get_media_progress |
confirm_token | string | Token from the first call of this tool |
create_bookmark Create bookmark
Creates a bookmark at a position of a book for the API key’s user. The position in seconds is the bookmark’s identity — a second bookmark at the same second is rejected.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
time * | number | Position in seconds where the bookmark is placed |
title * | string | Bookmark title |
update_bookmark Update bookmark
Renames the bookmark at a given position. The position itself cannot be changed — delete the bookmark and create a new one for that.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
time * | number | Position in seconds identifying the bookmark |
title * | string | New bookmark title |
delete_bookmark Delete bookmark
Deletes the bookmark at a given position. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
library_item_id * | string | Library item id, as returned by list_library_items or search_library |
time * | number | Position in seconds identifying the bookmark |
confirm_token | string | Token from the first call of this tool |
create_collection Create collection
Creates a collection of books. Audiobookshelf rejects empty collections, so at least one library item id is required, and every item must be a book from the given library.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library the collection belongs to |
library_item_ids * | array | Library item ids of books |
name * | string | Collection name |
description | string | Optional description |
update_collection Update collection
Renames a collection, changes its description or reorders its books. library_item_ids ONLY REORDERS. It cannot add or remove anything: Audiobookshelf sorts the books the collection already has by their position in this list, so an id that is not currently in the collection is ignored, and a book you leave out is not removed — it moves to the FRONT. Pass every current book, in the order you want. Use add_books_to_collection and remove_books_from_collection to change membership. Reordering asks a person first, because the order somebody arranged cannot be reconstructed afterwards; renaming a…
| Parameter | Type | Description |
|---|---|---|
collection_id * | string | Collection id, as returned by list_collections |
confirm_token | string | Token from the first call of this tool |
description | string | New description |
library_item_ids | array | The books the collection already has, in the order you want them. Reorders only — it adds nothing and removes nothing. |
name | string | New name |
add_books_to_collection Add books to collection
Adds one or more books to an existing collection. Books already in the collection are ignored; books from a different library are rejected.
| Parameter | Type | Description |
|---|---|---|
collection_id * | string | Collection id, as returned by list_collections |
library_item_ids * | array | Library item ids of books |
remove_books_from_collection Remove books from collection
Removes books from a collection. The books themselves are untouched — only their membership in the collection ends, and it can be restored with add_books_to_collection. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
collection_id * | string | Collection id, as returned by list_collections |
library_item_ids * | array | Library item ids of books |
confirm_token | string | Token from the first call of this tool |
delete_collection Delete collection
Deletes a collection. The books stay in the library, but the curated list and its order are gone. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it. Requires an Audiobookshelf account with delete permission.
| Parameter | Type | Description |
|---|---|---|
collection_id * | string | Collection id, as returned by list_collections |
confirm_token | string | Token from the first call of this tool |
create_playlist Create playlist
Creates a playlist for the API key’s user. Unlike a collection it may start out empty and it may hold podcast episodes.
| Parameter | Type | Description |
|---|---|---|
library_id * | string | Library the playlist belongs to |
name * | string | Playlist name |
description | string | Optional description |
items | array | Initial entries, optional |
update_playlist Update playlist
Renames a playlist, changes its description or reorders its entries. items ONLY REORDERS. It cannot add or remove anything, and it must contain EXACTLY the entries the playlist already has: Audiobookshelf refuses a list of a different length with HTTP 400 "Invalid playlist items. Length mismatch". Read the current entries with get_playlist first, then send them in the order you want. Use add_items_to_playlist and remove_items_from_playlist to change membership. The library of a playlist cannot be changed. Reordering asks a person first, because the order somebody arranged cannot be reconstru…
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | Playlist id, as returned by list_playlists |
confirm_token | string | Token from the first call of this tool |
description | string | New description |
items | array | Exactly the entries the playlist already has, in the order you want them. Reorders only; a list of a different length is refused with HTTP 400. |
name | string | New name |
add_items_to_playlist Add items to playlist
Appends books or podcast episodes to a playlist. All entries must come from the playlist’s library and match its kind — a podcast playlist needs an episode_id on every entry, a book playlist on none.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
playlist_id * | string | Playlist id, as returned by list_playlists |
remove_items_from_playlist Remove items from playlist
Removes entries from a playlist. The media itself is untouched and the entries can be added back with add_items_to_playlist. Note that Audiobookshelf deletes a playlist automatically once its last entry is removed. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
items * | array | |
playlist_id * | string | Playlist id, as returned by list_playlists |
confirm_token | string | Token from the first call of this tool |
delete_playlist Delete playlist
Deletes a playlist. The media stays in the library. Asks a person first; where the client cannot show a dialog, call once to receive a token and again with it.
| Parameter | Type | Description |
|---|---|---|
playlist_id * | string | Playlist id, as returned by list_playlists |
confirm_token | string | Token from the first call of this tool |