/v1/communities
Communities ranked, with counts
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
…