/v1/posts
Posts, sections & rails
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/fence-api/v1/posts" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/fence-api/v1/posts", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/fence-api/v1/posts");
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/fence-api/v1/posts",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Line posts = sections + 1 (a post at each section boundary plus the ends). Add posts for gates and corners.",
"input": {
"length_ft": 100,
"post_spacing_ft": 8,
"rails_per_section": 2
},
"posts": 14,
"rails": 26,
"sections": 13,
"rail_total_length_ft": 208
},
"meta": {
"timestamp": "2026-06-04T01:59:17.940Z",
"request_id": "8543d3e6-7c20-4c98-9377-e6b667f32681"
},
"status": "ok",
"message": "Posts & sections",
"success": true
}