Back to Documentation
API Documentation
Introduction
The LearnSphere API allows developers to integrate our platform's functionality into their own applications. Access course data, user progress, and more programmatically.
Getting Started
API Keys
- Sign up for a developer account
- Navigate to Settings → API Keys
- Generate a new API key
- Keep your key secure and never share it publicly
Base URL
https://api.learnsphere.com/v1Authentication
All API requests require authentication using your API key:
Authorization: Bearer YOUR_API_KEY Content-Type: application/json
Endpoints
Get Courses
GET /coursesRetrieve a list of all available courses
{
"courses": [...],
"total": 100,
"page": 1
}Get Course Details
GET /courses/{id}Get detailed information about a specific course
Get User Progress
GET /users/{userId}/progressRetrieve a user's course progress and achievements
Create Enrollment
POST /enrollmentsEnroll a user in a course
Rate Limits
API requests are rate-limited to ensure fair usage:
- Free tier: 100 requests per hour
- Professional tier: 1,000 requests per hour
- Enterprise tier: 10,000 requests per hour
SDKs & Libraries
We provide official SDKs for popular languages:
JavaScript
Python
Node.js
Ruby
PHP
Go
Example Request
curl https://api.learnsphere.com/v1/courses \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json"
Support
Need help with the API?
- Check our API FAQ
- Join our Developer Community
- Contact our API Support Team