Base URL: http://localhost:3001/api
Currently, no authentication is required for API endpoints. In production, implement proper authentication mechanisms.
Check if the API is running.
GET /health
curl http://localhost:3001/healthResponse:
{
"status": "OK",
"message": "Hacktoberfest 2025 API is running! 🎃",
"timestamp": "2025-10-01T12:00:00.000Z",
"version": "1.0.0"
}Get Hacktoberfest statistics.
GET /api/stats
curl http://localhost:3001/api/statsResponse:
{
"totalPRs": 87,
"contributors": 23,
"repositories": 3,
"badges": 45
}Get list of contributors.
GET /api/contributors
curl http://localhost:3001/api/contributorsResponse:
[
{
"id": 1,
"name": "Alice Johnson",
"prs": 5,
"avatar": "👩💻",
"joined": "2025-10-01"
}
]Get list of projects available for contribution.
GET /api/projects
curl http://localhost:3001/api/projectsResponse:
[
{
"id": 1,
"name": "Frontend Dashboard",
"language": "TypeScript",
"difficulty": "Beginner",
"issues": 12,
"description": "React-based dashboard for Hacktoberfest statistics"
}
]All endpoints return appropriate HTTP status codes and error messages:
200- Success404- Not Found500- Internal Server Error
Error Response Format:
{
"error": "Error type",
"message": "Detailed error message"
}