{"openapi":"3.2.0","$self":"https://api.middle.network/v1/openapi.json","jsonSchemaDialect":"https://json-schema.org/draft/2020-12/schema","info":{"title":"middle.network API","version":"0.1.0","summary":"DNS, email (SPF, DKIM, DMARC), WHOIS, SSL, website and network tests as an API, answered in plain English and technical detail.","description":"**Free online network tools, as an API.** middle.network checks domains, email, websites and networks for you: DNS lookup, DNS propagation, WHOIS and RDAP, SPF, DKIM and DMARC checks, MX lookup, email blacklist checks, SSL/TLS certificate checks, HTTP and security headers, ping, traceroute and port checks, IP geolocation, ASN lookup and more.\n\nEvery answer explains itself twice: in **plain English** for anyone, and in **technical detail** for engineers, with the fix when something is wrong.\n\n## What people use it for\n\n- **Email deliverability.** Check SPF, DKIM, DMARC, BIMI, MTA-STS and blacklists, so mail lands in the inbox instead of spam.\n- **Domain and DNS monitoring.** Watch records, nameservers, DNSSEC and propagation after a change.\n- **Website and certificate checks.** Catch expiring SSL certificates, broken redirects, slow pages and missing security headers.\n- **Due diligence and security reviews.** WHOIS/RDAP ownership, domain age, IP location and ASN for any domain or IP address.\n\n## How it works\n\n- One request shape, `{ \"input\": { … } }`, and one result shape, `ToolResult`, for every tool.\n- Tests run live, from middle.network's own probe locations around the world (`GET /v1/probes`).\n- Inputs are checked against the JSON Schemas in this document, so what you read here is what the API enforces.\n\n## Get started\n\n1. Get an API key: https://middle.network/developers/\n2. Send it as `Authorization: Bearer mn_live_…`\n3. `POST https://api.middle.network/v1/tools/dns-lookup` with `{ \"input\": { \"domain\": \"example.com\" } }`\n\n## Limits\n\nRuns are rate limited by cost: each operation's `x-mn-cost` is what one run spends, and every answer carries `RateLimit-*` headers. Tools marked `x-mn-active` send traffic at the target (ping, traceroute, port checks) and are not open to API keys yet.\n\nDocs, examples and every endpoint in plain English: https://middle.network/developers/","termsOfService":"https://middle.network/terms/","contact":{"name":"middle.network","url":"https://middle.network/developers/","email":"hello@middle.network"}},"externalDocs":{"description":"Guides, examples and every endpoint","url":"https://middle.network/developers/"},"servers":[{"url":"https://api.middle.network","description":"Production"}],"tags":[{"name":"Start here: full reports","summary":"Start here: full reports","description":"Start here when you want the whole picture. A report runs many tools together, ranks what is broken, and tells you what to fix first.","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#start"}},{"name":"DNS","summary":"DNS","description":"Look up records, follow a change around the world and test nameservers.","kind":"nav"},{"name":"DNS records","summary":"DNS records","description":"DNS is the internet’s address book. These tools show what a domain’s records say right now and what each one does.","parent":"DNS","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#dns-records"}},{"name":"DNS health and propagation","summary":"DNS health and propagation","description":"Changed a record and waiting? These tools show who sees the new value, who still has the old one, and whether your nameservers are healthy.","parent":"DNS","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#dns-health"}},{"name":"Email","summary":"Email","description":"Prove your mail is really yours, and find out why it lands in spam.","kind":"nav"},{"name":"Email authentication (SPF, DKIM, DMARC…)","summary":"Email authentication","description":"Email authentication proves your messages really come from you. Get it right and you land in the inbox; get it wrong and you land in spam, or someone sends as you.","parent":"Email","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#email-auth"}},{"name":"Email delivery and reputation","summary":"Email delivery and reputation","description":"When email bounces, goes missing or lands in spam, these tools trace where it goes and how receivers see you.","parent":"Email","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#email-delivery"}},{"name":"Websites and TLS","summary":"Websites and TLS","description":"Is a site up, fast, secure and correctly configured, and is its certificate valid?","kind":"nav"},{"name":"Website and HTTP","summary":"Website and HTTP","description":"Is it down, slow, insecure or misconfigured? These tools look at a website the way a browser and a search engine do.","parent":"Websites and TLS","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#web"}},{"name":"Certificates and TLS","summary":"Certificates and TLS","description":"The padlock depends on a valid certificate and a modern TLS setup. These tools check both and warn you before anything expires.","parent":"Websites and TLS","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#tls"}},{"name":"Network and routing","summary":"Network and routing","description":"When something is unreachable or slow, these tools show whether packets get there, how long they take and where they stop.","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#network"}},{"name":"Domain and IP ownership","summary":"Domain and IP ownership","description":"Who owns it, where is it, and how old is it? These tools read the official registries (RDAP and WHOIS) and IP data.","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#ownership"}},{"name":"Converters and calculators","summary":"Converters and calculators","description":"Small, fast helpers for everyday network maths and decoding. Most run instantly.","kind":"nav","externalDocs":{"url":"https://middle.network/developers/api/#convert"}},{"name":"Reference","summary":"Reference","description":"Free lookups that need no API key: the tool catalog and the probe locations.","kind":"nav"}],"paths":{"/v1/tools/dns-lookup":{"post":{"operationId":"dnsLookup","summary":"DNS lookup (all records)","description":"Every common DNS record for a domain, explained.\n\nInspect every common DNS record for a domain - A, AAAA, CNAME, MX, NS, SOA, TXT, CAA, DS, and DNSKEY - explained in plain English. Query any of 16 public resolvers or bypass caches completely via the domain’s authoritative nameservers, and compare two resolvers side by side with live counting-down TTLs.","tags":["DNS records"],"x-mn-tool":"dns-lookup","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsLookupInput"}}},"examples":{"example":{"summary":"DNS lookup (all records): github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-lookup \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-lookup\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-lookup\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/spf":{"post":{"operationId":"spf","summary":"SPF check","description":"Validate SPF and count the 10 DNS lookups.\n\nValidate your SPF record, recursively expand every include and redirect, and count DNS lookups against the RFC 7208 limit of 10. When a record is near or over the limit, we show the exact lookup where receivers stop evaluating and generate a copy-ready flattened SPF record automatically.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"spf","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/SpfInput"}}},"examples":{"example":{"summary":"SPF check: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/spf \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/spf\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/spf\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/http":{"post":{"operationId":"http","summary":"HTTP check","description":"Load a URL and break down DNS, connect, TLS and first byte.\n\nLoad any URL from selectable Tier-1 data-centre probes around the world to inspect HTTP status codes, server IPs, cache hits, and phase-by-phase timing. Switch between GET/HEAD and test as Chrome, iPhone, or Googlebot to see exact latency and headers per region.","tags":["Website and HTTP"],"x-mn-tool":"http","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/HttpInput"}}},"examples":{"example":{"summary":"HTTP check: https://github.com","value":{"input":{"url":"https://github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/http \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"https://github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/http\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"https://github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/http\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"https://github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/ping":{"post":{"operationId":"ping","summary":"Ping (ICMP)","description":"Ping a host and measure round-trip time and loss.\n\nRun live ICMP ping tests to any host or IP from selectable Tier-1 data-centre probes worldwide to measure latency, jitter, and packet loss. Dedicated VM probe nodes with raw sockets give you clean, repeatable baselines from multiple continents - not a single home connection.","tags":["Network and routing"],"x-mn-tool":"ping","x-mn-cost":5,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/PingInput"}}},"examples":{"example":{"summary":"Ping (ICMP): 1.1.1.1","value":{"input":{"target":"1.1.1.1"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/ping \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"1.1.1.1\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/ping\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"1.1.1.1\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/ping\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"1.1.1.1\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/health":{"get":{"operationId":"healthCheck","summary":"Health check","description":"Every check on a domain at once, with a ranked list of fixes.\n\nRun 30+ live checks across DNS, email, web, TLS, network, and ownership in one pass, ranked by impact with copy-ready fixes. Checks execute in parallel from our global Tier-1 data-centre probes with automatic failover, stream in live, and save to a noise-filtered change timeline.\n\nResults stream as server-sent events while each check finishes; a repeat check of the same domain within a few minutes is replayed from the last one (a `cached` event comes first).","tags":["Start here: full reports"],"x-mn-tool":"health-check","x-mn-cost":15,"x-mn-active":true,"x-mn-input":{"$ref":"#/components/schemas/HealthCheckInput"},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -N \"https://api.middle.network/v1/health?domain=github.com\" \\\n  -H \"Authorization: Bearer $MN_API_KEY\""},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/health?domain=github.com\", {\n  headers: { Authorization: `Bearer ${process.env.MN_API_KEY}` },\n});\n// Server-sent events: read res.body as a stream, one \"event:\" per check."},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.get(\"https://api.middle.network/v1/health?domain=github.com\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"}, stream=True)\nfor line in res.iter_lines():\n    print(line.decode())"}],"parameters":[{"name":"domain","in":"query","required":true,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","schema":{"type":"string","maxLength":253},"example":"example.com"},{"name":"sections","in":"query","required":false,"style":"form","explode":false,"description":"Only these parts of the check. Leave out for the full check. Comma-separated.","schema":{"type":"array","items":{"type":"string","enum":["dns","email","web","tls","network","ownership"]}}},{"name":"regions","in":"query","required":false,"style":"form","explode":false,"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set. Comma-separated.","schema":{"type":"array","items":{"type":"string","minLength":1,"maxLength":64}}},{"name":"tz","in":"query","required":false,"description":"An IANA time zone, used to pick the nearest probe locations when `regions` is left out.","schema":{"type":"string","maxLength":64},"example":"Europe/London"}],"responses":{"200":{"description":"Server-sent events. Sections: dns, email, web, tls, network, ownership. Event types include `result` (one tool’s ToolResult), `section`, `failed` (an Error, such as a bad domain) and `done`.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"text/event-stream":{"itemSchema":{"type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["plan","from","cached","section","result","failed","done"],"description":"`plan`: which checks will run. `from`: the probe locations testing. `cached`: a repeat check within a few minutes: the replay starts. `section`: a section (DNS, email, web…) starts or ends. `result`: one tool’s ToolResult. `failed`: the check couldn’t run, such as a bad domain (an Error). `done`: every check has finished."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"oneOf":[{"$ref":"#/components/schemas/ToolResult"},{"$ref":"#/components/schemas/Error"}]}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dns-record":{"post":{"operationId":"dnsRecord","summary":"Single record lookup","description":"Look up one record type, with response code and timing.\n\nQuery a single DNS record type and inspect the exact response code, flags, authority section, and live TTL. Our raw UDP/TCP DNS client lets you target any of 16 public resolvers or query the domain’s authoritative nameserver directly, with optional DNSSEC (DO bit) inspection.","tags":["DNS records"],"x-mn-tool":"dns-record","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsRecordInput"}}},"examples":{"example":{"summary":"Single record lookup: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-record \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-record\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-record\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dns-propagation":{"post":{"operationId":"dnsPropagation","summary":"DNS propagation","description":"See whether a DNS change has spread to resolvers.\n\nCheck whether a DNS change has spread across public resolvers worldwide or if stale caches are still serving old records. Queries execute simultaneously from global Tier-1 data-centre probes across six continents with automatic failover across 16 selectable resolvers, distinguish intentional CDN geo-routing from lag, and can auto-watch until propagation reaches 100%.","tags":["DNS health and propagation"],"x-mn-tool":"dns-propagation","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsPropagationInput"}}},"examples":{"example":{"summary":"DNS propagation: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-propagation \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-propagation\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-propagation\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/reverse-dns":{"post":{"operationId":"reverseDns","summary":"Reverse DNS (PTR)","description":"Find the hostname behind an IP address (PTR).\n\nLook up the PTR hostname published for any IPv4 or IPv6 address and verify forward-confirmed reverse DNS (FCrDNS). We perform live bidirectional DNS resolution - checking that the returned hostname resolves back to the exact same IP, which receiving mail servers require.","tags":["DNS records"],"x-mn-tool":"reverse-dns","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/ReverseDnsInput"}}},"examples":{"example":{"summary":"Reverse DNS (PTR): 8.8.8.8","value":{"input":{"ip":"8.8.8.8"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/reverse-dns \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"ip\":\"8.8.8.8\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/reverse-dns\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"ip\":\"8.8.8.8\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/reverse-dns\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"ip\":\"8.8.8.8\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dnssec":{"post":{"operationId":"dnssec","summary":"DNSSEC validation","description":"Validate the DNSSEC chain of trust.\n\nValidate a domain’s full DNSSEC chain of trust from the parent registry’s DS record to your zone’s DNSKEYs and resolver signatures. We inspect raw DNSSEC records directly, flag deprecated SHA-1 algorithms, and pinpoint exactly where a broken chain will cause SERVFAIL outages.","tags":["DNS health and propagation"],"x-mn-tool":"dnssec","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnssecInput"}}},"examples":{"example":{"summary":"DNSSEC validation: cloudflare.com","value":{"input":{"domain":"cloudflare.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dnssec \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"cloudflare.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dnssec\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"cloudflare.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dnssec\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"cloudflare.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dns-health":{"post":{"operationId":"dnsHealth","summary":"DNS health report","description":"Test each nameserver: answers, SOA serials, timing.\n\nAudit every authoritative nameserver for a domain - testing responsiveness, SOA serial synchronisation, lame delegations, open recursion, and network diversity. Direct UDP/TCP queries to each nameserver verify your DNS can survive a provider outage without returning stale or split answers.","tags":["DNS health and propagation"],"x-mn-tool":"dns-health","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsHealthInput"}}},"examples":{"example":{"summary":"DNS health report: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-health \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-health\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-health\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dns-auth-vs-cache":{"post":{"operationId":"dnsAuthVsCache","summary":"Authoritative vs cached","description":"Compare the source of truth with what resolvers cache.\n\nPinpoint whether a DNS issue is in your zone configuration or a stale resolver cache. We query your domain’s authoritative nameservers directly and compare them live against cached answers across global Tier-1 probe regions and selectable public resolvers.","tags":["DNS health and propagation"],"x-mn-tool":"dns-auth-vs-cache","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsAuthVsCacheInput"}}},"examples":{"example":{"summary":"Authoritative vs cached: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-auth-vs-cache \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-auth-vs-cache\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-auth-vs-cache\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dns-speed":{"post":{"operationId":"dnsSpeed","summary":"DNS resolver speed test","description":"Time public resolvers, cached and uncached.\n\nBenchmark how fast Google, Cloudflare, Quad9, OpenDNS, and 12 other public resolvers answer for your domain, both cached and uncached. Tests run from our global Tier-1 data-centre probes across selectable regions so you can separate resolver overhead from slow authoritative nameservers.","tags":["DNS health and propagation"],"x-mn-tool":"dns-speed","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsSpeedInput"}}},"examples":{"example":{"summary":"DNS resolver speed test: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-speed \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-speed\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-speed\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/subdomains":{"post":{"operationId":"subdomains","summary":"Subdomain finder","description":"Find live subdomains from certificate logs and common names.\n\nDiscover active subdomains from public Certificate Transparency logs and common hostnames, mapped into a live provider and hierarchy tree. Beyond passive enumeration, we actively verify which names still resolve and test cloud CNAME targets for claimable subdomain takeover vulnerabilities.","tags":["DNS records"],"x-mn-tool":"subdomains","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/SubdomainsInput"}}},"examples":{"example":{"summary":"Subdomain finder: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/subdomains \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/subdomains\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/subdomains\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/zone-precheck":{"post":{"operationId":"zonePrecheck","summary":"Zone pre-check (new nameservers)","description":"Check new nameservers have your records before you switch.\n\nCompare your live DNS records against new nameservers before changing delegation at your registrar. We query both your current zone and your prospective nameservers directly over UDP/TCP - catching missing MX, TXT, or apex records before a cutover causes downtime.","tags":["DNS records"],"x-mn-tool":"zone-precheck","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/ZonePrecheckInput"}}},"examples":{"example":{"summary":"Zone pre-check (new nameservers): github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/zone-precheck \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/zone-precheck\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/zone-precheck\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dns-leak":{"post":{"operationId":"dnsLeak","summary":"DNS leak test","description":"See which DNS servers really look up sites for you, and whether your VPN leaks them.\n\nVerify whether your VPN is routing all DNS lookups inside its tunnel or leaking them to your ISP. Your browser resolves unique one-time hostnames controlled exclusively by our authoritative test server - identifying the exact resolvers handling your traffic, detecting EDNS Client Subnet exposure, and auto-expiring test records after 10 minutes.","tags":["DNS health and propagation"],"x-mn-tool":"dns-leak","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DnsLeakInput"}}},"examples":{"example":{"summary":"DNS leak test: k3v9q2x7m1p8r4t6w0yz","value":{"input":{"token":"k3v9q2x7m1p8r4t6w0yz"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dns-leak \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"token\":\"k3v9q2x7m1p8r4t6w0yz\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dns-leak\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"token\":\"k3v9q2x7m1p8r4t6w0yz\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dns-leak\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"token\":\"k3v9q2x7m1p8r4t6w0yz\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/mx":{"post":{"operationId":"mx","summary":"MX lookup","description":"Find the mail servers and check they resolve.\n\nLook up a domain’s MX records in priority order, automatically identifying the mail provider and resolving every server’s IP addresses and reverse DNS. We flag RFC-violating CNAME targets, missing PTR records, and single-server setups with no failover.","tags":["Email delivery and reputation"],"x-mn-tool":"mx","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MxInput"}}},"examples":{"example":{"summary":"MX lookup: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/mx \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/mx\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/mx\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dkim":{"post":{"operationId":"dkim","summary":"DKIM check","description":"Find DKIM keys and check their strength.\n\nLook up DKIM public keys by selector - or auto-discover across 100+ common provider selectors - and verify key length, syntax, CNAME delegation, and revocation status. Preset selector chips let you check Google Workspace, Microsoft 365, Mailchimp, SendGrid, Amazon SES, Zoho, and Proton in one click.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"dkim","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DkimInput"}}},"examples":{"example":{"summary":"DKIM check: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dkim \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dkim\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dkim\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dmarc":{"post":{"operationId":"dmarc","summary":"DMARC check","description":"Read the DMARC policy and reporting setup.\n\nInspect your DMARC record’s policy, alignment, reporting addresses, and external report authorisations. Rather than just parsing tags, we map your domain onto a step-by-step rollout path to p=reject with the exact TXT record to publish next.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"dmarc","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DmarcInput"}}},"examples":{"example":{"summary":"DMARC check: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dmarc \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dmarc\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dmarc\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/bimi":{"post":{"operationId":"bimi","summary":"BIMI check","description":"Check your brand logo record for inboxes.\n\nVerify your BIMI TXT record, fetch and preview the SVG logo, validate SVG Tiny P/S format rules, and inspect your Verified Mark Certificate (VMC) expiry. We also cross-check your domain’s live DMARC policy so you know immediately whether Gmail, Apple Mail, and Yahoo will display your logo.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"bimi","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/BimiInput"}}},"examples":{"example":{"summary":"BIMI check: cnn.com","value":{"input":{"domain":"cnn.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/bimi \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"cnn.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/bimi\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"cnn.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/bimi\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"cnn.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/mta-sts":{"post":{"operationId":"mtaSts","summary":"MTA-STS check","description":"Check encryption is enforced for incoming mail.\n\nCheck both your _mta-sts DNS record and live HTTPS policy file at /.well-known/mta-sts.txt to verify inbound mail encryption. We cross-check every mx: pattern in your policy against your live MX records so misconfigurations never silently break mail delivery.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"mta-sts","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MtaStsInput"}}},"examples":{"example":{"summary":"MTA-STS check: google.com","value":{"input":{"domain":"google.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/mta-sts \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"google.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/mta-sts\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"google.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/mta-sts\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"google.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/tls-rpt":{"post":{"operationId":"tlsRpt","summary":"TLS-RPT check","description":"Check you get reports when secure delivery fails.\n\nValidate your _smtp._tls TXT record to ensure sending mail servers report failed TLS connections to your domain. We parse every rua destination (mailto: or https:) and flag syntax mistakes that prevent daily transport security reports from arriving.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"tls-rpt","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TlsRptInput"}}},"examples":{"example":{"summary":"TLS-RPT check: google.com","value":{"input":{"domain":"google.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/tls-rpt \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"google.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/tls-rpt\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"google.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/tls-rpt\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"google.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dane":{"post":{"operationId":"dane","summary":"DANE / TLSA","description":"Check TLSA records for your mail servers.\n\nInspect DANE TLSA records for every MX host on a domain and verify the DNSSEC signing required to make them valid. We decode TLSA usage, selector, and matching-type parameters into plain English alongside raw DNS records.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"dane","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DaneInput"}}},"examples":{"example":{"summary":"DANE / TLSA: ietf.org","value":{"input":{"domain":"ietf.org"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dane \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"ietf.org\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dane\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"ietf.org\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dane\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"ietf.org\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/blacklist":{"post":{"operationId":"blacklist","summary":"Blacklist check","description":"Check an IP or domain against spam blacklists.\n\nCheck an IP address - or a domain’s website, MX, and SPF sending IPs - against major IP and domain DNS blocklists including Spamhaus and Barracuda. Every blocklist is canary self-tested hourly (127.0.0.2 vs 127.0.0.1), so a refusing or rate-limiting list is marked Refused us or Unverified - never falsely reported as “Clean”.","tags":["Email delivery and reputation"],"x-mn-tool":"blacklist","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/BlacklistInput"}}},"examples":{"example":{"summary":"Blacklist check: 8.8.8.8","value":{"input":{"target":"8.8.8.8"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/blacklist \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"8.8.8.8\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/blacklist\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"8.8.8.8\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/blacklist\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"8.8.8.8\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/email-headers":{"post":{"operationId":"emailHeaders","summary":"Email header analyser","description":"Trace an email’s path and authentication results.\n\nReconstruct an email’s hop-by-hop delivery timeline, per-hop relay delays, and server-reported SPF, DKIM, DMARC, and ARC verdicts from raw headers. We also decode Microsoft Defender (SCL/BCL) and Gmail spam signals, map relay providers, and explain every header field in plain English.","tags":["Email delivery and reputation"],"x-mn-tool":"email-headers","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/EmailHeadersInput"}}},"examples":{"example":{"summary":"Email header analyser: Received: from mail.example.com (mail.example.com [192.0.2.10])\nAuthentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.com; dkim=pass header.d=example.com; dmarc=pass\nFrom: Alice <alice@example.com>\nTo: bob@example.net\nSubject: Hello\nDate: Mon, 1 Jan 2026 09:00:00 +0000","value":{"input":{"text":"Received: from mail.example.com (mail.example.com [192.0.2.10])\nAuthentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.com; dkim=pass header.d=example.com; dmarc=pass\nFrom: Alice <alice@example.com>\nTo: bob@example.net\nSubject: Hello\nDate: Mon, 1 Jan 2026 09:00:00 +0000"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/email-headers \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"Received: from mail.example.com (mail.example.com [192.0.2.10])\\nAuthentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.com; dkim=pass header.d=example.com; dmarc=pass\\nFrom: Alice <alice@example.com>\\nTo: bob@example.net\\nSubject: Hello\\nDate: Mon, 1 Jan 2026 09:00:00 +0000\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/email-headers\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"Received: from mail.example.com (mail.example.com [192.0.2.10])\\nAuthentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.com; dkim=pass header.d=example.com; dmarc=pass\\nFrom: Alice <alice@example.com>\\nTo: bob@example.net\\nSubject: Hello\\nDate: Mon, 1 Jan 2026 09:00:00 +0000\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/email-headers\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"Received: from mail.example.com (mail.example.com [192.0.2.10])\\nAuthentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.com; dkim=pass header.d=example.com; dmarc=pass\\nFrom: Alice <alice@example.com>\\nTo: bob@example.net\\nSubject: Hello\\nDate: Mon, 1 Jan 2026 09:00:00 +0000\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/smtp":{"post":{"operationId":"smtp","summary":"SMTP test","description":"Connect to a mail server and test STARTTLS.\n\nConnect live to a domain’s mail servers on submission ports 587 and 465 to inspect the SMTP banner, STARTTLS upgrade, and TLS certificate. Runs directly from our test infrastructure with full plain-English and technical session output.","tags":["Email delivery and reputation"],"x-mn-tool":"smtp","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/SmtpInput"}}},"examples":{"example":{"summary":"SMTP test: gmail.com","value":{"input":{"domain":"gmail.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/smtp \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"gmail.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/smtp\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"gmail.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/smtp\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"gmail.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/bulk-sender":{"post":{"operationId":"bulkSender","summary":"Bulk sender compliance","description":"Check the Gmail, Yahoo and Outlook sender rules.\n\nAudit your domain against the Gmail, Yahoo, and Microsoft Outlook bulk-sender rules in one check. We test every DNS-verifiable requirement - SPF, DKIM, DMARC, reverse DNS, and reply reachability - and clearly distinguish what can be checked externally from what requires Postmaster Tools.","tags":["Email delivery and reputation"],"x-mn-tool":"bulk-sender","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/BulkSenderInput"}}},"examples":{"example":{"summary":"Bulk sender compliance: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/bulk-sender \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/bulk-sender\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/bulk-sender\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/email-score":{"post":{"operationId":"emailScore","summary":"Domain email score","description":"One score out of 100 for a domain’s email setup.\n\nGrade a domain’s email authentication and transport setup out of 100 across MX, SPF, DKIM, DMARC, BIMI, MTA-STS, and TLS-RPT. Instead of generic pass/fail ticks, we weight each protocol by real inbox impact and list the exact DNS changes that raise deliverability fastest.","tags":["Start here: full reports"],"x-mn-tool":"email-score","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/EmailScoreInput"}}},"examples":{"example":{"summary":"Domain email score: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/email-score \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/email-score\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/email-score\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/email-generators":{"post":{"operationId":"emailGenerators","summary":"SPF / DMARC / DKIM / BIMI generators","description":"Build SPF, DMARC, DKIM, BIMI and MTA-STS records.\n\nBuild RFC-compliant SPF, DMARC, DKIM, BIMI, and MTA-STS TXT records ready to paste into your DNS provider. Generates validated hostnames and syntax cleanly without hand-editing tags or risking typos that break mail delivery.","tags":["Email authentication (SPF, DKIM, DMARC…)"],"x-mn-tool":"email-generators","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/EmailGeneratorsInput"}}},"examples":{"example":{"summary":"SPF / DMARC / DKIM / BIMI generators: example","value":{"input":{}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/email-generators \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/email-generators\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/email-generators\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/dmarc-reports":{"post":{"operationId":"dmarcReports","summary":"DMARC report analyser","description":"Read a DMARC aggregate report in plain English.\n\nTurn raw DMARC aggregate (rua) XML attachments into a clear breakdown of every IP sending mail as your domain. Instantly see your overall pass rate, identify legitimate SaaS senders missing SPF or DKIM alignment, and spot unauthorised spoofers - free, with no account or inbox integration required.","tags":["Email delivery and reputation"],"x-mn-tool":"dmarc-reports","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DmarcReportsInput"}}},"examples":{"example":{"summary":"DMARC report analyser: <?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>","value":{"input":{"text":"<?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/dmarc-reports \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"<?xml version=\\\"1.0\\\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/dmarc-reports\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"<?xml version=\\\"1.0\\\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/dmarc-reports\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"<?xml version=\\\"1.0\\\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/redirects":{"post":{"operationId":"redirects","summary":"Redirect tracer","description":"Trace every redirect from first URL to final page.\n\nTrace every HTTP redirect hop from an initial URL to its final landing page, measuring per-hop latency and flagging loops, HTTP downgrades, and excessive chains. Verify canonical 301/308 moves and HTTPS enforcement accurately from our signed probes.","tags":["Website and HTTP"],"x-mn-tool":"redirects","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/RedirectsInput"}}},"examples":{"example":{"summary":"Redirect tracer: http://github.com","value":{"input":{"url":"http://github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/redirects \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"http://github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/redirects\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"http://github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/redirects\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"http://github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/security-headers":{"post":{"operationId":"securityHeaders","summary":"Security headers","description":"Grade a site’s security headers from A to F.\n\nGrade a website’s HTTP security headers (HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, and Permissions-Policy) from A+ to F. Unlike generic header checkers, we audit CSP directives for unsafe rules and generate copy-paste server configurations for nginx, Apache, IIS, Caddy, Vercel, Cloudflare Pages, and Netlify.","tags":["Website and HTTP"],"x-mn-tool":"security-headers","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/SecurityHeadersInput"}}},"examples":{"example":{"summary":"Security headers: https://github.com","value":{"input":{"url":"https://github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/security-headers \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"https://github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/security-headers\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"https://github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/security-headers\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"https://github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/hostile-check":{"post":{"operationId":"hostileCheck","summary":"Malicious website checker","description":"Check if a website sends back attack code such as Log4Shell or script injection.\n\nScan a website’s HTTP responses and HTML source for active attack payloads targeting visitors or automated tools - covering 14 header injection families (from Log4Shell to XXE) and 4 in-page threats (cryptominers, drive-by iframes, obfuscated evals, forced downloads). Every response is inspected statically as plain text - never executed or rendered - so scanning suspicious URLs is completely safe.","tags":["Website and HTTP"],"x-mn-tool":"hostile-check","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/HostileCheckInput"}}},"examples":{"example":{"summary":"Malicious website checker: github.com","value":{"input":{"url":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/hostile-check \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/hostile-check\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/hostile-check\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/tls":{"post":{"operationId":"tls","summary":"SSL/TLS checker","description":"Check the certificate, chain, expiry and TLS versions.\n\nAudit an HTTPS or mail-port TLS certificate, full chain of trust, protocol versions (TLS 1.0–1.3), and every accepted cipher suite with an A+ to F grade. Test ports 443, 8443, 465, 993, or 995 live, see exact grade caps (forward secrecy, HSTS, OCSP stapling), and download a 30-day renewal calendar reminder.","tags":["Certificates and TLS"],"x-mn-tool":"tls","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TlsInput"}}},"examples":{"example":{"summary":"SSL/TLS checker: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/tls \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/tls\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/tls\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/ct-logs":{"post":{"operationId":"ctLogs","summary":"Certificate transparency","description":"Every certificate issued for a domain.\n\nSearch public Certificate Transparency logs for every SSL/TLS certificate ever issued for a domain and cross-check issuers against your live CAA policy. Results group certificates into an interactive hostname tree and issuer breakdown, with clear status when upstream logs are rate-limited.","tags":["Certificates and TLS"],"x-mn-tool":"ct-logs","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/CtLogsInput"}}},"examples":{"example":{"summary":"Certificate transparency: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/ct-logs \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/ct-logs\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/ct-logs\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/cert-decoder":{"post":{"operationId":"certDecoder","summary":"Certificate / CSR decoder","description":"Decode a PEM certificate, chain or CSR.\n\nDecode any PEM-encoded X.509 certificate, multi-certificate chain, or Certificate Signing Request (CSR) to inspect subjects, SANs, validity dates, and public key details. Private keys are actively detected and refused before processing, keeping sensitive material out of diagnostic workflows.","tags":["Certificates and TLS"],"x-mn-tool":"cert-decoder","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/CertDecoderInput"}}},"examples":{"example":{"summary":"Certificate / CSR decoder: -----BEGIN CERTIFICATE-----\nMIID…\n-----END CERTIFICATE-----","value":{"input":{"text":"-----BEGIN CERTIFICATE-----\nMIID…\n-----END CERTIFICATE-----"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/cert-decoder \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"-----BEGIN CERTIFICATE-----\\nMIID…\\n-----END CERTIFICATE-----\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/cert-decoder\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"-----BEGIN CERTIFICATE-----\\nMIID…\\n-----END CERTIFICATE-----\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/cert-decoder\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"-----BEGIN CERTIFICATE-----\\nMIID…\\n-----END CERTIFICATE-----\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/ja4":{"post":{"operationId":"ja4","summary":"JA4 fingerprint decoder","description":"Decode JA4 and JA4+ TLS, HTTP, TCP, X.509 and SSH fingerprints.\n\nDecode any JA4 or JA4+ fingerprint string instantly in your browser into its exact protocol, TLS version, SNI flag, cipher and extension counts, ALPN, and bot triage signals. Supports standard JA4, raw unhashed JA4_r, JA4S server responses, JA4H HTTP, JA4X certificates, JA4T TCP, and JA4SSH sessions.","tags":["Certificates and TLS"],"x-mn-tool":"ja4","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/Ja4Input"}}},"examples":{"example":{"summary":"JA4 fingerprint decoder: t13d1516h2_8daaf6152771_e5627efa2ab1","value":{"input":{"text":"t13d1516h2_8daaf6152771_e5627efa2ab1"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/ja4 \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"t13d1516h2_8daaf6152771_e5627efa2ab1\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/ja4\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"t13d1516h2_8daaf6152771_e5627efa2ab1\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/ja4\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"t13d1516h2_8daaf6152771_e5627efa2ab1\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/is-it-down":{"post":{"operationId":"isItDown","summary":"Is it down?","description":"Is a website down for everyone or just you?\n\nCheck whether a website is down globally, failing in specific regions, or only unreachable from your connection. Tests run simultaneously from independent Tier-1 data-centre probes across multiple continents with failover, distinguishing regional routing issues from a full outage.","tags":["Website and HTTP"],"x-mn-tool":"is-it-down","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/IsItDownInput"}}},"examples":{"example":{"summary":"Is it down?: https://github.com","value":{"input":{"url":"https://github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/is-it-down \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"https://github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/is-it-down\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"https://github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/is-it-down\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"https://github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/geoblock":{"post":{"operationId":"geoblock","summary":"Geoblock checker","description":"See which countries can open a URL and which are blocked.\n\nTest which countries can load a URL and which are blocked, redirected, bot-challenged, or served different content. Requests originate directly from real Tier-1 data-centre locations across six continents - no residential proxies - and compare each region’s status, redirect target, and page similarity against the global baseline.","tags":["Website and HTTP"],"x-mn-tool":"geoblock","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/GeoblockInput"}}},"examples":{"example":{"summary":"Geoblock checker: https://www.bbc.co.uk/iplayer","value":{"input":{"url":"https://www.bbc.co.uk/iplayer"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/geoblock \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"https://www.bbc.co.uk/iplayer\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/geoblock\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"https://www.bbc.co.uk/iplayer\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/geoblock\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"https://www.bbc.co.uk/iplayer\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/web-speed":{"post":{"operationId":"webSpeed","summary":"Website speed","description":"Time a page load and weigh its assets.\n\nMeasure a web page’s network timing (DNS, connect, TLS, TTFB), HTML transfer weight, compression, and heaviest sampled assets. Run fast, repeatable server-side network checks without the variability of local browser extensions or residential bandwidth.","tags":["Website and HTTP"],"x-mn-tool":"web-speed","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/WebSpeedInput"}}},"examples":{"example":{"summary":"Website speed: https://github.com","value":{"input":{"url":"https://github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/web-speed \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"https://github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/web-speed\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"https://github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/web-speed\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"https://github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/protocols":{"post":{"operationId":"protocols","summary":"HTTP/2, HTTP/3, IPv6 support","description":"Check HTTP/2, HTTP/3 and IPv6 support.\n\nTest whether a website advertises and negotiates modern web transport protocols - HTTP/2, HTTP/3 (QUIC), TLS 1.3, and IPv6. We combine a live TLS ALPN handshake with HTTP Alt-Svc headers and DNS HTTPS/AAAA records in a single check.","tags":["Website and HTTP"],"x-mn-tool":"protocols","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/ProtocolsInput"}}},"examples":{"example":{"summary":"HTTP/2, HTTP/3, IPv6 support: cloudflare.com","value":{"input":{"domain":"cloudflare.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/protocols \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"cloudflare.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/protocols\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"cloudflare.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/protocols\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"cloudflare.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/tech-detect":{"post":{"operationId":"techDetect","summary":"What’s that site running?","description":"Identify technologies visible in a page, its response headers and public DNS.\n\nIdentify a website’s CDN, hosting, web server, frameworks, analytics, and DNS-backed services - with verifiable evidence for every match. Our static scanner inspects HTTP headers, cookies, HTML source, redirect hops, and public DNS without running scripts or fetching third-party assets, and flags external scripts missing Subresource Integrity (SRI).","tags":["Website and HTTP"],"x-mn-tool":"tech-detect","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TechDetectInput"}}},"examples":{"example":{"summary":"What’s that site running?: nodejs.org","value":{"input":{"url":"nodejs.org"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/tech-detect \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"nodejs.org\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/tech-detect\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"nodejs.org\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/tech-detect\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"nodejs.org\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/crawler-files":{"post":{"operationId":"crawlerFiles","summary":"robots.txt, sitemap, llms.txt","description":"Check robots.txt, sitemap, llms.txt and security.txt.\n\nInspect a domain’s robots.txt, sitemap.xml, llms.txt, and security.txt in one pass, and see exactly which search engines and AI bots are allowed or blocked. We evaluate your robots.txt rules against our daily copy of Cloudflare Radar’s verified bots directory so you can audit AI training, AI search, and crawler access accurately.","tags":["Website and HTTP"],"x-mn-tool":"crawler-files","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/CrawlerFilesInput"}}},"examples":{"example":{"summary":"robots.txt, sitemap, llms.txt: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/crawler-files \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/crawler-files\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/crawler-files\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/web-bot-auth":{"post":{"operationId":"webBotAuth","summary":"Web Bot Auth checker","description":"Check a bot’s signed key directory, or test a signed request.\n\nValidate a bot’s /.well-known/http-message-signatures-directory against the Web Bot Auth drafts and Cloudflare’s verifier - or test live RFC 9421 signed requests end to end. Built by an operator running two signed production bots (MiddleNetwork-User and MiddleNetwork-Check), we verify Ed25519 keys, JWK thumbprints, directory self-signatures, and Cloudflare Radar listing status.","tags":["Website and HTTP"],"x-mn-tool":"web-bot-auth","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/WebBotAuthInput"}}},"examples":{"example":{"summary":"Web Bot Auth checker: api.middle.network","value":{"input":{"url":"api.middle.network"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/web-bot-auth \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"api.middle.network\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/web-bot-auth\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"api.middle.network\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/web-bot-auth\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"api.middle.network\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/bot-operator":{"post":{"operationId":"botOperator","summary":"Verified bot operator check","description":"Does this domain run a Cloudflare-verified bot, and is its key directory healthy?\n\nCheck whether a domain operates any bots on Cloudflare’s verified bots list and confirm that its Web Bot Auth signing directories are currently healthy. Powered by our daily sync of Cloudflare Radar’s full verified bots directory, combined with live RFC 9421 key-directory verification.","tags":["Website and HTTP"],"x-mn-tool":"bot-operator","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/BotOperatorInput"}}},"examples":{"example":{"summary":"Verified bot operator check: openai.com","value":{"input":{"domain":"openai.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/bot-operator \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"openai.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/bot-operator\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"openai.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/bot-operator\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"openai.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/user-agent":{"post":{"operationId":"userAgent","summary":"User-Agent lookup","description":"Identify a User-Agent from your logs or look up a bot by name.\n\nDecode a raw User-Agent from server logs - or search by bot, operator, or product name - to see what it does and how reliably you can verify it. We score every matched bot on a 5-level Verification Maturity scale (from L1 Claimed to L5 Proven via live Web Bot Auth keys) using Cloudflare Radar and operator documentation.","tags":["Website and HTTP"],"x-mn-tool":"user-agent","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/UserAgentInput"}}},"examples":{"example":{"summary":"User-Agent lookup: Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)","value":{"input":{"text":"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/user-agent \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/user-agent\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/user-agent\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/sitemap":{"post":{"operationId":"sitemap","summary":"Sitemap inspector","description":"Validate a sitemap, follow its index and spot risks.\n\nValidate sitemap.xml and nested sitemap indexes against sitemaps.org and Google limits, audit freshness and URL hygiene, and check for XML/script injection risks. Beyond syntax validation, we follow child indexes, spot-check live URLs for HTTP 200 status, and detect URLs inadvertently blocked by robots.txt.","tags":["Website and HTTP"],"x-mn-tool":"sitemap","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/SitemapInput"}}},"examples":{"example":{"summary":"Sitemap inspector: github.com","value":{"input":{"url":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/sitemap \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/sitemap\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/sitemap\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/meta-links":{"post":{"operationId":"metaLinks","summary":"Meta tag / link checker","description":"Preview search and social cards, find broken links.\n\nPreview how a page renders in Google search and social shares while checking its canonical, robots, viewport, and Open Graph tags - plus live broken-link checks. One fast server-side scan verifies both SEO metadata and destination HTTP status codes without browser extensions.","tags":["Website and HTTP"],"x-mn-tool":"meta-links","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MetaLinksInput"}}},"examples":{"example":{"summary":"Meta tag / link checker: https://github.com","value":{"input":{"url":"https://github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/meta-links \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"url\":\"https://github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/meta-links\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"url\":\"https://github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/meta-links\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"url\":\"https://github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/tcp-ping":{"post":{"operationId":"tcpPing","summary":"TCP ping","description":"Time TCP connections to a port, even when ping is blocked.\n\nMeasure TCP handshake times to any host and port - even when ICMP ping is blocked by firewalls. Tests run concurrently from selectable Tier-1 data-centre probes with automatic failover and one-click presets for HTTPS, SSH, RDP, SMTP, IMAPS, and DNS.","tags":["Network and routing"],"x-mn-tool":"tcp-ping","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TcpPingInput"}}},"examples":{"example":{"summary":"TCP ping: github.com","value":{"input":{"target":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/tcp-ping \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/tcp-ping\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/tcp-ping\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/traceroute":{"post":{"operationId":"traceroute","summary":"Traceroute","description":"Trace the path packets take to a host.\n\nTrace the exact network path packets take to any host or IP from selectable Tier-1 data-centre probes, with automatic ASN and country enrichment on every router hop. Our Auto mode tries ICMP, TCP 443, and UDP - keeping whichever protocol penetrates firewalls furthest.","tags":["Network and routing"],"x-mn-tool":"traceroute","x-mn-cost":5,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TracerouteInput"}}},"examples":{"example":{"summary":"Traceroute: 1.1.1.1","value":{"input":{"target":"1.1.1.1"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/traceroute \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"1.1.1.1\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/traceroute\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"1.1.1.1\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/traceroute\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"1.1.1.1\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/tcp-traceroute":{"post":{"operationId":"tcpTraceroute","summary":"TCP traceroute","description":"Traceroute over TCP to get through firewalls.\n\nTrace the route to a specific TCP port (such as 443 or 22) to diagnose reachability through firewalls that drop ICMP and UDP. Runs from dedicated VM probe nodes across selectable Tier-1 regions with ASN identification on every replying hop.","tags":["Network and routing"],"x-mn-tool":"tcp-traceroute","x-mn-cost":5,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TcpTracerouteInput"}}},"examples":{"example":{"summary":"TCP traceroute: github.com","value":{"input":{"target":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/tcp-traceroute \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/tcp-traceroute\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/tcp-traceroute\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/mtr":{"post":{"operationId":"mtr","summary":"MTR","description":"Traceroute plus loss and jitter at every hop.\n\nRun continuous multi-packet MTR diagnostics from Tier-1 data-centre VM probes to measure packet loss, average latency, and jitter across the path. Combines traceroute path discovery with repeated sampling so intermittent drops stand out clearly.","tags":["Network and routing"],"x-mn-tool":"mtr","x-mn-cost":5,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MtrInput"}}},"examples":{"example":{"summary":"MTR: 1.1.1.1","value":{"input":{"target":"1.1.1.1"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/mtr \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"1.1.1.1\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/mtr\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"1.1.1.1\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/mtr\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"1.1.1.1\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/port-check":{"post":{"operationId":"portCheck","summary":"Port check","description":"Is a port open, closed or filtered?\n\nCheck up to 10 TCP ports at once from multiple Tier-1 data-centre regions to see whether each is open, closed, or firewalled. Includes one-click presets for Web, Mail, Remote access, Databases, DNS, and File transfer, and automatically flags exposed high-risk services.","tags":["Network and routing"],"x-mn-tool":"port-check","x-mn-cost":3,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/PortCheckInput"}}},"examples":{"example":{"summary":"Port check: github.com","value":{"input":{"target":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/port-check \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/port-check\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/port-check\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/port-scan":{"post":{"operationId":"portScan","summary":"Port scanner","description":"Scan 20 common ports and flag risky ones.\n\nAudit a host’s external attack surface across 20 common service ports and immediately surface dangerous exposures such as RDP, SMB, SSH, and databases. Polite per-target rate limits protect hosts while giving you clear plain-English remediation priorities.","tags":["Network and routing"],"x-mn-tool":"port-scan","x-mn-cost":8,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/PortScanInput"}}},"examples":{"example":{"summary":"Port scanner: scanme.nmap.org","value":{"input":{"target":"scanme.nmap.org"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/port-scan \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"scanme.nmap.org\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/port-scan\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"scanme.nmap.org\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/port-scan\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"scanme.nmap.org\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/mtu":{"post":{"operationId":"mtu","summary":"MTU / PMTU discovery","description":"Find the largest packet that gets through.\n\nDiscover the maximum packet size (Path MTU) that reaches a host without fragmentation from selectable Tier-1 VM probes. Quickly diagnose VPN, PPPoE, and tunnel MTU black holes that cause large pages or TLS handshakes to hang while small pings succeed.","tags":["Network and routing"],"x-mn-tool":"mtu","x-mn-cost":5,"x-mn-runs-on":"global","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MtuInput"}}},"examples":{"example":{"summary":"MTU / PMTU discovery: 1.1.1.1","value":{"input":{"target":"1.1.1.1"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/mtu \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"1.1.1.1\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/mtu\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"1.1.1.1\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/mtu\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"1.1.1.1\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result. Send `Accept: text/event-stream` instead to get `start` and `probe` events as each location answers, then one `result` event.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}},"text/event-stream":{"itemSchema":{"description":"Server-sent events: `start`, then `probe` as each location answers, then one `result`.","type":"object","required":["event","data"],"properties":{"event":{"type":"string","enum":["start","probe","result"],"description":"`start`: which locations will answer. `probe`: one location’s answer. `result`: the finished ToolResult."},"data":{"type":"string","contentMediaType":"application/json","description":"The event’s JSON.","contentSchema":{"$ref":"#/components/schemas/ToolResult"}},"id":{"type":"string"}}}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/asn":{"post":{"operationId":"asn","summary":"BGP / ASN lookup","description":"A network’s prefixes, upstreams, peers, exchanges and history.\n\nProfile any AS number, IP address, prefix, or domain: announced IPv4/IPv6 prefixes, RPKI validity, upstream/peer/customer topology, PeeringDB exchanges, routing history, and live BGP security alerts. We cross-reference RIPEstat, PeeringDB, RDAP, Team Cymru, and Cloudflare Radar - automatically filtering hijack and route-leak alerts against ROAs and customer links to reduce false alarms.","tags":["Network and routing"],"x-mn-tool":"asn","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/AsnInput"}}},"examples":{"example":{"summary":"BGP / ASN lookup: AS13335","value":{"input":{"target":"AS13335"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/asn \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"target\":\"AS13335\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/asn\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"target\":\"AS13335\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/asn\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"target\":\"AS13335\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/browser-net":{"post":{"operationId":"browserNet","summary":"Browser network tests","description":"Your connection as our server sees it.\n\nInspect your live internet connection as external servers see it - public IP, ISP/ASN, approximate location, proxy indicators, and direct round-trip latency. Runs a clean multi-sample latency measurement straight from your browser to our API without third-party trackers or ad scripts.","tags":["Network and routing"],"x-mn-tool":"browser-net","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/BrowserNetInput"}}},"examples":{"example":{"summary":"Browser network tests: example","value":{"input":{}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/browser-net \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/browser-net\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/browser-net\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/whois":{"post":{"operationId":"whois","summary":"WHOIS / RDAP (domain)","description":"Registrar, dates, status and nameservers for a domain.\n\nLook up live domain registration details straight from official registries via RDAP - registrar, creation and expiry dates, EPP lock codes, nameservers, and DNSSEC status. Structured RDAP queries avoid brittle legacy WHOIS scraping and decode cryptic EPP codes into clear security verdicts.","tags":["Domain and IP ownership"],"x-mn-tool":"whois","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/WhoisInput"}}},"examples":{"example":{"summary":"WHOIS / RDAP (domain): github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/whois \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/whois\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/whois\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/whois-ip":{"post":{"operationId":"whoisIp","summary":"IP lookup (WHOIS / RDAP)","description":"Who owns an IP address, and who to tell about abuse.\n\nFind the registered organisation, CIDR address block, country, and official abuse contact for any IPv4 or IPv6 address directly from the five Regional Internet Registries (ARIN, RIPE NCC, APNIC, LACNIC, AFRINIC) over RDAP. Fresh registry lookups with clean brand matching and direct links to ASN and geolocation tools.","tags":["Domain and IP ownership"],"x-mn-tool":"whois-ip","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/WhoisIpInput"}}},"examples":{"example":{"summary":"IP lookup (WHOIS / RDAP): 8.8.8.8","value":{"input":{"ip":"8.8.8.8"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/whois-ip \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"ip\":\"8.8.8.8\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/whois-ip\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"ip\":\"8.8.8.8\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/whois-ip\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"ip\":\"8.8.8.8\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/domain-age":{"post":{"operationId":"domainAge","summary":"Domain age and expiry","description":"How old is a domain and when does it expire?\n\nCheck a domain’s exact creation date, age, and renewal deadline straight from the authoritative registry over RDAP. Includes visual expiry warnings and a one-click 30-day calendar reminder (.ics) so critical domains never lapse unnoticed.","tags":["Domain and IP ownership"],"x-mn-tool":"domain-age","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DomainAgeInput"}}},"examples":{"example":{"summary":"Domain age and expiry: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/domain-age \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/domain-age\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/domain-age\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/domain-available":{"post":{"operationId":"domainAvailable","summary":"Domain availability","description":"Is a domain name free to register?\n\nCheck whether a domain name is available or already registered by querying official registry RDAP and WHOIS servers directly. Unlike registrar search bars, we don’t sell domains, push upsells, or monetise your searches.","tags":["Domain and IP ownership"],"x-mn-tool":"domain-available","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DomainAvailableInput"}}},"examples":{"example":{"summary":"Domain availability: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/domain-available \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/domain-available\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/domain-available\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/geoip":{"post":{"operationId":"geoip","summary":"IP geolocation","description":"Where in the world is an IP address?\n\nLocate any IPv4 or IPv6 address on an interactive map alongside its owning network (ASN) and country. Combines MaxMind GeoLite data via RIPEstat with live Team Cymru ASN mapping and clearly notes anycast or cloud addresses that have no single physical city.","tags":["Domain and IP ownership"],"x-mn-tool":"geoip","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/GeoipInput"}}},"examples":{"example":{"summary":"IP geolocation: 8.8.8.8","value":{"input":{"ip":"8.8.8.8"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/geoip \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"ip\":\"8.8.8.8\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/geoip\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"ip\":\"8.8.8.8\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/geoip\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"ip\":\"8.8.8.8\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/reverse-ip":{"post":{"operationId":"reverseIp","summary":"Reverse IP","description":"Find the reverse DNS names published for an IP address.\n\nLook up every PTR hostname published in reverse DNS for an IPv4 or IPv6 address. Runs live DNS PTR queries without relying on stale cached passive-DNS scrapers, with one-click follow-ups to IP WHOIS and geolocation.","tags":["Domain and IP ownership"],"x-mn-tool":"reverse-ip","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/ReverseIpInput"}}},"examples":{"example":{"summary":"Reverse IP: 140.82.112.3","value":{"input":{"ip":"140.82.112.3"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/reverse-ip \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"ip\":\"140.82.112.3\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/reverse-ip\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"ip\":\"140.82.112.3\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/reverse-ip\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"ip\":\"140.82.112.3\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/bulk-ip":{"post":{"operationId":"bulkIp","summary":"Bulk IP lookup","description":"Look up to 50 IPs at once: owner, network, country, hostname.\n\nPaste up to 50 IP addresses - or raw logs, CSVs, or email headers containing them - to extract and enrich every IPv4 and IPv6 address at once. Automatically groups traffic by owning network (ASN), pulls reverse DNS and RIR abuse contacts, and exports a spreadsheet-safe CSV.","tags":["Domain and IP ownership"],"x-mn-tool":"bulk-ip","x-mn-cost":8,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/BulkIpInput"}}},"examples":{"example":{"summary":"Bulk IP lookup: 8.8.8.8\n1.1.1.1\n140.82.112.3\n2606:4700:4700::1111","value":{"input":{"text":"8.8.8.8\n1.1.1.1\n140.82.112.3\n2606:4700:4700::1111"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/bulk-ip \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"8.8.8.8\\n1.1.1.1\\n140.82.112.3\\n2606:4700:4700::1111\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/bulk-ip\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"8.8.8.8\\n1.1.1.1\\n140.82.112.3\\n2606:4700:4700::1111\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/bulk-ip\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"8.8.8.8\\n1.1.1.1\\n140.82.112.3\\n2606:4700:4700::1111\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/my-ip":{"post":{"operationId":"myIp","summary":"What is my IP / ISP","description":"Your public IPv4 and IPv6, ISP and location.\n\nSee your public IPv4 and IPv6 addresses, ISP, ASN, approximate map location, round-trip latency, and browser privacy signals in one clean view. Everything shown is exactly what any website you visit can observe - with zero ad trackers or upsell pop-ups.","tags":["Domain and IP ownership"],"x-mn-tool":"my-ip","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MyIpInput"}}},"examples":{"example":{"summary":"What is my IP / ISP: example","value":{"input":{}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/my-ip \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/my-ip\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/my-ip\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/domain-report":{"post":{"operationId":"domainReport","summary":"Domain report","description":"Registration, DNS, email, web and hosting on one page.\n\nBuild a single-page profile of any domain’s registration, DNS, email posture, SSL certificate, web stack, and hosting network. Built for rapid due diligence and handovers, every card links directly to its full diagnostic tool and toggles cleanly between plain English and technical detail.","tags":["Start here: full reports"],"x-mn-tool":"domain-report","x-mn-cost":2,"x-mn-runs-on":"central","x-mn-active":true,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/DomainReportInput"}}},"examples":{"example":{"summary":"Domain report: github.com","value":{"input":{"domain":"github.com"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/domain-report \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"domain\":\"github.com\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/domain-report\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"domain\":\"github.com\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/domain-report\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"domain\":\"github.com\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/subnet":{"post":{"operationId":"subnet","summary":"Subnet / CIDR calculator","description":"Network, broadcast, range and host count for a CIDR.\n\nCalculate IPv4 and IPv6 CIDR subnets, netmasks, usable ranges, reverse DNS zones, and equal subnet splits live as you type. Runs 100% client-side in your browser with interactive binary bits, a host-count auto-sizer, and one-click copy on every value.","tags":["Converters and calculators"],"x-mn-tool":"subnet","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/SubnetInput"}}},"examples":{"example":{"summary":"Subnet / CIDR calculator: 192.168.1.0/24","value":{"input":{"text":"192.168.1.0/24"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/subnet \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"192.168.1.0/24\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/subnet\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"192.168.1.0/24\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/subnet\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"192.168.1.0/24\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/ip-convert":{"post":{"operationId":"ipConvert","summary":"IP converters","description":"IP to decimal, hex, binary and IPv6 forms.\n\nConvert any IPv4 or IPv6 address between dotted, decimal, hexadecimal, binary, reverse-DNS, and IPv4-mapped IPv6 forms instantly. Runs entirely in your browser with interactive clickable bits, automatic EUI-64 MAC extraction, and a toggle to inspect disguised IP forms used in phishing links.","tags":["Converters and calculators"],"x-mn-tool":"ip-convert","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/IpConvertInput"}}},"examples":{"example":{"summary":"IP converters: 192.168.1.1","value":{"input":{"text":"192.168.1.1"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/ip-convert \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"192.168.1.1\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/ip-convert\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"192.168.1.1\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/ip-convert\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"192.168.1.1\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/punycode":{"post":{"operationId":"punycode","summary":"Punycode / IDN converter","description":"Convert international domains and spot look-alikes.\n\nConvert internationalised domain names (IDNs) and email domains between Unicode and DNS punycode (xn--), while screening for homograph phishing attacks. Runs 100% in your browser, flagging mixed-script labels and Cyrillic/Greek look-alike characters alongside exact Unicode code points.","tags":["Converters and calculators"],"x-mn-tool":"punycode","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/PunycodeInput"}}},"examples":{"example":{"summary":"Punycode / IDN converter: münchen.de","value":{"input":{"text":"münchen.de"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/punycode \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"münchen.de\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/punycode\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"münchen.de\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/punycode\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"münchen.de\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/mac-vendor":{"post":{"operationId":"macVendor","summary":"MAC vendor lookup","description":"Which company made a network card?\n\nIdentify the hardware manufacturer (IEEE OUI) of any MAC address, inspect its unicast/multicast and universal/local flags, and convert between Linux, Windows, and Cisco formats. Instant browser-side bit analysis paired with live IEEE registry lookups and automatic IPv6 link-local derivation.","tags":["Converters and calculators"],"x-mn-tool":"mac-vendor","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MacVendorInput"}}},"examples":{"example":{"summary":"MAC vendor lookup: 00:1A:2B:3C:4D:5E","value":{"input":{"text":"00:1A:2B:3C:4D:5E"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/mac-vendor \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"00:1A:2B:3C:4D:5E\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/mac-vendor\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"00:1A:2B:3C:4D:5E\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/mac-vendor\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"00:1A:2B:3C:4D:5E\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/mac-ipv6":{"post":{"operationId":"macIpv6","summary":"MAC to IPv6 converter","description":"Turn a MAC address into its IPv6 link-local address, and back.\n\nConvert a 48-bit MAC address into its modified EUI-64 interface ID, IPv6 link-local (fe80::), SLAAC global address, and solicited-node multicast MAC - or extract the original MAC back from an IPv6 address. Runs 100% in your browser with a step-by-step byte breakdown so you can verify every bit flip.","tags":["Converters and calculators"],"x-mn-tool":"mac-ipv6","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/MacIpv6Input"}}},"examples":{"example":{"summary":"MAC to IPv6 converter: 00:1a:2b:3c:4d:5e","value":{"input":{"text":"00:1a:2b:3c:4d:5e"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/mac-ipv6 \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"00:1a:2b:3c:4d:5e\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/mac-ipv6\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"00:1a:2b:3c:4d:5e\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/mac-ipv6\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"00:1a:2b:3c:4d:5e\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/encoders":{"post":{"operationId":"encoders","summary":"Base64 / URL / JWT decoders","description":"Decode Base64, URL encoding, hex and JWTs.\n\nDecode or encode Base64, Base64url, URL percent-encoding, and Hex - and inspect JSON Web Token (JWT) headers, claims, and expiry windows - live as you type. Runs 100% locally in your browser so pasted tokens and payloads never touch our servers.","tags":["Converters and calculators"],"x-mn-tool":"encoders","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/EncodersInput"}}},"examples":{"example":{"summary":"Base64 / URL / JWT decoders: aGVsbG8gd29ybGQ=","value":{"input":{"text":"aGVsbG8gd29ybGQ="}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/encoders \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"aGVsbG8gd29ybGQ=\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/encoders\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"aGVsbG8gd29ybGQ=\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/encoders\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"aGVsbG8gd29ybGQ=\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/zone-format":{"post":{"operationId":"zoneFormat","summary":"Zone file formatter","description":"Lint and tidy a BIND zone file.\n\nValidate, lint, and align BIND and Azure DNS zone files before importing them to production. Catch silent outages - like missing trailing dots, CNAME conflicts, and invalid TTLs - and copy back a cleanly formatted zone alongside a parsed record table.","tags":["DNS records"],"x-mn-tool":"zone-format","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/ZoneFormatInput"}}},"examples":{"example":{"summary":"Zone file formatter: $ORIGIN example.com.\n$TTL 3600\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026010101 7200 900 1209600 3600\n@ IN NS ns1.example.com.\n@ IN A 192.0.2.10\nwww IN CNAME example.com.","value":{"input":{"text":"$ORIGIN example.com.\n$TTL 3600\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026010101 7200 900 1209600 3600\n@ IN NS ns1.example.com.\n@ IN A 192.0.2.10\nwww IN CNAME example.com."}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/zone-format \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"$ORIGIN example.com.\\n$TTL 3600\\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026010101 7200 900 1209600 3600\\n@ IN NS ns1.example.com.\\n@ IN A 192.0.2.10\\nwww IN CNAME example.com.\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/zone-format\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"$ORIGIN example.com.\\n$TTL 3600\\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026010101 7200 900 1209600 3600\\n@ IN NS ns1.example.com.\\n@ IN A 192.0.2.10\\nwww IN CNAME example.com.\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/zone-format\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"$ORIGIN example.com.\\n$TTL 3600\\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026010101 7200 900 1209600 3600\\n@ IN NS ns1.example.com.\\n@ IN A 192.0.2.10\\nwww IN CNAME example.com.\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools/time-convert":{"post":{"operationId":"timeConvert","summary":"Timestamp and TTL converter","description":"Unix timestamps, dates and TTLs, converted.\n\nConvert Unix epoch timestamps (seconds or milliseconds) and ISO dates across global time zones, or translate DNS TTL seconds into human-readable durations and propagation estimates. Runs 100% client-side in your browser with live clock tracking, 2038-overflow warnings, and a visual DNS TTL scale.","tags":["Converters and calculators"],"x-mn-tool":"time-convert","x-mn-cost":1,"x-mn-runs-on":"central","x-mn-active":false,"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["input"],"properties":{"input":{"$ref":"#/components/schemas/TimeConvertInput"}}},"examples":{"example":{"summary":"Timestamp and TTL converter: 1700000000","value":{"input":{"text":"1700000000"}}}}}}},"x-codeSamples":[{"lang":"Shell","label":"curl","source":"curl -X POST https://api.middle.network/v1/tools/time-convert \\\n  -H \"Authorization: Bearer $MN_API_KEY\" \\\n  -H \"Content-Type: application/json\" \\\n  -d '{\"input\":{\"text\":\"1700000000\"}}'"},{"lang":"JavaScript","label":"JavaScript","source":"const res = await fetch(\"https://api.middle.network/v1/tools/time-convert\", {\n  method: \"POST\",\n  headers: {\n    Authorization: `Bearer ${process.env.MN_API_KEY}`,\n    \"Content-Type\": \"application/json\",\n  },\n  body: JSON.stringify({\"input\":{\"text\":\"1700000000\"}}),\n});\nconst result = await res.json();\nconsole.log(result.status, result.summary.plain);"},{"lang":"Python","label":"Python","source":"import os, requests\n\nres = requests.post(\"https://api.middle.network/v1/tools/time-convert\",\n    headers={\"Authorization\": f\"Bearer {os.environ['MN_API_KEY']}\"},\n    json={\"input\":{\"text\":\"1700000000\"}})\nresult = res.json()\nprint(result[\"status\"], result[\"summary\"][\"plain\"])"}],"responses":{"200":{"description":"The result.","headers":{"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ToolResult"}}}},"400":{"description":"The input broke the schema, or the target is not valid (with suggestions when it looks like a typo).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"No API key, or the key is not valid or was revoked.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"The tool sends traffic at the target and isn’t open to API keys yet (`activeTool`), or the target’s owner has asked not to be tested (`optedOut`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many checks: per minute, per day, or at the same target.","headers":{"Retry-After":{"description":"Seconds to wait before trying again.","schema":{"type":"integer"}},"RateLimit-Limit":{"description":"Cost units this key may spend per UTC day.","schema":{"type":"integer"}},"RateLimit-Remaining":{"description":"Cost units left today.","schema":{"type":"integer"}},"RateLimit-Reset":{"description":"Seconds until the daily count resets (midnight UTC).","schema":{"type":"integer"}}},"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/v1/tools":{"get":{"operationId":"listTools","summary":"Every tool, with which are live","tags":["Reference"],"security":[],"responses":{"200":{"description":"The catalog and its groups.","content":{"application/json":{"schema":{"type":"object"}}}}}}},"/v1/probes":{"get":{"operationId":"listProbes","summary":"Probe locations, for `regions`","tags":["Reference"],"security":[],"responses":{"200":{"description":"One entry per location: id, city, country, continent.","content":{"application/json":{"schema":{"type":"object"}}}}}}}},"components":{"schemas":{"ToolResult":{"type":"object","description":"Every tool answers in this shape. `summary` and each finding come in two styles: `tech` for engineers, `plain` in plain English.","required":["tool","status","summary","findings","at"],"properties":{"tool":{"type":"string","description":"The tool id.","examples":["spf"]},"target":{"description":"What was tested, normalised (a host, URL or IP).","examples":["example.com"]},"status":{"type":"string","enum":["pass","warn","fail","info","error"],"description":"The worst finding wins; no findings is a pass. `error` means the test itself couldn’t run."},"summary":{"type":"object","required":["tech","plain"],"properties":{"tech":{"type":"string"},"plain":{"type":"string"}}},"findings":{"type":"array","items":{"$ref":"#/components/schemas/Finding"}},"data":{"description":"The raw structured result. Its shape depends on the tool and may gain fields over time."},"limited":{"type":"array","description":"Parts that couldn’t be checked because a data source refused or rate-limited us.","items":{"type":"object","properties":{"upstream":{"type":"string"},"reason":{"type":"string"}}}},"ms":{"type":"integer","description":"How long the run took, in milliseconds."},"at":{"type":"string","format":"date-time"},"share":{"type":"object","description":"A saved copy of this result, for \"Copy link to this result\".","properties":{"id":{"type":"string"},"at":{"type":"string","format":"date-time"}}}}},"Finding":{"type":"object","required":["level","tech","plain"],"properties":{"level":{"type":"string","enum":["pass","warn","fail","info","error"]},"tech":{"type":"string"},"plain":{"type":"string"},"fix":{"type":"string","description":"What to change, when there is a clear fix."}}},"Error":{"type":"object","required":["error"],"properties":{"error":{"type":"string","description":"What went wrong, in plain English."},"errors":{"type":"array","description":"Every field that broke the tool’s input schema (400 only).","items":{"type":"object","properties":{"path":{"type":"string"},"message":{"type":"string"}}}},"suggest":{"type":"array","items":{"type":"string"},"description":"Likely intended domains, when the one given looks like a typo."}}},"DnsLookupInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"types":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["A","AAAA","CNAME","MX","NS","SOA","TXT","CAA","DS","DNSKEY"]},"description":"Record types to look up. Leave out for all of them.","examples":[["A","MX","TXT"]]},"resolver":{"type":"string","enum":["authoritative","cloudflare","google","quad9","opendns","adguard","controld","nextdns","cleanbrowsing","dnssb","dns4eu","he","comodo","yandex","alidns","dnspod","114dns"],"description":"Which resolver to ask: a public resolver key, or \"authoritative\" for the domain’s own nameserver. Leave out for our default."},"compare":{"type":"string","enum":["authoritative","cloudflare","google","quad9","opendns","adguard","controld","nextdns","cleanbrowsing","dnssb","dns4eu","he","comodo","yandex","alidns","dnspod","114dns"],"description":"A second resolver to ask at the same time, so the answers can be compared side by side."},"dnssec":{"type":"boolean","default":false,"description":"Ask for DNSSEC signatures too (the DO bit)."}}},"SpfInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"HttpInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"The page to fetch. A bare domain gets https:// in front.","examples":["https://example.com/"]},"method":{"type":"string","enum":["GET","HEAD"],"default":"GET","description":"HTTP method."},"ua":{"type":"string","enum":["default","chrome","iphone","googlebot"],"default":"default","description":"Which browser to pretend to be."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"PingInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"count":{"type":"integer","minimum":1,"maximum":20,"default":4,"description":"Packets to send from each location."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set. This tool runs only on VM probes.","examples":[["all"],["au-east","eu-west"]]}}},"HealthCheckInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"sections":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["dns","email","web","tls","network","ownership"]},"description":"Only these parts of the check. Leave out for the full check.","examples":[["dns","email"]]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"DnsRecordInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","NS","TXT","CAA","SOA","SRV","DS","DNSKEY","HTTPS","PTR"],"default":"A","description":"The record type."},"resolver":{"type":"string","enum":["authoritative","cloudflare","google","quad9","opendns","adguard","controld","nextdns","cleanbrowsing","dnssb","dns4eu","he","comodo","yandex","alidns","dnspod","114dns"],"description":"Which resolver to ask: a public resolver key, or \"authoritative\". Leave out for our default."},"dnssec":{"type":"boolean","default":false,"description":"Ask for DNSSEC signatures too (the DO bit)."}}},"DnsPropagationInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","NS","TXT","CAA","SOA","SRV","DS","DNSKEY","HTTPS","PTR"],"default":"A","description":"The record type."},"resolvers":{"type":"array","uniqueItems":true,"maxItems":64,"items":{"type":"string","enum":["all","cloudflare","google","quad9","opendns","adguard","controld","nextdns","cleanbrowsing","dnssb","dns4eu","he","comodo","yandex","alidns","dnspod","114dns"]},"description":"Public resolvers each location asks. Public resolver keys, or [\"all\"]. Leave out for the popular four.","examples":[["cloudflare","google"]]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"ReverseDnsInput":{"type":"object","required":["ip"],"properties":{"ip":{"type":"string","minLength":1,"maxLength":64,"description":"An IPv4 or IPv6 address.","examples":["8.8.8.8","2606:4700:4700::1111"]}}},"DnssecInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"DnsHealthInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"DnsAuthVsCacheInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"type":{"type":"string","enum":["A","AAAA","CNAME","MX","NS","TXT","CAA","SOA","SRV","DS","DNSKEY","HTTPS","PTR"],"default":"A","description":"The record type."},"resolvers":{"type":"array","uniqueItems":true,"maxItems":64,"items":{"type":"string","enum":["all","cloudflare","google","quad9","opendns","adguard","controld","nextdns","cleanbrowsing","dnssb","dns4eu","he","comodo","yandex","alidns","dnspod","114dns"]},"description":"Caches to compare with the authoritative answer. Public resolver keys, or [\"all\"]. Leave out for the popular four.","examples":[["cloudflare","google"]]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"DnsSpeedInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"resolvers":{"type":"array","uniqueItems":true,"maxItems":64,"items":{"type":"string","enum":["all","cloudflare","google","quad9","opendns","adguard","controld","nextdns","cleanbrowsing","dnssb","dns4eu","he","comodo","yandex","alidns","dnspod","114dns"]},"description":"Resolvers to time. Public resolver keys, or [\"all\"]. Leave out for the popular four.","examples":[["cloudflare","google"]]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"SubdomainsInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"ZonePrecheckInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"ns":{"type":"string","maxLength":1024,"description":"The new nameservers, comma-separated. Leave out to check the current ones.","examples":["ns1.newhost.com,ns2.newhost.com"]}}},"DnsLeakInput":{"type":"object","required":["token"],"properties":{"token":{"type":"string","minLength":20,"maxLength":40,"description":"The test id the browser looked up names under (from the DNS leak test page).","examples":["k3v9q2x7m1p8r4t6w0yz"]},"sent":{"type":"integer","minimum":1,"maximum":20,"default":6,"description":"How many test names the browser looked up."}}},"MxInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"DkimInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"selector":{"type":"string","maxLength":253,"description":"DKIM selector(s), comma-separated. Leave out to try the common ones.","examples":["google","selector1,selector2"]}}},"DmarcInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"BimiInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"MtaStsInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"TlsRptInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"DaneInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"BlacklistInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A domain (its mail servers and website are checked) or an IP address.","examples":["example.com","1.1.1.1"]}}},"EmailHeadersInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":20,"description":"The full headers of one email, as pasted from “Show original”.","maxLength":262144,"examples":["Received: from mail.example.com (mail.example.com [192.0.2.10])\nAuthentication-Results: mx.example.net; spf=pass smtp.mailfrom=example.com; dkim=pass header.d=example.com; dmarc=pass\nFrom: Alice <alice@example.com>\nTo: bob@example.net\nSubject: Hello\nDate: Mon, 1 Jan 2026 09:00:00 +0000"]}}},"SmtpInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain (its first MX host is tested) or a mail server’s host name.","examples":["example.com"]},"port":{"type":"integer","enum":[25,465,587,2525],"description":"One port to test. Leave out for 25, 587 and 465."}}},"BulkSenderInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"selector":{"type":"string","maxLength":253,"description":"DKIM selector(s), comma-separated. Leave out to try the common ones.","examples":["google","selector1,selector2"]}}},"EmailScoreInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"selector":{"type":"string","maxLength":253,"description":"DKIM selector(s), comma-separated. Leave out to try the common ones.","examples":["google","selector1,selector2"]}}},"EmailGeneratorsInput":{"type":"object","required":[],"properties":{"type":{"type":"string","enum":["spf","dmarc","dkim","bimi","mta-sts"],"default":"spf","description":"Which record to build."},"domain":{"type":"string","minLength":1,"maxLength":253,"description":"The domain the record is for. Leave out for example.com.","examples":["example.com"]},"text":{"type":"string","maxLength":8192,"description":"What to build it from: for SPF, the senders (include:…, IPs or domains) and an optional policy such as ~all."}}},"DmarcReportsInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"One DMARC aggregate report (the XML inside the .xml, .zip or .gz file).","examples":["<?xml version=\"1.0\"?><feedback><report_metadata><org_name>google.com</org_name></report_metadata><policy_published><domain>example.com</domain><p>reject</p></policy_published><record><row><source_ip>192.0.2.10</source_ip><count>12</count><policy_evaluated><disposition>none</disposition><dkim>pass</dkim><spf>pass</spf></policy_evaluated></row><identifiers><header_from>example.com</header_from></identifiers></record></feedback>"]}}},"RedirectsInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"SecurityHeadersInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"HostileCheckInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"TlsInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"The host name to connect to.","examples":["example.com"]},"port":{"type":"integer","minimum":1,"maximum":65535,"default":443,"description":"TCP port."}}},"CtLogsInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"CertDecoderInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A PEM certificate or certificate signing request. Never paste a private key.","examples":["-----BEGIN CERTIFICATE-----\nMIID…\n-----END CERTIFICATE-----"]}}},"Ja4Input":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A JA4 or JA4+ fingerprint string (JA4, JA4_r, JA4S, JA4H, JA4X, JA4T, or JA4SSH).","maxLength":4096,"examples":["t13d1516h2_8daaf6152771_e5627efa2ab1"]}}},"IsItDownInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"GeoblockInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]},"ua":{"type":"string","enum":["default","chrome","iphone","googlebot"],"default":"chrome","description":"Which browser to pretend to be (default = our own user agent)."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"WebSpeedInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"ProtocolsInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"TechDetectInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"CrawlerFilesInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"WebBotAuthInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"BotOperatorInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"UserAgentInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A User-Agent header, bot name or operator name.","maxLength":1000,"examples":["Mozilla/5.0 (compatible; GPTBot/1.2; +https://openai.com/gptbot)","ChatGPT"]}}},"SitemapInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"The site, or the sitemap’s own URL.","examples":["https://example.com/"]}}},"MetaLinksInput":{"type":"object","required":["url"],"properties":{"url":{"type":"string","minLength":1,"maxLength":2048,"description":"A URL or a bare domain (https:// is added).","examples":["https://example.com/"]}}},"TcpPingInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"port":{"type":"integer","minimum":1,"maximum":65535,"default":443,"description":"TCP port."},"count":{"type":"integer","minimum":1,"maximum":10,"default":4,"description":"Connection attempts from each location."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"TracerouteInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"mode":{"type":"string","enum":["icmp","tcp443","udp"],"description":"Method. Leave out for auto: ICMP, then TCP 443, then UDP, keeping whichever gets furthest."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set. This tool runs only on VM probes.","examples":[["all"],["au-east","eu-west"]]}}},"TcpTracerouteInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"port":{"type":"integer","minimum":1,"maximum":65535,"default":443,"description":"TCP port."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set. This tool runs only on VM probes.","examples":[["all"],["au-east","eu-west"]]}}},"MtrInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set. This tool runs only on VM probes.","examples":[["all"],["au-east","eu-west"]]}}},"PortCheckInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"ports":{"type":"string","minLength":1,"maxLength":100,"default":"80,443","description":"Up to 10 ports, comma-separated.","examples":["80,443","22"]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"PortScanInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]}}},"MtuInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"A host name or an IPv4 or IPv6 address.","examples":["example.com","1.1.1.1"]},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set. This tool runs only on VM probes.","examples":[["all"],["au-east","eu-west"]]}}},"AsnInput":{"type":"object","required":["target"],"properties":{"target":{"type":"string","minLength":1,"maxLength":253,"description":"An AS number (AS13335), an IP, a prefix (1.1.1.0/24) or a domain.","examples":["AS13335","1.1.1.1"]}}},"BrowserNetInput":{"type":"object","required":[],"properties":{"rtt":{"type":"array","maxItems":100,"items":{"type":"number","minimum":0},"description":"Round-trip times the browser measured to us, in milliseconds."}}},"WhoisInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"WhoisIpInput":{"type":"object","required":["ip"],"properties":{"ip":{"type":"string","minLength":1,"maxLength":64,"description":"An IPv4 or IPv6 address.","examples":["8.8.8.8","2606:4700:4700::1111"]}}},"DomainAgeInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"DomainAvailableInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]}}},"GeoipInput":{"type":"object","required":["ip"],"properties":{"ip":{"type":"string","minLength":1,"maxLength":64,"description":"An IPv4 or IPv6 address.","examples":["8.8.8.8","2606:4700:4700::1111"]}}},"ReverseIpInput":{"type":"object","required":["ip"],"properties":{"ip":{"type":"string","minLength":1,"maxLength":253,"description":"An IP address, or a domain whose address is used.","examples":["8.8.8.8","2606:4700:4700::1111"]}}},"BulkIpInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"IP addresses, one per line, or any text that contains them (up to 50 are looked up).","maxLength":1048576}}},"MyIpInput":{"type":"object","required":[],"properties":{}},"DomainReportInput":{"type":"object","required":["domain"],"properties":{"domain":{"type":"string","minLength":1,"maxLength":253,"description":"A domain name, such as example.com. A URL is accepted and its host name is used.","examples":["example.com"]},"parts":{"type":"array","uniqueItems":true,"items":{"type":"string","enum":["registration","dns","email","web","network"]},"description":"Only these parts. Leave out for all of them."},"regions":{"type":"array","maxItems":64,"items":{"type":"string","minLength":1,"maxLength":64},"description":"Probe locations to test from: ids or cities from GET /api/probes, or [\"all\"]. Leave out for the default set.","examples":[["all"],["au-east","eu-west"]]}}},"SubnetInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A CIDR block or an address and mask.","maxLength":128,"examples":["192.168.1.0/24","2001:db8::/48"]}}},"IpConvertInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"An IP address in any common form (dotted, decimal, hex, IPv6).","maxLength":128}}},"PunycodeInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A domain in Unicode or punycode (xn--).","maxLength":253}}},"MacVendorInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A MAC address or its first 6 hex digits.","maxLength":64}}},"MacIpv6Input":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A MAC address (to build its IPv6 address) or an IPv6 address (to find its MAC).","maxLength":64},"prefix":{"type":"string","maxLength":64,"description":"An IPv6 /64 prefix to put in front. Leave out for the link-local fe80::/64."}}},"EncodersInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"The text to encode or decode.","maxLength":65536},"type":{"type":"string","enum":["auto","jwt","base64","base64url","url","hex","encode","encode-base64","encode-url","encode-hex"],"default":"auto","description":"What to do. auto guesses from the text."}}},"ZoneFormatInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A BIND-style zone file.","maxLength":1048576,"examples":["$ORIGIN example.com.\n$TTL 3600\n@ IN SOA ns1.example.com. hostmaster.example.com. 2026010101 7200 900 1209600 3600\n@ IN NS ns1.example.com.\n@ IN A 192.0.2.10\nwww IN CNAME example.com."]},"domain":{"type":"string","minLength":1,"maxLength":253,"description":"The zone’s origin, when the file has no $ORIGIN line.","examples":["example.com"]}}},"TimeConvertInput":{"type":"object","required":["text"],"properties":{"text":{"type":"string","minLength":1,"description":"A Unix timestamp (seconds or milliseconds), a date, or a TTL such as 3600 or 1h30m.","maxLength":128}}}},"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"mn_live_…","description":"An API key from your middle.network account. Keep it secret: anyone with it spends your limits."}}},"security":[{"apiKey":[]}]}