# Udemy category tree API

Get Udemy Category Tree data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Apish, pass parameters such as limit, output, raw, and retrieve structured data including count, numeric top-level category identifier, top-level category display title, numeric subcategory identifier, and subcategory display title to build course navigation menus, resolve subcategory ids, and discover niche topics.

Documentation: https://openany.si/udemy/udemy-category-tree-api/e2ec7321-238b-4866-9fd5-d82b47b26496/
API ID: e2ec7321-238b-4866-9fd5-d82b47b26496
Provider: apish
Contract revision: 3
Method: GET
Endpoint: https://api.openany.si/v1/agent-apis/apish/udemy/v1/categories
Page update time: 2026-12-03T02:55:14.918Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: none
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract.
Contract update time: 2026-12-03T02:55:13.237Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "rules",
  "parameters": [],
  "policy_version": 2,
  "sale": {
    "addons": [],
    "base_price_micro_usd": "0",
    "max_cost_micro_usd": "2000",
    "quantities": [
      {
        "id": "upstream_credits",
        "label": "Actual API.SH credits used",
        "max_quantity": "1",
        "measure": "value",
        "pointer": "/credits_used",
        "price_micro_usd": "2000",
        "quantity_scale": 0,
        "source": "response",
        "unit": "credit",
        "unit_quantity": "1"
      }
    ],
    "rounding": "ceil",
    "variants": []
  }
}
```

## Usage and limits
## Udemy Category Tree API

Call with no required query parameters to retrieve Udemy's top-level categories\[\] and nested subcategories\[\], each with numeric id, title, type and url. Optionally pass subcategory\_id (such as 8) and limit (default 30, max 100) to list topics within that subcategory.

## What You Can Build

- **Build course navigation menus**: Mirror Udemy's official category and subcategory tree with numeric IDs and URLs.
- **Resolve subcategory IDs**: Look up numeric category or subcategory IDs before calling the Udemy Category Courses API.
- **Discover niche topics**: Pass subcategory\_id with limit to enumerate granular Udemy topics for market research.

## Returned Data

| Field | Meaning |
| --- | --- |
| `count` | Number of top-level categories or topics returned |
| `categories[].id` | Numeric top-level category identifier |
| `categories[].title` | Top-level category display title |
| `categories[].url` | Udemy category path or URL |
| `categories[].subcategories[].id` | Numeric subcategory identifier |
| `categories[].subcategories[].title` | Subcategory display title |
| `categories[].subcategories[].url` | Subcategory path or URL |

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Udemy category tree API request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {
        "subcategory_id": {
          "type": "integer",
          "description": "A subcategory id, e.g. `8`, to list its topics."
        },
        "limit": {
          "type": "integer",
          "description": "Topics to list with subcategory_id (default 30, max 100)."
        },
        "raw": {
          "type": "string",
          "description": "0 leaves out the bulky `raw` source blocks (often 10-30x smaller).",
          "enum": [
            "0",
            "1"
          ]
        },
        "fields": {
          "type": "string",
          "description": "Comma-separated fields to return, e.g. `posts.id,posts.title`. Call metadata is always included."
        },
        "fresh": {
          "type": "string",
          "description": "1 skips the 24-hour cache and fetches live.",
          "enum": [
            "1"
          ]
        },
        "output": {
          "type": "string",
          "description": "JSON only for this OpenAny product. CSV and NDJSON exports are not supported; omit output or send json.",
          "enum": [
            "json"
          ]
        },
        "records": {
          "type": "string",
          "description": "With output=csv|ndjson: the top-level list to turn into rows (e.g. `reviews`), or `.` for the whole object as one row."
        }
      }
    },
    "headers": {
      "type": "object",
      "properties": {}
    }
  },
  "required": [
    "path",
    "query",
    "headers"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "cached": {
      "type": "boolean"
    },
    "categories": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "id": {
            "type": "integer"
          },
          "subcategories": {
            "type": "array",
            "items": {
              "type": "object",
              "properties": {
                "id": {
                  "type": "integer"
                },
                "title": {
                  "type": "string"
                },
                "type": {
                  "type": "string"
                },
                "url": {
                  "type": "string"
                }
              }
            }
          },
          "title": {
            "type": "string"
          },
          "type": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        }
      }
    },
    "count": {
      "type": "integer"
    },
    "credits_used": {
      "type": "integer"
    },
    "fetched_at": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Official example · Live API.SH response · Minimal request
```bash
curl \
  'https://api.openany.si/v1/agent-apis/apish/udemy/v1/categories?limit=1&output=json&raw=0' \
  -X GET \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json'
