The Node.js Books Scraper API allows you to retrieve fictional book data, including genres, titles, prices, stock availability, and more. It provides two main endpoints to access this data.
- Base URL:
https://confused-threads-cod.cyclic.cloud/
- Endpoint:
/books
- Method: GET
- Description: This endpoint returns an array of available book genres.
-
Request:
GET https://confused-threads-cod.cyclic.cloud/books
-
Response:
[ "fiction", "mystery", "romance", ... ]
- Endpoint:
/books/:genre
- Method: GET
- Description: This endpoint allows you to retrieve a list of books for a specific genre.
-
Request:
GET https://confused-threads-cod.cyclic.cloud/books/fiction
-
Response:
{ "status": "success", "data": [ { "title": "Book Title", "author": "Author Name", "price": "$19.99", "availability": "In stock", ... }, ... ], "metadata": { "genre": "fiction", "total_items": 20, "total_pages": 2 } }
The data provided by this API is sourced from Books to Scrape, a fictional book store used for web scraping practice.
To use this API, make HTTP requests to the provided endpoints.