Ir al contenido
GET /v1/posts

Posts, sections & rails

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/fence-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}