---
title: "search-books"
method: POST
path: "/api/search/books"
---

# search-books

`POST /api/search/books`

## Search Books

Searches Goodreads for books matching a given query string. Returns a list of matching books with their metadata, useful for discovering books by title, author, or keyword.

---

## Request

**Method:** `POST`  
**URL:** `{{Instance Domain}}/api/search/books`

### Headers

| Key | Value | Description |
| --- | --- | --- |
| Content-Type | application/json | Indicates the request body is JSON |

### Body

| Field | Type | Required | Description |
| --- | --- | --- | --- |
| query | string | Yes | The search term to look up on Goodreads (e.g. `"Harry Potter"`) |

**Example Body:**

```json
{
  "query": "Harry Potter"
}
```

---

## Response

### 200 Success

Returns a JSON object containing a list of books matching the search query.

```json
{
  "status": "Received",
  "statusCode": 200,
  ...
}
```

### Response Field Descriptions

| Field | Type | Description |
| --- | --- | --- |
| status | string | Human-readable status message |
| statusCode | number | HTTP status code of the response |
| results | array | List of books matching the search query, each with title, author, cover image, and Goodreads URL |

## Request body

- object
  - `queryURL` string, uri, required

## Response `200`

OK

- object
  - `status` string, required
  - `source` string, uri, required
  - `apiURL` string, uri, required
  - `searchType` string, required
  - `numberOfResults` string, required
  - `result` object[], required
    - `id` integer, required
    - `cover` string, uri, required
    - `title` string, required
    - `bookURL` string, required
    - `author` string, required
    - `authorURL` string, required
    - `rating` string, required
  - `lastScraped` string, date-time, required

## Changes

- **2026-06-15** `6ef082114b12` — 1 info
  - endpoint added
- **2026-06-15** `9188f0ce7be6` — 1 breaking
  - api path removed without deprecation
- **2026-06-15** `6ef082114b12` — 1 info
  - endpoint added
- **2026-06-14** `539ea0e4fa2a` — 1 breaking
  - api path removed without deprecation

[Change history](https://skmtc.dev/nesaku/apis/api-endpoints/changes/api/search/books/post.md)

---

[API](https://skmtc.dev/nesaku/apis/api-endpoints.md) · [All operations](https://skmtc.dev/nesaku/apis/api-endpoints/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/nesaku/api-endpoints/revisions/182d9252d879/schema)
