How to get Mastodon's user ID from Mastodon account (acct, username & server)?


#1

The thing is, you can actually use the /api/v1/accounts/:id API to get detailed information about an account (without authentication), but you cannot do so without knowing the account ID.

You can use WebFinger to get some stats about an account, but Mastodon’s account ID is missing… :thinking:

So when you only know the Mastodon handle, i.e. username & server, how can I get the ID from that?

My actual use case is to just use the data then returned to embed/show the avatar image/icon of the user.