Greetings to the Mp3Tag community.
After using @pone's WS iTunes script(s) for years, I've finally decided to take up scripting and give it a shot
at creating a tool with the functions I wanted. And the main one was the ability for a script that could be
used internationally, i.e. I could somehow define what country the script would query.
This made sense to me, since if there was an artist from a certain country, or if an album had a localized
special edition, I would want to get metadata info from iTunes from that country. There are already WS scripts for several countries, but personally I find them cumbersome. I don't need scripts for 20+ countries if I mainly use just 2 or 3 and seldom use the rest. So that was my starting point.
As this project matured and my skills improved, I have branched into other areas where it would be useful to have control over. Besides countries, this ever-evolving script now supports multiple search criteria for cover images, advisory content filtering, and can call on Apple Music for more data.
Installation
Just download the files to your Mp3Tag '\sources' folder; on Mp3Tag go to Tag Sources > iTunes WS and select the script(s) you want to use or the settings you want to change.
Instructions
Main search:
The "Search by:" box has the following fields:
"Country:" / [US] / various
"Country:" Simply state which country you would like the script to query. Please use correct country codes or a bad request error will be generated. List of available country codes is available here. Check beforehand if iTunes is available in your desired country.
"Language:" / [empty] / en_us / ja_jp
On the iTunes API page is mentioned the possibility of displaying results from a non-English alphabet (e.g Japanese) in English, or displaying search results in Japanese characters from the English alphabet, if provided by the database. For always displaying results in English, this field must have the value en_us; for always displaying results in Japanese, the value must be ja_jp**. Leaving the field blank will display the results in their original language. Other/incorrect values will return a bad request error message.
**Though the ja_jp option exists and is available, I have never had a query whose results were ported to Japanese characters if they were not already the original writing system. Please take note of this if/when using the option.
"Query:" / [empty] / any
Standard query input field; script will load artist and album info if said info is already present in the files. Manual input is also available. For direct results, you can search for a collection ID number (on the link https://music.apple.com/us/album[...]/123456789 the number 123456789 would be the collection ID to put in the query field).
"Limit:" / [50] / various
Input field for setting an upper cap to the initial query results' list. Accepts integer numbers in the [1-200] range; values outside this range will be ignored by the source and a default limit will be enforced, as per the iTunes API guidelines. Preset to the same value to match the API.
Settings menu:
- Query thumbnails: 'disabled' / 100x100px [default] / 250x250px / 600x600px
- Tag data source*: iTunes API [default] / Apple Music Web / '< multiple >'
**query results are always provided by iTunes API
- Cover size*: 100x100px / 600x600px [default] / 1200x1200px / 2000x2000px / 'user-defined'.
**cover size will always depend on the source material. Check this topic for more information.
- Cover image format: jpg [default] / png / webp
- Cover image quality: [default] / 20% / 40% / 60% / 80% / 100% / 'user-defined'.
- Explicit content [default: disabled].
In some cases, to prevent errors, incomplete censored tags may be complemented with explicit information. Check below for more information.
Check this thread for an overview of new features and currently available settings.
This script is intended to be used in tandem with localized versions; as a tool to perform one-off searches of seldom searched countries, instead of having 20+ WS scripts cluttering the Tag Sources menu. You also have improved control over size, quality and format of cover images for your music (besides the tools already provided by Mp3Tag).
So, please enjoy using this script, as much as I enjoyed making it (and leave a like if you want - it would be appreciated).
Thank you.
Current release:
- version 3.71-stable [2025.05.11] (check thread for history of changes)
Known issues:
- JPN - English returns latinized Japanese, not translated.
iTunes is responsible for providing alternative language versions of their data. Their API page states 'English' language results. If you are unhappy with your results, contact Apple.
- Some track names should have additional info with parenthesis, like "(karaoke version)" or "(Instrumental)" but it's not showing in the results.
Enable or disable "Show explicit content" in the settings menu and try again. Besides explicit track/album info, sometimes the source omits parts of tags that are between parenthesis.
- When tagging very large (200+ tracks) albums, I don't get the data for all the tracks.
At the time of this post, iTunes API is limited to 200 entries per album. Apple Music Web is limited to 300 entries per album. Change sources as you need and try again.
Downloads
iTunes WS#371.zip (5.1 KB)
Includes:
- iTunes WS#371_[US] - [English].src (Country preset to United States (US) and Language preset to English)
- iTunes WS#370#settings.settings (required)

" But I can only work with what the API provides. And that's not much.
I've seen it and I'm interested in converting my script to use JSON, but that's a long time from now. Apologies.