Naar de inhoud
GET /v1/community

One community in full by name or id, with moderators

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/piefed-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/piefed-api/v1/community" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/piefed-api/v1/community", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/piefed-api/v1/community");
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/piefed-api/v1/community",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "id": 5803,
        "url": "https://piefed.social/c/technology",
        "name": "technology",
        "nsfw": false,
        "posts": 1624,
        "title": "Technology",
        "source": "PieFed",
        "comments": null,
        "instance": "piefed.social",
        "published": "2025-05-24",
        "moderators": [
            "rimu"
        ],
        "description": "Tech related news and discussion. Link to anything, it doesn't need to be a news article.  \r\n\r\nLet's keep the politics and business side of things to a minimum.  \r\n\r\n## Rules  \r\n\r\nNo memes",
        "subscribers": 2638,
        "active_users_month": null
    },
    "meta": {
        "timestamp": "2026-06-13T14:04:31.692Z",
        "request_id": "c3e2f214-71fc-4337-bfa9-5451b58835f0"
    },
    "status": "ok",
    "message": "Community retrieved successfully",
    "success": true
}