This is cool. If you don’t mind me asking, are you using the EDGAR api or something else?
Then you have a bunch of third party providers that offer APIs that return cleaned up SEC filings and charge like few thousand dollars a year. The downside is the latency they add.
https://www.sec.gov/search-filings/public-dissemination-serv...