v1 API Documentation
method:
Overview
base URL:
https://api.collectiveness.de/v1rate limiting & quotas
Request body limit is 2 MiB, ratelimited responses return 429 with Retry-After.
| tier | limit | window |
|---|---|---|
| general | 60 req | 60s |
| network | 15 req | 60s |
| write / storage | 5 / 30 req | 60s / 3600s |
| header | description |
|---|---|
X-RateLimit-Limit | maximum requests allowed in the current window |
X-RateLimit-Remaining | requests remaining in the current window |
X-RateLimit-Reset | Unix timestamp (with fractional seconds) when window resets |
X-RateLimit-Reset-After | seconds remaining until the window resets |
X-RateLimit-Bucket | rate limit bucket identifier |
Retry-After | whole 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!
| status | code | meaning |
|---|---|---|
| 400 | BAD_REQUEST | invalid parameter(s), malformed JSON or SSRF attempt |
| 401 | UNAUTHORIZED | missing or invalid X-Management-Token |
| 403 | FORBIDDEN | action not permitted for the requested resource |
| 404 | NOT_FOUND | route, short link, paste, proof ID, or RDAP authority not found |
| 409 | CONFLICT | custom alias or paste ID is taken |
| 429 | RATE_LIMIT_EXCEEDED | IP rate limit or concurrency quota exceeded |
| 500 | INTERNAL_ERROR | unexpected internal server error D: |
| 503 | SERVICE_UNAVAILABLE | dependency or database temporarily unavailable |
| 504 | GATEWAY_TIMEOUT | upstream 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).
| resource | TTL |
|---|---|
/stats, /shortener/global-stats, /paste/global-stats | 15s |
/dns/propagation, /ssl, /ssl/inspect | 30s |
/geo, /asn, /country | 60s |
/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.
HTTP status codes: redirect.collectiveness.de/http-status-codesfound a bug? bug reporting guide >>
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
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
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|hslGET
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
returns GeoIP coordinates, country, region, and ISP data
GET
returns ASN, organization name, and routing prefix
GET
returns the country ISO code and name associated with an IP address
GET
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
compares DNS answers across Cloudflare, Google, Quad9, and OpenDNS public resolvers
query:
?type=AGET
performs reverse PTR lookup for public IPv4/IPv6 addresses (blocks private and reserved IPs)
GET
performs structured RDAP domain lookup via dynamic IANA bootstrap (bootstrap cached 86400s)
max 3 redirects, 512 KiB upstream body limit
GET
performs structured RDAP IPv4/IPv6 prefix lookup via longest prefix IANA bootstrap
max 3 redirects, 512 KiB upstream body limit
GET
performs structured RDAP ASN lookup via IANA bootstrap (e.g. AS13335 or 13335)
max 3 redirects, 512 KiB upstream body limit
GET
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=falsePOST
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
SSRF protections block private and reserved IPs on every redirect hop
GET
validates and extracts TLS certificate information
GET
inspects full TLS handshake, protocol/cipher/ALPN, timing breakdown, certificate chain, and verification status
query:
?port=443allowed ports: 443, 465, 587, 853, 993, 995, 8443
Shortener
POST
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
reserved aliases: api, admin, stats, docs, create, edit, delete, assets, favicon.ico, robots.txt, v1, check, resolve
GET
returns /shortener statistics (total created, clicks, active)
GET
checks alias availability before creation
GET
returns destination URL and link metadata as JSON
PATCH
updates shortlink destination URL or expiry
body:
{ "url": "...", "expiration": "..." }DELETE
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
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
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
returns /paste statistics (total pastes, views, active)
GET
returns paste content and metadata
GET
returns raw paste content as plain text
HEAD
checks paste existence without recording a view event
PATCH
updates paste content, title, language, or expiry
body:
{ "content": "...", "expiration": "...", "title": "...", "language": "..." }DELETE
deletes paste permanently
GET
returns paste analytics including view count, browser, and OS
XMR
GET
returns network status
GET
returns current blockchain block height
GET
returns current network difficulty
GET
returns network hashrate in H/s
GET
returns recommended fee per byte
GET
returns target block time in seconds
GET
returns current tail emission rate
GET
returns total circulating supply
GET
returns transaction mempool statistics and backlog
GET
returns all time total processed transaction count
GET
returns current exchange prices in USD, EUR, and BTC
GET
returns current exchange price in USD
Examples
request ID and error response
curl -i https://api.collectiveness.de/v1/yoclient IP address
curl https://api.collectiveness.de/v1/ipSHA-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