Public Free API

RiskAPI Utility Surface

A lightweight collection of deterministic JSON utilities for text, time, URL, JSON, encoding, and hashing tasks. The current public release is designed to stay fast, predictable, and easy to verify from scripts or browsers.

Browse by category, copy an endpoint, and start with a direct request. The public free routes are intentionally narrow in scope and rate limited at the edge.

Core

Basic availability

Minimal public checks for a first request or a quick liveness probe.

Ping

Basic public liveness check.

GET Free
https://alpha-swan.duckdns.org/v1/free/ping

Text

Extraction and normalization

Small text utilities for counts, extraction, deduplication, and clean slug output.

Slugify Text

Convert a phrase into a clean lowercase ASCII slug.

POST Free
https://alpha-swan.duckdns.org/v1/free/text/slugify

Word Count

Return word, character, and line counts for a text block.

POST Free
https://alpha-swan.duckdns.org/v1/free/text/word-count

Extract URLs

Pull HTTP and HTTPS links out of plain text.

POST Free
https://alpha-swan.duckdns.org/v1/free/text/extract-urls

Extract Emails

Extract email-like addresses from plain text.

POST Free
https://alpha-swan.duckdns.org/v1/free/text/extract-emails

Dedupe Lines

Remove duplicate lines while preserving the first occurrence.

POST Free
https://alpha-swan.duckdns.org/v1/free/text/dedupe-lines

Time

UTC and timestamp helpers

Current UTC time, direct conversions, and a small timestamp difference utility.

Current UTC Time

Return current UTC time and a Unix epoch value.

GET Free
https://alpha-swan.duckdns.org/v1/free/time/utc

Unix To UTC

Convert a Unix epoch into an RFC 3339 UTC timestamp.

POST Free
https://alpha-swan.duckdns.org/v1/free/time/unix-to-utc

UTC To Unix

Convert an RFC 3339 timestamp into a Unix epoch value.

POST Free
https://alpha-swan.duckdns.org/v1/free/time/utc-to-unix

Time Difference

Calculate minute and second differences between two timestamps.

POST Free
https://alpha-swan.duckdns.org/v1/free/time/diff-minutes

JSON & Data

Formatting and validation

Simple helpers for validating JSON, making it readable, or compacting it for transport.

Pretty JSON

Pretty-print valid JSON with configurable indentation.

POST Free
https://alpha-swan.duckdns.org/v1/free/json/pretty

Minify JSON

Collapse valid JSON into a compact single-line form.

POST Free
https://alpha-swan.duckdns.org/v1/free/json/minify

Validate JSON

Check whether JSON is valid and report the top-level type or error location.

POST Free
https://alpha-swan.duckdns.org/v1/free/json/validate

Encoding & Hashing

String encoding helpers

Deterministic helpers for SHA-256 and Base64 work.

SHA-256 Hash

Return the SHA-256 hex digest for a string.

POST Free
https://alpha-swan.duckdns.org/v1/free/hash/sha256

Base64 Encode

Encode UTF-8 text as Base64 or URL-safe Base64.

POST Free
https://alpha-swan.duckdns.org/v1/free/encoding/base64-encode

Base64 Decode

Decode Base64 text back into UTF-8.

POST Free
https://alpha-swan.duckdns.org/v1/free/encoding/base64-decode

URL & Web

URL inspection

Inspect URL components or apply a basic normalization pass.

Parse URL

Split a URL into components and query parameters.

POST Free
https://alpha-swan.duckdns.org/v1/free/url/parse

Normalize URL

Lowercase scheme and host, remove default ports, and optionally drop fragments.

POST Free
https://alpha-swan.duckdns.org/v1/free/url/normalize

Quickstart

Start with a few direct calls. Everything below is public, free to test, and grouped to match the site categories above.

curl https://alpha-swan.duckdns.org/v1/free/ping
curl https://alpha-swan.duckdns.org/v1/free/time/utc
curl -X POST https://alpha-swan.duckdns.org/v1/free/text/extract-emails \
  -H "Content-Type: application/json" \
  -d '{"text":"Email ops@example.com and admin@example.org"}'
curl -X POST https://alpha-swan.duckdns.org/v1/free/json/validate \
  -H "Content-Type: application/json" \
  -d '{"text":"{\"service\":\"riskapi\",\"free\":true}"}'
curl -X POST https://alpha-swan.duckdns.org/v1/free/url/parse \
  -H "Content-Type: application/json" \
  -d '{"url":"https://example.com/docs?q=one&q=two#frag"}'

The full machine-readable contract is available in the OpenAPI reference linked above.