LearnDash icon

LearnDash

Interact with the LearnDash LMS REST API

Actions60

Lessons → Get

AI-generated

Summary

Retrieve a single LearnDash lesson by its numeric ID, optionally applying additional query parameters in JSON format to customize the API request.

Inputs

  • Item ID (required) — Numeric ID of the lesson to retrieve.
  • Query Parameters (JSON) — Optional JSON object representing additional query string parameters to include in the request, for advanced filtering or customization.

Output shape

a single lesson record as returned by the LearnDash LMS REST API

Returns one lesson object matching the provided ID. If advanced query parameters are given, they will be included in the API request. Errors occur if the ID is invalid or the lesson does not exist.

Examples

Example 1: Retrieving a lesson by ID without extra query parameters

Set 'Item ID' to the lesson's numeric ID, leave 'Query Parameters (JSON)' empty.

Example 2: Retrieving a lesson with additional filtering

Set 'Item ID' to the lesson's numeric ID, provide a JSON object with query parameters like {"search": "intro"} in 'Query Parameters (JSON)'.

Discussion