/v1/meta
Spec
Δοκιμάστε το ζωντανά
10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.
Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.
Λάβετε ένα κλειδί APIΑποσπάσματα κώδικα
curl "https://api.oanor.com/gradient-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/gradient-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/gradient-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/gradient-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Παράδειγμα απόκρισης
Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.
{
"data": {
"name": "Gradient API",
"notes": "Interpolating in lab/lch/oklab/oklch is perceptually smoother than rgb. Colours accept hex (#rgb, #rrggbb) or CSS names.",
"version": "v1",
"endpoints": [
{
"path": "/v1/scale",
"params": {
"mode": "rgb|lrgb|hsl|hsv|lab|lch|oklab|oklch, default lab",
"steps": "2-256, default 7",
"colors": "comma-separated stops (required)"
},
"returns": "array of N hex colours"
},
{
"path": "/v1/interpolate",
"params": {
"t": "0-1 (required)",
"mode": "colour space, default lab",
"colors": "exactly two stops (required)"
},
"returns": "a single interpolated colour"
},
{
"path": "/v1/css",
"params": {
"type": "linear|radial",
"angle": "degrees (linear, default 90)",
"colors": "comma-separated stops (required)"
},
"returns": "a CSS gradient string + stops"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Generate colour gradients and scales — interpolate between colour stops in a chosen colour space, produce evenly-spaced colour scales, and build ready-to-use CSS gradient strings. Powered by chroma-js. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-02T16:51:48.693Z",
"request_id": "6a3c718b-30a9-473d-a01c-9a943b6371ac"
},
"status": "ok",
"message": "Meta",
"success": true
}