Tutor LMS supports full WordPress REST API and multiple endpoints that you can read to use Tutor LMS resources as HTTP requests in JSON format.
Note: Currently Tutor LMS REST API v1 only provides the read-only capability. It’s a Public API and no authentication is required.
Current Available Endpoints:
Below is a list of read APIs that are ready for serving both native and third-party applications.
Note: In the following URLs “yourwebsiteaddress” refers to your live LMS website address.
Get Course
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/courses?order=desc&orderby=ID&paged=1
Type: get
Parameters: optional
Pagination: true
Get Course Detail By Course ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/course-detail/
Type: get
Parameter: required(number)
Get Course Topics By Course ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/course-topic/
Type: get
Parameter: required (number)
Get Lesson By Topic ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/lesson/
Type: get
Parameter: required(number)
Course Announcements By Course ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/course-annoucement/
Type: get
Parameter: required(number)
Quiz By Topic ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/quiz/
Type: get
Parameter: required(number)
Quiz Questions By Quiz ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/quiz-question-answer/
Type: get
Parameter: required(number)
Author Info By Author ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/author-information/
Type: get
Parameter: required(number)
Course Ratings By Course ID
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/course-rating/
Type: get
Parameter: required(number)
Course By Terms (Category/Tags)
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/course-by-terms
Type: post
Body:
{
"categories":["web"], //array optional
"tags": ["php"] //array optional
}
Course Sorting By Price Asc/Desc
URL: http://yourwebsiteaddress/tutor/wp-json/tutor/v1/course-sorting-by-price?order=desc&page=1
Type: get
Parameter: order (required,string), page(optional,number)
ASC: PRICE LOW TO HIGH
DESC: PRICE HIGH TO LOW