this post was submitted on 03 Nov 2023
17 points (100.0% liked)

Fediverse

28223 readers
566 users here now

A community to talk about the Fediverse and all it's related services using ActivityPub (Mastodon, Lemmy, KBin, etc).

If you wanted to get help with moderating your own community then head over to [email protected]!

Rules

Learn more at these websites: Join The Fediverse Wiki, Fediverse.info, Wikipedia Page, The Federation Info (Stats), FediDB (Stats), Sub Rehab (Reddit Migration), Search Lemmy

founded 1 year ago
MODERATORS
 

Hi everyone, I have some technical questions regarding federation. Answers backed by documentation would be perfect.

  1. Is there a way to get the list of federated instances of a specific instance?
  2. (Regarding question 1, should this consider active followers between instances? If not actively defederated/blocked, when one account follows another from another instance, the two instances get federated, right?)
  3. Can I get a list of actively blocked/defederated/muted instances?
  4. How does this change between applications? Are for example Lemmy and Mastodon the same?

My goal is to possibly create a graph/network analysis.

Thank you for your help.

you are viewing a single comment's thread
view the rest of the comments
[โ€“] [email protected] 5 points 1 year ago* (last edited 1 year ago) (1 children)

You can see the list of federated instances of each instance at https://example.com/instances

You can also get that data in json format by using https://example.com/api/v3/federated_instances

https://lemmy.readme.io/reference/getfederatedinstances

Mastodon and Lemmy are both using the ActivityPub protocol (Lemmy uses some extensions to federate downvotes and some other actions) to communicate between instances, but the API to interrogate a Mastodon, Lemmy, PixelFed or kbin instance will be different.

[โ€“] [email protected] 2 points 1 year ago

This is exactly what I am looking for. I am interested also in how other federated applications do it. I had a look at Pixelfed's documentation, but they don't seem to have an API for that... Do you know anything about other services?