{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Scraper: $0.035 per 1,000 Filings",
    "description": "SEC filings by ticker or CIK, full-text search, XBRL facts, insider transactions, institutional holdings and private offering notices. Source links, dates, units, amendments and clear completeness notes. Optional primary document text. No login or API key. $0.035 per 1,000 filings.",
    "version": "0.1",
    "x-build-id": "S9kdF1AuTERI6GLaO"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/zaiq~sec-edgar-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-zaiq-sec-edgar-scraper",
        "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/zaiq~sec-edgar-scraper/runs": {
      "post": {
        "operationId": "runs-sync-zaiq-sec-edgar-scraper",
        "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/zaiq~sec-edgar-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-zaiq-sec-edgar-scraper",
        "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": "Data to collect",
            "enum": [
              "filings",
              "search",
              "facts",
              "insider",
              "holdings",
              "offerings",
              "frames",
              "index"
            ],
            "type": "string",
            "description": "Choose SEC data. Dates filter filing dates; facts preserve every reported period and accession.",
            "default": "filings"
          },
          "companies": {
            "title": "Tickers or CIKs",
            "type": "array",
            "description": "Up to 25 tickers or numeric CIKs. Empty uses a sample CIK for filings, facts, insider and holdings. Empty in search, offerings, frames or index searches all companies.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "forms": {
            "title": "Form types",
            "type": "array",
            "description": "Exact forms, such as 10-K, 10-Q, 8-K or D/A. Empty includes all forms relevant to the selected mode. Amendments must be included explicitly when filtering.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "startDate": {
            "title": "Filed from",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD filing date. Blank in unscoped search or Form D discovery means the 30 days before endDate.",
            "default": ""
          },
          "endDate": {
            "title": "Filed through",
            "type": "string",
            "description": "Inclusive YYYY-MM-DD filing date. Blank means no upper filing-date filter; unscoped search uses today.",
            "default": ""
          },
          "query": {
            "title": "Full-text query",
            "type": "string",
            "description": "SEC search expression, including quoted phrases and Boolean operators. Used in search and unscoped Form D discovery.",
            "default": ""
          },
          "maxResults": {
            "title": "Maximum data rows",
            "minimum": 1,
            "maximum": 250000,
            "type": "integer",
            "description": "Total paid data rows across inputs, including those already delivered before a restart. Free notes do not count.",
            "default": 10
          },
          "includeOlderFilings": {
            "title": "Read older filing history",
            "type": "boolean",
            "description": "Follow SEC history files when needed. Turning this off limits company modes to SEC recent submissions and marks older coverage incomplete.",
            "default": true
          },
          "includeText": {
            "title": "Include document text",
            "type": "boolean",
            "description": "For filings or search, fetch the document and return readable text in the same row. Each new source batch uses its displayed size-band price. Failed text keeps metadata with a free note.",
            "default": false
          },
          "maxTextCharacters": {
            "title": "Maximum text characters",
            "minimum": 1000,
            "maximum": 1000000,
            "type": "integer",
            "description": "Per document, with textTruncated true if cut. Downloads allow up to 48 MiB; binary documents are reported as unavailable.",
            "default": 100000
          },
          "concepts": {
            "title": "Financial concepts",
            "type": "array",
            "description": "In facts mode, taxonomy:Concept names. Empty defaults to us-gaap:Assets unless allConcepts is true. Up to 25 selected concepts.",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "allConcepts": {
            "title": "All available company concepts",
            "type": "boolean",
            "description": "Fetch the full company facts feed. Standard SEC taxonomies and entity-wide facts only; custom tags and segment dimensions are not supplied by this API.",
            "default": false
          },
          "maxFilings": {
            "title": "XML filings per company",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "For insider, holdings and offerings, maximum filings per company; for Form D discovery, maximum filings total. maxResults still limits output rows.",
            "default": 3
          },
          "taxonomy": {
            "title": "Frame taxonomy",
            "type": "string",
            "description": "For frames mode. Standard taxonomy, such as us-gaap or ifrs-full.",
            "default": "us-gaap"
          },
          "concept": {
            "title": "Frame concept",
            "type": "string",
            "description": "For frames mode, the single concept name without its taxonomy.",
            "default": "Assets"
          },
          "unit": {
            "title": "Unit",
            "type": "string",
            "description": "Optional exact unit filter in facts mode, such as USD or shares. Frames use USD when blank; ratios use USD-per-shares.",
            "default": ""
          },
          "frame": {
            "title": "Calendar frame",
            "type": "string",
            "description": "Required in frames mode, such as CY2024Q4I for an instant, CY2024Q1 for a quarter or CY2024 for a year.",
            "default": ""
          },
          "indexDate": {
            "title": "Daily index date",
            "type": "string",
            "description": "For index mode, YYYY-MM-DD trading day. Leave blank to read a quarterly index using year and quarter.",
            "default": ""
          },
          "year": {
            "title": "Quarterly index year",
            "minimum": 1994,
            "maximum": 2100,
            "type": "integer",
            "description": "For index mode without indexDate. If omitted from API input, use the current year."
          },
          "quarter": {
            "title": "Quarterly index quarter",
            "minimum": 1,
            "maximum": 4,
            "type": "integer",
            "description": "For index mode without indexDate. If omitted, use the current quarter."
          },
          "maxRequests": {
            "title": "Maximum source requests",
            "minimum": 1,
            "maximum": 150,
            "type": "integer",
            "description": "Safety limit across SEC hosts and routes. Sequential requests below four per second. HTTP 429 stops the run after a backoff.",
            "default": 150
          },
          "userAgent": {
            "title": "SEC contact User-Agent",
            "type": "string",
            "description": "Optional descriptive organization and contact string for SEC requests. The default identifies this Actor and its public support profile.",
            "default": ""
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}