{
  "openapi": "3.1.0",
  "info": {
    "title": "AgentFiling \u2014 SEC EDGAR Intelligence for AI Agents",
    "version": "1.0.0",
    "description": "x402-powered SEC EDGAR filing intelligence. Get insider trading, earnings data, material events, and recent filings for any public company. Pay per query in USDC on Base mainnet.",
    "contact": {
      "url": "https://filing.memoryapi.org"
    }
  },
  "servers": [
    {
      "url": "https://filing.memoryapi.org"
    }
  ],
  "paths": {
    "/x402/filing/recent": {
      "get": {
        "summary": "List recent SEC filings by company",
        "description": "Returns recent SEC EDGAR filings for any public company. Filter by form type (10-K, 10-Q, 8-K, 4, DEF 14A, etc). Requires x402 payment of $0.001 USDC on Base.",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "AAPL"
            },
            "description": "Stock ticker symbol"
          },
          {
            "name": "cik",
            "in": "query",
            "schema": {
              "type": "string"
            },
            "description": "SEC CIK number (alternative to ticker)"
          },
          {
            "name": "form",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "8-K"
            },
            "description": "Form type: 10-K, 10-Q, 8-K, 4, DEF 14A, S-1, 13F"
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Recent filings list"
          },
          "402": {
            "description": "x402 payment required"
          }
        },
        "x-price": "$0.001 USDC"
      }
    },
    "/x402/filing/insider": {
      "get": {
        "summary": "Form 4 insider trading activity",
        "description": "Returns executive and director stock purchases and sales from SEC Form 4 filings. Requires x402 payment of $0.01 USDC on Base.",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "TSLA"
            },
            "description": "Stock ticker symbol"
          },
          {
            "name": "cik",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Insider trades with dollar values"
          },
          "402": {
            "description": "x402 payment required"
          }
        },
        "x-price": "$0.001 USDC"
      }
    },
    "/x402/filing/earnings": {
      "get": {
        "summary": "XBRL financial data",
        "description": "Returns structured financial data from SEC XBRL filings. Covers revenue, net income, EPS, assets, and 10+ concepts. Requires x402 payment of $0.01 USDC on Base.",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "AAPL"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "concept",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "revenue",
              "enum": [
                "revenue",
                "net_income",
                "eps",
                "assets",
                "liabilities",
                "equity",
                "operating_income",
                "gross_profit",
                "cash",
                "debt"
              ]
            }
          },
          {
            "name": "unit",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "USD"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Financial data with YoY growth"
          },
          "402": {
            "description": "x402 payment required"
          }
        },
        "x-price": "$0.001 USDC"
      }
    },
    "/x402/filing/events": {
      "get": {
        "summary": "8-K material events",
        "description": "Returns Form 8-K material event filings \u2014 M&A, leadership changes, earnings releases, and other disclosures. Requires x402 payment of $0.01 USDC on Base.",
        "parameters": [
          {
            "name": "ticker",
            "in": "query",
            "schema": {
              "type": "string",
              "example": "MSFT"
            }
          },
          {
            "name": "cik",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Material events with item descriptions"
          },
          "402": {
            "description": "x402 payment required"
          }
        },
        "x-price": "$0.001 USDC"
      }
    }
  }
}