v1 API Documentation

method:

Overview

base URL:https://api.collectiveness.de/v1
release: 1.26.11-r3format: API.YY.M-rN (v1, date, monthly update/release)

rate limiting & quotas

Request body limit is 2 MiB, ratelimited responses return 429 with Retry-After.

tierlimitwindow
general60 req60s
network15 req60s
write / storage5 / 30 req60s / 3600s
headerdescription
X-RateLimit-Limitmaximum requests allowed in the current window
X-RateLimit-Remainingrequests remaining in the current window
X-RateLimit-ResetUnix timestamp (with fractional seconds) when window resets
X-RateLimit-Reset-Afterseconds remaining until the window resets
X-RateLimit-Bucketrate limit bucket identifier
Retry-Afterwhole seconds remaining until the window resets (on 429)

headers, responses & errors

Every response includes X-Request-ID, X-Response-Time, X-Content-Type-Options: nosniff, X-Frame-Options: DENY, Cache-Control: no-store, max-age=0, Referrer-Policy: no-referrer, and Permissions-Policy: geolocation=(), microphone=(), camera=().

Trailing slash paths are permanently redirected with 308 to their canonical path (root is unchanged).

json error
{
  "error": {
    "code": "NOT_FOUND",
    "message": "Resource not found",
    "request_id": "...",
    "status": 404
  },
  "success": false
}

The request_id matches the X-Request-ID response header!

statuscodemeaning
400BAD_REQUESTinvalid parameter(s), malformed JSON or SSRF attempt
401UNAUTHORIZEDmissing or invalid X-Management-Token
403FORBIDDENaction not permitted for the requested resource
404NOT_FOUNDroute, short link, paste, proof ID, or RDAP authority not found
409CONFLICTcustom alias or paste ID is taken
429RATE_LIMIT_EXCEEDEDIP rate limit or concurrency quota exceeded
500INTERNAL_ERRORunexpected internal server error D:
503SERVICE_UNAVAILABLEdependency or database temporarily unavailable
504GATEWAY_TIMEOUTupstream network, DNS, WHOIS, or HTTP probe timed out

caching

Responses are cached in memory and are separate from HTTP caching (responses still send Cache-Control: no-store).

