Education
LibreTexts logo

LibreTexts API

libretexts.org

LibreTexts - open textbooks, subjects, contents, and full chapter content.

Actions
8
Category
Education
Login
Not required
Output
JSON

Call the LibreTexts API

Submit a task, then poll the job until it settles. This example runs act_libretexts_bookshelf_root_ssr.

curl -X POST https://api.anakin.io/v1/wire/task \
  -H "X-API-Key: $ANAKIN_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "action_id": "act_libretexts_bookshelf_root_ssr",
    "params": {
      "library_host": "bio"
    }
  }'

8 actions on libretexts.org

Read

  • Bookshelves Root Page

    act_libretexts_bookshelf_root_ssrread1 credit / call

    Returns the Bookshelves root subject categories for a discipline library with titles and links.

    library_host
    string · required
  • Commons Book Metadata

    act_libretexts_commons_book_metadataread1 credit / call

    Returns textbook metadata by book ID: title, summary, authors, license, and links.

    book_id
    string · required
  • Library Home Page

    act_libretexts_library_home_ssrread1 credit / call

    Returns a discipline library home page with its top-level sections, titles, and links.

    library_host
    string · required
  • Library Navigation Tree

    act_libretexts_library_nav_treeread1 credit / call

    Returns a library's top-level sections such as Bookshelves with page IDs and URLs.

    library_host
    string · required
  • Page Subpage Listing

    act_libretexts_page_subpage_listingread2 credits / call

    Returns child pages under a parent page ID with titles, paths, IDs, and dates.

    library_host
    string · required
    parent_page_id
    string · required
  • Subject Shelf Listing

    act_libretexts_subject_listing_ssrread1 credit / call

    Returns the textbooks under a Bookshelves subject with titles, links, and thumbnails.

    library_host
    string · required
    subject_slug
    string · required
  • Textbook Details

    act_libretexts_textbook_detail_ssrread2 credits / call

    Returns a textbook's details: title, authors, abstract, dates, and module navigation.

    library_host
    string · required
    subject_slug
    string · required
    textbook_slug
    string · required
  • Textbook Module Content

    act_libretexts_textbook_content_detailread2 credits / call

    Returns a textbook module or chapter's full content: title, body, author, and dates.

    library_host
    string · required
    module_page_id
    string · required

LibreTexts API questions

Is there an API for LibreTexts?
LibreTexts does not offer a public data API for this, but Anakin Wire provides 8 maintained endpoints for libretexts.org. You call Anakin's REST API with an action ID and parameters and get structured JSON back; Anakin handles the browser, proxies, anti-bot, and parsing.
How do I scrape LibreTexts data?
POST to https://api.anakin.io/v1/wire/task with your API key, the action ID, and its parameters, then poll GET /v1/wire/jobs/{id} until the job settles. There is nothing to install and no scraper to maintain — when libretexts.org changes its markup, Anakin updates the action.
Do I need a LibreTexts account?
No. Every LibreTexts action listed here runs anonymously — no account and no credentials required.
What does the LibreTexts API cost?
Usage-based credits, charged per call and refunded automatically when a job fails. New accounts start with 300 free credits and no card. See anakin.io/pricing for the current rates.

More Education APIs

All Education sites