Prompt
How do I show real-time availability from multiple calendars?
Latest observation
Oct 15, 2026
OpenAI APIWeb search: off
To show real-time availability from multiple calendars, you usually want to aggregate availability rather than merge full event details. The best approach depends on whether you’re building this yourself or using an existing scheduling tool.
Common approach
1) Connect each calendar source
Use calendar APIs such as:
- Google Calendar API
- Microsoft Graph Calendar API for Outlook/Office 365
- Apple Calendar usually via CalDAV or through synced accounts
You’ll need OAuth authorization for each user/calendar.
2) Read busy/free times, not full events
For availability, query each calendar for:
- busy blocks
- free/busy status
- optionally event metadata if needed
This is more efficient and privacy-friendly than fetching all event details.
3) Normalize time ranges
Convert all calendars to:
- one timezone
- one common time window
- consistent interval granularity, like 15 or 30 minutes
4) Merge conflicts across calendars
Combine all busy periods into a single timeline:
- overlap busy slots from all connected calendars
- mark a time slot as available only if every required calendar is free
Example:
- Calendar A busy 10:00–11:00
- Calendar B busy 10:30–11:30
- Combined busy = 10:00–11:30
- Available only outside that range
5) Refresh in near real time
To keep availability current:
- use webhooks / push notifications where supported
- otherwise poll on a short interval
- re-query when a user opens the scheduling page
If you need to show availability on a website
Typical UI pattern:
- show a date picker
- show available time slots
- gray out occupied times
- update availability dynamically after each calendar connection or change
Recommended architecture
- Frontend: calendar picker + available slots UI
- Backend:
- stores OAuth tokens securely
- fetches availability from each provider
- computes merged free/busy intervals
- caches results briefly to reduce API calls
Important considerations
- Timezone handling is critical
- Respect rate limits
- Handle recurring events
- Decide whether to include:
- all calendars
- only work calendars
- only calendars with shared availability permissions
- Be careful with privacy and permissions
If you want a simpler solution
Use a scheduling platform with built-in multi-calendar sync, like:
- Calendly
- SavvyCal
- Microsoft Bookings
- Google Appointment Schedules
If you want, I can also give you:
- a technical design
- a sample API flow
- or code for Google + Outlook availability merging