Discover/openstax.org API
live

openstax.org APIopenstax.org

Access structured data from 60+ OpenStax textbooks: book metadata, full table of contents, and learning outcomes organized by chapter and section.

Endpoints
3
Updated
1mo ago
Try it
Filter by subject area. Case-insensitive partial match against book subjects. Common value
api.parse.bot/scraper/97903193-4df4-40f4-8924-422c78e72ed7/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Use it in your codegrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/97903193-4df4-40f4-8924-422c78e72ed7/list_books?subject=Science' \
  -H 'X-API-Key: $PARSE_API_KEY'
All endpoints · 3 totalclick to expand

List all available OpenStax textbooks with their titles, slugs, subjects, and content IDs. Optionally filter by subject area. Returns only books with 'live' or 'new_edition_available' state.

Input
ParamTypeDescription
subjectstringFilter by subject area. Case-insensitive partial match against book subjects. Common values include 'Business', 'Science', 'Math', 'Social Sciences', 'Humanities', 'Computer Science'. If omitted or empty, returns all live books.
Response
{
  "type": "object",
  "fields": {
    "books": "array of {title, slug, subjects, cnx_id, book_state}",
    "total": "integer total count of books returned"
  },
  "sample": {
    "data": {
      "books": [
        {
          "slug": "biology-2e",
          "title": "Biology 2e",
          "cnx_id": "8d50a0af-948b-4204-a71d-4826cba765b8",
          "subjects": [
            "Science"
          ],
          "book_state": "live"
        },
        {
          "slug": "chemistry-2e",
          "title": "Chemistry 2e",
          "cnx_id": "7fccc9cf-9b71-44f6-800b-f9457fd64335",
          "subjects": [
            "Science"
          ],
          "book_state": "live"
        }
      ],
      "total": 2
    },
    "status": "success"
  }
}

About the openstax.org API

The OpenStax API gives programmatic access to 60+ free textbooks across Business, Science, Math, Social Sciences, Humanities, Computer Science, and Nursing. Three endpoints cover book discovery, table-of-contents retrieval, and learning-outcome extraction. The get_learning_outcomes endpoint returns verbatim objective statements organized by chapter and section, with an optional chapter filter to scope results for large books.

Book Discovery

The list_books endpoint returns all textbooks currently in a live or new_edition_available state. Each record includes the book title, URL slug, subjects array, cnx_id (the OpenStax content identifier), and book_state. An optional subject parameter accepts a case-insensitive partial match, so filtering by 'Science' returns Biology, Chemistry, Physics, and related titles without requiring an exact string.

Table of Contents

get_book_toc accepts a book_slug from list_books and returns the full chapter-section hierarchy. The chapters array nests section objects, each carrying a title and slug. The response also echoes book_title and subjects so callers can confirm they fetched the right book without a separate lookup. Large books like *University Physics* return dozens of chapters and hundreds of sections.

Learning Outcomes

get_learning_outcomes is the most data-dense endpoint. For each section that has defined objectives, it returns the verbatim learning_outcomes strings alongside section_title and section_slug. The response includes total_learning_outcomes and total_sections_with_outcomes counts at the top level. Because some books (Anatomy & Physiology, for example) carry hundreds of objectives, the optional chapter parameter—an integer string like '3'—limits the response to a single chapter. The chapter_filter field in the response confirms which filter was applied, or returns null when all chapters are included.

Common use cases
  • Build a curriculum-alignment tool by mapping learning_outcomes strings to course standards across subjects.
  • Generate a structured study guide for any OpenStax book using the nested chapters and sections from get_book_toc.
  • Populate a course catalog or LMS with accurate book metadata (title, slug, subjects, cnx_id) from list_books.
  • Create chapter-by-chapter quiz banks derived from verbatim learning objective statements.
  • Filter OpenStax books by subject area to programmatically build reading lists for a specific discipline.
  • Track which sections have defined learning outcomes versus those that do not, using total_sections_with_outcomes against the total section count.
  • Sync OpenStax TOC structure into a knowledge graph or ontology for academic research tooling.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000250 req/min

One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.

Frequently asked questions
Does OpenStax have an official developer API?+
OpenStax does not publish a general-purpose public developer API for programmatic access to book metadata, TOC structures, or learning outcomes. Their content is openly licensed, but there is no documented REST or GraphQL API intended for third-party developers.
What does `get_learning_outcomes` actually return, and how granular is it?+
It returns an array of chapters, each containing an array of sections. Each section object includes section_title, section_slug, and a learning_outcomes array of verbatim objective strings exactly as they appear in the textbook. The top-level fields total_learning_outcomes and total_sections_with_outcomes give aggregate counts for the full book (or filtered chapter) without having to iterate the nested structure.
Can I retrieve the full text or page content of a textbook section?+
Not currently. The API covers book metadata, table-of-contents hierarchy, and learning outcomes — not the prose, figures, or exercises within sections. You can fork this API on Parse and revise it to add an endpoint that returns section body content.
Are retired or draft OpenStax books included in `list_books` results?+
No. list_books filters to books with a book_state of live or new_edition_available only. Retired editions and unpublished drafts are excluded. If you need to track a specific older edition, you can fork the API on Parse and revise the state filter to include additional book states.
Does the `subject` filter in `list_books` support exact matching or multiple subjects at once?+
The filter is a single case-insensitive partial-match string. It matches against each book's subjects array but does not accept multiple values or boolean operators in one call. To retrieve books across two unrelated subjects, you would need to make separate requests and merge the results client-side. You can fork the API on Parse and revise it to support multi-value subject filtering.
Page content last updated . Spec covers 3 endpoints from openstax.org.
Related APIs in EducationSee all →
arxiv.org API
Search and discover academic research papers on arXiv using keywords, authors, titles, categories, and dates, then access detailed metadata for any paper. Browse the complete arXiv category taxonomy to explore research across different scientific disciplines.
maxpreps.com API
Access high school sports data from MaxPreps. Search for schools, retrieve team rosters and schedules, look up athlete profiles, and browse national or state rankings across all sports.
athletic.net API
Search and analyze cross country and track & field performance data across the US, including athlete profiles, meet results, team rosters, and rankings. Access comprehensive meet information, historical records, and state-level competition data to track athlete progress and discover top performers.
allaboutcircuits.com API
Access educational electronics content from All About Circuits, including technical articles, circuit diagrams, textbook volumes, and forum discussions organized by category. Search and browse the latest resources, view detailed articles, explore engineering tools, and find answers across their community forums.
illinoisreportcard.com API
Search and analyze comprehensive performance data for Illinois public schools, districts, and the state, including academic achievements in ELA, math, and science, student demographics, teacher and administrator information, school finances, and environmental conditions. Compare schools side-by-side, track growth metrics, and access accountability ratings and school highlights to make informed decisions about education quality.
noor-book.com API
Search and discover books across 1,800+ categories in the Noor Book library, retrieving detailed information about titles, authors, biographies, and book metadata. Access comprehensive author profiles and browse one of the largest Arabic and English digital book collections with over 289,000 authors.
quizbowlpackets.com API
Search and browse thousands of quizbowl question sets across all competition levels, then access detailed metadata like difficulty, subjects, and download links for each packet. Find the perfect practice materials for High School, Collegiate, Middle School, or Pop Culture quizbowl competitions.
amberstudent.com API
Search student accommodation listings across popular cities and access comprehensive property information including room types, pricing trends, and tenant reviews. Get detailed insights into student housing options to compare amenities, prices, and community feedback all in one place.