API docs

Every tool works over MCP (https://aipaygen.com/mcp) and HTTP (GET with query parameters or POST with a JSON body to /v1/<tool>).

Authentication and payment

Send Authorization: Bearer apg_… to pay from prepaid credits. Create a key with POST /v1/keys. Without a key, paid endpoints answer 402 Payment Required with a PAYMENT-REQUIRED header (x402 v2). Retry with a PAYMENT-SIGNATURE header; the receipt comes back in PAYMENT-RESPONSE. Over MCP, the payment goes in _meta["x402/payment"].

Successful responses look like {"tool": "...", "data": {...}, "receipt": {...}}. Errors look like {"error": {"code": "...", "message": "..."}}.

dns_lookup

Resolve DNS records for a domain (A, AAAA, CNAME, MX, NS, TXT, SOA, CAA) and identify its DNS host and email provider.

Price $0.001 · cached up to 5 min

GET https://aipaygen.com/v1/dns_lookup?domain=stripe.com
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name, e.g. stripe.com"
    },
    "types": {
      "description": "Record types to fetch. Defaults to A, AAAA, MX, NS, TXT.",
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "A",
          "AAAA",
          "CNAME",
          "MX",
          "NS",
          "TXT",
          "SOA",
          "CAA"
        ]
      }
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}

security_headers

Grade a website's HTTP security headers (HSTS, CSP, X-Frame-Options, Referrer-Policy and more) A-F, list what is missing, and flag exposed server version info.

Price $0.001 · cached up to 30 min

GET https://aipaygen.com/v1/security_headers?url=https%3A%2F%2Fvercel.com
Input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Website URL or domain, e.g. https://example.com"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

domain_whois

Look up who registered a domain and when: registrar, creation and expiry dates, domain age, status codes, nameservers and DNSSEC, via RDAP (the modern WHOIS).

Price $0.002 · cached up to 1440 min

GET https://aipaygen.com/v1/domain_whois?domain=openai.com
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name, e.g. openai.com"
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}

email_security

Audit a domain's email security: SPF, DMARC policy, DKIM keys, MX/email provider, MTA-STS, TLS-RPT and BIMI, with an A-F grade, a spoofability verdict and plain-English issues.

Price $0.002 · cached up to 30 min

GET https://aipaygen.com/v1/email_security?domain=github.com
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name, e.g. github.com"
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}

site_metadata

Extract a website's title, description, language, social profiles, public contact emails and phones, key pages (contact, pricing, careers, docs), RSS feeds and schema.org organization data.

Price $0.002 · cached up to 360 min

GET https://aipaygen.com/v1/site_metadata?url=https%3A%2F%2Fwww.notion.so
Input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Website URL or domain, e.g. notion.so"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

page_to_markdown

Fetch a web page and return its main content as clean Markdown (navigation, ads, scripts and cookie banners removed), ready for an LLM to read.

Price $0.002 · cached up to 60 min

GET https://aipaygen.com/v1/page_to_markdown?url=https%3A%2F%2Fen.wikipedia.org%2Fwiki%2FModel_Context_Protocol
Input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Page URL, e.g. https://blog.cloudflare.com"
    },
    "max_chars": {
      "description": "Maximum Markdown length. Default 20000.",
      "type": "integer",
      "minimum": 1000,
      "maximum": 100000
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

ssl_certificates

Check a domain's TLS certificates from Certificate Transparency logs: current certificate, issuer, days until expiry, and every subdomain that has appeared on a certificate.

Price $0.003 · cached up to 360 min

GET https://aipaygen.com/v1/ssl_certificates?domain=shopify.com
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name, e.g. shopify.com"
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}

tech_stack

Detect what a website is built with: framework, CMS or site builder, hosting/CDN, web server, analytics, ad pixels, payments, chat, auth and more (90+ technologies), with the evidence for each.

Price $0.003 · cached up to 720 min

GET https://aipaygen.com/v1/tech_stack?url=https%3A%2F%2Flinear.app
Input schema
{
  "type": "object",
  "properties": {
    "url": {
      "type": "string",
      "description": "Website URL or domain, e.g. linear.app"
    }
  },
  "required": [
    "url"
  ],
  "additionalProperties": false
}

company_profile

Build a company profile from just a domain: name, description, logo, location, social profiles, public contact info, domain age, email and hosting providers, key tech stack, and business signals (takes payments, hiring, runs ads...). One call instead of six.

Price $0.01 · cached up to 720 min

GET https://aipaygen.com/v1/company_profile?domain=figma.com
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Company domain, e.g. figma.com"
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}

domain_report

Everything about a domain in one call: DNS, registration, certificates and subdomains, email security grade, HTTP security headers grade, tech stack and website metadata, plus an overall summary.

Price $0.02 · cached up to 360 min

GET https://aipaygen.com/v1/domain_report?domain=cloudflare.com
Input schema
{
  "type": "object",
  "properties": {
    "domain": {
      "type": "string",
      "description": "Domain name, e.g. cloudflare.com"
    }
  },
  "required": [
    "domain"
  ],
  "additionalProperties": false
}