BudgetVec is now in public beta — deploy billion-scale vector search on Cloudflare for $0.015/GB. Get started →

API: Namespace Metadata

Retrieve metadata about a specific namespace.

Endpoint

GET /v1/namespaces/:namespace/metadata

Response

{

"schema": {},

"approx_logical_bytes": 0,

"approx_row_count": 500,

"created_at": "2026-02-26T00:00:00Z",

"updated_at": "2026-02-26T00:00:00Z",

"index": {

"status": "indexing"

},

"performance": {

"cache_hit_ratio": 0.85,

"cache_temperature": "warm",

"server_total_ms": 3,

"query_execution_ms": 1

}

}

Fields

FieldTypeDescription
schemaobjectNamespace schema (reserved for future use)
approx_logical_bytesnumberApproximate total logical size in bytes
approx_row_countnumberApproximate number of rows
created_atstringISO 8601 creation timestamp
index.statusstringIndex status: "empty", "indexing", or "ready"
performanceobjectCache and latency performance info

Example

const meta = await ns.metadata();

console.log(Rows: ${meta.approx_row_count});

console.log(Index: ${meta.index.status});