/v1/meta
Spec
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode snippets
curl "https://api.oanor.com/duration-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/duration-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/duration-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/duration-api/v1/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Example response
A real response from this endpoint, captured by the latest health check.
{
"data": {
"name": "Duration API",
"notes": "Years and months use calendar averages for total_seconds (flagged via `approximate`); /between is exact from the real timestamps.",
"version": "v1",
"endpoints": [
{
"path": "/v1/parse",
"params": {
"duration": "ISO-8601 duration, e.g. P3Y6M4DT12H30M5S (required)"
},
"returns": "components, total_seconds, humanized"
},
{
"path": "/v1/format",
"params": {
"seconds": "number, OR",
"years_months_weeks_days_hours_minutes_seconds": "individual fields"
},
"returns": "ISO-8601 string + components"
},
{
"path": "/v1/humanize",
"params": {
"duration": "ISO-8601 string, OR seconds: number"
},
"returns": "human-readable text"
},
{
"path": "/v1/between",
"params": {
"end": "ISO date or unix ts (required)",
"start": "ISO date or unix ts (required)"
},
"returns": "exact duration between two instants"
},
{
"path": "/v1/meta",
"params": [],
"returns": "this document"
}
],
"description": "Parse, format, humanize and measure ISO-8601 durations (PnYnMnDTnHnMnS). Pure local, no key."
},
"meta": {
"timestamp": "2026-06-02T16:51:50.396Z",
"request_id": "23c4d99e-63d7-4763-a61a-03ba51fa6415"
},
"status": "ok",
"message": "Meta",
"success": true
}