Could condense these to 1 function with a param.  May want to put `/api/marketplace` into a static var.