{
  "openapi": "3.0.3",
  "info": {
    "title": "Shopify Store Tech Stack & Pricing Intelligence API",
    "version": "1.0.0",
    "description": "Fast, zero-browser Shopify store intelligence API. Detect Shopify themes, 55+ installed apps & ad pixels (Klaviyo, Judge.me, Recharge, Meta/TikTok Pixel, Klarna, Gorgias), pricing statistics (min/median/mean/max, discount rate, in-stock rate), sitemap catalog size estimates, and public social links in under 1 second.",
    "contact": {
      "name": "TLProject Lab",
      "url": "https://tlprojectlab.xyz",
      "email": "hello@tlprojectlab.xyz"
    }
  },
  "servers": [
    {
      "url": "https://tlp-intel-api.reviewradar-21ed95.workers.dev",
      "description": "Cloudflare Workers Global Edge"
    }
  ],
  "paths": {
    "/v1/shopify/analyze": {
      "get": {
        "operationId": "analyzeShopifyStore",
        "summary": "Analyze a Shopify storefront (tech stack, apps, pricing & sitemap)",
        "description": "Extracts Shopify storefront verification, theme metadata, 55+ app/pixel fingerprints, product catalog pricing distribution, in-stock & discount percentages, sitemap SKU estimates, and public social/policy links.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Store domain or URL (e.g. allbirds.com or https://www.brooklinen.com)",
            "schema": {
              "type": "string",
              "example": "allbirds.com"
            }
          },
          {
            "name": "maxProducts",
            "in": "query",
            "required": false,
            "description": "Max products sampled from /products.json (0-250, default 25)",
            "schema": {
              "type": "integer",
              "minimum": 0,
              "maximum": 250,
              "default": 25
            }
          },
          {
            "name": "checkSitemap",
            "in": "query",
            "required": false,
            "description": "Whether to inspect /sitemap.xml for total catalog size estimate (default true)",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "includeProducts",
            "in": "query",
            "required": false,
            "description": "Include normalized product list in JSON response (default false)",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Structured Shopify store intelligence JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid URL or query parameter"
          },
          "401": {
            "description": "Unauthorized origin request"
          }
        }
      },
      "post": {
        "operationId": "analyzeShopifyStorePost",
        "summary": "Analyze a Shopify storefront via JSON body",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "url"
                ],
                "properties": {
                  "url": {
                    "type": "string",
                    "example": "allbirds.com"
                  },
                  "maxProducts": {
                    "type": "integer",
                    "default": 25
                  },
                  "checkSitemap": {
                    "type": "boolean",
                    "default": true
                  },
                  "includeProducts": {
                    "type": "boolean",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Structured Shopify store intelligence JSON"
          },
          "400": {
            "description": "Invalid request body"
          }
        }
      }
    },
    "/v1/shopify/apps": {
      "get": {
        "operationId": "detectShopifyApps",
        "summary": "Fast Shopify theme & 55+ app/pixel detector (<300ms)",
        "description": "Lightweight single-request endpoint that detects Shopify status, theme name/ID, 55+ installed apps & marketing pixels, and social links without fetching product catalog or sitemaps.",
        "parameters": [
          {
            "name": "url",
            "in": "query",
            "required": true,
            "description": "Store domain or URL (e.g. allbirds.com)",
            "schema": {
              "type": "string",
              "example": "allbirds.com"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Theme & detected app signatures JSON",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            }
          },
          "400": {
            "description": "Invalid URL parameter"
          }
        }
      }
    }
  }
}