Hi everyone! Welcome back to Day 2 of my capstone project at The Data School, where I'm analyzing the streaming catalogs of Paramount+ and HBO Max as part of a portfolio project focused on Skydance Corporation's recent merger.

Yesterday, I began building an iterative macro in Alteryx to retrieve data from the Streaming Availability API. However, I ran into an issue where each iteration was returning the same titles.

Today, I was able to resolve that issue and complete my Alteryx data pipeline!

Fixing My Iterative Macro

My first priority was troubleshooting the iterative macro I had built yesterday.

After reviewing my workflow, I realized that I was attempting to rewrite the entire API URL during each iteration, rather than simply updating the pagination query parameter.

The REGEX formula below shows the correction I made, along with the updated output.

Once corrected, the macro successfully moved through the API's pages, retrieving new titles with each iteration.

In total, I retrieved 4,780 titles across 239 API pages!

I then saved the extracted data to an Alteryx Database (.yxdb) file so I could continue working without repeatedly calling the API.

Below is the simplified Alteryx workflow I used to run the completed macro and retrieve the titles.

Parsing and Preparing My Data

With the data extracted, my next step was transforming the raw JSON into structured tables.

Initially, I planned to handle most of my data transformation in Snowflake. However, as I started working through the nested JSON in Alteryx, I realized there was more preparation involved than I had anticipated.

The API returned information about movies, TV series, genres, cast members, streaming platforms, and available audio and subtitle languages.

Rather than keeping everything in one large dataset, I separated these components into individual tables to reduce duplication and make the data easier to analyze.

This ended up becoming one of the biggest parts of my day, but it gave me a much better understanding of how the data was structured.

Below is part of my Alteryx workflow, where I prepared the data for loading into Snowflake.

Designing My Data Model

As I continued preparing the data, I also began designing the relational model that would connect everything together.

Ultimately, I organized the extracted data into eight tables:

  • 4 Dimension Tables: Descriptive information about titles, genres, people, and streaming platforms.
  • 2 Bridge Tables: Relationships connecting titles to their genres and associated people.
  • 2 Factless Fact Tables: Streaming listings and their available audio and subtitle languages.

A factless fact table was particularly useful for this project because I'm analyzing which titles and streaming options exist, rather than traditional numerical measures like sales or revenue.

With these tables defined, I created an Entity Relationship Diagram (ERD) in draw.io to visualize how the tables will connect in Snowflake.

Connecting Alteryx to Snowflake

With my tables prepared, my final goal for the day was connecting Alteryx to Snowflake.

I installed and configured the Simba Snowflake ODBC Driver, allowing me to connect my Alteryx workflow directly to my Snowflake environment.

After working through the connection setup, I was able to successfully write my first prepared table into Snowflake!

I still have additional tables to load and validate, but getting the connection established was an important milestone for the project.

Looking Ahead

Overall, Day 2 was focused on fixing my API extraction, transforming nested JSON, building my data model, and connecting Alteryx to Snowflake.

I made much more progress on data preparation than I originally expected, and I'm excited to start moving into the analysis and visualization stages.

Tomorrow, my priorities are to finish loading and validating the remaining tables in Snowflake, finalize my initial dashboard sketch, and hopefully begin building my visualizations in Tableau!

Thanks for reading, and stay tuned for Day 3!