Book publication with author, ISBN, publisher, publication details, genre, pricing, and ratings. Used for bookstores, libraries, e-book platforms, and literary databases.
https://api.mockly.codes/books?page=1&limit=10&count=10Configure your request and click Send Request to see the response here.
/booksGet a collection of books
/media/books/books/:idGet a single book by ID
/media/books/:id/books/metaGet resource metadata and schema
/media/books/metaThe search feature allows you to filter results by searching for text across all or specific fields. Choose between ?q= or ?search= parameter names.
Search across all text fields:
GET https://api.mockly.codes/books?q=laptopGET https://api.mockly.codes/books?q=laptop&search_fields=name,descriptionsearch_fields, all text fields are searched// Get 10 books
fetch('https://api.mockly.codes/books?count=10')
.then(res => res.json())
.then(data => console.log(data));import requests
response = requests.get(
'https://api.mockly.codes/books?count=10'
)
data = response.json()curl "https://api.mockly.codes/books?count=10"fetch('https://api.mockly.codes/books?nocache=true')idintegerUnique identifier for the book
random_inttitlestringTitle of the book
book_titleauthorstringFull name of the book author
nameisbnstringInternational Standard Book Number (ISBN-10 or ISBN-13)
isbndescriptionstringBook synopsis or description
paragraphgenrestringBook genre or category (e.g., Fiction, Non-Fiction, Mystery, Science Fiction, Biography)
book_genrepublisherstringName of the publishing company
companypublished_datestringDate when the book was first published
past_datedatepagesintegerTotal number of pages in the book
book_pageslanguagestringLanguage code of the book content (e.g., en, es, fr)
languagepricenumberBook price in the specified currency
pricecurrencystringISO currency code for the book price (e.g., USD, EUR, GBP)
currencyratingnumberAverage reader rating, typically on a scale of 1-5
ratingcoverstringURL to the book cover image
image_urluricountintegerNumber of items to return (default: 10, max: 100)
seedintegerSeed for reproducible data generation
nocachebooleanBypass cache and generate fresh data on every request