In #Fedify 0.2.0, we're adding a lookupObject() function to easily look up remote objects. It takes someone's fediverse handle or the URI of a remote object and returns an Activity Vocabulary object.
https://dahlia.github.io/fedify/manual/vocab/#looking-up-remote-objects