Skip to content
Maua.Culturewire

Audiobookshelf

Audiobooks, podcasts and listening progress of your Audiobookshelf

Media and entertainmentCatalog1 tool · 0 triggers

Managed auth

Authentication

Methods your end users can connect with. Credentials are stored encrypted, and secret values are never shown again or returned by the API.

  • API key

    Your users enter

    • Audiobookshelf URLRequiredHTTPS URL
    • API keySecretRequired

    Where to find them

    1. In Audiobookshelf, signed in as an administrator (only they can create API keys), click the gear icon (“Settings”) at the top right and open “API Keys” in the left menu.
    2. Click “Add API Key”, type a “Name” (e.g. Maua.Culturewire), leave “Expires in (seconds)” empty for a key that doesn't expire, pick in “Act on behalf of user” the user whose libraries and progress agents will use, and click “Submit”.
    3. Copy the key: it is shown only once.
    4. Paste it here, together with the address you open Audiobookshelf at. The key acts as that user: agents can read and change what the user can (for an administrator, also the users and libraries), and Audiobookshelf shows them the user's “Legacy API Token” too (in GET /me). The bin icon next to the key in “API Keys” revokes it (the pencil disables it). Before version 2.26 there are no API keys: use the token an administrator finds in “Settings” → “Users” → the user.

    Get credentials (opens in a new tab)

Tools (1)

  • Audiobookshelf API requestAUDIOBOOKSHELF_SEND_REQUEST

    Authenticated call to the Audiobookshelf API ({url}/api). Any endpoint of the API is allowed. Books and podcasts are the items of a library: start with GET /libraries. Without limit, GET /libraries/{id}/items returns every item: keep limit low and page with page (from 0). Examples: GET /me (your account, with your progress on every item), GET /libraries (their ids, and mediaType book or podcast), GET /libraries/{id}/items?limit=20&page=0 (the list is in “results”; add sort=addedAt&desc=1 for the newest or sort=media.metadata.title), GET /libraries/{id}/search?q=…&limit=10 (books or podcasts, authors, series, narrators and tags), GET /items/{id}?expanded=1 (a book with its chapters and files, or a podcast with its episodes; include=progress adds yours), GET /me/items-in-progress (what you are listening to), GET /me/progress/{itemId} (404 if not started; /me/progress/{itemId}/{episodeId} for a podcast episode), PATCH /me/progress/{itemId} {"isFinished":true} (or {"currentTime":…} in seconds; add /{episodeId} f…

    Required scopes

    No scopes required

    Input

    Audiobookshelf API request input
    NameTypeDescription
    methodstringHTTP methodOne of: GET, POST, PUT, PATCH, DELETEDefault: "GET"
    pathrequiredstringPath relative to the API base URL, or a full URL on the same API (e.g. a next-page link)
    queryobjectQuery string parameters
    bodyunknownJSON body
    formobjectBody as application/x-www-form-urlencoded instead of JSON
    body_base64stringBinary body, base64 (at most 960000 characters)
    content_typestringContent-Type of body_base64
    headersobjectExtra headers such as Accept. Authentication is added automatically.