API for poduptime
dmorley opened this issue · 3 comments
share-on-diaspora/trunk/class.php
Line 93 in 332e198
Hi, New API is at https://api.fediverse.observer/ for your projects
@dmorley Thank you for information. Could you please elaborate on this "new API"? How does one retrieve a list of diaspora pods with it?
Try a simple query like
{
nodes {
domain
}
}
@dmorley Thank you very much for your reply. I am absolutely new to GraphQL, so it took me a while to figure out how to send this query from PHP. As of this writing, it works more or less OK on my test installation. "More or less" because there is no filtering (either the API does not support it, or I don't know how to cook it). E.g., this
{nodes (filter: {
"softwarename": "diaspora"
}) {
domain
}
}
does not work. Instead I have to do
{nodes {
domain
softwarename
}
}
which returns 14k entries, when I only need about 500. AFAIK you are the person behind this API, so do you have any plans to add filtering functionality?