Macademia Tree logo Macademia Tree
Sign In

Topics

Get a topic

Returns a single topic with full hierarchy. The show endpoint also includes child topics when present.

GET /api/v2/topics/:slug

Authentication

Requires Bearer token in the Authorization header.

Path Parameters

slug string required

The URL slug of the topic (e.g., neural-networks)

Response

id uuid

Unique identifier

name string

Topic name

slug string

URL-safe identifier

description string

Brief description

synonyms string[]

Alternative names

parent_topic object|null

Parent topic

sub_disciplines array

Sub-disciplines with their disciplines

child_topics array

Child topics (only on show, when present)

curl -X GET "https://macademiatree.com/api/v2/topics/natural-sciences" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"
{
  "id": "d4e5f6a7-b8c9-0123-def0-1234567890ab",
  "name": "Neural Networks",
  "slug": "neural-networks",
  "description": "Computing systems inspired by biological networks",
  "synonyms": [
    "Artificial Neural Networks",
    "ANN"
  ],
  "parent_topic": null,
  "sub_disciplines": [
    {
      "id": "...",
      "name": "Deep Learning",
      "slug": "deep-learning",
      "disciplines": [
        {
          "id": "...",
          "name": "Computer Science",
          "slug": "computer-science"
        }
      ]
    }
  ],
  "child_topics": [
    {
      "id": "...",
      "name": "Convolutional Networks",
      "slug": "convolutional-networks"
    },
    {
      "id": "...",
      "name": "Recurrent Networks",
      "slug": "recurrent-networks"
    }
  ]
}