itms:// Links
Posted April 29th, 2003 @ 11:42am by Erik J. Barzeski
Bill Bumgarner has figured out how to get direct links to the iTunes Music Store, and they look like this: itms://phobos.apple.com/
WebObjects/MZStore.woa/wa/com.apple.jingle.app.store.DirectAction/
viewAlbum?playlistId=395839.
I wonder how he did that. I want to be able to do that. I want to have my iTunes list on this site link to ITMS search results instead of Google search results. Is this possible? How is this done? Does anyone know? Bill - care to share?
Update: I believe it's been solved. See the expanded update for more…
The answer came from a TrackBack: Fuse isn't a Mac user, but seems to have gotten it.
Essentially, the snippet of code you'll want to use is this (be sure to get rid of the line break when copying):
phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?
Put "itms://" before it and the link will work in iTunes, put "http://" before it and the link will work in Camino (Safari sometimes spits back a malformed XML error).
The tags that are of importance are as follows:
- songTerm - song title
- artistTerm - artist name
- albumTerm - album name
- composerTerm - composer name
- term - all fields1
You can string those together in any order, putting standard '&'s2 between them, such as:
advancedSearchResults?artistTerm=Twain&albumTerm=Up!
or
advancedSearchResults?albumTerm=Up&songTerm=Waiter
Very exciting indeed! I've updated the "now playing" section of the left side of my blog as well as My iTunes list to feature itms:// links.
P.S. I will update with more information as I find it.
1 Thanks Eric Blair (see comments one and two).
2 & changed to & to show up properly on this page. You may need to use & in your URLs to meet the various XHTML specifications and standards. Yes, a simple '&' usually works, but it's usually not correct enough for us really anal types. 🙂
Posted 29 Apr 2003 at 12:06pm #
At least figuring out the protocol name is quite straightforward by looking into iTunes' Info.plist. There you'll see that they also have a itmss protocol (presumably secure?).
And daap is the prefix for sharing music libraries. So I guess you can have people link to your music library. Care to try that later?
I guess a bit of patience and tcpdump might give you the exact paths of the queries iTunes makes... But perhaps Bill has a better way to do it 🙂
Posted 29 Apr 2003 at 12:27pm #
Probably going through a PROXY would reveal more detailed information.
TCPDUMP spews a lot of gibberish if you not used to looking at that information.
Posted 29 Apr 2003 at 1:38pm #
Link to iTunes Music Store items
Link to iTunes Music Store items
Posted 29 Apr 2003 at 2:45pm #
It would be super sweet if you could buy music for someone else at the iTunes store. That way you could post a list of music you want and nice people who like your blog could buy it for you. Kinda like the Amazon 'wishlist'.
Posted 29 Apr 2003 at 3:43pm #
I thought there would be a prominent "Copy Song/Album URL" button or popup menu item, but there's nothing... this is such an important new paradigm, defining a standard way to refer to a song (with 30-sec samples, yet!), you'd think they'd make it easier. Go figure...
Posted 29 Apr 2003 at 5:30pm #
Apple's Music Store
I give two thumbs up to the Apple Music Store because they had a J.J. Johnson album I've been looking...
Posted 29 Apr 2003 at 5:45pm #
itunes store search
NSLog(); - itms:// Links I want to have my iTunes list on this site link to ITMS search results instead of Google search results. Is this possible? How is this done? Ok. despite not actually having a mac I have...
Posted 29 Apr 2003 at 6:03pm #
Try going to that using http:// instead of itms:// . You get an XML document with all the data.
I bet people are, at some point, going to reverse-engineer the protocol, though I don't see anything wrong with iTunes (of course, people could probably then build a free software/open source version usable on other *nixes).
Posted 29 Apr 2003 at 7:38pm #
It looks like
itms://phobos.apple.com/WebObjects/MZSearch.woa/wa/
com.apple.jingle.search.DirectAction/search?term=
will search for all fields for the specified text.
Posted 29 Apr 2003 at 7:57pm #
iTunes 4
Of course I cannot resist making a few comments on the new iTunes and its music store as well,...
Posted 29 Apr 2003 at 8:30pm #
Linking To Apple Music
Thanks to Erik's tips I know have my recent music section link through to the iTunes Music Store. This of...
Posted 29 Apr 2003 at 8:43pm #
ITMS Integration
Following Erik's info I integrated the ITMS with my iTunes weblog service. Clicking the ITMS link will search the ITMS for that song. The only information I changed from his info is using & instead of &…
Posted 29 Apr 2003 at 9:55pm #
This is awesome info guys! Thanks...hope you don't mind if I forwarded tidbits of info and links back here to the MacOSXHints site.
Also - how do you get that great "iTunes Last Played" page with the itms:// links. Thats fantastic. Do tell what you started out with...
Posted 29 Apr 2003 at 10:20pm #
Welcome to the wonderful world of WebObjects and the NeXT legacy...
Posted 29 Apr 2003 at 10:53pm #
Kung-Tunes provides the tracks for me currently, though I'm trying to get Jason to eventually add this stuff to Recent Tunes.
Posted 29 Apr 2003 at 11:39pm #
itms://
Prompted by Bill Bumgarner directly linking to the iTunes Music Store, Erik Barzeski launched an investigation of itms:// linking. With the help of Fuse, it looks like the secret's been cracked. I went back to yesterday's post to add itms...
Posted 30 Apr 2003 at 2:40am #
Linking to the iTunes Music Store
Creating links into the iTunes Music Store
Posted 30 Apr 2003 at 7:00am #
More Music Thoughts
Now that the Mac and the iPod support the AAC format, I'm re-encoding my CD library. The iTunes "auto-import-and-eject" feature makes this task much less daunting than it could be. Casually popping in CDs while I work, I should have...
Posted 30 Apr 2003 at 11:40am #
Hrm, just looked 5 minutes at the xml output and it seems that there's no trace of the album cover art url. I presume they are not stored in iTunes itself for many practical reasons (hehe) but I can't find where.. Post if you have any clue about this..
Posted 30 Apr 2003 at 1:53pm #
I haven't used Kung-Tunes before. Looking at the docs it seems pretty straightforward. That being said... Would you mind sharing your method?
Posted 30 Apr 2003 at 3:27pm #
MattBrink, all covered right here on this very same blog.
Might I recommend trying http://nslog.com/Kung-Tunes next time?
Posted 30 Apr 2003 at 3:39pm #
So this reveals source code but doesn't help mac OS 9 folks (like me), access the store , right?
Posted 30 Apr 2003 at 3:50pm #
Mathieu, the image cover URL seems to be included in the XML output for the sample link at the top of this page, if you use the XPath expression:
/Document/ScrollView/MatrixView/MatrixView/PictureView/@url
You end up with the URL to a 170x170 image.
This works when I run a small XSLT client-side transform in IE6 on Windows, so they don't even block non-iTunes user-agents… But I don't have a Mac, so I don't know if this is the album cover art that iTunes uses/you are talking about…
Posted 30 Apr 2003 at 4:29pm #
What's "Mac OS 9"? 🙂
Posted 30 Apr 2003 at 4:56pm #
Thank you Ingve. 🙂
Posted 30 Apr 2003 at 6:25pm #
linking to the apple music store
thanks to a couple hardworking guys (bill bumgarner and fuse), here's an easy way to link directly to the itunes store. http://phobos.apple.com/ WebObjects/MZSearch.woa/ wa/advancedSearchResults there are several variables that are passed to it, these ar...
Posted 30 Apr 2003 at 11:32pm #
More on iTunes4
Blogspace is certainly abuzz about iTunes4 and the Music Store. This article nicely summarizes how URLs to specific parts of of the Music Store are structured. If you want to see what the URL delivers, just change the "itms" to...
Posted 01 May 2003 at 9:39am #
A lot of people's near-instantaneous reaction to the iTunes Music Store may be somewhat negative - a list of things they want, should be improved,...
Posted 01 May 2003 at 2:40pm #
I think term needs to be used in conjunction with /search?, not /advancedSearchResults?.
<gratuitous plug>Later in the evening, I'll update iTunes Music Glossary to take into account the changes you've made.</gratuitous plug>
Posted 01 May 2003 at 3:21pm #
There's a larger cover image in the preview (AAC) file itself. You could extract it using jpegextracor for example.
Posted 01 May 2003 at 9:44pm #
iTunes Music Glossary 1.1
Based on some more information posted to Erik Barzeski's weblog about itms:// URLs, I've updated iTunes Music Generator to version 1.1. The changes are as follows: Automatically insert "&" between search terms when necessary. Added glossary en...
Posted 02 May 2003 at 12:57am #
Linking to the iTunes Music Store
Excellent tip that I'm saving here for future use: how to create a website link that performs a search on the iTunes Music Store.
Posted 02 May 2003 at 7:40am #
itms:// - Links zum neuen Music Store
Auch wenn man über den neuen iTunes Music Store in Deutschland noch nicht einkaufen kann, so ist es doch möglich darin zu stöbern und sich Previews anzuhören, wovon ich auch schon öfters Gebrauch gemacht habe. Nun, wäre es...
Posted 03 May 2003 at 3:12pm #
iTounes
Je suis un peu en retard sur le scoop ici. Apple a fait des choses qui ont fait beaucoup jaser...
Posted 04 May 2003 at 4:53pm #
I've made a small PHP script that retrieve almost every album CD cover art for the ones who *accidently* downloaded mp3s BEFORE Apple released their Music Store.. hehhe I'm saying almost every album cover because the script is very simple and I had no time to give it more power than loading the first cover that show up in the xml file. I'm currently working on a similar cocoa app but wth amazon request to expand the search (Apple store only have about 200K songs for now)
You can try it here.
Posted 12 May 2003 at 3:42pm #
Is it just me, or is the data now returned encrypted, not in readable XML?
For instance, http://phobos.apple.com/WebObjects/MZSearch.woa/wa/advancedSearchResults?songTerm=clocks
I tried this out with curl -I, and I got this header.
HTTP/1.1 200 Apple
Date: Mon, 12 May 2003 19:39:40 GMT
Content-Length: 3088
Content-Type: text/xml; charset=iso-8859-1
Cache-Control: no-transform
Server: Apache/1.3.27 (Darwin)
content-encoding: gzip, x-aes-cbc
x-apple-max-age: 3600
x-apple-crypto-iv: 5425ece425984e1d6b151049f7146c4a
x-apple-protocol-key: 2
x-apple-asset-version: 186
x-apple-application-instance: 6
Via: 1.1 netcache03 (NetCache NetApp/5.2.1R2D2)
So, is Apple trying to prevent ITMS from being used as a useful service?
Posted 13 May 2003 at 7:39am #
Seems to me that you're correct - and that it's now encrypted. Hrmph.
Posted 07 Jun 2003 at 4:56am #
Linking to the iTunes Music Store
Excellent tip that I'm saving here for future use: how to create a website link that performs a search on the iTunes Music Store.
Posted 28 Oct 2003 at 10:38am #
iTune-ifying The New Jazz Thing - Can iTunes Keep Up?
Can we help iTunes keep up with The New Jazz Thing? Let's see how much of what I played on the Live show last week is available at the iTunes Music Store.
Posted 24 Nov 2003 at 4:07pm #
Hi all,
Don't know if anyone is interested but I've created a Java client called jTunes that performs similar functions as Kung-Tunes. I haven't slapped a nice GUI onto it yet (ever?) but it picks up the latest song played in iTunes (tested on Windows XP only) and sends a blog trackback to a Moveable type server. If you are interested in the code I can make it available.
-matt
Posted 06 Feb 2004 at 9:39pm #
I was able to incorporate this into a project I was working on...
Thanks for all the great help... If anyone wants a perl script that looks at Pictures or MP3s and shows the information then lets you get the Mp3 from ITMS take a look at this;
http://bich.bounceme.net/cgi-bin/photo/index.cgi
Posted 31 Mar 2004 at 1:41am #
Personal iTunes
Whipped up a test iTunes page. Unfortunately Apple now encrypts the connection with AES128, and their xml syntax seems non-standard. At the moment the only freely available iTunes SDK is for the visualizer; any others are supposedly for hardware develo...
Posted 03 Apr 2004 at 11:14am #
who'da thunk it?
iTunes 4 and the iTunes Music Store have been public for a week now, and its obviously a success. Over...
Posted 06 Jun 2004 at 12:06am #
ITMS links
I said ask, and Snowball asked. So here's a quick how-to on having ecto (or any other app) write links to the iTunes Music Store.
Posted 04 Sep 2004 at 11:55am #
I use kung tunes to post my current and last 4 itunes playlist to my MT blog as a trackback ping. I want the album name to be a link to the itms album, but the code just will not work.
:o(
Here's what I have:
title=itunes: ^t&url=foo&blog_name=Tim's Reflection Connection&excerpt= ^tAlbum: ^aBy: ^p
^t = title
^p = artist
^a = album
Google searches work fine. Just that itms search causes the script to fail.
Any ideas?
Posted 05 Mar 2005 at 11:16pm #
I thought this entry was great! I used it extensively to build a small webpage that will allow you to search the iTMS from the web. Check it out: http://andymatter.com/php/itms.php.
Posted 09 May 2005 at 11:08pm #
anyone else notice that albumTerm and artistTerm are now broken?
Posted 11 May 2005 at 5:38am #
iTunes 4
Of course I cannot resist making a few comments on the new iTunes and its music store as well, having made a couple of notes on what I find...
Posted 25 Oct 2005 at 10:11am #
Today I attempted to use the Apple iTMS Link Maker to make a search template for LaunchBar and the iTunes Music Store, but that didn't go anywhere. Then I remembered that I had blogged about itms:// links. That post contained...
Posted 04 Mar 2006 at 9:29am #
Contrary to some comments above, this seems to still be working - thanks Eric, this was just what I needed. I've written an AppleScript that grabs all of the data and creates a nice link:
Better iTunes Data Insert.