Building Application Programming Interface (API) for Nigerian States Using Modern JavaScript Techniques
Keywords:
RESTful API Software Reusability Web Application Development NoSQL Database Digital Infrastructure NigeriaAbstract
Software development encompasses a wide range of activities aimed at producing
computer programs with functionalities that effectively address user requirements. In
contemporary software engineering, these functionalities are often implemented either
from scratch or through the reuse of existing components via libraries and Application
Programming Interfaces (APIs). APIs play a critical role in modern software ecosystems
by enabling seamless communication between software systems, promoting
interoperability, modularity, scalability, and rapid application development. Developing
web-based applications that rely on information about Nigerian states—such as
demographic, administrative, and geographical data—currently requires developers to
manually search for data from multiple sources and hardcode such information into
applications. This approach is not only time-consuming but also prone to data inaccuracies,
inconsistencies, and maintenance challenges, particularly when updates are required. The
absence of a centralized, reliable, and programmatically accessible data source for
Nigerian state-level information represents a significant gap in the country’s digital
infrastructure. To address this challenge, this paper presents the design and
implementation of a RESTful API for Nigerian states using modern JavaScript-based
technologies. The API is developed with Node.js and the Express.js framework for server
side logic, Mongoose Object Data Modeling (ODM) for schema management, and
MongoDB—a NoSQL database well-suited for handling semi-structured and evolving
datasets. The system delivers requested information in JavaScript Object Notation
(JSON) format, ensuring ease of integration with a wide range of web and mobile
applications. Experimental integration of the proposed API with web-based applications
demonstrates seamless data retrieval with minimal computational overhead, validating its
efficiency and usability. Beyond its technical contribution, the study highlights the need
for institutional support to ensure data accuracy, sustainability, and long-term
maintenance. Collaboration with relevant government agencies, such as the National
Information Technology Development Agency (NITDA), is recommended to
institutionalize the API. Such an initiative would significantly enhance the productivity of
local software developers, foster innovation, and project Nigeria as a digitally compliant
and globally competitive nation.
Downloads
Downloads
Published
Issue
Section
License
Copyright (c) 2026 Journal of Pure and Applied Sciences (Science Forum)

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.


