/v1/site
Instance info
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/lemmy-api/v1/site" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/lemmy-api/v1/site", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/lemmy-api/v1/site");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/lemmy-api/v1/site",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"admins": [
{
"counts": {
"person_id": 2,
"post_count": 128,
"comment_count": 992
},
"person": {
"id": 2,
"bio": "Admin of a lot of fediverse servers.\nSee my accounts on [Keyoxide](https://keyoxide.world/hkp/0BCE3A7061CF0D42952A3A985CB7103EFB4C95CF)\n\nI receive a lot of messages, direct and mentions. I can't reply to them all.\nIf you have an issue, please e-mail at [email protected]",
"name": "ruud",
"local": true,
"avatar": "https://lemmy.world/pictrs/image/2f75baeb-34c1-4a8b-8d1e-bc0a52b47a62.png",
"banned": false,
"banner": "https://lemmy.world/pictrs/image/2cddd018-5a89-4427-963a-025594190857.png",
"deleted": false,
"actor_id": "https://lemmy.world/u/ruud",
"published": "2023-06-01T07:01:45.388375Z",
"bot_account": false,
"instance_id": 1,
"display_name": "Ruud",
"matrix_user_id": "@ruud:lemmy.world"
},
"is_admin": true
},
{
"counts": {
"person_id": 122582,
"post_count": 77,
"comment_count": 66
},
"person": {
"id": 122582,
"bio": "[](https://mastodon.world/@LemmyWorld)\n\n# Outages 🔥\n## https://status.lemmy.world\n---\n💓 https://fedihosting.foundation\n\naspe:keyoxide.org:EFWMPEN4N66VBK5WGFM5FOZXXQ",
"name": "lwadmin",
"local": true,
"avatar": "https://lemmy.world/pictrs/image/a23e1c40-a5e6-4b8c-ad42-72ff8ca274d4.png",
"banned": false,
"banner": "https://lemmy.world/pictrs/image/a4eff995-66fe-4c0d-ac0d-40b4a912a4aa.webp",
"deleted": false,
"actor_id": "https://lemmy.world/u/lwadmin",
"published": "2023-06-14T21:04:29.419798Z",
"bot_account": false,
"instance_id": 1
},
"is_admin": true
},
{
"counts": {
"person_id": 336609,
"post_count": 142,
"comment_count": 2061
},
"person": {
"id": 336609,
"bio": "I am Rooki Cookie. I am a programmer and i try to help everyone :)\n\n",
"name": "Rooki",
…