Home
Open Application Programming Interface(API) List

API's List

Below is the list of Web API provided by HRMS.You need to register with HRMS to use API.Your request will be processed by your state administrator.




S.No. API Name Description URL And Parameters
1. State List It will returns list of states along with statename, statecode and state abbreviation. URL: http://BaseURL/API/Values/StatesList

Parameter Description:
-No Parameters-
2. State Wise Department List It will return list of departments of a particular state along with department name and department code URL: http://BaseURL/API/Values/DepartmentsList/StateAbbreviation

Parameter Description:
StateAbbreviation: e.g. UP
3. State Wise Designation List It will return list of designations of a particular state along with designation name and designation code. URL: http://BaseURL/API/Values/DesignationsList/StateAbbreviation

Parameter Description:
StateAbbreviation: e.g. UP
4. Department Wise Office List It will return all the offices of a particular state department wise along with office name , office address, office contact number, office code etc. URL: http://BaseURL/API/Values/DepartmentWiseOffices/StateAbbreviation?Dept=DepartmentCode

Parameter Description:
StateAbbreviation: e.g. UP
Dept: Department Code
5. Department wise vacancy details It will return Vacancy details of a particular state of a particular department along with Vacancy name, no. of posts application fees etc. URL: http://BaseURL/API/Values/DepartmentWiseVaccancy/StateAbbreviation?Dept=DepartmentCode

Parameter Description:
StateAbbreviation: e.g. UP
Dept: Department Code
6. Get employee details. It will return employee detail of a particular state employee code wise such as employee full name, employee father name, employee date of birth etc. URL: http://BaseURL/API/Values/GetEmployeeDetails/StateAbbreviation?EmpCode=EmployeeCode

Parameter Description:
StateAbbreviation: e.g. UP
EmpCode: Employee Code
7. Department wise employees List. It will return list of employees of a particular state department wise along with employee information such as employee full name, employee father name, employee date of birth etc. URL: http://BaseURL/API/Values/DepartmentWiseEmployees/StateAbbreviation?Dept=DepartmentCode

Parameter Description:
StateAbbreviation: e.g. UP
Dept: DepartmentCode
8. Search Employee It will return Employee detail of a particular state. Employee can be searched by his employee code or GpfCpf number or Unique Identification number.It return employee information such as employee full name, employee father name, employee date of birth etc. URL: http://BaseURL/API/Values/SearchEmployee/StateAbbreviation?SearchBy=UID&SearchValue=ParamValue

Parameter Description:
StateAbbreviation: e.g. UP
SearchBy: UID or EMPCODE or GPFCPF
SearchValue: Value of particuler parameter

How To Integrate

To integrate out API with your application is quite simple. You need to pass your registered e-mail and access key separated by : symbol.You can use HttpClient class to send HTTP requests and receive HTTP responses.Below is the sample code to use our Web API:

HttpClient client = new HttpClient(); string authInfo = "Your registered email" + ":" + "Your AccessKey"; authInfo = Convert.ToBase64String(Encoding.Default.GetBytes(authInfo)); client.DefaultRequestHeaders.Authorization = new AuthenticationHeaderValue("Basic", authInfo); // API Base Address client.BaseAddress = new Uri("http://BaseURL/"); // Call appropriate method as per your need. HttpResponseMessage response = client.GetAsync("API/Values/DepartmentsList/StateAbbreviation?Param1=Param1Value&Param2=Param2Value").Result; if (response.IsSuccessStatusCode) { // Get Your Result in JSON format var result = response.Content.ReadAsStringAsync().Result; }

Disclaimer: Manav Sampada, Uttar Pradesh website is being managed by NIC, UP State Centre, Lucknow as HRMS tool for state government departments of UP. The data available on the website is owned by respective department.

Browser Compatibility:This website is best viewed by Internet Explorer 10.x or higher versions, Mozilla Firefox 33.x or higher, Chrome 35.x or higher, or equivalent browser software.