> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.biblioreads.eu.org/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.biblioreads.eu.org/_mcp/server.

# author-books-scraper

POST https://biblioreads.eu.org/api/author/books
Content-Type: application/json

## Author Books Scraper

Retrieves a paginated list of books published by a specific author. Use the `page` field to navigate through multiple pages of results.

---

### Request

**Method:** `POST`  
**URL:** `{{Localhost URL}}/api/author/books`  
**Headers:**

| Key | Value |
|---|---|
| Content-Type | application/json |

**Body** (`application/json`):

```json
{
  "page": 1,
  "queryURL": "https://www.goodreads.com/author/list/3389.Stephen_King"
}
```

| Field | Type | Required | Description |
|---|---|---|---|
| `queryURL` | string | Yes | The Goodreads author book list URL (format: `https://www.goodreads.com/author/list/<id>.<Name>`) |
| `page` | number | No | Page number for pagination. Defaults to `1` |

---

### Response

**Success `200 OK`:**

```json
{
  "books": [
    {
      "title": "string",
      "url": "string",
      "coverImage": "string",
      "rating": "string",
      "ratingsCount": "string",
      "publishedYear": "string"
    }
  ],
  "totalBooks": "string"
}
```

| Field | Type | Description |
|---|---|---|
| `books` | array | List of books by the author |
| `books[].title` | string | Book title |
| `books[].url` | string | Goodreads URL for the book |
| `books[].coverImage` | string | URL of the book cover image |
| `books[].rating` | string | Average Goodreads rating |
| `books[].ratingsCount` | string | Total number of ratings |
| `books[].publishedYear` | string | Year the book was published |
| `totalBooks` | string | Total number of books by this author on Goodreads |

Reference: https://docs.biblioreads.eu.org/api-endpoints/author-books-scraper

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /api/author/books:
    post:
      operationId: author-books-scraper
      summary: author-books-scraper
      description: >-
        ## Author Books Scraper


        Retrieves a paginated list of books published by a specific author. Use
        the `page` field to navigate through multiple pages of results.


        ---


        ### Request


        **Method:** `POST`  

        **URL:** `{{Localhost URL}}/api/author/books`  

        **Headers:**


        | Key | Value |

        |---|---|

        | Content-Type | application/json |


        **Body** (`application/json`):


        ```json

        {
          "page": 1,
          "queryURL": "https://www.goodreads.com/author/list/3389.Stephen_King"
        }

        ```


        | Field | Type | Required | Description |

        |---|---|---|---|

        | `queryURL` | string | Yes | The Goodreads author book list URL
        (format: `https://www.goodreads.com/author/list/<id>.<Name>`) |

        | `page` | number | No | Page number for pagination. Defaults to `1` |


        ---


        ### Response


        **Success `200 OK`:**


        ```json

        {
          "books": [
            {
              "title": "string",
              "url": "string",
              "coverImage": "string",
              "rating": "string",
              "ratingsCount": "string",
              "publishedYear": "string"
            }
          ],
          "totalBooks": "string"
        }

        ```


        | Field | Type | Description |

        |---|---|---|

        | `books` | array | List of books by the author |

        | `books[].title` | string | Book title |

        | `books[].url` | string | Goodreads URL for the book |

        | `books[].coverImage` | string | URL of the book cover image |

        | `books[].rating` | string | Average Goodreads rating |

        | `books[].ratingsCount` | string | Total number of ratings |

        | `books[].publishedYear` | string | Year the book was published |

        | `totalBooks` | string | Total number of books by this author on
        Goodreads |
      tags:
        - ''
      responses:
        '200':
          description: Successful response
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                page:
                  type: integer
                queryURL:
                  type: string
                  format: uri
              required:
                - page
                - queryURL
servers:
  - url: https://biblioreads.eu.org
    description: Default

```

## Examples

**Request**

```json
{
  "page": 1,
  "queryURL": "https://www.goodreads.com/author/list/3389.Stephen_King"
}
```

**Response**

```json
{
  "books": [
    {
      "title": "The Shining",
      "url": "https://www.goodreads.com/book/show/11588.The_Shining",
      "coverImage": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1388184640l/11588.jpg",
      "rating": "4.23",
      "ratingsCount": "650000",
      "publishedYear": "1977"
    },
    {
      "title": "It",
      "url": "https://www.goodreads.com/book/show/830502.It",
      "coverImage": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1553383690l/830502._SY475_.jpg",
      "rating": "4.23",
      "ratingsCount": "1100000",
      "publishedYear": "1986"
    },
    {
      "title": "Misery",
      "url": "https://www.goodreads.com/book/show/41865.Misery",
      "coverImage": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1388184640l/41865.jpg",
      "rating": "4.06",
      "ratingsCount": "450000",
      "publishedYear": "1987"
    },
    {
      "title": "Carrie",
      "url": "https://www.goodreads.com/book/show/10564.Carrie",
      "coverImage": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1388184640l/10564.jpg",
      "rating": "3.98",
      "ratingsCount": "400000",
      "publishedYear": "1974"
    },
    {
      "title": "Doctor Sleep",
      "url": "https://www.goodreads.com/book/show/10644930-doctor-sleep",
      "coverImage": "https://i.gr-assets.com/images/S/compressed.photo.goodreads.com/books/1388184640l/10644930.jpg",
      "rating": "3.81",
      "ratingsCount": "230000",
      "publishedYear": "2013"
    }
  ],
  "totalBooks": "65"
}
```

**SDK Code**

```python
import requests

url = "https://biblioreads.eu.org/api/author/books"

payload = {
    "page": 1,
    "queryURL": "https://www.goodreads.com/author/list/3389.Stephen_King"
}
headers = {"Content-Type": "application/json"}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://biblioreads.eu.org/api/author/books';
const options = {
  method: 'POST',
  headers: {'Content-Type': 'application/json'},
  body: '{"page":1,"queryURL":"https://www.goodreads.com/author/list/3389.Stephen_King"}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://biblioreads.eu.org/api/author/books"

	payload := strings.NewReader("{\n  \"page\": 1,\n  \"queryURL\": \"https://www.goodreads.com/author/list/3389.Stephen_King\"\n}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://biblioreads.eu.org/api/author/books")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n  \"page\": 1,\n  \"queryURL\": \"https://www.goodreads.com/author/list/3389.Stephen_King\"\n}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://biblioreads.eu.org/api/author/books")
  .header("Content-Type", "application/json")
  .body("{\n  \"page\": 1,\n  \"queryURL\": \"https://www.goodreads.com/author/list/3389.Stephen_King\"\n}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://biblioreads.eu.org/api/author/books', [
  'body' => '{
  "page": 1,
  "queryURL": "https://www.goodreads.com/author/list/3389.Stephen_King"
}',
  'headers' => [
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://biblioreads.eu.org/api/author/books");
var request = new RestRequest(Method.POST);
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{\n  \"page\": 1,\n  \"queryURL\": \"https://www.goodreads.com/author/list/3389.Stephen_King\"\n}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Content-Type": "application/json"]
let parameters = [
  "page": 1,
  "queryURL": "https://www.goodreads.com/author/list/3389.Stephen_King"
] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://biblioreads.eu.org/api/author/books")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```