Middleware 4 verify api_key in express Install Execute: npm install --save express-middleware-apikey Use example Before your express methods var expressMiddlewareApikey = require('express-middleware-apikey'); app.use(expressMiddlewareApikey(options.api_keys));