{
  "openapi": "3.0.1",
  "info": {
    "title": "n8n Workflow Opportunities – Templates, Nodes & View Changes",
    "description": "Discover public n8n templates, match required integrations and track views or node changes. Use bounded search or exact-ID watchlists with source evidence; no workflow execution or credentials.",
    "version": "1.0",
    "x-build-id": "bJYbb953QefVAUVUN"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/maydit~n8n-workflow-opportunity-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-maydit-n8n-workflow-opportunity-monitor",
        "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/maydit~n8n-workflow-opportunity-monitor/runs": {
      "post": {
        "operationId": "runs-sync-maydit-n8n-workflow-opportunity-monitor",
        "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/maydit~n8n-workflow-opportunity-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-maydit-n8n-workflow-opportunity-monitor",
        "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",
        "properties": {
          "mode": {
            "title": "Collection mode",
            "enum": [
              "search",
              "watchlist"
            ],
            "type": "string",
            "description": "Search a bounded first-page window or monitor exact public template IDs.",
            "default": "search"
          },
          "search": {
            "title": "Search phrase",
            "minLength": 1,
            "maxLength": 120,
            "type": "string",
            "description": "Used in search mode by the official template search. Search order belongs to n8n, not a guaranteed popularity ranking.",
            "default": "ai"
          },
          "templateIds": {
            "title": "Public template IDs",
            "maxItems": 20,
            "type": "array",
            "description": "Required in watchlist mode, for example 6270. IDs from the public template library; no private workflow IDs.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "searchLimit": {
            "title": "Search window size",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Ask for this many first-page results. Completion covers this selected window, not the full catalog. Filters apply after retrieval.",
            "default": 3
          },
          "requiredNodeTypes": {
            "title": "Required integrations (all must match)",
            "maxItems": 10,
            "type": "array",
            "description": "Complete public node type names, for example @n8n/n8n-nodes-langchain.agent or n8n-nodes-base.slack.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "excludedNodeTypes": {
            "title": "Excluded integrations",
            "maxItems": 10,
            "type": "array",
            "description": "Exclude templates containing any listed complete node type name.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keywords": {
            "title": "Title/description keywords (any match)",
            "maxItems": 10,
            "type": "array",
            "description": "Optional case-insensitive literal terms; matching terms are included in each output row.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "minViews": {
            "title": "Minimum public views",
            "minimum": 0,
            "maximum": 1000000000,
            "type": "integer",
            "description": "Filter using the published cumulative view counter. Views are not unique users, purchases or successful workflow runs.",
            "default": 0
          },
          "maxResults": {
            "title": "Maximum saved observations",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Cap real output rows. A smaller cap than the matching selected window marks coverage incomplete and preserves the previous baseline.",
            "default": 3
          },
          "comparePrevious": {
            "title": "Compare saved observations",
            "type": "boolean",
            "description": "First complete run establishes history. Later complete runs add exact changes; incomplete source/output/spending-limited runs do not advance it.",
            "default": false
          },
          "onlyChanges": {
            "title": "Return only new or changed observations",
            "type": "boolean",
            "description": "Enables comparison. A valid unchanged run can return zero rows. No missing-item removal inference.",
            "default": false
          },
          "snapshotName": {
            "title": "Watchlist history name",
            "pattern": "^[-\\w]{1,80}$",
            "type": "string",
            "description": "Use a stable name for the same scope. Letters, numbers, underscore or hyphen; 1–80 characters.",
            "default": "default"
          },
          "maxRunSeconds": {
            "title": "Run time budget (seconds)",
            "minimum": 30,
            "maximum": 120,
            "type": "integer",
            "description": "Requests and pacing honor the remaining time. Time-limited runs preserve prior history.",
            "default": 120
          }
        }
      },
      "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "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
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}