Memory Stats
curl --request GET \
--url https://api.memoclaw.com/v1/statsimport requests
url = "https://api.memoclaw.com/v1/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.memoclaw.com/v1/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memoclaw.com/v1/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memoclaw.com/v1/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memoclaw.com/v1/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memoclaw.com/v1/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"total_memories": 123,
"pinned_count": 123,
"never_accessed": 123,
"total_accesses": 123,
"avg_importance": 123,
"oldest_memory": "<string>",
"newest_memory": "<string>",
"by_type": [
{}
],
"by_namespace": [
{}
]
}API Reference
Memory Stats
GET /v1/stats — Get memory usage statistics for your wallet.
GET
/
v1
/
stats
Memory Stats
curl --request GET \
--url https://api.memoclaw.com/v1/statsimport requests
url = "https://api.memoclaw.com/v1/stats"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.memoclaw.com/v1/stats', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.memoclaw.com/v1/stats",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.memoclaw.com/v1/stats"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.memoclaw.com/v1/stats")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.memoclaw.com/v1/stats")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"total_memories": 123,
"pinned_count": 123,
"never_accessed": 123,
"total_accesses": 123,
"avg_importance": 123,
"oldest_memory": "<string>",
"newest_memory": "<string>",
"by_type": [
{}
],
"by_namespace": [
{}
]
}
Price: FREE
Returns aggregate statistics about your stored memories, broken down by type and namespace.
Response (200)
number
Total number of active (non-deleted, non-expired) memories.
number
Number of pinned memories.
number
Memories that have never been recalled.
number
Sum of all access counts across all memories.
number
Average importance score across all memories.
string
ISO 8601 timestamp of the oldest memory.
string
ISO 8601 timestamp of the newest memory.
array
Memory count grouped by type.
array
Memory count grouped by namespace.
Example
curl https://api.memoclaw.com/v1/stats
const response = await fetch("https://api.memoclaw.com/v1/stats");
const data = await response.json();
from memoclaw import MemoClaw
client = MemoClaw()
stats = client.stats()
print(f"Total memories: {stats.total_memories}")
const stats = await client.stats();
console.log(`Total memories: ${stats.total_memories}`);
Response
{
"total_memories": 142,
"pinned_count": 8,
"never_accessed": 23,
"total_accesses": 891,
"avg_importance": 0.64,
"oldest_memory": "2025-06-01T08:00:00Z",
"newest_memory": "2026-02-13T10:30:00Z",
"by_type": [
{ "memory_type": "preference", "count": 45 },
{ "memory_type": "general", "count": 38 },
{ "memory_type": "observation", "count": 25 },
{ "memory_type": "decision", "count": 18 },
{ "memory_type": "project", "count": 12 },
{ "memory_type": "correction", "count": 4 }
],
"by_namespace": [
{ "namespace": "default", "count": 89 },
{ "namespace": "project-memoclaw", "count": 35 },
{ "namespace": "client-acme", "count": 18 }
]
}
⌘I