GETBook Detail
https://api-books.dataandapis.com/v1/books/{id}
Parâmetros de caminho
| Parâmetro | Exemplo | |
|---|---|---|
| id | 2701 | Obrigatório |
Exemplo de requisição
curl "https://api-books.dataandapis.com/v1/books/2701" \
-H "X-Api-Key: YOUR_API_KEY"// npm install dataandapis
import { DataAndApis } from "dataandapis";
const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY
const data = await client.books.bookDetail({ id: 2701 });# pip install dataandapis
from dataandapis import DataAndApis
client = DataAndApis() # reads DATAANDAPIS_API_KEY
data = client.books.book_detail(id=2701)Exemplo de resposta{
"ok": true,
"book": {
"id": 2701,
"title": "Moby Dick; Or, The Whale",
"authors": "Melville, Herman, 1819-1891",
"first_author": "Herman Melville",
"language": "en",
"issued": "2001-07-01",
"subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
"locc": "PS",
"bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
"links": {
"gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
"text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
"epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
"cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
}
},
"more_by_author": [
{
"id": 15,
"title": "Moby-Dick; or, The Whale",
"language": "en"
},
{
"id": 1900,
"title": "Typee: A Romance of the South Seas",
…
Ver resposta completa
{
"ok": true,
"book": {
"id": 2701,
"title": "Moby Dick; Or, The Whale",
"authors": "Melville, Herman, 1819-1891",
"first_author": "Herman Melville",
"language": "en",
"issued": "2001-07-01",
"subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
"locc": "PS",
"bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
"links": {
"gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
"text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
"epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
"cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
}
},
"more_by_author": [
{
"id": 15,
"title": "Moby-Dick; or, The Whale",
"language": "en"
},
{
"id": 1900,
"title": "Typee: A Romance of the South Seas",
…{
"ok": true,
"book": {
"id": 2701,
"title": "Moby Dick; Or, The Whale",
"authors": "Melville, Herman, 1819-1891",
"first_author": "Herman Melville",
"language": "en",
"issued": "2001-07-01",
"subjects": "Whaling -- Fiction; Sea stories; Psychological fiction; Ship captains -- Fiction; Adventure stories; Mentally ill -- Fiction; Ahab, Captain (Fictitious character) -- Fiction; Whales -- Fiction; Whaling ships -- Fiction",
"locc": "PS",
"bookshelves": "Best Books Ever Listings; Category: Adventure; Category: Novels; Category: Classics of Literature; Category: American Literature",
"links": {
"gutenberg_url": "https://www.gutenberg.org/ebooks/2701",
"text": "https://www.gutenberg.org/cache/epub/2701/pg2701.txt",
"epub": "https://www.gutenberg.org/cache/epub/2701/pg2701-images.epub",
"cover": "https://www.gutenberg.org/cache/epub/2701/pg2701.cover.medium.jpg"
}
},
"more_by_author": [
{
"id": 15,
"title": "Moby-Dick; or, The Whale",
"language": "en"
},
{
"id": 1900,
"title": "Typee: A Romance of the South Seas",
"language": "en"
},
{
"id": 2489,
"title": "Moby Dick; Or, The Whale",
"language": "en"
},
{
"id": 2694,
"title": "I and My Chimney",
"language": "en"
},
{
"id": 4045,
"title": "Omoo: Adventures in the South Seas",
"language": "en"
},
{
"id": 8118,
"title": "Redburn. His First Voyage Being the Sailor Boy Confessions and Reminiscences of the Son-Of-A-Gentleman in the Merchant Navy",
"language": "en"
},
{
"id": 10712,
"title": "White Jacket; Or, The World on a Man-of-War",
"language": "en"
},
{
"id": 11231,
"title": "Bartleby, the Scrivener: A Story of Wall-Street",
"language": "en"
},
{
"id": 12384,
"title": "Battle-Pieces and Aspects of the War",
"language": "en"
},
{
"id": 12841,
"title": "John Marr and Other Poems",
"language": "en"
}
],
"note": "Download links are constructed from Gutenberg's stable cache layout; a rare title may lack a given format."
}



