I'm making a web page where I'm using the select tag for different uses of an API that is in JSON ( link ) and an input to enter the information, how can I do an if in javascript with the values of the select and send a POST to parse the JSON in pure javascript?