Thrive in '25: Sign up now and lock in the price of $7/user/month forever!

How To Export Your Calendly Contacts To CSV

cover.jpg

Currently, Calendly lacks a direct, streamlined method for exporting all client data. However, you can achieve this by downloading a CSV file through the following steps:

  1. Log into Calendy
  2. Open the Developer Tools Console in your browser by right-clicking on a page element and selecting “Inspect”
  3. Click the “Console” tab
  4. Paste the code snippet below into the console window
  5. Hit enter
async function getCalendlyContacts() {
    const url = 'https://calendly.com/api/dashboard/contacts/?contact[favorite]=false';
  
    try {
      const response = await fetch(url);
      if (!response.ok) {
        throw new Error(`HTTP error! status: ${response.status}`);
      }
      const data = await response.json();
  
      if (data && data.contacts && Array.isArray(data.contacts)) {
        let outputText = '';
        data.contacts.forEach(contact => {
          if (contact.email && contact.name) {
            outputText += `${contact.name}, ${contact.email}\n`;
          }
        });
  
        downloadContacts(outputText, 'contacts.csv');
  
      } else {
        console.error('Invalid JSON structure or missing contacts.');
      }
    } catch (error) {
      console.error('Error fetching or processing data:', error);
    }
  }
  
  function downloadContacts(text, filename) {
    const element = document.createElement('a');
    element.setAttribute('href', 'data:text/plain;charset=utf-8,' + encodeURIComponent(text));
    element.setAttribute('download', filename);
    element.style.display = 'none';
    document.body.appendChild(element);
    element.click();
    document.body.removeChild(element);
  }
  
  getCalendlyContacts();

It’s important to understand that this code is susceptible to breakage if Calendly updates its underlying syntax.