You can write a RESTful web service on your server which takes the arguments like (age,income,etc) and store these arguments to a new variable then use those variable when connecting the government’s website. After that you can use your government’s APIs if there are any, if not: you can write a web scraper for that particular website.
You can check this tutorial for web scraping with Node JS:
1
solved How to fetch data from a website in android app after entering his personal details during registration?