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.

Adam Keys @therealadam