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/wordwrap-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/wordwrap-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/wordwrap-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/wordwrap-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/wordwrap-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": "Word Wrap API",
        "notes": "Paragraphs are separated by blank lines and preserved. Words longer than the width overflow unless break_long_words is true. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/wrap",
                "params": {
                    "text": "the text (required)",
                    "width": "columns (default 80)",
                    "indent": "leading spaces (default 0)",
                    "break_long_words": "true/false (default false)"
                },
                "returns": "the wrapped text"
            },
            {
                "path": "/v1/unwrap",
                "params": {
                    "text": "wrapped text (required)"
                },
                "returns": "paragraphs joined back into single lines"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Reflow plain text to a fixed column width on word boundaries (preserving paragraphs), with optional indentation and long-word breaking — and unwrap text back into single-line paragraphs. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:41.901Z",
        "request_id": "d321a8e7-59a2-4399-9511-fb3476c019a8"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}