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": "..."}}.

search_marketplace

Search 11,000+ AI-agent resources: AIPayGen's paid tools, 4,300+ third-party APIs (with docs and auth info, some x402-payable), 4,300+ reusable skills, 950+ registered agents and 1,500+ agent services. Free.

Free · cached up to 5 min

GET https://aipaygen.com/v1/search_marketplace?query=translate+text&kind=api&limit=5
Input schema
{
  "type": "object",
  "properties": {
    "query": {
      "type": "string",
      "minLength": 1,
      "maxLength": 200,
      "description": "What you need, e.g. 'weather forecast API' or 'summarize pdf'"
    },
    "kind": {
      "description": "Limit to one kind of result",
      "type": "string",
      "enum": [
        "listing",
        "api",
        "skill",
        "agent",
        "service",
        "mcp"
      ]
    },
    "limit": {
      "description": "Results to return (default 10)",
      "type": "integer",
      "minimum": 1,
      "maximum": 50
    }
  },
  "required": [
    "query"
  ],
  "additionalProperties": false
}

register_agent

Free. Submit your public A2A agent card URL (usually https://<your-domain>/.well-known/agent-card.json) and your agent is listed and searchable in the AIPayGen marketplace, so other agents can find you. Re-submit any time to refresh.

Free · cached up to 0 min

GET https://aipaygen.com/v1/register_agent?card_url=https%3A%2F%2Fexample.com%2F.well-known%2Fagent-card.json
Input schema
{
  "type": "object",
  "properties": {
    "card_url": {
      "type": "string",
      "maxLength": 500,
      "format": "uri",
      "description": "Public https URL of your agent card JSON"
    }
  },
  "required": [
    "card_url"
  ],
  "additionalProperties": false
}

run_skill

Run any of 3,900+ ready-made AI skills from the AIPayGen marketplace on your input: research, code review, market analysis, writing, extraction, summarizing and more. Find skill ids with search_marketplace (kind: skill). Failed or refused runs are never charged.

Pay per call (quote on request) · cached up to 60 min

GET https://aipaygen.com/v1/run_skill?skill_id=skill%3A1&input=AI+agent+payment+protocols+in+2026
Input schema
{
  "type": "object",
  "properties": {
    "skill_id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 64,
      "description": "Skill id from search results, e.g. \"skill:3683\" or \"3683\""
    },
    "input": {
      "type": "string",
      "minLength": 1,
      "maxLength": 20000,
      "description": "What the skill should work on (a topic, text, code, ...)"
    }
  },
  "required": [
    "skill_id",
    "input"
  ],
  "additionalProperties": false
}

dns_lookup

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

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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).

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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.

Pay per call (quote on request) · 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
}