Skip to content
GET /v1/solve

Solve load / effort / parts

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/pulley-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "mode": "solve_segments",
        "note": "Rope parts needed so the effort can raise the load. Rounded up to a whole number of parts.",
        "inputs": {
            "load": 1000,
            "effort": 300,
            "efficiency": 1
        },
        "segments_exact": 3.3333,
        "segments_required": 4
    },
    "meta": {
        "timestamp": "2026-06-04T18:38:28.494Z",
        "request_id": "b17962af-a4f8-420b-bac2-7516b20bdacf"
    },
    "status": "ok",
    "message": "Solve load/effort/segments",
    "success": true
}