{"name":"BCX Public API","version":"v1","base":"https://api.bcx.lol","authentication":"none","notes":["Anonym nutzbar mit Rate-Limits pro IP.","Missbrauch (Brute-Force, Scanner-Pfade) führt zu IP-Sperren.","Gast-Limits: max. 30 Tage Gültigkeit, kein Unlimited.","Code-Länge über API: 4–12 (Länge 3 nur in der Short-UI)."],"endpoints":[{"method":"POST","path":"/v1/short","description":"Kurzlink erstellen (inkl. Advanced-Optionen)","body":{"url":"https://example.com (required; alias: targetUrl)","codeLength":"4–12 (optional, default 5)","validHours":"1–720 für Gäste (optional, default 24)","maxUses":"1–999 oder null (optional)","minTrustScore":"0–100 oder null — Trust-Gate (optional)","allowedCountries":"[\"CH\",\"DE\"] — ISO-2 Allowlist, leer = weltweit (optional)","stickyIpPass":"boolean — erneut von derselben IP zählt nicht gegen maxUses (optional, default true)"},"example":{"curl":"curl -X POST https://api.bcx.lol/v1/short -H \"Content-Type: application/json\" -d '{\"url\":\"https://example.com\",\"validHours\":24,\"maxUses\":10,\"minTrustScore\":45,\"allowedCountries\":[\"CH\"],\"stickyIpPass\":true}'"}},{"method":"GET","path":"/v1/short/{code}","description":"Status eines Kurzlinks (stark rate-limited; ohne targetUrl)"}],"links":{"shortenerUi":"https://short.bcx.lol","goPattern":"https://go.bcx.lol/{code}"}}