---
title: "GET /books/{book_id}"
method: GET
path: "/books/{book_id}"
---

# GET /books/{book_id}

`GET /books/{book_id}`

Returns a book

## Path parameters

- `book_id` integer, required

## Query parameters

- `authorID` string, mongo-id
- `randomBytes` string, byte

## Headers

- `authorization` string
- `X-Dont-Rate-Limit-Me-Bro` string

## Response `200`

Success

- Book
  - `id` integer
  - `name` string
  - `author` string, mongo-id
  - `genre` 'scifi' | 'mystery' | 'horror'
  - `other` unknown
  - `otherArray` unknown

## Other responses

- `401` — Unauthorized
- `404` — Not found

## Changes

- **2017-02-16** `2c022eb63067` — 1 info
  - added the new optional `header` request parameter `X-Dont-Rate-Limit-Me-Bro`
- **2017-02-13** `f0b4ad044899` — 1 warning
  - deleted the `header` request parameter `X-Dont-Rate-Limit-Me-Bro`
- **2017-02-07** `b42201a93df7` — 1 info
  - added the new optional `header` request parameter `X-Dont-Rate-Limit-Me-Bro`
- **2016-11-08** `b0340f0c51b0` — 1 breaking
  - removed the success response with the status `204`
- **2016-10-20** `ae670caf5c72` — 1 warning, 1 info
  - deleted the `header` request parameter `X-Dont-Rate-Limit-Me-Bro`
  - added the success response with the status `204`

[Change history](https://skmtc.dev/clever/apis/swagger-test/changes/books/:book_id/get.md)

---

[API](https://skmtc.dev/clever/apis/swagger-test.md) · [All operations](https://skmtc.dev/clever/apis/swagger-test/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/clever/swagger-test/revisions/4208ba32ef8e/schema)
