/v1/meta
Spec
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/dotenv-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dotenv-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dotenv-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/dotenv-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"name": "Dotenv API",
"notes": "Single-quoted values are literal (never expanded); double-quoted values interpret escapes and may be expanded. This handles the dotenv format — for INI files with [sections] use an INI API, and for YAML/TOML use those APIs. Nothing is stored.",
"version": "v1",
"endpoints": [
{
"path": "/v1/parse",
"params": {
"env": "the .env file text (required)",
"expand": "expand ${VAR}/$VAR references (default false)"
},
"returns": "the parsed key/value object"
},
{
"path": "/v1/stringify",
"params": {
"json": "an object (JSON) to serialize (required)",
"export": "true to prefix each line with export"
},
"returns": "the .env file text"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Convert between .env (dotenv) files and JSON, both ways. The parse endpoint reads .env text into a clean JSON object — skipping blank lines and # comments, honouring an optional leading export, unquoting single- and double-quoted values (with \\n, \\t and \\\" escapes inside double quotes), stripping inline comments after unquoted values, supporting values that span multiple lines inside quotes, and optionally expanding ${VAR} / $VAR references against earlier variables in the same file. The stringify endpoint turns a JSON object back into a valid .env file, quoting only the values that need it and optionally prefixing each line with export. Pure local, no key."
},
"meta": {
"timestamp": "2026-06-03T17:42:21.973Z",
"request_id": "1a39317e-69ec-4e45-bdbc-b3bbbb1bd5a2"
},
"status": "ok",
"message": "Meta",
"success": true
}