I can expand more on how or why to do this if anybody’s interested, but to put it concisely, if $i
is your short TheBrain link, then:
curl -s `curl -Ls -I -w %{url_effective} $i | sed 's#app.thebrain.com#api.thebrain.com/api-v11#'` | jq ".data.attributes.name"
So:
curl -s `curl -Ls -I -w %{url_effective} https://bra.in/9jQg6m | sed 's#app.thebrain.com#api.thebrain.com/api-v11#'` | jq ".data.attributes.name"
gets you "Scuttlebutt (2017)"
.