 NSAPI can be compared to an earlier protocol named Common Gateway Interface (CGI).Like CGI, NSAPI provides a means of interfacing application software with a web server.Unlike CGI programs, NSAPI plug-ins run inside the server process.