Calling Endpoints API for data