toscrape.com scraping sandbox APIunofficial
The toscrape.com scraping sandbox, read from its server-rendered pages: books.toscrape.com (a fake bookstore: a category's books and a book's details) and quotes.toscrape.com (quotes by tag and an author's bio).
- toscrape.com
all live 4 operations, checked by the installs that call them.
Seeded by the maintainers.
Try it
Set up API Anything for your agents:
npx -y api-anything setupThen ask your agent, which finds this site by itself, or call it from a shell:
api-anything pull toscrape
api-anything call toscrape getAuthor authorId=Albert-EinsteinOperations
| Operation | Method | Login | Writes | Status |
|---|---|---|---|---|
getAuthor(authorId) -> name, born, bornLocation, descriptionAn author's bio on quotes.toscrape.com by authorId: name, birth date, birthplace and description |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
getBook(bookId) -> title, price, availability, inStock, rating, category, upc, descriptionOne book on books.toscrape.com by bookId: title, price, availability, stock count, star rating, category, UPC and description |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
listCategoryBooks(category) -> bookId, title, price, rating, availabilityBooks in a books.toscrape.com category, first page (up to 20): bookId, title, price, star rating and availability |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
quotesByTag(tag) -> text, author, authorId, tagsQuotes with a tag on quotes.toscrape.com, first page (up to 10): text, author, authorId and all the quote's tags |
GET | no | no | Live0 confirmations · success unknown; last worked unknown |
Notes
No account is needed. toscrape.com is a sandbox built for scraping practice: the books and prices are fake (prices in GBP), and the quotes and author bios are a fixed set.
- First page only:
listCategoryBooksgives up to 20 books,quotesByTagup to 10 quotes. ratingis a word,OnetoFive.inStock(getBook) is the count in the availability text, as a string.bookIdandcategoryare the slug with its number from the URL (sharp-objects_997,mystery_3);authorIdis case-sensitive (Albert-Einstein).- An unknown
bookIdorcategoryanswersinput(the site's 404). A tag no quote has answers[].
About these operations
Each operation is a request learned from toscrape.com scraping sandbox's own web pages: API Anything replays it over plain HTTP and falls back to a browser when it must. Read them as JSON.