Create API and return JSON results