Accessing /api/calendars data from automations


I’m wondering if there is a way to get the future calendar data from automations, such as what /api/calendars endpoint provides?

I could perform some REST requests but it seems a bit counter intuitive to me to use REST to call home assistant from home assistant.