quick Mastodon question: is there an easy way for a user to get their account ID? The long string of numbers?

I have toot installed so I can simply do, e. g., `toot whois account@mastodon.example.com` and it prints it out, but is there a way to find it in the web interface?

Update: nvm found it it's `https://<server>/api/v1/accounts/lookup?acct=<username>`

#MastoHelp #MastoAdmin

also, for #curl / #bash aficionados: how do I actually DO this, like in a script

docs.joinmastodon.org/api/guid

(I'm trying to get a list of all the people I follow, via the Mastodon API, but of course it paginates. I can get the "next" link with some gnarly-looking `curl -D` and `grep -Po` stuff but do I just, like, do a for loop to repeatedly do it until there isn't any response?)

Follow

@nev while loop; set NEXT to the URL you are curling and then update it each iteration or set it to the empty string when there isn't a continuation link

Sign in to participate in the conversation
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.