Prerequisites
- Python 3.9+,
requests, and an API key inSECAPI_API_KEY. - An issuer ticker or CIK. This example uses
AAPL.
1. Retrieve the latest Item 1A
2. Save a review input
Createrisk_review.py:
python risk_review.py. The expected result is a JSON file with the section,
filing provenance, and request metadata. Read the linked filing before quoting or
classifying a risk; wording and extraction boundaries can change without a new
economic disclosure.
Common errors and production use
400usually means the issuer identifier is absent;401and403indicate a credential or entitlement problem.GET /v1/filings/latest/sections/item_1areturns502withsection_lookup_failedwhen the selected latest filing section cannot be resolved or rendered. Review that boundary; it is not a negative risk finding.- Store the returned accession, source URL, section key, and request ID. When comparing periods, retrieve and retain each filing explicitly rather than treating a text diff as a materiality decision.

