API setup to extract profile data