/v1/posts
Posts, sections & rails
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/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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}