{
  "info": {
    "name": "SEOPeek API",
    "description": "Lightweight SEO Audit API. One GET request, 20 checks, instant JSON results with a score 0-100 and grade A-F.\n\nBase URL: https://seopeek.web.app\nDocs: https://seopeek.web.app/docs\nPricing: https://seopeek.web.app/pricing\n\nFree: 50 audits/day\nStarter: $9/mo — 1,000 audits/month\nPro: $29/mo — 10,000 audits/month",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "version": "1.0.0"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://seopeek.web.app",
      "type": "string"
    },
    {
      "key": "apiKey",
      "value": "YOUR_API_KEY",
      "type": "string"
    }
  ],
  "item": [
    {
      "name": "Health Check",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/health",
          "host": ["{{baseUrl}}"],
          "path": ["api", "health"]
        },
        "description": "Check API status."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"status\":\"ok\",\"service\":\"seopeek\",\"version\":\"1.0.0\"}"
        }
      ]
    },
    {
      "name": "Run SEO Audit",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/v1/audit?url=https://example.com",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "audit"],
          "query": [
            { "key": "url", "value": "https://example.com", "description": "URL to audit (required)" }
          ]
        },
        "description": "Run a full SEO audit on any URL. Returns 20 checks covering title, meta description, headings, OG tags, structured data, image alts, mobile viewport, and more. Includes a score (0-100) and grade (A-F)."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"url\":\"https://example.com\",\"score\":72,\"grade\":\"C\",\"checks\":[{\"name\":\"title\",\"status\":\"pass\",\"value\":\"Example Domain\",\"message\":\"Title tag present (14 chars)\"},{\"name\":\"meta_description\",\"status\":\"fail\",\"value\":null,\"message\":\"Missing meta description\"}],\"summary\":{\"pass\":14,\"warn\":3,\"fail\":3},\"meta\":{\"scanDuration\":\"892ms\",\"timestamp\":\"2026-03-28T12:00:00.000Z\"}}"
        }
      ]
    },
    {
      "name": "Create API Key",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json", "type": "text" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"email\": \"you@example.com\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/keys",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "keys"]
        },
        "description": "Create a free API key for SEOPeek."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"apiKey\":\"seo_abc123...\",\"plan\":\"free\",\"limit\":\"50 audits/day\"}"
        }
      ]
    },
    {
      "name": "Create Checkout Session",
      "request": {
        "method": "POST",
        "header": [
          { "key": "Content-Type", "value": "application/json", "type": "text" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"plan\": \"starter\",\n  \"email\": \"you@example.com\"\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/checkout",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "checkout"]
        },
        "description": "Create a Stripe checkout session. Plans: starter ($9/mo, 1K audits), pro ($29/mo, 10K audits)."
      }
    }
  ]
}
