Naar de inhoud
GET /v1/post

A single post in full

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

Voorbeeldrespons

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

{
    "data": {
        "id": 115819,
        "url": "https://x.com/TheNotesOfJosh/status/1791627871519174697",
        "body": null,
        "nsfw": false,
        "score": 355,
        "title": "To my fellow Android custom ROM enthusiasts, I highly advise you uninstall and stop supporting  @projectelixiros",
        "author": "Welp_im_damned",
        "source": "PieFed",
        "upvotes": 359,
        "comments": 32,
        "community": "android",
        "downvotes": 4,
        "published": "2024-05-18T17:41:39.597945Z",
        "community_title": "Android"
    },
    "meta": {
        "timestamp": "2026-06-10T14:02:07.620Z",
        "request_id": "565db3ac-4353-43a6-9fec-c95955cae7db"
    },
    "status": "ok",
    "message": "Post retrieved successfully",
    "success": true
}