{"openapi":"3.1.0","info":{"title":"AIPayGen","version":"2.1.0","description":"Pay-per-call website and company intelligence for AI agents."},"servers":[{"url":"https://aipaygen.com"}],"components":{"securitySchemes":{"apiKey":{"type":"http","scheme":"bearer","bearerFormat":"apg_..."}}},"security":[{"apiKey":[]}],"paths":{"/v1/search_marketplace":{"get":{"operationId":"search_marketplace","summary":"Search the AIPayGen marketplace","description":"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.","parameters":[{"name":"query","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200,"description":"What you need, e.g. 'weather forecast API' or 'summarize pdf'"}},{"name":"kind","in":"query","required":false,"schema":{"description":"Limit to one kind of result","type":"string","enum":["listing","api","skill","agent","service","mcp"]}},{"name":"limit","in":"query","required":false,"schema":{"description":"Results to return (default 10)","type":"integer","minimum":1,"maximum":50}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0},"post":{"operationId":"search_marketplace_post","summary":"Search the AIPayGen marketplace","requestBody":{"required":true,"content":{"application/json":{"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},"example":{"query":"translate text","kind":"api","limit":5}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0}},"/v1/register_agent":{"get":{"operationId":"register_agent","summary":"List your agent in the AIPayGen marketplace","description":"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.","parameters":[{"name":"card_url","in":"query","required":true,"schema":{"type":"string","maxLength":500,"format":"uri","description":"Public https URL of your agent card JSON"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0},"post":{"operationId":"register_agent_post","summary":"List your agent in the AIPayGen marketplace","requestBody":{"required":true,"content":{"application/json":{"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},"example":{"card_url":"https://example.com/.well-known/agent-card.json"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0}},"/v1/run_skill":{"get":{"operationId":"run_skill","summary":"Run a marketplace skill","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"skill_id","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":64,"description":"Skill id from search results, e.g. \"skill:3683\" or \"3683\""}},{"name":"input","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":20000,"description":"What the skill should work on (a topic, text, code, ...)"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.005},"post":{"operationId":"run_skill_post","summary":"Run a marketplace skill","requestBody":{"required":true,"content":{"application/json":{"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},"example":{"skill_id":"skill:1","input":"AI agent payment protocols in 2026"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.005}},"/v1/dns_lookup":{"get":{"operationId":"dns_lookup","summary":"DNS lookup","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain name, e.g. stripe.com"}},{"name":"types","in":"query","required":false,"schema":{"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"]}}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.001},"post":{"operationId":"dns_lookup_post","summary":"DNS lookup","requestBody":{"required":true,"content":{"application/json":{"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},"example":{"domain":"stripe.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.001}},"/v1/security_headers":{"get":{"operationId":"security_headers","summary":"HTTP security headers","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Website URL or domain, e.g. https://example.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.001},"post":{"operationId":"security_headers_post","summary":"HTTP security headers","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Website URL or domain, e.g. https://example.com"}},"required":["url"],"additionalProperties":false},"example":{"url":"https://vercel.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.001}},"/v1/domain_whois":{"get":{"operationId":"domain_whois","summary":"Domain registration (RDAP/WHOIS)","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain name, e.g. openai.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.002},"post":{"operationId":"domain_whois_post","summary":"Domain registration (RDAP/WHOIS)","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name, e.g. openai.com"}},"required":["domain"],"additionalProperties":false},"example":{"domain":"openai.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.002}},"/v1/email_security":{"get":{"operationId":"email_security","summary":"Email security audit","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain name, e.g. github.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.002},"post":{"operationId":"email_security_post","summary":"Email security audit","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name, e.g. github.com"}},"required":["domain"],"additionalProperties":false},"example":{"domain":"github.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.002}},"/v1/site_metadata":{"get":{"operationId":"site_metadata","summary":"Website metadata and contacts","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Website URL or domain, e.g. notion.so"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.002},"post":{"operationId":"site_metadata_post","summary":"Website metadata and contacts","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Website URL or domain, e.g. notion.so"}},"required":["url"],"additionalProperties":false},"example":{"url":"https://www.notion.so"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.002}},"/v1/page_to_markdown":{"get":{"operationId":"page_to_markdown","summary":"Web page to Markdown","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Page URL, e.g. https://blog.cloudflare.com"}},{"name":"max_chars","in":"query","required":false,"schema":{"description":"Maximum Markdown length. Default 20000.","type":"integer","minimum":1000,"maximum":100000}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.002},"post":{"operationId":"page_to_markdown_post","summary":"Web page to Markdown","requestBody":{"required":true,"content":{"application/json":{"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},"example":{"url":"https://en.wikipedia.org/wiki/Model_Context_Protocol"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.002}},"/v1/ssl_certificates":{"get":{"operationId":"ssl_certificates","summary":"SSL certificates and subdomains","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain name, e.g. shopify.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.003},"post":{"operationId":"ssl_certificates_post","summary":"SSL certificates and subdomains","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name, e.g. shopify.com"}},"required":["domain"],"additionalProperties":false},"example":{"domain":"shopify.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.003}},"/v1/tech_stack":{"get":{"operationId":"tech_stack","summary":"Website tech stack","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"url","in":"query","required":true,"schema":{"type":"string","description":"Website URL or domain, e.g. linear.app"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.003},"post":{"operationId":"tech_stack_post","summary":"Website tech stack","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"url":{"type":"string","description":"Website URL or domain, e.g. linear.app"}},"required":["url"],"additionalProperties":false},"example":{"url":"https://linear.app"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.003}},"/v1/company_profile":{"get":{"operationId":"company_profile","summary":"Company profile from a domain","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Company domain, e.g. figma.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.01},"post":{"operationId":"company_profile_post","summary":"Company profile from a domain","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Company domain, e.g. figma.com"}},"required":["domain"],"additionalProperties":false},"example":{"domain":"figma.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.01}},"/v1/domain_report":{"get":{"operationId":"domain_report","summary":"Full domain report","description":"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: the 402 reply quotes the exact price.","parameters":[{"name":"domain","in":"query","required":true,"schema":{"type":"string","description":"Domain name, e.g. cloudflare.com"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Invalid input"},"402":{"description":"Payment required (x402 v2 or insufficient credits)"}},"x-price-usd":0.02},"post":{"operationId":"domain_report_post","summary":"Full domain report","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","properties":{"domain":{"type":"string","description":"Domain name, e.g. cloudflare.com"}},"required":["domain"],"additionalProperties":false},"example":{"domain":"cloudflare.com"}}}},"responses":{"200":{"description":"Success"},"402":{"description":"Payment required"}},"x-price-usd":0.02}}}}