{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings: filings, full-text search & XBRL",
    "description": "SEC EDGAR filings as JSON for any US ticker or CIK: filing metadata, full-text search hits and XBRL financial facts straight from the official SEC APIs. No API key, no browser. $0.25 per 1,000 filings.",
    "version": "0.1",
    "x-build-id": "UqtVVmlrnJH71aJt2"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/subimpact~sec-edgar-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-subimpact-sec-edgar-filings",
        "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/subimpact~sec-edgar-filings/runs": {
      "post": {
        "operationId": "runs-sync-subimpact-sec-edgar-filings",
        "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/subimpact~sec-edgar-filings/run-sync": {
      "post": {
        "operationId": "run-sync-subimpact-sec-edgar-filings",
        "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": [
              "company_filings",
              "fulltext_search",
              "xbrl_facts"
            ],
            "type": "string",
            "description": "What to collect. company_filings: filing metadata for each company. fulltext_search: EDGAR full-text search hits for a phrase. xbrl_facts: structured XBRL financial facts.",
            "default": "company_filings"
          },
          "tickersOrCiks": {
            "title": "Tickers or CIKs",
            "type": "array",
            "description": "Companies to collect. Tickers are case-insensitive (AAPL, msft); CIKs work with or without leading zeros (0000320193 or 320193, an optional CIK prefix is fine). Leave empty in company_filings or xbrl_facts mode to default to AAPL. In fulltext_search mode an empty list searches every filer. An unknown ticker or CIK becomes its own free error row and the run continues.",
            "items": {
              "type": "string"
            }
          },
          "query": {
            "title": "Search query",
            "type": "string",
            "description": "EDGAR full-text search query, required when mode is fulltext_search and ignored otherwise. Quoted phrases work: \"artificial intelligence\". Searches the text of filings and exhibits from 2001 onwards."
          },
          "xbrlConcepts": {
            "title": "XBRL concepts",
            "type": "array",
            "description": "us-gaap tags to collect in xbrl_facts mode, e.g. Assets, Revenues, NetIncomeLoss, EarningsPerShareDiluted. A us-gaap: prefix is accepted. Empty means Assets, Revenues and NetIncomeLoss. Up to 10 tags uses one request per tag; more than 10 uses the filer's full company-facts file.",
            "items": {
              "type": "string"
            }
          },
          "forms": {
            "title": "Form types",
            "type": "array",
            "description": "Only keep these form types, e.g. 10-K, 10-Q, 8-K, 4, S-1. Empty means every form. In company_filings mode a form also matches its amendments (10-K matches 10-K/A). In fulltext_search mode the value is passed to EDGAR as a root form filter.",
            "items": {
              "type": "string"
            }
          },
          "startDate": {
            "title": "Start date (filed on or after)",
            "type": "string",
            "description": "Optional filing date lower bound in YYYY-MM-DD form, e.g. 2025-01-01. Leave empty for no lower bound."
          },
          "endDate": {
            "title": "End date (filed on or before)",
            "type": "string",
            "description": "Optional filing date upper bound in YYYY-MM-DD form, e.g. 2025-12-31. Leave empty for no upper bound."
          },
          "includeDocumentText": {
            "title": "Include document text",
            "type": "boolean",
            "description": "Fetch each filing's primary document and add its plain text (HTML/XML stripped, whitespace collapsed). Costs one extra SEC request and one extra charge per filing.",
            "default": false
          },
          "maxDocumentChars": {
            "title": "Max document characters",
            "minimum": 1000,
            "maximum": 2000000,
            "type": "integer",
            "description": "Truncate extracted document text to this many characters. Rows that were cut get documentTextTruncated: true.",
            "default": 200000
          },
          "includeHistoricalSubmissions": {
            "title": "Include historical submissions",
            "type": "boolean",
            "description": "Also read EDGAR's older submission files, which reach back to 1994. Only needed for very long filing histories or dates before about 2015; those files are fetched only when more rows are still needed.",
            "default": false
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Global cap on delivered rows across every company and every row kind in one run. Defaults to 25 to keep a first run cheap; raise it once you know what you need.",
            "default": 25
          },
          "maxRequestsPerSecond": {
            "title": "Max requests per second",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "Request rate for all SEC hosts combined. The SEC allows 10 requests per second and asks every client to declare a contact; this actor defaults to 5 and refuses to go above 8. Slower is safer for scheduled runs.",
            "default": 5
          },
          "contactEmail": {
            "title": "Contact email (User-Agent)",
            "type": "string",
            "description": "Optional email address that is put in the User-Agent header the SEC asks automated clients to send, so the SEC can reach you instead of blocking the request. Defaults to the actor's own contact address."
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The SEC rate-limits by IP address and allows direct access, so a proxy is off by default. If you switch one on, keep maxRequestsPerSecond low: rotating proxies to get past the SEC's fair-access policy is not allowed.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}