Aller au contenu
GET /v1/meta

Spec

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/sort-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "data": {
        "name": "Sort API",
        "notes": "Natural sort uses the platform's Unicode collator with numeric ordering. Items missing the sort key are placed last. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/sort",
                "params": {
                    "list": "JSON array or comma/newline list (required)",
                    "mode": "natural|alphabetical|numeric|length (default natural)",
                    "order": "asc|desc",
                    "case_insensitive": "true/false"
                },
                "returns": "the sorted list"
            },
            {
                "path": "/v1/sort-objects",
                "params": {
                    "key": "property to sort by (required)",
                    "json": "array of objects (required)",
                    "mode": "default natural",
                    "order": "asc|desc"
                },
                "returns": "the sorted array of objects"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Sort a list — or an array of objects by a key — using natural (alphanumeric, so file2 comes before file10), alphabetical, numeric or by-length ordering, ascending or descending, with an optional case-insensitive mode. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:39.639Z",
        "request_id": "f6d3d2fc-8080-4040-8345-108239b2b882"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}