Μετάβαση στο περιεχόμενο
GET /v1/string-tension

Tension of one string

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/guitar-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "note": "String tension = unit weight × (2 × scale length × frequency)² ÷ 386.4, with the unit weight (lb/in) from the maker's chart — a .010 plain steel high-E (≈ 0.0000221 lb/in) on a 25.5-inch scale tuned to 329.6 Hz pulls about 16 lb. Match tensions across a set for even feel, and watch the total load when you change gauge or tuning.",
        "inputs": {
            "frequency_hz": 329.63,
            "scale_length_in": 25.5,
            "unit_weight_lb_in": 2.215e-5
        },
        "tension_kg": 7.35,
        "tension_lb": 16.2
    },
    "meta": {
        "timestamp": "2026-06-06T23:54:00.551Z",
        "request_id": "185023d8-92b1-444d-9f22-07d0d5fb60c6"
    },
    "status": "ok",
    "message": "String tension",
    "success": true
}