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 read-only capability. It is a Public API and no authentication is required.
Below is a list of read APIs’ that are ready for serving both native and third-party applications.
Current available ENDPOINTS:
In the following URLs’ “yourwebsiteaddress” refers to your live LMS website address.
Get Course
URL: http://yourwebsiteaddress/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/wp-json/tutor/v1/course-detail/
Type: get
Parameter: required(number)
Get Course Topics By Course ID
URL: http://yourwebsiteaddress/wp-json/tutor/v1/course-topic/
Type: get
Parameter: required (number)
Get Lesson By Topic Id
URL: http://yourwebsiteaddress/wp-json/tutor/v1/lesson/
Type: get
Parameter: required(number)
Course Announcements By Course ID
URL: http://yourwebsiteaddress/wp-json/tutor/v1/course-annoucement/
Type: get
Parameter: required(number)
QUIZ by TOPIC ID
URL: http://yourwebsiteaddress/wp-json/tutor/v1/quiz/
Type: get
Parameter: required(number)
QUIZ QUESTIONS BY QUIZ ID
URL: http://yourwebsiteaddress/wp-json/tutor/v1/quiz-question-answer/
Type: get
Parameter: required(number)
AUTHOR INFO BY AUTHOR ID
URL: http://yourwebsiteaddress/wp-json/tutor/v1/author-information/
Type: get
Parameter: required(number)
COURSE RATINGS BY COURSE ID
URL: http://yourwebsiteaddress/wp-json/tutor/v1/course-rating/
Type: get
Parameter: required(number)
COURSE BY TERMS (CATEGORY/TAGS)
URL: http://yourwebsiteaddress/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/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