{
  "openapi": "3.0.1",
  "info": {
    "title": "Stack Exchange Intel: Dev Leads, Tags & Question Monitor",
    "description": "Turn Stack Overflow and the Stack Exchange network into structured B2B data. Monitor questions by tag or keyword, build developer lead lists from a technology's top answerers, or size technology adoption by tag. Official public API, no proxy, no auth. Delta mode for recurring monitoring.",
    "version": "1.0",
    "x-build-id": "aUgPg8k7DhgMFVfxF"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/obsidian937~stackexchange-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-obsidian937-stackexchange-intel",
        "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/obsidian937~stackexchange-intel/runs": {
      "post": {
        "operationId": "runs-sync-obsidian937-stackexchange-intel",
        "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/obsidian937~stackexchange-intel/run-sync": {
      "post": {
        "operationId": "run-sync-obsidian937-stackexchange-intel",
        "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": "Mode",
            "enum": [
              "questions",
              "users",
              "tags"
            ],
            "type": "string",
            "description": "What to extract: rank technology tags (market sizing), build developer lead lists (experts by tag or top users), or monitor questions by tag/keyword.",
            "default": "questions"
          },
          "site": {
            "title": "Site",
            "type": "string",
            "description": "Stack Exchange site to query, e.g. stackoverflow, serverfault, superuser, dba, security, datascience.",
            "default": "stackoverflow"
          },
          "tagged": {
            "title": "Tagged (questions mode)",
            "type": "string",
            "description": "Semicolon-separated tags to match, e.g. \"python;fastapi\". Questions must carry all tags. At least one of Tagged or Keyword is required in questions mode.",
            "default": ""
          },
          "keyword": {
            "title": "Keyword (questions mode)",
            "type": "string",
            "description": "Free-text query for the question title/body, e.g. \"stripe webhook\". Combine with Tagged or use alone.",
            "default": ""
          },
          "questionsSort": {
            "title": "Questions sort",
            "enum": [
              "creation",
              "activity",
              "votes"
            ],
            "type": "string",
            "description": "Order questions by creation date (newest, best for monitoring), recent activity, or votes.",
            "default": "creation"
          },
          "fromDate": {
            "title": "From date (questions mode)",
            "type": "string",
            "description": "Only questions created on/after this date. ISO (2026-06-01) or unix epoch. Leave blank for no lower bound.",
            "default": ""
          },
          "tag": {
            "title": "Tag (users mode)",
            "type": "string",
            "description": "If set, list the TOP ANSWERERS of this tag (proven experts in a technology = highest-intent dev leads), enriched with location + website. Leave blank to rank site users instead.",
            "default": ""
          },
          "period": {
            "title": "Top-answerer period (users mode)",
            "enum": [
              "all_time",
              "month"
            ],
            "type": "string",
            "description": "Window for the top-answerers ranking when a Tag is set.",
            "default": "all_time"
          },
          "usersSort": {
            "title": "Users sort (users mode, no tag)",
            "enum": [
              "reputation",
              "creation"
            ],
            "type": "string",
            "description": "When no Tag is set, rank users by reputation or account creation date.",
            "default": "reputation"
          },
          "inname": {
            "title": "Name filter",
            "type": "string",
            "description": "Substring filter on tag name (tags mode) or user display name (users mode, no tag).",
            "default": ""
          },
          "tagsSort": {
            "title": "Tags sort (tags mode)",
            "enum": [
              "popular",
              "activity",
              "name"
            ],
            "type": "string",
            "description": "Rank tags by popularity (question count = adoption), recent activity, or name.",
            "default": "popular"
          },
          "apiKey": {
            "title": "Stack Exchange API key (optional)",
            "type": "string",
            "description": "Optional free app key from stackapps.com. NOT authentication: it lifts the daily quota from 300 to 10000 requests. All data stays public. Leave blank to run keyless."
          },
          "deltaMode": {
            "title": "Delta / monitor mode",
            "type": "boolean",
            "description": "Only emit entries new since the previous run (per-account state): new questions (questions mode), newly appearing users (users mode), or newly surfaced tags (tags mode). Pair with a schedule + webhook for recurring alerts.",
            "default": false
          },
          "maxItems": {
            "title": "Max items",
            "type": "integer",
            "description": "Cap on records to return.",
            "default": 50
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}