/v1/search
Search communities, posts or users
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/search" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/piefed-api/v1/search", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/piefed-api/v1/search");
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/search",
headers={"x-oanor-key": "oanor_test_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo health check.
{
"data": {
"type": "communities",
"count": 20,
"query": "linux",
"source": "PieFed",
"results": [
{
"id": 232,
"name": "linux",
"nsfw": false,
"posts": 6085,
"title": "Linux",
"comments": null,
"published": "2019-06-01",
"subscribers": 2295,
"active_users_month": null
},
{
"id": 2291,
"name": "linux",
"nsfw": false,
"posts": 709,
"title": "FediLUG Italia - il Linux User Group ufficiale del fediverso",
"comments": null,
"published": "2024-12-15",
"subscribers": 21,
"active_users_month": null
},
{
"id": 268,
"name": "linuxmemes",
"nsfw": false,
"posts": 300,
"title": "linuxmemes",
"comments": null,
"published": "2023-06-15",
"subscribers": 1824,
"active_users_month": null
},
{
"id": 1522,
"name": "archlinux",
"nsfw": false,
"posts": 126,
"title": "Arch Linux",
"comments": null,
"published": "2020-01-18",
"subscribers": 93,
"active_users_month": null
},
{
"id": 4936,
"name": "linux",
"nsfw": false,
"posts": 170,
"title": "Linux",
"comments": null,
"published": "2024-06-22",
"subscribers": 57,
"active_users_month": null
},
{
"id": 9416,
"name": "arch",
"nsfw": false,
"posts": 24,
"title": "Arch Linux",
"comments": null,
"published": "2024-02-13",
"subscribers": 9,
"active_users_month": null
},
{
"id": 4700,
"name": "gnulinuxitalia",
"nsfw": false,
"posts": 504,
"title": "GNU/Linux Italia",
"comments": null,
"published": "2023-02-28",
"subscribers": 19,
"active_users_month": null
},
{
"id": 94,
"name": "linux_gaming",
"nsfw": false,
"posts": 2013,
"title": "Linux Gaming",
"comments": null,
"published": "2023-06-14",
"subscribers": 1175,
"active_users_month": null
},
{
…