Skip to content

Getting All Books in Your Library

Last updated on October 7, 2024

Guide

Introduction

This guide will show you how to get all the books in your library using the Hardcover API.

Get a list of books belonging to the current user

Example Query
{
list_books(
where: {
user_books: {
user_id: {_eq: ##USER_ID##}
}
},
distinct_on: book_id
limit: 5
offset: 0
) {
book {
title
pages
release_date
}
}
}