Macademia Tree logo Macademia Tree
Sign In

Sub-Disciplines

Get a sub-discipline

Returns a single sub-discipline with its parent disciplines and child topics.

GET /api/v2/sub_disciplines/:slug

Authentication

Requires Bearer token in the Authorization header.

Path Parameters

slug string required

The URL slug of the sub-discipline (e.g., machine-learning)

Response

id uuid

Unique identifier

name string

Sub-discipline name

slug string

URL-safe identifier

description string

Brief description

disciplines array

Parent disciplines this sub-discipline belongs to

topics_count integer

Number of topics

topics array

List of topics (show only)

curl -X GET "https://macademiatree.com/api/v2/sub_disciplines/natural-sciences" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "id": "c3d4e5f6-a7b8-9012-cdef-123456789012",
  "name": "Machine Learning",
  "slug": "machine-learning",
  "description": "Algorithms that learn from data",
  "disciplines": [
    {
      "id": "...",
      "name": "Computer Science",
      "slug": "computer-science"
    }
  ],
  "topics_count": 2,
  "topics": [
    {
      "id": "...",
      "name": "Neural Networks",
      "slug": "neural-networks",
      "description": "Computing systems inspired by biological networks"
    }
  ]
}