{
  "openapi": "3.0.1",
  "info": {
    "title": "Shopify Technographics — Find Stores by App + Leads",
    "description": "Reverse app index: give an app (Klaviyo, Recharge, Gorgias…) and get every Shopify store running it — with contacts, app stack, and catalog stats. Poach competitors' merchants; prospect by tech stack.",
    "version": "0.1",
    "x-build-id": "xDoZktghc3Lx5pRqg"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bisketapis~shopify-technographics-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bisketapis-shopify-technographics-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/bisketapis~shopify-technographics-leads/runs": {
      "post": {
        "operationId": "runs-sync-bisketapis-shopify-technographics-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/bisketapis~shopify-technographics-leads/run-sync": {
      "post": {
        "operationId": "run-sync-bisketapis-shopify-technographics-leads",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "leads",
              "enrich"
            ],
            "type": "string",
            "description": "leads = the reverse index: discover Shopify stores that run the apps you specify, with contacts. enrich = forward lookup: give a list of store domains in 'Seed / enrich domains' and get each store's full app stack.",
            "default": "leads"
          },
          "appsInclude": {
            "title": "Apps the store MUST run",
            "type": "array",
            "description": "Return stores running these apps (e.g. Klaviyo, Recharge, Gorgias). Use exact app names from the fingerprint library. In 'leads' mode this is the core query.",
            "items": {
              "type": "string"
            }
          },
          "appsExclude": {
            "title": "Apps the store must NOT run",
            "type": "array",
            "description": "Drop stores running any of these apps — the competitive 'on X but not Y' poach (e.g. include Klaviyo, exclude Omnisend).",
            "items": {
              "type": "string"
            }
          },
          "matchMode": {
            "title": "Match ANY or ALL included apps",
            "enum": [
              "any",
              "all"
            ],
            "type": "string",
            "description": "any = the store runs at least one of 'Apps the store MUST run'. all = it runs every one of them.",
            "default": "any"
          },
          "minConfidence": {
            "title": "Minimum detection confidence",
            "enum": [
              "low",
              "medium",
              "high"
            ],
            "type": "string",
            "description": "Only count app detections at or above this confidence when matching. high = a CDN/host signature fired (strongest). medium = one specific HTML signature. low = corroboration-only. Default 'medium' keeps the lead list clean.",
            "default": "medium"
          },
          "niche": {
            "title": "Niche tag",
            "type": "string",
            "description": "A niche label recorded on every row (e.g. coffee, skincare). Reserved for marketplace-based niche discovery; it does not filter results in this version."
          },
          "country": {
            "title": "Country filter (2-letter)",
            "type": "string",
            "description": "Keep only stores whose locale resolves to this 2-letter country code (e.g. US, GB). Leave blank for all."
          },
          "minProducts": {
            "title": "Minimum product count",
            "minimum": 0,
            "type": "integer",
            "description": "Drop stores with fewer than this many products in the scanned sample — a proxy for a real, stocked brand. 0 = no minimum.",
            "default": 0
          },
          "seedDomains": {
            "title": "Seed / enrich domains",
            "type": "array",
            "description": "In 'enrich' mode: the exact store domains to look up. In 'leads' mode: optional extra domains to add to the discovery universe. Bare domains or full URLs both work.",
            "items": {
              "type": "string"
            }
          },
          "maxStores": {
            "title": "Max qualified stores",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many stores match your query and are emitted. 0 = no cap (scan the whole discovery universe).",
            "default": 100
          },
          "includeContacts": {
            "title": "Include contacts",
            "type": "boolean",
            "description": "Extract published contact points (emails / phones / social profiles) from each qualified store's homepage. Only addresses the store published are returned — never guessed.",
            "default": true
          },
          "productScanPages": {
            "title": "Product pages to scan",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many pages of /products.json (250 products each) to scan per store for catalog price stats + product count. 1 is enough to qualify a lead and keeps runs cheap.",
            "default": 1
          },
          "requestDelayMs": {
            "title": "Request delay (ms)",
            "minimum": 0,
            "type": "integer",
            "description": "Politeness delay between paged requests to the same store.",
            "default": 300
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}