/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/percentage-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/percentage-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/percentage-api/v1/meta");
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/percentage-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "Percentage API",
"notes": "Percentage change is relative to the magnitude of `from`. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/of",
"params": {
"value": "required",
"percent": "required"
},
"returns": "percent% of value (15% of 200 = 30)"
},
{
"path": "/v1/what",
"params": {
"part": "required",
"whole": "required"
},
"returns": "what percent part is of whole"
},
{
"path": "/v1/change",
"params": {
"to": "required",
"from": "required"
},
"returns": "percentage change + direction"
},
{
"path": "/v1/apply",
"params": {
"value": "required",
"percent": "required",
"direction": "increase|decrease"
},
"returns": "the value after the change"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Everyday percentage maths: what is X% of Y, what percentage one number is of another, the percentage change between two numbers, and applying a percentage increase or decrease to a value. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-03T01:09:42.423Z",
"request_id": "446436c5-b4c3-47ac-aeeb-318e1eeca1ae"
},
"status": "ok",
"message": "Meta",
"success": true
}