{
  "openapi": "3.1.0",
  "info": {
    "title": "Data InfoMetrix TAM Sizing, Installed Base & Payment API",
    "version": "1.0.0",
    "description": "API enabling AI agents, developers, and autonomous commerce engines to query B2B installed base counts, calculate Total Addressable Market (TAM) yields across 710+ enterprise software platforms, and purchase or request verified dataset samples.",
    "contact": {
      "name": "Data InfoMetrix LLC",
      "url": "https://datainfometrix.com/contact-us/",
      "email": "sales@datainfometrix.com"
    },
    "license": {
      "name": "Proprietary",
      "url": "https://datainfometrix.com/terms/"
    }
  },
  "servers": [
    {
      "url": "https://datainfometrix.com",
      "description": "Production Server"
    }
  ],
  "paths": {
    "/api/contact": {
      "post": {
        "summary": "Submit Sample Dataset Inquiry or Custom Sourcing Request",
        "description": "Allows users or AI agents acting on behalf of users to request a free 10-record verified sample dataset or submit custom targeting criteria based on software installed base, firmographics, and geographies.",
        "operationId": "submitContactInquiry",
        "x-payment-info": {
          "intent": "session",
          "method": "stripe",
          "amount": 0,
          "currency": "USD",
          "description": "Free 10-record sample verification query"
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ContactRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Inquiry successfully submitted and queued for verification specialist",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContactResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid payload or missing required contact fields"
          }
        }
      }
    },
    "/api/v1/premium/data": {
      "get": {
        "summary": "Query Premium Technographic Intelligence (Paid)",
        "description": "Machine-payable endpoint returning verified B2B technology installed base micro-data and buyer intent metrics.",
        "operationId": "getPremiumData",
        "x-payment-info": {
          "intent": "charge",
          "method": "card",
          "amount": 5.00,
          "currency": "USD",
          "description": "Per-query micro-transaction fee"
        },
        "responses": {
          "200": {
            "description": "Paid data feed payload",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "success": { "type": "boolean" },
                    "data": { "type": "array", "items": { "type": "object" } }
                  }
                }
              }
            }
          },
          "402": {
            "description": "Payment Required via x402 protocol or HTTP payment token"
          }
        }
      }
    },
    "/api/health": {
      "get": {
        "summary": "API Status & Uptime",
        "description": "Returns operational status and agent protocol versions.",
        "operationId": "getApiHealth",
        "responses": {
          "200": {
            "description": "Service is healthy",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "status": { "type": "string" },
                    "version": { "type": "string" }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/llms.txt": {
      "get": {
        "summary": "Get Structured LLM Installed Base Directory",
        "description": "Returns markdown summary of all 710+ tracked software products, installed base counts (companies and contacts), and data enrichment services.",
        "operationId": "getLlmsTxt",
        "responses": {
          "200": {
            "description": "Markdown technographic catalog",
            "content": {
              "text/markdown": {
                "schema": {
                  "type": "string"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "ContactRequest": {
        "type": "object",
        "required": ["name", "email"],
        "properties": {
          "name": { "type": "string" },
          "email": { "type": "string", "format": "email" },
          "company": { "type": "string" },
          "phone": { "type": "string" },
          "jobTitle": { "type": "string" },
          "technology": { "type": "string" },
          "category": { "type": "string" },
          "message": { "type": "string" }
        }
      },
      "ContactResponse": {
        "type": "object",
        "properties": {
          "success": { "type": "boolean" },
          "message": { "type": "string" },
          "inquiryId": { "type": "string" }
        }
      }
    }
  }
}
