Appointment App Calendar

I am making an appointment app. I was wondering if anyone knows a way or if it’s possible to connect a calendar API or use the standard date component to book an appointment but that won’t overlap the appointments. I tried Zapier but Calendly has to be the trigger which won’t work.