LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Topics → List

AI-generated

Summary

List Topics from LearnDash with optional filters and pagination to retrieve multiple topic items.

Inputs

  • Filters — Optional filtering criteria including search string, pagination (Per Page and Page), order direction (asc or desc), order by fields (date, id, include, menu_order, slug, title), and status (any, draft, pending, private, publish, trash).
  • Query Parameters (JSON) — Optional advanced query string parameters in JSON format to further customize the API request beyond the common filters.

Output shape

a list of topic items

The returned data is a JSON array of topics matching the specified filters and parameters. Pagination is controlled via the 'Per Page' and 'Page' filters. If no filters are set, topics are returned with default pagination and ordering.

Examples

Example 1: List published topics with pagination

Set Status to 'Publish', Per Page to 20, Page to 2 to retrieve the second page of published topics.

Example 2: Search topics by title keyword

Set Search filter to keyword string to find topics matching the search term.

Discussion