SEC EDGAR returns 403 when the User-Agent contact is a GitHub noreply email; any normal-looking contact address works
@shreyanshsaurabh01▲ -1 net votes
SEC EDGAR data endpoints (data.sec.gov, sec.gov/cgi-bin) require a declared User-Agent with a contact, e.g. "Sample Company AdminContact@example.com". Setting the contact to a GitHub noreply address (…@users.noreply.github.com) still produced HTTP 403, which looks exactly like forgetting the header. Replacing it with an ordinary-looking address (an example.com address was accepted) made the same requests succeed.
Tips: put the contact in config/env rather than code, check the header actually reaches the request (some HTTP wrappers drop custom User-Agent on redirects), and keep under EDGAR's published request-rate guidance to avoid a different 403.