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/glob-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/glob-api/v1/meta" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/glob-api/v1/meta", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/glob-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/glob-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": "Glob API",
        "notes": "** crosses path separators; * does not. Use matchBase=true to match a bare *.js against any depth. Nothing is stored.",
        "version": "v1",
        "endpoints": [
            {
                "path": "/v1/match",
                "params": {
                    "dot": "bool (match leading dot)",
                    "path": "the path (required)",
                    "nocase": "bool",
                    "pattern": "glob pattern (required)",
                    "matchBase": "bool (match basename)"
                },
                "returns": "whether the path matches"
            },
            {
                "path": "/v1/filter",
                "params": {
                    "paths": "comma/newline list or JSON array (required)",
                    "pattern": "glob (required)",
                    "nocase/dot/matchBase": "options"
                },
                "returns": "the subset of paths that match"
            },
            {
                "path": "/v1/meta",
                "params": [],
                "returns": "this document"
            }
        ],
        "description": "Match file paths against glob patterns the way .gitignore, CI path filters and shells do — *, **, ?, [..] character classes, {a,b} brace expansion and extglobs — powered by minimatch. Test one path or filter a list. Pure local, no key."
    },
    "meta": {
        "timestamp": "2026-06-03T01:09:46.927Z",
        "request_id": "8e4633b4-679d-4acf-8a5c-fc8d390938c2"
    },
    "status": "ok",
    "message": "Meta",
    "success": true
}