Zum Inhalt springen
GET /v1/search

Search communities, posts or users

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/piefed-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
            },
            {
         
…