Discover/PlanetMath API
live

PlanetMath APIplanetmath.org

Access PlanetMath encyclopedia entries, MSC subject classifications, alphabetical indexes, and related-topic graphs via a structured JSON API.

Endpoint health
verified 4d ago
get_msc_hierarchy
get_entries_by_msc_category
get_alphabetical_index
get_entry
get_entry_related_topics
7/7 passing latest checkself-healing
Endpoints
7
Updated
26d ago

What is the PlanetMath API?

The PlanetMath API exposes 7 endpoints covering the full encyclopedia at planetmath.org, including entry content, MSC subject classifications, alphabetical browsing, and keyword search. The get_entry endpoint returns a single article's title, full HTML and plain-text content, MSC code, related topics, defined terms, author, and dates. The get_subject_index endpoint maps all ~60 top-level MSC categories to their listed entries in one call.

Try it

No input parameters required.

api.parse.bot/scraper/a75dd142-0fda-4d83-8209-6ebcb3861cf8/<endpoint>
Ready to send
Fill in the parameters and hit sign in to send to see live response data here.
Call it over HTTPgrab a free API key at signup
curl -X GET 'https://api.parse.bot/scraper/a75dd142-0fda-4d83-8209-6ebcb3861cf8/get_subject_index' \
  -H 'X-API-Key: $PARSE_API_KEY'
Python SDK · recommended

Typed, relational, agent-ready

A generated client with real types, enums, and the links between objects — the structure a flat JSON response can't carry. Autocompletes in your editor and reads cleanly to coding agents.

  • Fully typed · autocompletes
  • Objects link to objects
  • Typed errors & pagination

Typed Python client. Set up the SDK in your uv project, then pull this API’s typed client:

uv add parse-sdk
uv run parse init
uv run parse add --marketplace planetmath-org-api

uv run parse add --marketplace pulls a pinned snapshot of this canonical API — it won’t change underneath you. To customize it, subscribe and swap to your own copy.

"""Walkthrough: PlanetMath SDK — browse MSC categories, search entries, fetch details."""
from parse_apis.planetmath_api import PlanetMath, CategoryCode, ResourceNotFound

planetmath = PlanetMath()

# Browse MSC classification categories
for category in planetmath.msccategories.list(limit=5):
    print(category.code, category.name)

# Search entries by keyword
for summary in planetmath.entrysummaries.search(query="topology", limit=5):
    print(summary.canonical_name, summary.title)

# Drill into a specific entry by canonical name
entry = planetmath.entries.get(canonical_name="axiom")
print(entry.title, entry.content_text[:120])

# Explore related topics from an entry
relations = entry.related_topics()
print(relations.title, relations.related_topic, relations.define)

# Navigate via constructible MSC category to its entries
number_theory = planetmath.msccategory(code="11")
for entry_summary in number_theory.entries.list(limit=3):
    print(entry_summary.canonical_name, entry_summary.title)

# Browse the full alphabetical index grouped by letter
alpha_index = planetmath.alphabeticalindexes.browse()
print(alpha_index.groups.keys())

# Typed error handling for missing entries
try:
    planetmath.entries.get(canonical_name="nonexistent_entry_xyz")
except ResourceNotFound as exc:
    print(f"Entry not found: {exc}")

print("exercised: msccategories.list / entrysummaries.search / entries.get / entry.related_topics / msccategory.entries.list / alphabeticalindexes.browse")
All endpoints · 7 totalmissing one? ·

Scrape the full MSC (Mathematics Subject Classification) subject index, returning all top-level subject categories with the entries listed under each. Each category contains its MSC code, human-readable name, HTML anchor ID, and a list of entry summaries. Returns approximately 60 categories. A single network round-trip fetches the entire index.

Input

No input parameters required.

