# fetchCalendars > Discover and fetch remote CalDAV calendar collections for a user principal. ## `fetchCalendars` get all calendars of the passed in CALDAV account ```ts const calendars = await fetchCalendars({ account, headers: { authorization: 'Basic x0C9uFWd9Vz8OwS0DEAtkAlj', }, }); ``` ### Arguments - `account` [DAVAccount](/types/davaccount/) - `headers` request headers - `headersToExclude` array of keys of the headers you want to exclude - `fetchOptions` options to pass to underlying fetch function - `fetch` custom fetch implementation - `props` [CALDAV prop element](https://datatracker.ietf.org/doc/html/rfc4791#section-9.6.4) in [ElementCompact](/types/elementcompact/) form, overriding default props to fetch - `projectedProps` custom props projection object, used as a map to map fetched custom props to values :::note When overriding `props`, `d:resourcetype` and `c:supported-calendar-component-set` are automatically included so calendar discovery continues to work. ::: ### Return Value array of [DAVCalendar](/types/davcalendar/) of the account ### Behavior use `PROPFIND` to get all the basic info about calendars on certain account