{
  "openapi": "3.1.0",
  "externalDocs": {
    "description": "Free sample: a complete, real report exactly as the paid check returns it",
    "url": "https://trademypage.com/sample-report.json"
  },
  "info": {
    "title": "TradeMyPage Agent Readiness Check",
    "version": "1.0.0",
    "description": "Pay 0.01 USDC on Solana (x402) for a JSON report on one domain's public HTTPS, llms.txt, A2A agent card presence, robots.txt AI-crawler rules, and (with probe=/path) whether that path returns a valid x402 payment challenge. Observations only, not certification. Operator: MegaSimple.com LLC.",
    "contact": {
      "email": "noreply@trademypage.com",
      "url": "https://trademypage.com/"
    },
    "termsOfService": "https://trademypage.com/terms.html",
    "x-guidance": "Call GET /check.php?domain=example.com. An unpaid call returns HTTP 402 with an x402 challenge (header PAYMENT-REQUIRED and the same JSON in the body). Retrying the same request with the same payment returns the same report with no second charge."
  },
  "servers": [
    {
      "url": "https://trademypage.com"
    }
  ],
  "x-agentcash-guidance": {
    "llmsTxtUrl": "https://trademypage.com/llms.txt"
  },
  "paths": {
    "/check.php": {
      "get": {
        "operationId": "agentReadinessCheck",
        "summary": "Agent Readiness Check for one domain",
        "description": "Fetches a few public paths of the given domain (HTTPS and redirects, /llms.txt, /.well-known/agent-card.json, /robots.txt AI-crawler rules, optional public probe path) and returns a JSON report. No login or account.",
        "security": [],
        "x-payment-info": {
          "price": {
            "mode": "fixed",
            "currency": "USD",
            "amount": "0.01"
          },
          "protocols": [
            {
              "x402": {}
            }
          ]
        },
        "parameters": [
          {
            "name": "domain",
            "in": "query",
            "required": true,
            "description": "Public domain name to check, e.g. example.com",
            "schema": {
              "type": "string"
            },
            "example": "example.org"
          },
          {
            "name": "probe",
            "in": "query",
            "required": false,
            "description": "Optional public path on the same domain, e.g. /api/paid. It gets one unpaid GET and the report shows whether it returned HTTP 402 with a parseable x402 challenge (x402_probe).",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Agent readiness report (JSON). If the domain cannot be reached at all, no report is produced and the payment is not settled.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "operator",
                    "type",
                    "mode",
                    "report"
                  ],
                  "properties": {
                    "operator": {
                      "type": "string",
                      "const": "MegaSimple.com LLC"
                    },
                    "type": {
                      "type": "string",
                      "const": "agent_readiness_report"
                    },
                    "mode": {
                      "type": "string"
                    },
                    "report": {
                      "type": "object",
                      "required": [
                        "domain",
                        "checked_at",
                        "https",
                        "http_redirects_to_https",
                        "llms_txt",
                        "agent_card",
                        "robots_txt",
                        "notes"
                      ],
                      "properties": {
                        "domain": {
                          "type": "string"
                        },
                        "checked_at": {
                          "type": "string",
                          "format": "date-time"
                        },
                        "https": {
                          "type": "object",
                          "properties": {
                            "reachable": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "integer"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        },
                        "http_redirects_to_https": {
                          "type": "boolean"
                        },
                        "llms_txt": {
                          "type": "object",
                          "properties": {
                            "found": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "integer",
                              "description": "HTTP status, 0 if not fetched"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "blocked_url, blocked_port, blocked_or_unresolved_host, timeout, connect_or_tls_error, bad_redirect or too_many_redirects"
                            },
                            "has_h1_first": {
                              "type": "boolean"
                            },
                            "has_blockquote": {
                              "type": "boolean"
                            },
                            "h2_sections": {
                              "type": "integer"
                            },
                            "markdown_links": {
                              "type": "integer"
                            },
                            "content_type": {
                              "type": "string"
                            },
                            "truncated": {
                              "type": "boolean"
                            },
                            "note": {
                              "type": "string",
                              "description": "Set when the server returned HTML (likely a soft 404)"
                            }
                          }
                        },
                        "agent_card": {
                          "type": "object",
                          "description": "/.well-known/agent-card.json (A2A)",
                          "properties": {
                            "found": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "integer",
                              "description": "HTTP status, 0 if not fetched"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "blocked_url, blocked_port, blocked_or_unresolved_host, timeout, connect_or_tls_error, bad_redirect or too_many_redirects"
                            },
                            "valid_json": {
                              "type": "boolean"
                            },
                            "fields_present": {
                              "type": "array",
                              "items": {
                                "type": "string"
                              }
                            },
                            "skills_count": {
                              "type": "integer"
                            }
                          }
                        },
                        "robots_txt": {
                          "type": "object",
                          "properties": {
                            "found": {
                              "type": "boolean"
                            },
                            "status": {
                              "type": "integer",
                              "description": "HTTP status, 0 if not fetched"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ],
                              "description": "blocked_url, blocked_port, blocked_or_unresolved_host, timeout, connect_or_tls_error, bad_redirect or too_many_redirects"
                            },
                            "groups": {
                              "type": "integer"
                            },
                            "ai_agents": {
                              "type": "object",
                              "description": "Keyed by crawler: GPTBot, OAI-SearchBot, ChatGPT-User, ClaudeBot, Claude-User, Claude-SearchBot, PerplexityBot, Google-Extended, CCBot, Applebot-Extended, Bytespider",
                              "additionalProperties": {
                                "type": "object",
                                "properties": {
                                  "root_disallowed": {
                                    "type": "boolean"
                                  },
                                  "group": {
                                    "type": "string",
                                    "enum": [
                                      "named",
                                      "wildcard",
                                      "none"
                                    ]
                                  }
                                }
                              }
                            },
                            "method": {
                              "type": "string"
                            }
                          }
                        },
                        "x402_probe": {
                          "type": "object",
                          "description": "Only when probe= was given",
                          "properties": {
                            "status": {
                              "type": "integer"
                            },
                            "error": {
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "is_402": {
                              "type": "boolean"
                            },
                            "payment_required_header": {
                              "type": "boolean"
                            },
                            "parsed": {
                              "type": "boolean"
                            },
                            "x402_version": {
                              "type": [
                                "integer",
                                "null"
                              ]
                            },
                            "accepts_count": {
                              "type": "integer"
                            },
                            "offers": {
                              "type": "array",
                              "items": {
                                "type": "object",
                                "properties": {
                                  "scheme": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "network": {
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        },
                        "notes": {
                          "type": "string"
                        }
                      }
                    }
                  }
                },
                "example": {
                  "operator": "MegaSimple.com LLC",
                  "type": "agent_readiness_report",
                  "mode": "mainnet",
                  "report": {
                    "domain": "example.org",
                    "checked_at": "2026-11-15T17:00:00+00:00",
                    "https": {
                      "reachable": true,
                      "status": 200,
                      "error": null
                    },
                    "http_redirects_to_https": true,
                    "llms_txt": {
                      "found": true,
                      "status": 200,
                      "error": null,
                      "has_h1_first": true,
                      "has_blockquote": true,
                      "h2_sections": 3,
                      "markdown_links": 12,
                      "content_type": "text/plain; charset=utf-8",
                      "truncated": false
                    },
                    "agent_card": {
                      "found": false,
                      "status": 404,
                      "error": null
                    },
                    "robots_txt": {
                      "found": true,
                      "status": 200,
                      "error": null,
                      "groups": 2,
                      "ai_agents": {
                        "GPTBot": {
                          "root_disallowed": true,
                          "group": "named"
                        },
                        "ClaudeBot": {
                          "root_disallowed": false,
                          "group": "wildcard"
                        }
                      },
                      "method": "RFC 9309 group merging and longest-match for path \"/\"; * and $ supported"
                    },
                    "notes": "Facts observed at check time. Not a certification of compliance with any specification."
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required: x402 challenge, 0.01 USDC on Solana mainnet"
          }
        }
      }
    }
  }
}
