---
title: "Textbook option cost comparison"
method: GET
path: "/api/v1/calculate/textbook-cost"
---

# Textbook option cost comparison

`GET /api/v1/calculate/textbook-cost`

## Request

- Base URL: `https://everycalc.xyz`
- URL: `https://everycalc.xyz/api/v1/calculate/textbook-cost`
- Auth: none declared

Net cost of buying new, buying used, renting, and digital for a textbook. Purchase options are reduced by the resale value (floored at zero), and the cheapest option is returned. Results match the interactive calculator at everycalc.xyz; every response includes a calculator_url deep link to it.

## Query parameters

- `buy_new_price` number, required
- `buy_used_price` number, required
- `rent_price` number, required
- `digital_price` number, required
- `resale_value` number, required

## Response `200`

Calculation result.

## Other responses

- `400`: Invalid input.

---

[API](https://skmtc.dev/everycalc/apis/everycalc-api.md) · [All operations](https://skmtc.dev/everycalc/apis/everycalc-api/llms.txt) · [OpenAPI document](https://skmtc.dev/everycalc/apis/everycalc-api/revisions/a4bd5db0868a?raw)
