---
updatedAt: 2025-06-19T04:17:26.000Z
agentTools:
  projectIndex: https://spotscraper.readme.io/llms.txt
---

# Get audiobook chapters

Retrieves chapters from a specific audiobook with pagination support

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "SpotScraper API",
    "description": "API for retrieving Spotify data including albums, artists, playlists, tracks, podcasts, and users",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.spotscraper.com/v1",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "paths": {
    "/audiobooks/{id}/chapters": {
      "get": {
        "tags": [
          "Audiobooks"
        ],
        "summary": "Get audiobook chapters",
        "description": "Retrieves chapters from a specific audiobook with pagination support",
        "parameters": [
          {
            "in": "path",
            "name": "id",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Spotify Audiobook ID"
          },
          {
            "in": "query",
            "name": "offset",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 0,
              "minimum": 0
            },
            "description": "Number of chapters to skip from the beginning"
          },
          {
            "in": "query",
            "name": "limit",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 50,
              "minimum": 1,
              "maximum": 50
            },
            "description": "Maximum number of chapters to return"
          }
        ],
        "responses": {
          "200": {
            "description": "Chapters found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AudiobookChaptersResponse"
                }
              }
            }
          },
          "404": {
            "description": "Chapters not found",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "AudiobookChapter": {
        "type": "object",
        "properties": {
          "id": {
            "type": "string",
            "description": "Spotify Chapter ID"
          },
          "uri": {
            "type": "string",
            "description": "Spotify URI for the chapter"
          },
          "uid": {
            "type": "string",
            "description": "Unique identifier for the chapter"
          },
          "name": {
            "type": "string",
            "description": "Chapter name"
          },
          "description": {
            "type": "string",
            "description": "Plain text description of the chapter"
          },
          "htmlDescription": {
            "type": "string",
            "description": "HTML formatted description of the chapter"
          },
          "metadata": {
            "type": "object",
            "properties": {
              "duration": {
                "type": "integer",
                "description": "Duration in milliseconds"
              },
              "contentRating": {
                "type": "string",
                "nullable": true,
                "description": "Content rating label"
              },
              "mediaTypes": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "description": "Types of media available for the chapter"
              }
            }
          },
          "playability": {
            "type": "object",
            "properties": {
              "playable": {
                "type": "boolean"
              },
              "reason": {
                "type": "string"
              },
              "unplayabilityReasons": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          },
          "restrictions": {
            "type": "object",
            "properties": {
              "paywallContent": {
                "type": "boolean"
              }
            }
          },
          "images": {
            "type": "object",
            "properties": {
              "sources": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "url": {
                      "type": "string"
                    },
                    "width": {
                      "type": "integer"
                    },
                    "height": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          },
          "audio": {
            "type": "object",
            "properties": {
              "items": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "fileId": {
                      "type": "string"
                    },
                    "format": {
                      "type": "string"
                    },
                    "url": {
                      "type": "string"
                    }
                  }
                },
                "description": "Available audio formats"
              }
            }
          },
          "audiobook": {
            "type": "object",
            "nullable": true,
            "properties": {
              "id": {
                "type": "string"
              },
              "uri": {
                "type": "string"
              },
              "name": {
                "type": "string"
              }
            },
            "description": "Reference to the parent audiobook"
          }
        }
      },
      "AudiobookChaptersResponse": {
        "type": "object",
        "properties": {
          "data": {
            "$ref": "#/components/schemas/AudiobookChaptersResults"
          },
          "type": {
            "type": "string",
            "enum": [
              "audiobook_chapters"
            ]
          }
        }
      },
      "AudiobookChaptersResults": {
        "type": "object",
        "properties": {
          "chapters": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AudiobookChapter"
            },
            "description": "Array of chapters from the audiobook"
          },
          "pagingInfo": {
            "type": "object",
            "properties": {
              "nextOffset": {
                "type": "integer",
                "nullable": true,
                "description": "Offset for the next page of results"
              },
              "limit": {
                "type": "integer",
                "description": "Number of items per page"
              }
            },
            "description": "Pagination information for the chapters"
          },
          "totalCount": {
            "type": "integer",
            "description": "Total number of chapters in the audiobook"
          },
          "audiobookId": {
            "type": "string",
            "description": "ID of the parent audiobook"
          },
          "audiobookName": {
            "type": "string",
            "description": "Name of the parent audiobook"
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "message": {
            "type": "string",
            "description": "Error message"
          },
          "status": {
            "type": "integer",
            "format": "int32",
            "description": "HTTP status code"
          }
        }
      }
    }
  }
}
```