LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Lessons → List

AI-generated

Summary

Retrieve a paginated list of LearnDash lessons filtered and sorted according to specified criteria.

Inputs

  • Filters — Optional filters including search term, number of results per page, page number, order (ascending or descending), order by (date, ID, include, menu order, slug, or title), and status (any, draft, pending, private, publish, trash).
  • Query Parameters (JSON) — Optional advanced query parameters as a JSON object for filtering the lessons beyond the common filter fields.

Output shape

A list (array) of lesson objects, each representing a LearnDash lesson matching the specified filters and query parameters.

Results are paginated according to the 'Per Page' and 'Page' filters. The operation returns only matching lessons with fields as provided by the LearnDash LMS REST API endpoint.

Examples

Example 1: List the first 50 published lessons ordered by date ascending with optional filters.

Filters: Status = Publish, Per Page = 50, Page = 1, Order = ASC, Order By = Date

Discussion