API - GET method returning output with dummy values when submitting form the first time

GET method of API returning output with dummy parameter for the first time, after a user submits the form again then it takes the dynamically added user input. Why is this happening?!