Lấy mã 2FA (TOTP)
POST /api/v1/tools/2fa-codeDán secret 2FA (1 hoặc nhiều dòng, nhận cả tài khoản|pass|SECRET và otpauth://) để lấy mã 6 số, tự làm mới mỗi 30 giây. Tính ngay trên trình duyệt, secret không rời máy bạn. Miễn phí, có API.
Rate limit miễn phí: 60 request/phút, 1.000 request/ngày, 100 mục/request
| Tham số | Kiểu | Mô tả |
|---|---|---|
secrets * | string | string[] | Secret 2FA — Mỗi dòng 1 secret (tối đa 100): base32, tài khoản|pass|SECRET hoặc otpauth://totp/… |
time | string | Thời điểm Unix (tuỳ chọn) — Giây; bỏ trống = giờ máy chủ |
curl -X POST 'https://sieutool.net/api/v1/tools/2fa-code' \
-H 'Content-Type: application/json' \
-H "X-API-Key: $NXP_API_KEY" \
-d '{"secrets":"JBSWY3DPEHPK3PXP\[email protected]|matkhau|GEZD GNBV GY3T QOJQ","time":1700000000}'{
"ok": true,
"tool": "2fa-code",
"version": "1.0.0",
"data": {
"time": 1700000000,
"items": [
{
"line": 1,
"ok": true,
"label": "JBSW…3PXP",
"issuer": null,
"code": "324550",
"next_code": "367665",
"digits": 6,
"period": 30,
"algorithm": "SHA1",
"remaining_s": 10
},
{
"line": 2,
"ok": true,
"label": "[email protected]",
"issuer": null,
"code": "017492",
"next_code": "907147",
"digits": 6,
"period": 30,
"algorithm": "SHA1",
"remaining_s": 10
}
]
}
}