Public
—
No auth. Anyone can call. CORS gates which origins. Use these from your Netlify sites.
AI & Proxy
—
Local Ollama chat (gemma3 / llama3) and 3rd-party API proxies (weather, HN, Reddit, ipify, DNS). Cached server-side.
App-token
—
Authenticated app-tier endpoints used by signed-in TCG customers and embedded widgets.
Admin
—
Gary-only. Bearer admin token. Includes the new /api/tools/v2/* 50-tool router (network/system/files/web/data).
Quick examples
Get site stats
curl https://api.thatcomputerguy26.org/api/public/stats
Local AI chat
curl -X POST https://api.thatcomputerguy26.org/api/public/ai/ask \
-H "Content-Type: application/json" \
-d '{"prompt":"What is the Indiana lemon law?"}'
Look up an IP
curl https://api.thatcomputerguy26.org/api/proxy/ipgeo/8.8.8.8
DNS-over-HTTPS
curl 'https://api.thatcomputerguy26.org/api/proxy/dns?name=example.com&type=A'
Browser SDK
<script src="https://api.thatcomputerguy26.org/static/tcg-api.js"></script>
<script>TCG.chat({message:"hi"}).then(r => console.log(r.reply))</script>