curl + jq + scripting is a powerful combination.