Response
{
  "type": "object",
  "fields": {
    "categories": "array of category objects, each containing category_code, category_name, category_id, and entries array"
  },
  "sample": {
    "data": {
      "categories": [
        {
          "entries": [
            {
              "title": "AdHoc",
              "canonical_name": "AdHoc"
            },
            {
              "title": "Dimension",
              "canonical_name": "Dimension"
            }
          ],
          "category_id": "#00_General",
          "category_code": "00",
          "category_name": "00_General"
        },
        {
          "entries": [
            {
              "title": "AbelianNumberField",
              "canonical_name": "AbelianNumberField"
            }
          ],
          "category_id": "#11_Number_theory",
          "category_code": "11",
          "category_name": "11_Number_theory"
        }
      ]
    },
    "status": "success"
  }
}

About the PlanetMath API

Entry Content and Metadata

The get_entry endpoint accepts a canonical_name slug (case-sensitive, e.g. FermatsLittleTheorem or axiom) and returns title, content_html, content_text, keywords, and a metadata object containing fields such as msc, related_topic, defines, entry_type, author, and dates. If you only need the dependency graph for an entry rather than the full article body, get_entry_related_topics returns the related_topic and define arrays alone, avoiding the overhead of the full content payload.

MSC Classification Hierarchy

get_msc_hierarchy returns all top-level MSC category code and name pairs (approximately 60 categories, e.g. 1111_Number_theory). get_subject_index extends this by including each category's entries as an array of canonical_name and title objects. To query a specific MSC category directly, get_entries_by_msc_category accepts a category_code string and matches with or without leading zeros, so both '03' and '3' resolve to Mathematical Logic.

Alphabetical Browsing and Search

get_alphabetical_index returns the entire encyclopedia grouped by first character (0–9, A–Z), each group containing canonical_name and title for every entry under that letter. The search_entries endpoint accepts a query string of one or more space-separated keywords and applies case-insensitive substring AND-matching against entry titles and slugs across the full index, returning a flat results array of canonical_name and title matches.

Building Concept Graphs

Because get_entry_related_topics exposes both related_topic (entries this one references) and define (terms this entry formally defines), you can traverse the encyclopedia as a directed graph. Starting from a single slug and recursively calling the endpoint builds a dependency tree showing which prerequisite concepts underlie a given theorem or definition.

Reliability & maintenanceVerified

The PlanetMath API is a managed, monitored endpoint for planetmath.org — not a raw scraper you maintain. Every endpoint is automatically health-checked on a schedule, and when planetmath.org changes and a check fails, the API is automatically queued for repair and re-verified. It is built to keep working as the site underneath it changes.

This isn't an official planetmath.org API — it's an independent, maintained REST wrapper over public data. Where the source has no official API (or only a limited one), Parse gives you a stable contract over a source that never promised one, and keeps it current. Need a new endpoint or field? You can revise it yourself in plain English and the agent rebuilds it against the live site in minutes — contributing the change back to the shared API is free.

Last verified
4d ago
Latest check
7/7 endpoints passing
Maintenance
Monitored & self-healing
Will this API break when the source site changes?+
It's built not to. Every endpoint is health-checked on a schedule with automated test probes. When the source site changes and a check fails, the API is automatically queued for repair and re-verified — that's the self-healing layer. Each API page shows when its endpoints were last verified. And because marketplace APIs are shared, any fix reaches everyone using it.
Is this an official API from the source site?+
No — Parse APIs are independent, managed REST wrappers over publicly available data. That is the point: where a site has no official API (or only a limited one), Parse gives you a maintained, monitored endpoint for that data and keeps it working as the site changes — so you get a stable contract over a source that never promised one.
Can I fix or extend this API myself if I need a new endpoint or field?+
Yes — and you don't have to wait on us. This API was generated by the Parse agent, which stays attached. Describe the change in plain English ("add an endpoint that returns reviews", "fix the price field") in the revise box on the API page or via the revise_api MCP tool, and the agent rebuilds it against the live site in minutes. Contributing the change back to the public API is free.
What happens if I call an endpoint that has an issue?+
Errors are machine-readable: a bad call returns a clean status with the list of available endpoints and a repair hint, so an agent (or you) can recover or trigger a fix instead of failing silently. Confirmed failures feed the automatic repair queue.
Common use cases
  • Build a prerequisite graph for a mathematics curriculum by traversing related_topic and define fields across entries.
  • Populate a math reference tool with full article text and MSC classification using get_entry.
  • Index all entries under a specific MSC code (e.g. '54' for Topology) with get_entries_by_msc_category.
  • Implement autocomplete for mathematical terms by querying get_alphabetical_index and filtering client-side.
  • Search for entries matching multiple keywords (e.g. 'prime field') using search_entries with AND logic.
  • Generate a structured map of PlanetMath's ~60 subject areas using get_msc_hierarchy for a course navigator.
  • Extract defined terms from an entry to identify concept boundaries for a knowledge graph node.