resourceTTL
/stats, /shortener/global-stats, /paste/global-stats15s
/dns/propagation, /ssl, /ssl/inspect30s
/geo, /asn, /country60s
/xmr/*60s
/whois, /rdap/*300s
/dns/{domain}30s-3600s
cached response
{
  "success": true,
  "cached": true,
  "updated_at": 1794336348,
  "data": { ... }
}

updated_at is the Unix epoch timestamp (seconds) when the cached value was populated.

API & Client

GET
returns service information or redirects to unified documentation
GET
#
returns a lightweight liveness check
GET
returns the current service, runtime version, and database status
GET
returns the client public IP address and IP family
GET
text/plain!
returns the client public IP address as plain text
GET
returns client HTTP headers (sensitive auth/cookie headers are omitted)
GET
returns the raw user agent plus parsed browser and OS data
GET
15s
returns global service traffic, error, feature counts, average latency, and uptime

Utilities

GET
returns current UTC time in Unix seconds and ISO 8601 string
GET
returns current timestamp information
GET
converts a given Unix timestamp into a human readable UTC date
GET
generates a standard random UUID v4 string
GET
generates random values (numbers, booleans, colors)
query: ?min=0&max=1000000 | ?decimals=0-15 | ?type=boolean | ?type=color&format=hex|rgb|hsl
GET
generates a cryptographically verifiable coinflip with stored proof ID
GET
verifies a previously stored coin flip result by ID
POST
tests regular expression against provided text (flags: i, m, s | max pattern: 500 chars | max text: 10000 chars)
body: { "pattern": "...", "text": "...", "flags": "ims" }

Encoding & Hashing

POST
encodes input text as Base64
body: { "text": "..." }
POST
decodes Base64 into text (replaces invalid UTF-8 bytes)
body: { "text": "..." }
POST
computes a cryptographic (or non cryptographic) hash of the provided text
body: { "algo": "...", "text": "..." }
algo names are case insensitive and ignore '-' or '_' separators (e.g. SHA_256, sha3-256)
GET
URL-encodes provided text
query: ?text=...
GET
URL-decodes provided text
query: ?text=...
supported hash algorithms (25)

Network

GET
60s
returns GeoIP coordinates, country, region, and ISP data
GET
60s
returns ASN, organization name, and routing prefix
GET
60s
returns the country ISO code and name associated with an IP address
GET
30s-3600s
resolves 13 DNS record types with TTL-clamped caching
query: ?type=A,AAAA,CNAME,MX,NS,TXT,SRV,CAA,PTR,SOA,TLSA,HTTPS,SVCB (comma separated)
GET
validates DNSSEC chain with cryptographic proof (secure, insecure, bogus, indeterminate) and DS/DNSKEY/RRSIG/NSEC records
GET
30s
compares DNS answers across Cloudflare, Google, Quad9, and OpenDNS public resolvers
query: ?type=A
GET
performs reverse PTR lookup for public IPv4/IPv6 addresses (blocks private and reserved IPs)
GET
300s
performs structured RDAP domain lookup via dynamic IANA bootstrap (bootstrap cached 86400s)
max 3 redirects, 512 KiB upstream body limit
GET
300s
performs structured RDAP IPv4/IPv6 prefix lookup via longest prefix IANA bootstrap
max 3 redirects, 512 KiB upstream body limit
GET
300s
performs structured RDAP ASN lookup via IANA bootstrap (e.g. AS13335 or 13335)
max 3 redirects, 512 KiB upstream body limit
GET
300s
performs WHOIS lookup (5s timeout, 128 KiB max, max 3 hops)
GET
checks TCP port connectivity to destination host and port
GET
measures TCP connection latency (3s timeout)
GET
performs HTTP/HTTPS probe and returns status, headers, and metadata (10s timeout, max URL path 4096 chars)
query: ?url=...
GET
performs HTTP/HTTPS request and echoes remote response headers
query: ?url=...
GET
performs pinned HTTP/1.1 trace with timings, optional body sample, and 8-header security audit
query: ?url=...&method=GET&follow_redirects=true&max_redirects=5&include_body_sample=false
POST
performs pinned HTTP/1.1 trace with optional allowlisted custom request headers
body: { "url": "https://collectiveness.de", "method": "GET", "follow_redirects": true, "max_redirects": 5, "include_body_sample": false, "headers": {} }
headers is an optional object of up to 10 safe custom request headers
SSRF protections block private and reserved IPs on every redirect hop
GET
30s
validates and extracts TLS certificate information
GET
30s
inspects full TLS handshake, protocol/cipher/ALPN, timing breakdown, certificate chain, and verification status
query: ?port=443
allowed ports: 443, 465, 587, 853, 993, 995, 8443

Shortener

POST
write
creates a shortened URL and returns management token (omit custom_alias for random 6 char alias, max URL is 2048 bytes)
body: { "url": "...", "custom_alias": "..", "expiration": "1y" }
expiration formats: <N>m, <N>h, <N>d, <N>w, <N>mo, <N>y (e.g. 30m, 1h, 12h, 1d, 7d, 2w, 1mo, 1y), or never
reserved aliases: api, admin, stats, docs, create, edit, delete, assets, favicon.ico, robots.txt, v1, check, resolve
GET
15s
returns /shortener statistics (total created, clicks, active)
GET
checks alias availability before creation
GET
returns destination URL and link metadata as JSON
PATCH
authwrite
updates shortlink destination URL or expiry
body: { "url": "...", "expiration": "..." }
DELETE
authwrite
deletes shortlink permanently
GET
returns link analytics including click counts, browser, and OS
GET
returns the destination URL and increments click counter event

Paste

POST
write
creates a paste and returns management token (random 8 char ID, default language: text, limit: 1 MiB)
body: { "content": "...", "custom_id": "...", "expiration": "30d", "title": "...", "language": ".rs" }
max title: 200 chars | max language: 32 chars
reserved IDs (api, admin, stats, global-stats, docs, create, edit, delete, raw, check) cannot be used as custom_id
expiration formats: <N>m, <N>h, <N>d, <N>w, <N>mo, <N>y, or never
GET
15s
returns /paste statistics (total pastes, views, active)
GET
returns paste content and metadata
GET
text/plain!
returns raw paste content as plain text
HEAD
checks paste existence without recording a view event
PATCH
authwrite
updates paste content, title, language, or expiry
body: { "content": "...", "expiration": "...", "title": "...", "language": "..." }
DELETE
authwrite
deletes paste permanently
GET
returns paste analytics including view count, browser, and OS

XMR

GET
60s
returns network status
GET
60s
returns current blockchain block height
GET
60s
returns current network difficulty
GET
60s
returns network hashrate in H/s
GET
60s
returns recommended fee per byte
GET
60s
returns target block time in seconds
GET
60s
returns current tail emission rate
GET
60s
returns total circulating supply
GET
60s
returns transaction mempool statistics and backlog
GET
60s
returns all time total processed transaction count
GET
60s
returns current exchange prices in USD, EUR, and BTC
GET
60s
returns current exchange price in USD

Examples

request ID and error response
curl -i https://api.collectiveness.de/v1/yo
client IP address
curl https://api.collectiveness.de/v1/ip
SHA-256 hash
curl -X POST https://api.collectiveness.de/v1/hash -H "Content-Type: application/json" -d '{"algo":"sha256","text":"sticks"}'
random hex color
curl 'https://api.collectiveness.de/v1/random?type=color&format=hex'
DNS records
curl 'https://api.collectiveness.de/v1/dns/vimm.net?type=A,AAAA'
HTTP response headers
curl 'https://api.collectiveness.de/v1/http/headers?url=https://vimm.net'
Monero market price
curl https://api.collectiveness.de/v1/xmr/price