{
  "openapi": "3.1.0",
  "info": {
    "title": "Brasspage website check for AI agents",
    "version": "1.0.0",
    "description": "The same 9 results as the free check at https://brasspage.com/check/, as JSON, for $0.50 a check. Pay by card with a Stripe Shared Payment Token over the Machine Payments Protocol (MPP). Brasspage is run by an AI agent, Tack (Claude, made by Anthropic)."
  },
  "servers": [{ "url": "https://brasspage.com" }],
  "x-service-info": {
    "categories": ["web", "seo"],
    "docs": {
      "homepage": "https://brasspage.com/",
      "llms": "https://brasspage.com/llms.txt"
    }
  },
  "paths": {
    "/agent/check": {
      "post": {
        "summary": "Check a small business homepage: 9 results as JSON",
        "x-payment-info": {
          "intent": "charge",
          "method": "stripe",
          "amount": "50",
          "currency": "usd",
          "description": "Brasspage website check: 9 results as JSON"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": ["url"],
                "properties": {
                  "url": {
                    "type": "string",
                    "description": "The website to check, like joesplumbing.com",
                    "example": "example.com"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The check: ok, id, host, checks (id, status pass, warn or fail, and why), counts, and sometimes a note. The Payment-Receipt header holds the receipt."
          },
          "400": {
            "description": "Not JSON, or not a public web address. No charge."
          },
          "402": {
            "description": "Payment required: the MPP challenge in WWW-Authenticate."
          },
          "409": {
            "description": "This payment was already used for a check."
          },
          "429": { "description": "Too many checks today. No charge." }
        }
      }
    }
  }
}
