Skip to content
GET /v1/compatibility

Compatibility

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/biorhythm-api

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

Get an API key

Code snippets

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

Example response

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

{
    "data": {
        "note": "Compatibility (defined heuristic, for fun): for each cycle, (1 + cos(2π·Δdays/period))/2 — 100 % when two people's cycles are perfectly in phase, 0 % when exactly opposite.",
        "inputs": {
            "birthdate1": "2000-01-01",
            "birthdate2": "1998-06-15"
        },
        "days_apart": 565,
        "overall_compatibility": 54.01,
        "physical_compatibility": 4.14,
        "emotional_compatibility": 71.69,
        "intellectual_compatibility": 86.19
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:32.694Z",
        "request_id": "35a81e00-7c02-4f42-9152-d252079cf456"
    },
    "status": "ok",
    "message": "Compatibility",
    "success": true
}