Pricing & limitsSee full pricing →
TierPriceCredits/monthRate limit
Free$0/mo1005 req/min
Hobby$30/mo1,00020 req/min
Developer$100/mo5,000100 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 PlanetMath have an official developer API?+
PlanetMath does not publish an official public REST or GraphQL API for its encyclopedia content. This Parse API provides structured programmatic access to entry data, MSC classifications, and search that is not otherwise available.
What does `get_entry` return beyond the article text?+
In addition to content_html and content_text, the response includes a metadata object with fields for msc (subject classification), related_topic, defines, entry_type, author, and dates. A keywords array is also returned from the page's meta tag.
Does `search_entries` support full-text search within article bodies?+
No. search_entries matches the query keywords only against entry titles and canonical name slugs. Article body content is not searched. You can fork this API on Parse and revise it to add a body-content search endpoint if full-text matching is required.
Are user comments, forum threads, or revision history available?+
Not currently. The API covers entry content, metadata, MSC classifications, and related-topic links. Discussion threads, edit histories, and user profiles are not exposed. You can fork it on Parse and revise to add the missing endpoint.
How case-sensitive are canonical name lookups?+
get_entry and get_entry_related_topics treat the canonical_name parameter as case-sensitive, matching PlanetMath's own URL scheme. Both lowercase slugs like axiom and CamelCase slugs like FermatsLittleTheorem are valid, but the case must match exactly the slug as it appears on PlanetMath.
Page content last updated . Spec covers 7 endpoints from planetmath.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.
gradschools.com API
Search graduate programs across multiple categories and discover articles about funding, financial aid, and admissions to help guide your grad school journey. Find specific program information and detailed resources all in one place to support your application and enrollment decisions.
fmhy.net API
Browse, search, and extract resource listings from the FMHY (freemediaheckyeah) wiki. Retrieve entries by category, keyword, or star rating across all wiki pages.
Wikipedia API
Search Wikipedia and instantly access full article content on any topic, then explore related articles by browsing through Wikipedia categories. Retrieve article metadata, extracts, and navigate curated category trees to discover connected subjects.
oeis.org API
Search OEIS for integer sequences by keyword, A-number, or known terms, then retrieve full sequence entries and b-file term data.
jstor.org API
Search and browse millions of academic articles, journals, and research issues from JSTOR's library, or retrieve specific articles and journal details to explore scholarly content by subject. Access peer-reviewed research across multiple disciplines to find the academic sources you need.
wyzant.com API
Search for qualified tutors on Wyzant, view their detailed profiles, ratings, reviews, and expert answers to find the perfect match for your learning needs. Browse trending subjects, get subject suggestions, and compare tutors based on their expertise and student feedback all in one place.
cses.fi API
Explore the CSES Problem Set by browsing problems across different categories, viewing detailed problem information, and discovering available courses and contests. Access comprehensive problem lists organized by topic to find coding challenges tailored to your learning goals.