/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/compost-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/compost-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/compost-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/compost-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"notes": "Carbon/nitrogen as dry-weight %. Target C:N ≈ 25–35:1, moisture ≈ 50–60 %. For material volume (area × depth) use a mulch API; for NPK application rates use a fertilizer API.",
"service": "compost-api",
"endpoints": {
"GET /v1/mix": "Brown:green weight ratio to hit a target C:N from each material's %C and %N.",
"GET /v1/meta": "This document.",
"GET /v1/cn-ratio": "Blended C:N from materials by weight, %C and %N (parallel CSV lists).",
"GET /v1/moisture": "Water to add to reach a target moisture from a current moisture."
},
"description": "Composting maths: blended carbon-to-nitrogen ratio, water for a target moisture, and the brown:green ratio to hit a target C:N."
},
"meta": {
"timestamp": "2026-06-06T15:30:46.046Z",
"request_id": "79d6b56b-f81d-416c-aa81-964dc215f83a"
},
"status": "ok",
"message": "Meta",
"success": true
}