Link directly to stations in Apple Music

Generate Apple Music URLs via Apple Music Marketing Tools. Query by song, album, basically anything you can search in the Music.app sidebar.

e.g. WEFUNK radio, long URL: https://tools.applemediaservices.com/station/ra.1461224745?country=us

Purple Current, short URL: https://apple.co/3sCvX8o

Marfa Public radio, 98.9 KMKB: https://apple.co/3sw6LRd

Handy for building Shortcuts to specific stations! Apple still doesn’t provide direct navigation to streams, in the year 2023 🤦‍♂️.


Shortcuts for scripting API integration

If you want to do straight-forward API scripting, Shortcuts + Actions might do the trick.

Shortcuts workflow to fetch and parse a JSON feed

Patterns in play:

  • Fetch URL (Shortcuts built-in)
  • Parse document as feed/JSON/XML
    • (not sure if this is built into Shortcuts or you need Actions to cover all three)
  • Pull out “the stuff” element/attribute (e.g. items, articles, results, etc.) (Shortcuts built-in)
  • Do something on each item.
    • YMMV depending on support in whatever app you’re integrating with.

See also: How I Sync Readwise Highlights to Bear.