LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Group Courses → List

AI-generated

Summary

Lists all courses assigned to a specified LearnDash group by sending a GET request to the LearnDash REST API endpoint ldlms/v2/groups/{parentId}/courses. Returns an array of course objects, one per n8n output item. Use this to enumerate or synchronize the course membership of a group. The parentId parameter is required and must be the numeric LearnDash group ID. The optional Filters collection provides common query parameters (search, perPage, page, order, orderBy, status) that are mapped to their REST query-string equivalents; the optional Query Parameters (JSON) field accepts a raw JSON object of additional query parameters that is merged with, and overrides, the filter values. Status 'any' is omitted from the request entirely; perPage defaults to 50 and is clamped to 1–100, page defaults to 1. The response items are the course resources returned by the API; the exact fields depend on the LearnDash REST API response.

Inputs

None.

Output shape

array of course objects, e.g. [{ "id": 123, "title": { "rendered": "Course Title" }, ... }]

Each course object in the API response becomes a separate n8n output item. If the API returns a single object (unusual for this list endpoint), it is wrapped into a single-item array.

Discussion