NestJS AI EduMiner is a web scraping and AI-assisted service that collects educational content from sources like Khan Academy, PBS LearningMedia, and CK-12. It allows querying by keyword and grade level, with optional OpenAI-based scoring. The system is modular, secure, and includes caching, DTO-based validation, and service health monitoring.
/ping
endpoint to check service health/scrape
Search and scrape educational content from the supported sources.
Name | Type | Description |
---|---|---|
q |
string | Search keyword |
grade |
string | Grade level (K , 1 , 2 , ..., 12 , or all ) |
page |
number | Pagination page number |
allowAIProcessing |
boolean | Whether to apply OpenAI-based relevance scoring |
GET http://localhost:3000/scrape?q=algebra&grade=8&page=1&allowAIProcessing=true
[
{
"title": "Algebra Basics",
"description": "Introductory video on algebra.",
"link": "https://www.khanacademy.org/math/algebra",
"image": "https://cdn.kastatic.org/image.jpg",
"grade": "8",
"type": "video",
"source": "KhanAcademy"
}
]
/ping
Health check endpoint to verify service availability.
GET http://localhost:3000/ping
{
"message": "The server is up and running!"
}