Naar de inhoud
GET /v1/communities

Communities ranked, with counts

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

Voorbeeldrespons

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

{
    "data": {
        "sort": "Active",
        "count": 25,
        "source": "PieFed",
        "communities": [
            {
                "id": 241,
                "name": "privacy",
                "nsfw": false,
                "posts": 3316,
                "title": "Privacy",
                "comments": null,
                "published": "2019-11-15",
                "subscribers": 1909,
                "active_users_month": null
            },
            {
                "id": 864,
                "name": "politicalmemes",
                "nsfw": false,
                "posts": 3516,
                "title": "Political Memes",
                "comments": null,
                "published": "2023-06-09",
                "subscribers": 1582,
                "active_users_month": null
            },
            {
                "id": 828,
                "name": "enoughmuskspam",
                "nsfw": false,
                "posts": 620,
                "title": "Enough Musk Spam",
                "comments": null,
                "published": "2023-06-23",
                "subscribers": 57,
                "active_users_month": null
            },
            {
                "id": 39,
                "name": "politics",
                "nsfw": false,
                "posts": 25509,
                "title": "politics",
                "comments": null,
                "published": "2023-06-09",
                "subscribers": 1011,
                "active_users_month": null
            },
            {
                "id": 81,
                "name": "technology",
                "nsfw": false,
                "posts": 12984,
                "title": "Technology",
                "comments": null,
                "published": "2023-06-11",
                "subscribers": 2664,
                "active_users_month": null
            },
            {
                "id": 14802,
                "name": "shit",
                "nsfw": false,
                "posts": 224,
                "title": "ShitPost",
                "comments": null,
                "published": "2026-04-09",
                "subscribers": 12,
                "active_users_month": null
            },
            {
                "id": 1611,
                "name": "fuck_ai",
                "nsfw": false,
                "posts": 3844,
                "title": "Fuck AI",
                "comments": null,
                "published": "2024-03-13",
                "subscribers": 382,
                "active_users_month": null
            },
            {
                "id": 5511,
                "name": "historymemes",
                "nsfw": false,
                "posts": 3863,
                "title": "History Memes",
                "comments": null,
                "published": "2025-05-15",
                "subscribers": 2606,
                "active_users_month": null
            },
            {
                "id": 402,
                "name": "white
…