Since you already have it in one line using many commands separated by ; you can do all in one go.
data
:put ([/tool fetch mode=https output=user url="https://ipinfo.io/ip" as-value ]->"data")
status
:put ([/tool fetch mode=https output=user url="https://ipinfo.io/ip" as-value ]->"status")
For the IP, you get an enter extra using this array method. Not sure how to get rid of it.