```

## Response example
Example from the provider's documentation. Field values in your results will differ.
Sample response · Documented HTTP 200
```json
{
  "cached": false,
  "categories": [
    {
      "id": 288,
      "subcategories": [
        {
          "id": 8,
          "title": "Web Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/web-development/"
        },
        {
          "id": 558,
          "title": "Data Science",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/data-science/"
        },
        {
          "id": 10,
          "title": "Mobile Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/mobile-apps/"
        },
        {
          "id": 12,
          "title": "Programming Languages",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/programming-languages/"
        },
        {
          "id": 14,
          "title": "Game Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/game-development/"
        },
        {
          "id": 16,
          "title": "Database Design & Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/databases/"
        },
        {
          "id": 18,
          "title": "Software Testing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/software-testing/"
        },
        {
          "id": 20,
          "title": "Software Engineering",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/software-engineering/"
        },
        {
          "id": 362,
          "title": "Software Development Tools",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/development-tools/"
        },
        {
          "id": 575,
          "title": "No-Code Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/development/no-code-development/"
        }
      ],
      "title": "Development",
      "type": "category",
      "url": "https://www.udemy.com/courses/development/"
    },
    {
      "id": 268,
      "subcategories": [
        {
          "id": 26,
          "title": "Entrepreneurship",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/entrepreneurship/"
        },
        {
          "id": 28,
          "title": "Communication",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/communications/"
        },
        {
          "id": 30,
          "title": "Management",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/management/"
        },
        {
          "id": 32,
          "title": "Sales",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/sales/"
        },
        {
          "id": 34,
          "title": "Business Strategy",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/strategy/"
        },
        {
          "id": 36,
          "title": "Operations",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/operations/"
        },
        {
          "id": 38,
          "title": "Project Management",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/project-management/"
        },
        {
          "id": 40,
          "title": "Business Law",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/business-law/"
        },
        {
          "id": 44,
          "title": "Business Analytics & Intelligence",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/analytics-and-intelligence/"
        },
        {
          "id": 48,
          "title": "Human Resources",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/human-resources/"
        },
        {
          "id": 50,
          "title": "Industry",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/industry/"
        },
        {
          "id": 354,
          "title": "E-Commerce",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/e-commerce/"
        },
        {
          "id": 52,
          "title": "Media",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/media/"
        },
        {
          "id": 58,
          "title": "Real Estate",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/real-estate/"
        },
        {
          "id": 60,
          "title": "Other Business",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/business/other-business/"
        }
      ],
      "title": "Business",
      "type": "category",
      "url": "https://www.udemy.com/courses/business/"
    },
    {
      "id": 328,
      "subcategories": [
        {
          "id": 530,
          "title": "Accounting & Bookkeeping",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/accounting-bookkeeping/"
        },
        {
          "id": 532,
          "title": "Compliance",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/compliance/"
        },
        {
          "id": 534,
          "title": "Cryptocurrency & Blockchain",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/cryptocurrency-and-blockchain/"
        },
        {
          "id": 536,
          "title": "Economics",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/economics/"
        },
        {
          "id": 540,
          "title": "Finance",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/finance-management/"
        },
        {
          "id": 542,
          "title": "Finance Cert & Exam Prep",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/finance-certification-and-exam-prep/"
        },
        {
          "id": 544,
          "title": "Financial Modeling & Analysis",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/financial-modeling-and-analysis/"
        },
        {
          "id": 546,
          "title": "Investing & Trading",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/investing-and-trading/"
        },
        {
          "id": 548,
          "title": "Money Management Tools",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/money-management-tools/"
        },
        {
          "id": 550,
          "title": "Taxes",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/taxes/"
        },
        {
          "id": 552,
          "title": "Other Finance & Accounting",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/finance-and-accounting/other-finance-and-accounting/"
        }
      ],
      "title": "Finance & Accounting",
      "type": "category",
      "url": "https://www.udemy.com/courses/finance-and-accounting/"
    },
    {
      "id": 294,
      "subcategories": [
        {
          "id": 132,
          "title": "IT Certifications",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/it-and-software/it-certification/"
        },
        {
          "id": 134,
          "title": "Network & Security",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/it-and-software/network-and-security/"
        },
        {
          "id": 136,
          "title": "Hardware",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/it-and-software/hardware/"
        },
        {
          "id": 138,
          "title": "Operating Systems & Servers",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/it-and-software/operating-systems/"
        },
        {
          "id": 140,
          "title": "Other IT & Software",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/it-and-software/other-it-and-software/"
        }
      ],
      "title": "IT & Software",
      "type": "category",
      "url": "https://www.udemy.com/courses/it-and-software/"
    },
    {
      "id": 292,
      "subcategories": [
        {
          "id": 96,
          "title": "Microsoft",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/office-productivity/microsoft/"
        },
        {
          "id": 98,
          "title": "Apple",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/office-productivity/apple/"
        },
        {
          "id": 100,
          "title": "Google",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/office-productivity/google/"
        },
        {
          "id": 102,
          "title": "SAP",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/office-productivity/sap/"
        },
        {
          "id": 106,
          "title": "Oracle",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/office-productivity/oracle/"
        },
        {
          "id": 108,
          "title": "Other Office Productivity",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/office-productivity/other-productivity/"
        }
      ],
      "title": "Office Productivity",
      "type": "category",
      "url": "https://www.udemy.com/courses/office-productivity/"
    },
    {
      "id": 296,
      "subcategories": [
        {
          "id": 142,
          "title": "Personal Transformation",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/personal-transformation/"
        },
        {
          "id": 144,
          "title": "Personal Productivity",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/productivity/"
        },
        {
          "id": 146,
          "title": "Leadership",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/leadership/"
        },
        {
          "id": 150,
          "title": "Career Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/career-development/"
        },
        {
          "id": 152,
          "title": "Parenting & Relationships",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/parenting-and-relationships/"
        },
        {
          "id": 156,
          "title": "Happiness",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/happiness/"
        },
        {
          "id": 577,
          "title": "Esoteric Practices",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/esoteric-practices/"
        },
        {
          "id": 158,
          "title": "Religion & Spirituality",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/religion-and-spirituality/"
        },
        {
          "id": 160,
          "title": "Personal Brand Building",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/personal-brand-building/"
        },
        {
          "id": 164,
          "title": "Creativity",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/creativity/"
        },
        {
          "id": 166,
          "title": "Influence",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/influence/"
        },
        {
          "id": 168,
          "title": "Self Esteem & Confidence",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/self-esteem-and-confidence/"
        },
        {
          "id": 170,
          "title": "Stress Management",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/stress-management/"
        },
        {
          "id": 172,
          "title": "Memory & Study Skills",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/memory/"
        },
        {
          "id": 176,
          "title": "Motivation",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/motivation/"
        },
        {
          "id": 178,
          "title": "Other Personal Development",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/personal-development/other-personal-development/"
        }
      ],
      "title": "Personal Development",
      "type": "category",
      "url": "https://www.udemy.com/courses/personal-development/"
    },
    {
      "id": 269,
      "subcategories": [
        {
          "id": 6,
          "title": "Web Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/web-design/"
        },
        {
          "id": 110,
          "title": "Graphic Design & Illustration",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/graphic-design-and-illustration/"
        },
        {
          "id": 112,
          "title": "Design Tools",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/design-tools/"
        },
        {
          "id": 114,
          "title": "User Experience Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/user-experience/"
        },
        {
          "id": 116,
          "title": "Game Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/game-design/"
        },
        {
          "id": 120,
          "title": "3D & Animation",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/3d-and-animation/"
        },
        {
          "id": 122,
          "title": "Fashion Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/fashion/"
        },
        {
          "id": 124,
          "title": "Architectural Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/architectural-design/"
        },
        {
          "id": 128,
          "title": "Interior Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/interior-design/"
        },
        {
          "id": 130,
          "title": "Other Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/design/other-design/"
        }
      ],
      "title": "Design",
      "type": "category",
      "url": "https://www.udemy.com/courses/design/"
    },
    {
      "id": 290,
      "subcategories": [
        {
          "id": 62,
          "title": "Digital Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/digital-marketing/"
        },
        {
          "id": 64,
          "title": "Search Engine Optimization",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/search-engine-optimization/"
        },
        {
          "id": 66,
          "title": "Social Media Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/social-media-marketing/"
        },
        {
          "id": 68,
          "title": "Branding",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/branding/"
        },
        {
          "id": 70,
          "title": "Marketing Fundamentals",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/marketing-fundamentals/"
        },
        {
          "id": 72,
          "title": "Marketing Analytics & Automation",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/analytics-and-automation/"
        },
        {
          "id": 74,
          "title": "Public Relations",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/public-relations/"
        },
        {
          "id": 76,
          "title": "Paid Advertising",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/advertising/"
        },
        {
          "id": 78,
          "title": "Video & Mobile Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/video-and-mobile-marketing/"
        },
        {
          "id": 80,
          "title": "Content Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/content-marketing/"
        },
        {
          "id": 86,
          "title": "Growth Hacking",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/growth-hacking/"
        },
        {
          "id": 88,
          "title": "Affiliate Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/affiliate-marketing/"
        },
        {
          "id": 90,
          "title": "Product Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/product-marketing/"
        },
        {
          "id": 94,
          "title": "Other Marketing",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/marketing/other-marketing/"
        }
      ],
      "title": "Marketing",
      "type": "category",
      "url": "https://www.udemy.com/courses/marketing/"
    },
    {
      "id": 274,
      "subcategories": [
        {
          "id": 180,
          "title": "Arts & Crafts",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/arts-and-crafts/"
        },
        {
          "id": 184,
          "title": "Beauty & Makeup",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/beauty-and-makeup/"
        },
        {
          "id": 577,
          "title": "Esoteric Practices",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/esoteric-practices/"
        },
        {
          "id": 182,
          "title": "Food & Beverage",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/food-and-beverage/"
        },
        {
          "id": 188,
          "title": "Gaming",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/gaming/"
        },
        {
          "id": 190,
          "title": "Home Improvement & Gardening",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/home-improvement/"
        },
        {
          "id": 192,
          "title": "Pet Care & Training",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/pet-care-and-training/"
        },
        {
          "id": 186,
          "title": "Travel",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/travel/"
        },
        {
          "id": 194,
          "title": "Other Lifestyle",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/lifestyle/other-lifestyle/"
        }
      ],
      "title": "Lifestyle",
      "type": "category",
      "url": "https://www.udemy.com/courses/lifestyle/"
    },
    {
      "id": 273,
      "subcategories": [
        {
          "id": 370,
          "title": "Digital Photography",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/digital-photography/"
        },
        {
          "id": 196,
          "title": "Photography",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/photography-fundamentals/"
        },
        {
          "id": 204,
          "title": "Portrait Photography",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/portraits/"
        },
        {
          "id": 198,
          "title": "Photography Tools",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/photography-tools/"
        },
        {
          "id": 208,
          "title": "Commercial Photography",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/commercial-photography/"
        },
        {
          "id": 218,
          "title": "Video Design",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/video-design/"
        },
        {
          "id": 220,
          "title": "Other Photography & Video",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/photography-and-video/other-photography-and-video/"
        }
      ],
      "title": "Photography & Video",
      "type": "category",
      "url": "https://www.udemy.com/courses/photography-and-video/"
    },
    {
      "id": 276,
      "subcategories": [
        {
          "id": 222,
          "title": "Fitness",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/fitness/"
        },
        {
          "id": 224,
          "title": "General Health",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/general-health/"
        },
        {
          "id": 226,
          "title": "Sports",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/sports/"
        },
        {
          "id": 228,
          "title": "Nutrition & Diet",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/nutrition/"
        },
        {
          "id": 230,
          "title": "Yoga",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/yoga/"
        },
        {
          "id": 232,
          "title": "Mental Health",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/mental-health/"
        },
        {
          "id": 236,
          "title": "Martial Arts & Self Defense",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/self-defense/"
        },
        {
          "id": 238,
          "title": "Safety & First Aid",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/safety-and-first-aid/"
        },
        {
          "id": 240,
          "title": "Dance",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/dance/"
        },
        {
          "id": 242,
          "title": "Meditation",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/meditation/"
        },
        {
          "id": 244,
          "title": "Other Health & Fitness",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/health-and-fitness/other-health-and-fitness/"
        }
      ],
      "title": "Health & Fitness",
      "type": "category",
      "url": "https://www.udemy.com/courses/health-and-fitness/"
    },
    {
      "id": 278,
      "subcategories": [
        {
          "id": 296,
          "title": "Instruments",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/instruments/"
        },
        {
          "id": 298,
          "title": "Music Production",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/production/"
        },
        {
          "id": 300,
          "title": "Music Fundamentals",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/music-fundamentals/"
        },
        {
          "id": 302,
          "title": "Vocal",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/vocal/"
        },
        {
          "id": 304,
          "title": "Music Techniques",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/music-techniques/"
        },
        {
          "id": 306,
          "title": "Music Software",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/music-software/"
        },
        {
          "id": 308,
          "title": "Other Music",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/music/other-music/"
        }
      ],
      "title": "Music",
      "type": "category",
      "url": "https://www.udemy.com/courses/music/"
    },
    {
      "id": 300,
      "subcategories": [
        {
          "id": 366,
          "title": "Engineering",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/engineering/"
        },
        {
          "id": 380,
          "title": "Humanities",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/humanities/"
        },
        {
          "id": 310,
          "title": "Math",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/math/"
        },
        {
          "id": 312,
          "title": "Science",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/science/"
        },
        {
          "id": 523,
          "title": "Online Education",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/online-education/"
        },
        {
          "id": 376,
          "title": "Social Science",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/social-science/"
        },
        {
          "id": 521,
          "title": "Language Learning",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/language/"
        },
        {
          "id": 527,
          "title": "Teacher Training",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/teacher-training/"
        },
        {
          "id": 529,
          "title": "Test Prep",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/test-prep/"
        },
        {
          "id": 525,
          "title": "Other Teaching & Academics",
          "type": "subcategory",
          "url": "https://www.udemy.com/courses/teaching-and-academics/other-teaching-academics/"
        }
      ],
      "title": "Teaching & Academics",
      "type": "category",
      "url": "https://www.udemy.com/courses/teaching-and-academics/"
    }
  ],
  "count": 13,
  "credits_used": 1,
  "fetched_at": "2026-11-19T12:19:42.064Z"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Common questions
### Are any query parameters required?
No. Calling without subcategory_id returns the full top-level category and subcategory tree.

### How do I list topics under a specific subcategory?
Pass the numeric subcategory_id (such as 8 for Web Development) and optionally set limit up to 100.

### Does this endpoint return courses inside each category?
No. It returns taxonomy IDs and titles; pass those IDs to the Udemy Category Courses API to list courses.

### What is the default and maximum limit when using subcategory_id?
limit defaults to 30 and accepts up to 100 topics.

### How do I reduce payload size?
Pass raw=0 to omit bulky raw blocks or specify fields to keep only IDs and titles.

### How fresh is the category taxonomy?
Responses may use a 24-hour cache by default; pass fresh=1 to query live taxonomy data.

## Available implementations
- apish: https://openany.si/udemy/udemy-category-tree-api/e2ec7321-238b-4866-9fd5-d82b47b26496/

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
