Hello @kartik,
Since you've mentioned Express.js in your tags, use req.query. E.g.
var express = require('express');
var app = express();
app.get('/', function(req, res){
res.send('id: ' + req.query.id);
});
app.listen(3000);
Hope it helps!!
Thank You!!
To know more about Node JS, It's recommended to join Node JS Certification today.