技
TLS Check API
1 endpointDeveloper & TechGlobalsocial:read
Inspects the TLS setup of a public host with hoshime's own handshakes: protocol versions and negotiated cipher suites, certificate chain, trust, OCSP stapling, HSTS and a grade from A+ to F.
View as Markdown| GET | /tlscheck/inspect | TLS inspection of a public host: protocol versions accepted (TLS 1.0 to 1.3) with the cipher suite negotiated for each, certificate chain (subject, issuer, SANs, validity, key type and size, signature algorithm), trust, OCSP stapling, HSTS header and a grade from A+ to F. |
inspect
GET
/v1/tlscheck/inspectTLS inspection of a public host: protocol versions accepted (TLS 1.0 to 1.3) with the cipher suite negotiated for each, certificate chain (subject, issuer, SANs, validity, key type and size, signature algorithm), trust, OCSP stapling, HSTS header and a grade from A+ to F.
scope social:read2 unitscached 1 h
Parameters
hoststring required | Host name, such as example.com. A URL is reduced to its host. e.g. example.com |
portinteger | TCP port of the TLS service. default 443 |
tunnelstring | Id or name of one of your tunnels: the call reads the source from the machine that runs `hoshime tunnel`, through its own connection. Fails with 409 tunnel_unavailable when no machine is connected. Cannot be combined with proxy. |
proxystring | Your own http:// or https:// proxy, such as http://user:pass@proxy.example.com:8080, on a public address. The call reads the source only through it. |
profileIdstring | Browser profile whose login the call sends (its cookies), so the source answers as that account. Without tunnel or proxy it leaves through the profile's own residential IP. Needs the browser:read scope. Data read logged in is for your account only. |
Response data
29 fields
alpnProtocol | string |
certificates | Certificate[] |
isCa | boolean |
issuer | string |
keyBits | any |
keyType | string |
notAfterAt | string |
notBeforeAt | string |
sans | string[] |
serialNumber | string |
sha256Fingerprint | string |
signatureAlgorithm | string |
subject | string |
grade | string |
gradeReasons | string[] |
host | string |
hsts | Hsts | null |
header | string |
includeSubDomains | boolean |
maxAgeSeconds | integer (int64) |
preload | boolean |
ocspStapled | boolean |
port | any |
trustError | string |
trusted | boolean |
versions | Version[] |
cipherSuite | string |
protocol | string |
supported | boolean |
curl "https://api.hoshime.com/v1/tlscheck/inspect?host=example.com" \ -H "Authorization: Bearer $HOSHIME_TOKEN"
const res = await fetch("https://api.hoshime.com/v1/tlscheck/inspect?host=example.com", { headers: { Authorization: `Bearer ${process.env.HOSHIME_TOKEN}`, }, }); const { data, meta } = await res.json();
import os, requests res = requests.get( "https://api.hoshime.com/v1/tlscheck/inspect?host=example.com", headers={"Authorization": f"Bearer {os.environ['HOSHIME_TOKEN']}"}, ) body = res.json()
{ "data": { "alpnProtocol": "…", "certificates": [ { "isCa": false, "issuer": "…", "keyBits": null, "keyType": "…", "notAfterAt": "2026-11-06T09:41:00Z", "notBeforeAt": "2026-11-06T09:41:00Z", "sans": [], "serialNumber": "…", "sha256Fingerprint": "…", "signatureAlgorithm": "…", "subject": "…" } ], "grade": "…", "gradeReasons": [ "…" ], "host": "…", "hsts": { "header": "…", "includeSubDomains": false, "maxAgeSeconds": 0, "preload": false }, "ocspStapled": false, "port": null, "trustError": "…", "trusted": false, "versions": [ { "cipherSuite": "…", "protocol": "…", "supported": false } ] }, "meta": { "cached": false, "endpoint": "inspect", "fetchedAt": "2026-11-06T09:41:00Z", "platform": "tlscheck", "requestId": "req_2Xb9kQ…", "units": 2 } }