{
  "info": {
    "name": "StackPeek API",
    "description": "Website Technology Detection API. Detect any website's tech stack in <500ms. 120+ fingerprints across 15 categories.\n\nBase URL: https://stackpeek.web.app\nDocs: https://stackpeek.web.app/docs\nPricing: https://stackpeek.web.app/pricing\n\nFree tier: 100 scans/day\nStarter: $9/mo — 5,000 scans/month, batch scanning\nPro: $29/mo — 25,000 scans/month, webhooks, historical tracking",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "version": "1.0.0"
  },
  "variable": [
    {
      "key": "baseUrl",
      "value": "https://stackpeek.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 and version."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"status\":\"ok\",\"service\":\"stackpeek\",\"version\":\"1.0.0\"}"
        }
      ]
    },
    {
      "name": "Detect Tech Stack (Single URL)",
      "request": {
        "method": "GET",
        "header": [],
        "url": {
          "raw": "{{baseUrl}}/api/v1/detect?url=https://stripe.com",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "detect"],
          "query": [
            { "key": "url", "value": "https://stripe.com", "description": "URL to scan (required)" }
          ]
        },
        "description": "Detect technologies used by a website. Returns technologies grouped by category with confidence scores. Free tier: 100 scans/day."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"url\":\"https://stripe.com\",\"technologies\":[{\"name\":\"React\",\"category\":\"JavaScript Framework\",\"confidence\":0.9}],\"categories\":{\"JavaScript Framework\":[{\"name\":\"React\",\"confidence\":0.9}]},\"meta\":{\"technologiesDetected\":8,\"scanDuration\":\"342ms\",\"timestamp\":\"2026-03-28T12:00:00.000Z\"}}"
        }
      ]
    },
    {
      "name": "Batch Detect (Paid Tier)",
      "request": {
        "method": "POST",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}", "type": "text" },
          { "key": "Content-Type", "value": "application/json", "type": "text" }
        ],
        "body": {
          "mode": "raw",
          "raw": "{\n  \"urls\": [\n    \"https://stripe.com\",\n    \"https://linear.app\",\n    \"https://vercel.com\"\n  ]\n}"
        },
        "url": {
          "raw": "{{baseUrl}}/api/v1/detect/batch",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "detect", "batch"]
        },
        "description": "Scan up to 10 URLs in a single request. Requires API key (Starter or Pro plan)."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"results\":[{\"url\":\"https://stripe.com\",\"technologies\":[],\"status\":\"ok\"},{\"url\":\"https://linear.app\",\"technologies\":[],\"status\":\"ok\"}],\"meta\":{\"total\":2,\"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 StackPeek."
      },
      "response": [
        {
          "name": "Success",
          "status": "OK",
          "code": 200,
          "body": "{\"apiKey\":\"stk_abc123...\",\"plan\":\"free\",\"limit\":\"100 scans/day\"}"
        }
      ]
    },
    {
      "name": "Check Usage",
      "request": {
        "method": "GET",
        "header": [
          { "key": "x-api-key", "value": "{{apiKey}}", "type": "text" }
        ],
        "url": {
          "raw": "{{baseUrl}}/api/v1/usage",
          "host": ["{{baseUrl}}"],
          "path": ["api", "v1", "usage"]
        },
        "description": "Check your current usage stats."
      }
    },
    {
      "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 to upgrade. Plans: starter ($9/mo), pro ($29/mo)."
      }
    }
  ]
}
