alltom.com

Using JSON REST APIs in Wolfram Language

I never would have guessed how great Wolfram Language would be for exploring a REST API!

I’ve been using it to access YNAB's API, but I can demonstrate how nice it is with JSONPlaceholder’s example REST API. JSONPlaceholder’s site shows the experience that I’d come to expect from languages that run in a terminal:

article_1.png

But check this out:

article_2.gif

article_3.gif

On the web version of this notebook, that’s a static image, but on my computer in Mathematica, that’s a fully-interactive table!

It gets more sophisticated when there are many rows, like when you fetch all the todos:

article_4.gif

article_5.gif

But wait until you see how it handles nested objects…!

article_6.gif
article_7.gif

article_8.gif

Awesome. I’m definitely reaching for Mathematica first from now on.