changed api url to request json