{
  "openapi": "3.0.1",
  "info": {
    "title": "SEC EDGAR Filings",
    "description": "Official SEC EDGAR company filings: 10-K, 10-Q, 8-K, Form D, and 13F-HR. Ticker/CIK input, 8-K item codes, Form D offering fields, 13F holdings from the information table XML, and key 10-K/10-Q XBRL metrics. Declared User-Agent and a polite rate limit well under the SEC 10 requests/second cap.",
    "version": "0.4",
    "x-build-id": "OXPyKVdKFHbpdvU52"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/earthen_garland~sec-edgar-filings/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-earthen_garland-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/earthen_garland~sec-edgar-filings/runs": {
      "post": {
        "operationId": "runs-sync-earthen_garland-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/earthen_garland~sec-edgar-filings/run-sync": {
      "post": {
        "operationId": "run-sync-earthen_garland-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": {
          "tickers": {
            "title": "Tickers",
            "type": "array",
            "description": "Exchange tickers resolved through the official SEC company_tickers.json map (for example AAPL). If both Tickers and CIKs are empty, the Actor runs a small sample (AAPL, latest 2 8-K filings).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "ciks": {
            "title": "CIKs",
            "type": "array",
            "description": "SEC Central Index Keys, with or without leading zeros. Use this for issuers that have no ticker (common for Form D and some 13F managers).",
            "items": {
              "type": "string"
            },
            "default": []
          },
          "formTypes": {
            "title": "Form types",
            "type": "array",
            "description": "Form types to keep. Aliases: Form D → D, 13F → 13F-HR. Empty is not recommended; the default covers 10-K, 10-Q, 8-K, D, and 13F-HR.",
            "items": {
              "type": "string"
            },
            "default": [
              "10-K",
              "10-Q",
              "8-K",
              "D",
              "13F-HR"
            ]
          },
          "filedSince": {
            "title": "Filed since (YYYY-MM-DD)",
            "type": "string",
            "description": "Inclusive lower bound on filing date. Leave empty for no lower bound. If set, older submission history files may also be fetched.",
            "default": ""
          },
          "filedUntil": {
            "title": "Filed until (YYYY-MM-DD)",
            "type": "string",
            "description": "Inclusive upper bound on filing date. Leave empty for no upper bound.",
            "default": ""
          },
          "maxFilingsPerCompany": {
            "title": "Max filings per company",
            "minimum": 1,
            "maximum": 200,
            "type": "integer",
            "description": "Maximum matching filings to return for each company, most recent first.",
            "default": 5
          },
          "maxResults": {
            "title": "Max results (global)",
            "minimum": 0,
            "maximum": 2000,
            "type": "integer",
            "description": "Optional cap on the total number of filing rows across all companies. 0 means no global cap beyond the per-company limit.",
            "default": 0
          },
          "includeAmendments": {
            "title": "Include amendments (/A)",
            "type": "boolean",
            "description": "If true, 10-K also matches 10-K/A, D matches D/A, 13F-HR matches 13F-HR/A, and so on.",
            "default": true
          },
          "includeDocumentList": {
            "title": "Include official index.json document list",
            "type": "boolean",
            "description": "If true, attach the official Archives index.json document list (name, type, size, URL) to each filing row.",
            "default": true
          },
          "parseFormD": {
            "title": "Parse Form D primary_doc.xml",
            "type": "boolean",
            "description": "If true, parse Form D primary_doc.xml for key offering fields (amounts, exemptions, investor counts, issuer identity).",
            "default": true
          },
          "includeFormDRelatedPersons": {
            "title": "Include Form D related-person names and roles",
            "type": "boolean",
            "description": "Official Form D disclosures only (names and roles). Street addresses are never included. Turn off to omit related-person fields entirely.",
            "default": true
          },
          "parse13F": {
            "title": "Parse 13F-HR holdings XML",
            "type": "boolean",
            "description": "If true, parse the 13F-HR information table XML for holdings and the primary document summary totals.",
            "default": true
          },
          "maxHoldingsPer13F": {
            "title": "Max holdings rows per 13F",
            "minimum": 0,
            "type": "integer",
            "description": "0 or empty means no extra cap (the official table is returned in full).",
            "default": 0
          },
          "includeXbrlMetrics": {
            "title": "Include key 10-K/10-Q XBRL metrics",
            "type": "boolean",
            "description": "Uses official data.sec.gov companyconcept APIs (assets, equity, revenues, net income, EPS, cash, and similar).",
            "default": true
          },
          "includeFilingHistory": {
            "title": "Fetch older submissions files",
            "type": "boolean",
            "description": "Also requested automatically when Filed since is set. Uses official data.sec.gov/submissions history files.",
            "default": false
          },
          "contactEmail": {
            "title": "Contact email for the SEC User-Agent",
            "type": "string",
            "description": "Contact for the SEC fair-access User-Agent (SEC asks automated tools to declare one). Replace the generic example address with your own mailbox for production use. If empty, the Actor uses its generic contact.",
            "default": "sec-edgar-filings-actor@example.com"
          },
          "userAgentProduct": {
            "title": "User-Agent product name",
            "type": "string",
            "description": "Product token placed at the start of the SEC User-Agent, before the contact email.",
            "default": "SecEdgarFilings/0.4 (+https://apify.com/earthen_garland/sec-edgar-filings)"
          },
          "userAgent": {
            "title": "Full User-Agent override",
            "type": "string",
            "description": "If set, used as the complete User-Agent instead of '{product} {contactEmail}'. Still include a contact address.",
            "default": ""
          },
          "minRequestIntervalSeconds": {
            "title": "Minimum seconds between official requests",
            "minimum": 0.1,
            "maximum": 10,
            "type": "number",
            "description": "The SEC cap is 10 requests/second. This Actor defaults to 1.2 seconds and will not go faster than 0.1 seconds (the 10 req/s floor).",
            "default": 1.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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}