Originaldokumente suchen, laden und in lesbaren Text wandeln.
Wozu das gut ist, steht auf der Produktseite: Filings und Publikationen
/download/batchLaedt das juengste 8-K fuer eine Liste von Identifiern parallel.
Jeder Eintrag traegt genau eines von: ticker, cik, isin, wkn.
Beispielkoerper:
[{"ticker": "AAPL"}, {"ticker": "AMD"}, {"isin": "US02079K3059"}, {"cik": "320193"}]Keine Parameter.
curl -X POST "$API/download/batch" \
-H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
-d '{ … }'/download/fileLaedt eine einzelne SEC-EDGAR-Datei ueber ihre URL und legt sie lokal ab.
Die URL muss auf ein SEC Complete Submission Text File zeigen, etwa:
https://www.sec.gov/Archives/edgar/data/1326801/ 000162828026025108/0001628280-26-025108.txt
Das Dokument in sec_filings wird um file_path, file_size_kb und downloaded_at ergaenzt.
Keine Parameter.
SecFileRequest| Name | Typ | Bedeutung |
|---|---|---|
url | string Pflicht | Url |
curl -X POST "$API/download/file" \
-H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
-d '{ … }'/download/filesLaedt mehrere SEC-EDGAR-Dateien parallel. Gleiche Semantik wie POST /download/file, nimmt aber eine Liste von URL-Objekten entgegen.
Beispielkoerper:
[
{"url": "https://www.sec.gov/Archives/edgar/data/1326801/.../0001628280-26-025108.txt"},
{"url": "https://www.sec.gov/Archives/edgar/data/320193/.../...txt"}
]Keine Parameter.
curl -X POST "$API/download/files" \
-H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
-d '{ … }'/download/{ticker_or_cik}Laedt das juengste 8-K fuer einen einzelnen Identifier und legt die Metadaten in MongoDB ab.
Zulaessige Formen:
AAPL → blosser Ticker 320193 → blosse CIK ticker:GOOGL → ausdruecklicher Ticker cik:320193 → ausdrueckliche CIK isin:US0378331005 → ueber OpenFIGI zu SEC EDGAR aufgeloest wkn:623100 → ueber OpenFIGI zu SEC EDGAR aufgeloest
| Name | Typ | Bedeutung |
|---|---|---|
ticker_or_cik | string, im Pfad Pflicht | — |
curl -X POST "$API/download/SAP" \ -H "X-API-Key: $KEY"
/parse/{ticker_or_cik}Zerlegt das lokal heruntergeladene 8-K-Complete-Submission-Textfile und macht es lesbar.
was wirklich in der Datei steckt und was blosse Struktur ist.
Setzt voraus, dass die Datei zuvor ueber POST /download/{ticker_or_cik} geholt wurde.
| Name | Typ | Bedeutung |
|---|---|---|
ticker_or_cik | string, im Pfad Pflicht | — |
curl "$API/parse/SAP" \ -H "X-API-Key: $KEY"
/publications/downloadFuehrt dieselbe Quellenauswahl aus wie /publications/search und laedt anschliessend den ersten Treffer der ersten Quelle, die ok gemeldet hat.
Ablage unter downloads/{source}/{identifier}/{filename}. Antwortet mit 404, wenn keine Quelle einen Treffer hatte.
Keine Parameter.
PublicationQuery| Name | Typ | Bedeutung |
|---|---|---|
identifier | string Pflicht | Ticker, WKN, CIK, ISIN, stock code, LEI or company name |
identifierType | string optional | auto | ticker | wkn | cik | isin | stock_code | lei | name |
country | string optional | ISO-2 country hint: US | DE | GB | FR | CN | HK |
source | string optional | Pin a specific source key from SOURCE_REGISTRY |
publicationType | string optional | earnings | annual_report | interim_report | ad_hoc | press_release | 8k | 10q | 10k | announcement | ... |
limit | integer optional · Vorgabe 10 | Limit |
curl -X POST "$API/publications/download" \
-H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
-d '{ … }'/publications/searchQuellenuebergreifende Suche nach Emittenten-Publikationen.
Reihenfolge der Quellenauswahl:
1. ausdruecklichesource2. Hinweis uebercountry3. Heuristik anhand der Form des Identifiers (ISIN / WKN / CIK / Stock Code)
Jede befragte Quelle liefert ein eigenes SourceResult mit dem Status ok | not_implemented | error — der Endpunkt scheitert also nie nur deshalb, weil eine Quelle ausfaellt oder noch nicht umgesetzt ist.
Keine Parameter.
PublicationQuery| Name | Typ | Bedeutung |
|---|---|---|
identifier | string Pflicht | Ticker, WKN, CIK, ISIN, stock code, LEI or company name |
identifierType | string optional | auto | ticker | wkn | cik | isin | stock_code | lei | name |
country | string optional | ISO-2 country hint: US | DE | GB | FR | CN | HK |
source | string optional | Pin a specific source key from SOURCE_REGISTRY |
publicationType | string optional | earnings | annual_report | interim_report | ad_hoc | press_release | 8k | 10q | 10k | announcement | ... |
limit | integer optional · Vorgabe 10 | Limit |
curl -X POST "$API/publications/search" \
-H "X-API-Key: $KEY" \
-H "Content-Type: application/json" \
-d '{ … }'/publications/sourcesLiefert die vollstaendige Quellen-Registry mit Faehigkeiten und Reifegrad.
Keine Parameter.
curl "$API/publications/sources" \ -H "X-API-Key: $KEY"
/search/{ticker_or_cik}Sucht eine Firma ueber Ticker oder CIK und liefert die Metadaten ihrer juengsten Einreichungen. Die Ergebnisse werden in sec_filings abgelegt.
| Name | Typ | Bedeutung |
|---|---|---|
ticker_or_cik | string, im Pfad Pflicht | — |
limit | integer, in der Abfrage optional · Vorgabe 1 | Number of filings to return |
form | string, in der Abfrage optional | Comma-separated list of form types to filter by (e.g. `8-K`, `8-K,8-K/A`, `6-K,SC 13G,20-F`). Leave empty for all forms. Defaults to `8-K,8-K/A` if omitted. |
curl "$API/search/SAP" \ -H "X-API-Key: $KEY"