passing grabbed info to api, not sure to make ajax get or post request