A tool for syncing artist and music data from MusicBrainz to Notion databases. Simply add artist MusicBrainz IDs in a Notion database, and the app will automatically fetch and update their data, including albums and songs.
Find the latest release for your OS here.
-
Duplicate the Notion template to your Notion workspace.
๐ก Keep note of the url of the duplicated page (
cmd/ctrl + L
to copy to clipboard), you will need it when using the app for the first time. -
Set up a Notion integration:
- Create the integration and obtain the Notion API key. Don't forget to grant the permissions to the integration for your newly duplicated page.
-
Run the app.
- You will be prompted for your notion API key and the url of the main page you duplicated.
- โ The first time you run the app, it will download a small part of MusicBrainz dataset so you need around free 10GB in the app's folder. But don't worry, after processing the data, it only take only around 200MB.
-
Discover who is the mystery artist in the template and enjoy your new music database ๐ถ!
First, look up the MusicBrainz IDs (MBIDs) of the artists you want to sync to Notion.
๐ก MBIDs are universal unique identifiers for artists, releases and songs. You can find the MBIDs in the URL of the artist's page:
https://musicbrainz.org/artist/<MBID>
or in thedetails
tab of the artist's page (e.g. here:5b11f4ce-a62d-471e-81fc-a69a8278c7da
).
Once you have the artist IDs, create new pages in the Artist database
and enter the MBIDs in the mbid
field.
๐ก Make sure that the
To update
field is toggled on so that the app knows which artists to sync.
The next time you will run the app, all albums and songs of the artists, as well as all information about the artists themselves will be added to the database ๐!
Configuration is loaded from three sources, from lowest to highest priority:
- Configuration file
- Environment variables
- Command-line arguments
Edit the settings.toml
file to set the database IDs and API keys or personalize your database.
๐ก When you are prompted for the notion API key and the link of the database, the configuration file is automatically updated.
Default settings and settings from the configuration file can be overridden by environment variables.
Environment variables can also be read from the .env
file in the app folder.
You can find more information about available environment variables in the .env
template and the --help
command of the command line app.
If you use the app with the command line, you can also use parameters to add the notion key, database IDS, fanart.tv API key, etc.
Use the --help
command for more information
python src/musicbrainz2notion/main.py --help