Import Intercom Data to Google Sheets

In this guide, we’ll walk through how to pull data from the Intercom API directly into Google Sheets, using the API Connector add-on for Google Sheets. We'll first get an API key from Intercom, and then set up a request to pull in contact and conversation data to your spreadsheet.


Before You Begin

Click here to install the API Connector add-on from the Google Marketplace.

Part 1: Get Your Intercom API Key

  1. While logged into your Intercom account, navigate to the Developer Hub and click New App.
  2. A modal will appear, prompting you for details about your app. You can name it anything, but for this example we'll name it 'Google Sheets'. Leave the 'internal integration' radio button selected, and click Create App.
  3. You'll now see a page containing your Access Token. Copy this to your clipboard as you'll need it in a moment. That's it, you now have access to the Intercom API!

Part 2: Pull Intercom API Data into Sheets

For our first API request, we'll get a list of conversations. Substitute in your API key where it says your_api_key.

  1. Open up Google Sheets and click Extensions > API Connector > Open > Create request.
  2. In the request form enter the following:
    • ApplicationCustom
    • MethodGET
    • Request URL
    • Headers:
      • AuthorizationBearer your_api_key
      • Accept: application/json
  3. Create a new tab and click Set current to use that tab as your data destination.
  4. Name your request and click Run. A moment later you’ll see a list of 150 recent conversations in your Google Sheet:
  5. (Optional) Intercom returns UNIX timestamps in the created_at and other date fields. To convert these to human-readable dates, open API Connector's field editor, click the Add formula button, and choose the "UNIX Seconds to Date" formula.

Part 3: More Example API URLs

The Intercom API provides a lot of different endpoints and functionality. Here are some examples of useful endpoints; check the documentation for the full list.

  • Admins (view other users in your workspace):
  • Companies (list companies):
  • Conversations (List contacts):
  • Counts (counts of users and companies by segment):
  • Data Attributes (attributes used to describe your customer and company models):
  • Events (events belonging to a specific user. Substitute in the retrieved from the /contacts endpoint):
  • Notes (view notes about users):
  • Segments (view your workspace segments):
  • Teams (view teams in your workspace):

Part 4: Handle Filtering

  1. If you are filtering conversations, you can use Intercom's search endpoint as described here. In that case you'd set a POST request to and a POST body like this:{ "query": { "field": "updated_at", "operator": ">", "value": 1560436784 } }
  2. Another method of filtering is through API Connector's visual field editor. Click Edit Fields before you run your request to select fields and set the column order in your sheet.
  3. Both filtering types can be used together. Intercom's native filtering lets you request less data from the server, which speeds up response time from the server. API Connector’s field editor only filters the data once the response has been received, which gives you better control about exactly which data gets displayed and speeds up the process of printing data into the sheet.

Part 5: Handle Pagination

Some Intercom endpoints will return a limited set of data, generally just 10 or 20 records at one time. To retrieve additional data, you can first try appending ?per_page=150 to the end of your URL to bump that up to 150 records (different endpoints have different limits).

To get more than that, you'll need to follow Intercom's instructions for handling pagination. With API Connector, you can run these as separate requests, or loop through pages automatically using pagination handling. Intercom uses different types of pagination depending on the endpoint:

Next page URL pagination

  • API URL: enter your request URL, including per_page=50
  • Pagination type: next page URL
  • Next page path:
  • Run until: choose when to stop fetching data

Cursor pagination

  • API URL:
  • Pagination type: cursor
  • Next token parameter: starting_after
  • Next token path:
  • Run until: choose when to stop fetching data

Cursor body pagination

  • API URL:
  • Pagination type: cursor body
  • Next token parameter: pagination.starting_after
  • Next token path:
  • Run until: choose when to stop fetching data
For cursor body pagination, make sure to include a Content Type header of application/json

Part 6: API Documentation

Official API documentation:

5 thoughts on “Import Intercom Data to Google Sheets”

    • Hi Dimitris, thanks for the message. API Connector prints out data in the order it comes back from the API, so data can switch location if an API sends back different fields between pulls. Typically this happens when a field is empty, such that the API doesn't send it at all, which shifts around all the surrounding data.

      To address, you can add filtering to pull back data that always contains results or you can include a JMESPath expression to fix your fields in place.

      As for IMPORTAPI vs. the sidebar, they process data the same way so I'm not sure yet why you're getting different results. It should be exactly the same. Can you please share your request URLs or your sheet with me so I can take a look?
      Update: you can now use our visual field editor to easily set column order.

  1. For the conversation connection when I run scheduled or manual request don’t finish but they also don’t give an error. It used to work, has something changed?

    • Nothing has changed on this side (or Intercom's side) so I suspect the issue is that you have more conversations to fetch now, and the request is timing out. If you aren't already, can you just fetch new conversations instead of the conversations you already have stored in your sheet? I think the easiest is to set your request to fetch the max (150) records each time it runs, and then use merge mode that data so that any existing records will be updated, and new records will be added.


Leave a Comment

Jump To