API Documentation

The Ops.Tools API

Public docs for DNS, WHOIS, IP, SSL, HTTP and port scanning APIs: look up the evidence a release gate, a monitor or an AI agent needs, one GET request per check.

  • REST + JSON
  • x-api-key
  • MCP server
  • 1 credit per call
APIhttps://api.ops.tools

Quick start

  1. Sign up and open your workspace.
  2. Under API keys, create a key and copy it: it is shown once.
  3. Send it in the x-api-key header with the domain to check, as below.
Look up MX recordsBash
curl --get "https://api.ops.tools/ops/dns-lookup" \
  --data-urlencode "address=example.com" \
  --data-urlencode "type=MX" \
  -H "x-api-key: $API_KEY"
Check a certificate from TypeScriptTypeScript
const response = await fetch('https://api.ops.tools/ops/ssl-check?domain=' + encodeURIComponent('example.com'), {
  headers: { 'x-api-key': process.env.API_KEY ?? '' },
});
const certificate = await response.json();
if (certificate.daysRemaining < 14) {
  // renew before the release goes out
}

API families

Every check is one GET request and costs 1 credit.

RouteAnswers
GET /ops/dns-lookupDNS lookup and record inspection: A, AAAA, MX, TXT, NS, CNAME, SOA or ANY for a domain or hostname.
GET /ops/whoisWHOIS ownership and registration data: registrar, dates, name servers and the raw record.
GET /ip/detailsIP geolocation, ASN, and reputation context for an address.
GET /ops/ssl-checkSSL and TLS validation with expiry checks: issuer, subject names, protocol and chain.
GET /ops/http-analyzeHTTP header analysis: redirects, security headers, caching and response metadata.
GET /ops/port-scanPort scanning for exposed services: open, closed or filtered TCP ports on public addresses.

Authentication

  • Every request carries a workspace API key in the x-api-key header. A key belongs to one workspace and spends that workspace’s credits.
  • Keep keys on your server, never in browser code, analytics events or shared spreadsheets.
  • Revoke a key under API keys and it stops working at once.

Errors, credits and limits

  • Errors answer { "error": "CODE", "message": "…" } with the HTTP status that fits.
  • Each check spends 1 credit; 402 INSUFFICIENT_CREDITS means the workspace has none left (top up on the pricing page, or turn on auto top-up).
  • Over the rate limit you get 429 with Retry-After in seconds; back off and retry after that time.
  • Port scans run only against public addresses; scan assets you are authorized to test.

Next steps

  • Use the reference when you need exact parameters, auth, and response shape.
  • Use pricing when you need to model requests across monitoring, research, or CI/CD workflows.
  • Use the tools and use-case pages when you need examples for operators, analysts, or platform teams.

MCP server for AI agents

Connect Claude, Cursor, VS Code or any client that speaks Streamable HTTP to https://mcp.ops.tools/mcp with your API key, and your agent runs DNS, WHOIS, SSL, HTTP and port checks with the same credits and answers as the REST API.

Claude CodeBash
claude mcp add --transport http ops-tools https://mcp.ops.tools/mcp --header "x-api-key: <your-api-key>"

Adds the server to the current project; add --scope user to use it in every project.

API reference

Every route with its parameters, answers and errors, generated from the API’s own OpenAPI spec, so it is always current.