{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filing Search & Signal Engine — Risk, Events & Alerts",
    "description": "Search, rank, and monitor SEC EDGAR filings by keyword, company, or ticker. Every result carries an event category (8-K taxonomy), risk flags, and a signal score; watchlists add cross-filing pattern alerts. Filter by form type and date. Structured JSON with direct document links.",
    "version": "1.1",
    "x-build-id": "SIohtOMinP2RxUaE4"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/ryanclinton~edgar-filing-search/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-ryanclinton-edgar-filing-search",
        "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/ryanclinton~edgar-filing-search/runs": {
      "post": {
        "operationId": "runs-sync-ryanclinton-edgar-filing-search",
        "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/ryanclinton~edgar-filing-search/run-sync": {
      "post": {
        "operationId": "run-sync-ryanclinton-edgar-filing-search",
        "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": {
          "query": {
            "title": "Search Query",
            "type": "string",
            "description": "Keyword, exact phrase (use \"quotes\"), company name, ticker, or CIK to search for in the full text of SEC filings. Ignored if you set Queries or a Template below.",
            "default": "artificial intelligence"
          },
          "queries": {
            "title": "Queries (multi-term screening)",
            "maxItems": 25,
            "type": "array",
            "description": "Run several searches in one pass and tag each filing with which terms it matched (matchedQueries). Turns the actor into a screening engine. Overrides the single Search Query above when set.",
            "items": {
              "type": "string"
            }
          },
          "pack": {
            "title": "Intelligence Pack",
            "enum": [
              "",
              "distress",
              "governance",
              "acquisition",
              "cyber",
              "short-seller",
              "m-and-a",
              "insider-risk",
              "activist"
            ],
            "type": "string",
            "description": "A persona bundle that sets both the search terms and a sensible form filter in one click. Highest priority -- overrides query / queries / template.",
            "default": ""
          },
          "template": {
            "title": "Intent Template",
            "enum": [
              "",
              "cybersecurity",
              "going-concern",
              "material-weakness",
              "restatement",
              "bankruptcy",
              "executive-departure",
              "buyback",
              "ai-disclosure",
              "climate",
              "investigation",
              "banking-risk",
              "biotech-risk"
            ],
            "type": "string",
            "description": "Expand a named intent into a set of search terms (run as a multi-term screen). Overrides Search Query when set.",
            "default": ""
          },
          "queryMode": {
            "title": "Query Mode",
            "enum": [
              "asTyped",
              "exactPhrase",
              "allTerms"
            ],
            "type": "string",
            "description": "How to interpret the query text. As typed (default) sends it unchanged. Exact phrase wraps it in quotes for a phrase match. All terms strips quotes and matches every word. (EDGAR does not support boolean/proximity operators — use Queries for OR-style screening.)",
            "default": "asTyped"
          },
          "formType": {
            "title": "Filing Type",
            "enum": [
              "",
              "10-K",
              "10-Q",
              "8-K",
              "S-1",
              "DEF 14A",
              "4",
              "SC 13D",
              "SC 13G",
              "20-F",
              "6-K"
            ],
            "type": "string",
            "description": "Filter by SEC filing type",
            "default": ""
          },
          "dateFrom": {
            "title": "Date From",
            "type": "string",
            "description": "Start date for filing search (YYYY-MM-DD)"
          },
          "dateTo": {
            "title": "Date To",
            "type": "string",
            "description": "End date for filing search (YYYY-MM-DD)"
          },
          "datePreset": {
            "title": "Date Preset",
            "enum": [
              "",
              "last7Days",
              "last30Days",
              "last90Days",
              "lastQuarter",
              "lastYear",
              "yearToDate"
            ],
            "type": "string",
            "description": "Friendly date window — fills Date From / Date To automatically. Overrides the explicit dates above when set.",
            "default": ""
          },
          "maxResults": {
            "title": "Max Results",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum number of filings to return (1-200)",
            "default": 25
          },
          "watchlistName": {
            "title": "Watchlist Name (optional — turns on monitoring)",
            "type": "string",
            "description": "Leave blank for a one-off search. Set a name (e.g. \"ai-8ks\") to monitor over time: the actor remembers which filings it already returned under this name and tags each result NEW or SEEN, so a scheduled run surfaces only filings that appeared since the last run."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}