Today is the first day of DSNY13's final week of training! This week we're working on a capstone project. We have to choose a data source, create a pipeline, then produce 2 dashboards to present at the end of the week.

One requirement was to input data from an API using Alteryx, and today I was focused on doing this. I chose to work with music data, choosing 5 artists who are popular and current (and some who are a personal choice) to simulate an artist management business who wants to see how their artists are performing, if they're on tour, new release performance, etc.

The Artists

  • Bruno Mars
  • Mac DeMarco
  • Kendrick Lamar
  • Sabrina Carpenter
  • Daniel Caesar

The APIs

The APIs I used to gather data on these artists are setlist.fm and MusicBrainz. I chose these 2 data sources since MusicBrainz has an artist id (MBID) that is the same ID used in setlist.fm's API to access artist setlists. This is the key that the 2 datasets will be joined on.

Alteryx Workflow

My setlist.fm API workflow is finished, and here's what it looks like:

The workflow for MusicBrainz is currently in progress because of some issues I've ran into with pulling the data.

Challenges

  1. Throttling

I've had to be super careful to not overload the API with calls since I've had a bunch of 429 or 503 errors, meaning I've made too many requests. The throttle step in Alteryx helps to mitigate this, but trades it off with longer time to pull the data.

This set me back a bit because of several API calls I've had to do when data was not coming in right or I had bad requests.

  1. Not pulling in enough data (with MusicBrainz API)

I had an issue where I wasn't getting the amount of rows I was supposed to from this API, and it was because the JSON inside each cell was too long and was being truncated. Below you can see the rows I got vs. the rows of artist releases I should be getting. I'm currently working on a fix, and it involves making two separate API for albums and actual songs separately.

Next Steps

  1. Work on a fix for this API and finish outputting data
  2. Then work on creating the SQL DDL/DML to clean the data and input into Snowflake