EMS-UGC API Docs
Students

Student Report

Student Reports & Analytics APIs

Base URL: http://192.168.100.250/

List / Filter Form (page load)

GET {{baseUrl}}/reports/student

No extra API call — all filter data rendered server-side into HTML.

Get Programs (on Faculty/Level change)

GET {{baseUrl}}/getProgram?faculty_id={{facultyId}}&level_id={{levelId}}

Response: HTML <option> strings

Get Semesters (on Program change)

GET {{baseUrl}}/getSemester?program_id={{programId}}

Response: HTML <option> strings

Nepal Location Data (on page load)

GET {{baseUrl}}/nepal_location.json

Response: JSON — cascading Province → District → Municipality

Generate Report

POST {{baseUrl}}/reports/student/generate
Content-Type: application/x-www-form-urlencoded
{
  "_token": "{{csrfToken}}",
  "report_type": "a|b|c|d|e|f|g|h|i|j|k|l|m",
  "academic_year_id": "{{academicYearId}}",
  "faculty_id": "{{facultyId}}",
  "level_id": "{{levelId}}",
  "program_id": "{{programId}}",
  "program_semester_id": "{{semesterId}}",
  "gender": "all|male|female|other",
  "ethnicity": "{{ethnicity}}",
  "province": "{{province}}",
  "district": "{{district}}",
  "local_level": "{{localLevel}}"
}

report_type values:

TypeReport
aStudent Enrollment Detail Report
bTotal Students by Faculty and Gender
cTotal Students by Faculty and Ethnicity
dTotal Students by Level and Gender
eTotal Students by Program and Gender
fTotal Students by Program, Ethnicity and Gender
gTotal Students by District, Ethnicity and Gender
hTotal Students by Province, Ethnicity and Gender
iTotal Students by Faculty, Level, Program and Local Level
jTotal Students by Age Group
kTotal Students by Level, Faculty and Program
lSemester-wise Student Enrollment Report
mAcademic Year and Semester Combined Report

Response: Full HTML page with report table/chart (not JSON). Standard form submit, not AJAX.

On this page