{
  "openapi": "3.0.1",
  "info": {
    "title": "Official Filing Feed: SEC, Companies House, EU TED",
    "description": "Company filings and EU tenders from official registries as one JSON event stream, with source_url, fetched_at and a confidence score. No API key for SEC EDGAR or TED, no personal data, and empty runs are free.",
    "version": "0.1",
    "x-build-id": "VQDRNkIErpIWQXMpQ"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/pearlescent_cupola~official-filing-change-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-pearlescent_cupola-official-filing-change-feed",
        "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/pearlescent_cupola~official-filing-change-feed/runs": {
      "post": {
        "operationId": "runs-sync-pearlescent_cupola-official-filing-change-feed",
        "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/pearlescent_cupola~official-filing-change-feed/run-sync": {
      "post": {
        "operationId": "run-sync-pearlescent_cupola-official-filing-change-feed",
        "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": [
          "source"
        ],
        "properties": {
          "source": {
            "title": "Official source",
            "enum": [
              "sec-edgar",
              "companies-house",
              "ted",
              "all"
            ],
            "type": "string",
            "description": "Registry to read. The 'all' option queries SEC EDGAR and EU TED in one run. It includes UK Companies House only if you supply a Companies House API key; otherwise, it skips Companies House with a warning. The three single-source values run one registry each, which remains the default. EDGAR and TED require no key; Companies House does.",
            "default": "sec-edgar"
          },
          "companies": {
            "title": "Entities to watch",
            "type": "array",
            "description": "Entities to monitor. SEC EDGAR: tickers or CIKs, e.g. ['AAPL','0000789019']. Companies House: company numbers, e.g. ['00000006','SC123456']. Ignored for TED (use buyer_countries / cpv_codes instead). In 'all' mode, this list feeds EDGAR and Companies House only.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "since": {
            "title": "Published on or after",
            "type": "string",
            "description": "ISO date (YYYY-MM-DD). Defaults: 30 days back for SEC EDGAR, 90 days for Companies House, 7 days for TED. The window is inclusive."
          },
          "until": {
            "title": "Published on or before",
            "type": "string",
            "description": "Optional ISO date (YYYY-MM-DD), inclusive. Leave empty to read up to the current date."
          },
          "forms": {
            "title": "EDGAR form types",
            "type": "array",
            "description": "SEC EDGAR only. Leave empty to use the default corporate set (8-K, 10-K, 10-Q, 20-F, 6-K, S-1/S-3, DEF 14A, 25, 15-12B, 13F, SC 13D/G, ...). Insider forms 3/4/5/144 are rejected by design because they contain personal data.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "categories": {
            "title": "Companies House categories",
            "type": "array",
            "description": "Companies House only. Optional subset of: accounts, address, annual-return, capital, change-of-name, incorporation, liquidation, mortgage, officers, resolution, confirmation-statement. Empty includes all categories.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "cpv_codes": {
            "title": "TED CPV codes",
            "type": "array",
            "description": "TED only. CPV classification codes, 2-8 digits (for example '72000000' for IT services). Multiple codes are combined using OR logic.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "buyer_countries": {
            "title": "TED buyer countries",
            "type": "array",
            "description": "TED only. Three-letter buyer country codes (e.g., 'DEU', 'FRA'). Multiple codes use OR logic.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "notice_types": {
            "title": "TED notice types",
            "type": "array",
            "description": "TED only. Raw TED notice types, such as can-standard (contract notice), cn-standard (award), pin-only (prior information), and corr (corrigendum). Leave empty to include all types.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "keyword": {
            "title": "TED keyword",
            "type": "string",
            "description": "TED only. Searches notice titles and descriptions by full-text keyword, e.g. 'semiconductor'. Passes quoted text as a TED FT~ expression."
          },
          "max_events": {
            "title": "Maximum events",
            "minimum": 1,
            "maximum": 5000,
            "type": "integer",
            "description": "Maximum dataset items for this run across all selected sources in 'all' mode (1-5000). Each emitted event is one billable unit, so this also caps the run cost. When the merged result is larger, the run keeps the newest events.",
            "default": 100
          },
          "min_confidence": {
            "title": "Minimum confidence",
            "minimum": 0,
            "maximum": 1,
            "type": "number",
            "description": "Drops events with a confidence score below this value (0-1). A value of 0.85 keeps only records with a known event type, a document reference, a date, and an entity id.",
            "default": 0
          },
          "only_new": {
            "title": "Only events since the previous run",
            "type": "boolean",
            "description": "When enabled, the Actor stores a cursor per (source, state_key) in its key-value store and returns only events published after the last run. Disable for backfills and the first run.",
            "default": false
          },
          "state_key": {
            "title": "Cursor namespace",
            "type": "string",
            "description": "Only used with only_new. Use a separate namespace per watchlist to maintain independent cursors.",
            "default": "default"
          },
          "contact_email": {
            "title": "Contact e-mail (User-Agent)",
            "type": "string",
            "description": "Email address included in the HTTP User-Agent header. SEC EDGAR requires a declared contact under its fair-access policy. Use a role-based address you own, never a personal one."
          },
          "companies_house_api_key": {
            "title": "Companies House API key",
            "type": "string",
            "description": "Required only for the Companies House source. Optional in 'all' mode: without it, Companies House is skipped instead of failing. The Actor sends this key as the HTTP Basic username and does not write it to the dataset. Create it at https://developer.company-information.service.gov.uk/ (free, instant)."
          },
          "include_raw": {
            "title": "Include the raw source record",
            "type": "boolean",
            "description": "Attach the untouched source record under item.raw for audit. This makes dataset items several times larger and increases storage costs.",
            "default": false
          },
          "max_pages": {
            "title": "Maximum pages",
            "minimum": 1,
            "maximum": 50,
            "type": "integer",
            "description": "Sets a safety cap on upstream pages fetched per run. Applies to Companies House filing-history pages (100 items each) or TED search pages. Default: 5.",
            "default": 5
          },
          "max_archive_files": {
            "title": "Maximum EDGAR archive files",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "SEC EDGAR only. Loads older archive batches when 'since' is older than the 1,000 most recent filings. Default is 2 (about 2,000 extra filings per company).",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}