@courseproof/api
v0.1.1
Published
[](https://opensource.org/licenses/MIT)
Maintainers
Readme
@courseproof/api
Express REST API server for CourseProof. Provides HTTP endpoints for certificate verification, batch processing, provider listing, and provider detection.
Exports
| Export | Description |
|--------|-------------|
| createApp(cp) | Creates an Express application with all API routes mounted under /api |
| createCourseProof() | Creates a CourseProof instance pre-loaded with all supported providers |
API Endpoints
| Method | Path | Description |
|--------|------|-------------|
| GET | /api | API index with endpoint listing |
| GET | /api/health | Health check |
| POST | /api/verify | Verify a single certificate URL or credential ID |
| POST | /api/verify/batch | Batch verify multiple URLs |
| GET | /api/providers | List all registered providers |
| GET | /api/providers/:id | Get a specific provider by ID |
| POST | /api/providers/detect | Detect which provider handles a given URL |
Usage
import { createApp, createCourseProof } from "@courseproof/api";
import express from "express";
const cp = createCourseProof();
const app = createApp(cp);
app.listen(3000, () => {
console.log("CourseProof API running on port 3000");
});Supported Providers
The API registers all 38 providers: Coursera, Udemy, edX, AWS, Microsoft Learn, Google Cloud, TryHackMe, freeCodeCamp, NPTEL, Swayam, DataCamp, DeepLearning.AI, Kaggle, HackerRank, Pluralsight, LinkedIn Learning, FutureLearn, Codecademy, HackTheBox, KodeKloud, Linux Foundation, Oracle, Cisco, IBM, Salesforce, Great Learning, Scaler, Coding Ninjas, LeetCode, MongoDB, GitHub Skills, HubSpot, Duolingo, Figma, Canva, UpGrad, Docker, Linux Academy.
Installation
npm install @courseproof/apiLicense
MIT — see LICENSE for details.
Part of the CourseProof monorepo.
