{
  "openapi": "3.1.0",
  "info": {
    "title": "GetShopAgent AI-Shopping Readiness API",
    "version": "1.0.0",
    "description": "Grades a Shopify storefront's public product data for AI shopping assistants (ChatGPT, Perplexity, Google AI): titles/images/prices, policies, descriptions, barcodes, alt text, product type/brand, SKUs, structured data, AI crawler access and llms.txt. Free tier: 20 checks per hour per IP. Also available as a remote MCP server at https://api.getshopagent.com/build/mcp.",
    "contact": { "email": "monterio@makelifefair.store", "url": "https://getshopagent.com/" }
  },
  "servers": [{ "url": "https://api.getshopagent.com/build" }],
  "paths": {
    "/grade": {
      "get": {
        "operationId": "gradeStore",
        "summary": "Grade a Shopify store's AI-shopping readiness",
        "parameters": [{ "name": "url", "in": "query", "required": true, "description": "Store domain or URL, e.g. example.com", "schema": { "type": "string", "maxLength": 300 } }],
        "responses": {
          "200": { "description": "Grade result", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/Grade" } } } },
          "429": { "description": "Rate limited (20 checks/hour/IP)" }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Check": { "type": "object", "properties": { "label": { "type": "string" }, "pass": { "type": ["boolean", "null"], "description": "true pass, false fail, null unknown" }, "detail": { "type": "string" }, "fix": { "type": "string" } } },
      "Grade": { "type": "object", "properties": { "ok": { "type": "boolean" }, "store": { "type": "string" }, "score": { "type": "integer", "minimum": 0, "maximum": 100 }, "partial": { "type": "boolean" }, "checks": { "type": "array", "items": { "$ref": "#/components/schemas/Check" } }, "error": { "type": "string" } } }
    }
  }
}
