By Rudderstack Team

How to load data from Trello to Google BigQuery

This post helps you with loading your data from Trello to BigQuery. If you are looking to get analytics-ready data without the manual hassle, you can integrate Trello to BigQuery with RudderStack, so you can focus on what matters, getting value out of your data.

Extract your data from Trello

Trello exposes a very rich API to developers. It is the same API that is used internally to build the web and mobile Trello apps that we all use and love. It is possible to build a completely new application on top of the API using the different components and resources that it exposes, or just use it to pull out data as we plan to do in our case.

The Trello API follows the RESTful principles, and it can be accessed through HTTP. As a RESTful API, interacting with it can be achieved by using tools like CURL or Postman or using HTTP clients for your favorite language or framework. A few suggestions:

Trello also offers an official Javascript client/wrapper for its API, which can be found here. It is also possible to find numerous other unofficial SDKs. All it takes is a quick search on Google or Github.

About Trello

Trello is a collaboration tool that organizes your projects into visual boards. In one glance, Trello tells you what’s being worked on, who’s working on what, and where something is in progress. Trello is simple but flexible enough to organize your boards using any methodology that you like, for example, many people use Trello to run Kanban.

Trello is simple on the surface, but cards have everything you need to get stuff done. You can post comments for instant feedback. Upload your files from Google Drive, Dropbox, Box, and OneDrive. Add checklists, labels, due dates, and more. Notifications make sure you always know when important stuff happens.

It offers a very simple pricing scheme:

  • Free: this first tier might cover the majority of users. You have access to all the basic functionalities that Trello
  • Business Class & Enterprise: Charged per seat and per month. The main difference between the two is the number of teams that are supported. Also, app integration, team overview, increased file size allowed, file encryption, better support, restricted membership, and enterprise-grade security is provided compared to the Free

As more and more teams rely on Trello to run and track their projects, there is valuable data to be pulled from it that can help you to better understand the productivity of your company. For example, by pulling data out from Trello and store it into Google BigQuery, you can calculate numerous metrics about your sprint, like its current burndown rate. Identify projects with problems and figure out potential bottlenecks. This article will find out how we can pull data from Trello to Google BigQuery for further analysis.

Trello API Authentication

The Trello API supports Authentication and Authorization by implementing the OAuth protocol. It’s important to understand that the Authentication Token, obtained through the OAuth workflow execution, gives your application the ability to make calls on behalf of your user from their context. This token grants access to the authenticated user’s boards, lists, cards, and other settings, depending on the permissions you requested in the authenticate method. So you have to handle it with care.

Trello rate limiting

To help prevent strain on Trello’s servers, our API imposes rate limits per API key for all issued tokens. There is a limit of 300 requests per 10 seconds for each API key and no more than 100 requests per 10-second interval for each token. If a request exceeds the limit, Trello will return a 429 error.

Endpoints and available resources

The Trello API exposes a large number of resources together with their associated HTTP endpoints that allow the users to interact with the platform as the web and mobile applications of Trello do. The most important resources are the following:

  • Board: anything related to the boards a user can create and manage in Trello
  • Card: operations about the cards that can be created inside boards
  • Checklist: it allows the creation and manipulation of checklists inside cards
  • Label: operations related to labels that can be created inside cards
  • List: operations on lists
  • Member: operations related to members of a board
  • Notification: operations about the notification system of the platform
  • Organization: manage organizations inside Trello

So, let’s assume that you have a board that helps you track one of your projects. The methodology doesn’t matter at this point. What is important is that you most probably will have cards associated with tasks. These cards are holding the information that you would like to pull, store in a database like Google BigQuery and analyze it further. First, we assume that we know the ID of our board,

  • our board id is 4eea4ffc91e31d1746000046

First, we want to get all the lists that this board includes. To do that, we execute a GET request on the following URL:

https://api.trello.com/1