Fixed analyze API call