API Anything

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).

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 setup

Then 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-Einstein

Operations

OperationMethodLoginWritesStatus
getAuthor(authorId) -> name, born, bornLocation, description

An 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, description

One 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, availability

Books 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, tags

Quotes 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: listCategoryBooks gives up to 20 books, quotesByTag up to 10 quotes.
  • rating is a word, One to Five. inStock (getBook) is the count in the availability text, as a string.
  • bookId and category are the slug with its number from the URL (sharp-objects_997, mystery_3); authorId is case-sensitive (Albert-Einstein).
  • An unknown bookId or category answers input (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.

← All shared sites