This project is to develop the ETL pipeline for Spotify API. Demonstrating the concept of end-to-end solution for analytics use case.
It requires to extract the sources from Spotify Developer through the endpoints of the APIs.
In this case, it comes with Airflow as orchestration tool to properly manage and monitor each stage of the workflow. Troubleshooting is way more convenient at any point.
Ensuring its quality and completeness all the way loaded to the SnowFlake database.
DBT comes into place as transformation tool once the datasets are loaded to snowflake database.
Spotify API End points in this project:
The following chart illustrates each task in the DAG starts from extracting Spotify data, uploading to Snowflake and running transformation by dbt.


The features of Json formatting files are versatility and readability.
To better process the semi-structured data for transformation and further analysis, the module is developed with DFS algorithm traversing over the keys of json object layer by layer.
It enables to automatically generate the unnested schema for json file and also waive the cost of hardcoding schema for each table.
The generator outputs the sql file as this one:
