スクリプトやCIパイプライン、単純なcurlなどから手軽に利用できます。
公開IPだけを返し、診断やスクリプトに便利です。
curl -s https://example.com/?format=txt
JSON APIを呼び出して結果をファイル保存し、後から解析できます。
curl -s -H "Accept: application/json" https://example.com/api/info > connection.json
CI/CD 実行時の送信元 IP を保存し、ランナーや出口経路を把握できます。
curl -s https://example.com/?format=txt | tee artifacts/current_ip.txt
ブラウザーのウィジェットが発行した ID を使って API からリゾルバー IP の一覧を取得します。TEST_ID をページ上の識別子に置き換えてください。
curl -s "https://example.com/api/dns-leak-test?id=TEST_ID"