SearchLink 2.2.3 with Apple Music searches

Most of my free projects are the result of solving my own problems, and often get left behind once I’m not actively using them anymore. Among the ones I’ve used every day for years now is SearchLink. I still consider it the most useful thing I’ve ever written.

The first part of this post is just to announce a new version, 2.2.3. If you’re an experienced SearchLink user, go ahead and download it below. If not, I’d recommend heading to the project page and getting a feel for it first.

SearchLink v2.2.8

Bing Is Dead

Bing is shutting down what I believe to be the last free search API available in December. Given a complete lack of alternatives, the primary search is now done with a DuckDuckGo scrape. In DuckDuckGo, you can append a “” to a search query and it will automatically open the first link. So I’m leveraging that and just grabbing the redirection result.

Amazon Affiliate Link Format

As Amazon changed their format for affiliate links, I had to update both the script and the configuration parameters. If you’re using SearchLink to generate Amazon affiliate links, you’ll need to update your config in ~/.searchlink. The amazon_partner key should now be a string with your shop tag instead of the previous array.

amazon_partner: "brettterpstra-20"

Apple Music

SearchLink can now search Apple Music and generate proper affiliate links. The results are essentially the same as using the !iart, !ialb, etc. iTunes searches, but formatted to search more specifically and output a link conforming to slightly different parameters.

The new searches are:

!amart – Apple Music Artist

!amalb – Apple Music Album

!amsong – Apple Music Song

Cool new thing: You can also add an “e” to the end of Apple Music album or song searches to get an iframe embed of the album: