The documents endpoints give you access to every parsed fund disclosure in the MKK dataset. Each document corresponds to a single periodic fund report (a PDF filed with MKK), enriched with extracted line item values, normalized portfolio entries, and optional raw text. You can look up documents by their numeric ID, by MKK disclosure index string, or stream the original PDF binary directly.Documentation Index
Fetch the complete documentation index at: https://demircancelebi.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
Endpoints
| Method | Path | Description |
|---|---|---|
GET | /documents | List and search documents with pagination |
GET | /documents/{docId} | Retrieve full detail for a single document |
GET | /documents/{docId}/pdf | Stream the source PDF binary |
HEAD | /documents/{docId}/pdf | Check PDF availability without downloading |
GET | /disclosures/{disclosureIndex} | Retrieve a document by MKK disclosure index |
https://mkk-roan.vercel.app/api
GET /documents
Returns a paginated list of fund disclosure documents matching your filters.Query parameters
Return only documents for the fund with this code (e.g.,
OJB).Filter by reporting period in
YYYY-MM format (e.g., 2023-06).Free-text search across document metadata fields such as fund name, file name, and document type.
Maximum number of documents to return. Accepts values from
1 to 500.Number of documents to skip before returning results. Use with
limit to paginate through large result sets.Response schema
Total number of documents matching the applied filters, regardless of pagination.
The effective
limit applied to this response.The effective
offset applied to this response.Array of document summary objects.
Example request
Example response
200
GET /documents/
Returns the full detail for a single document, including extracted values, sections, portfolio data, and optionally raw text and table data.Path parameters
The numeric document ID. This corresponds to the
id field returned by GET /documents.Query parameters
When set to a truthy value (
1, true, yes, or on), the response includes the raw_text string (full extracted text from the PDF) and the tables array (raw table structures parsed from each page). These fields can significantly increase response size.Response schema
DocumentDetail extends DocumentSummary with:
ISO 8601 timestamp of when this document was first imported.
ISO 8601 timestamp of the most recent update to this document’s data.
Fund identity object.
All line item values extracted from this document. See the Line Items reference for the full schema.
Canonical sections represented in this document.
Raw portfolio table rows extracted directly from the PDF before normalization.
Normalized portfolio entries. See the Portfolio reference for the full schema.
Extracted portfolio total rows (e.g., grand totals from portfolio tables).
Full plain-text content extracted from the PDF. Only present when
include_raw is truthy. May be null if text extraction failed.Raw table structures parsed from the PDF pages. Only present when
include_raw is truthy.Error responses
| Status | Description |
|---|---|
404 | No document with the given docId exists. |
Example requests
GET /documents//pdf
Streams the original source PDF binary for a document.Path parameters
The numeric document ID.
Response
Returns200 application/pdf with the PDF binary stream, or 404 if the PDF is not available.
Example request
HEAD /documents//pdf
Checks whether a PDF is available for a document without downloading it. Useful for verifying availability before streaming.Path parameters
The numeric document ID.
Response
Returns200 if the PDF exists or 404 if it does not. No body is returned.
Example request
GET /disclosures/
Returns the fullDocumentDetail for a document identified by its MKK disclosure index string. This is equivalent to GET /documents/{docId} but uses the MKK-assigned identifier instead of the internal numeric ID.
Path parameters
The MKK disclosure index string (e.g.,
2023-TR-00012345). This value is available in the disclosure_index field of any document summary or detail.Query parameters
When set to a truthy value (
1, true, yes, or on), the response includes raw_text and tables. See the GET /documents/{docId} section above for details.Error responses
| Status | Description |
|---|---|
404 | No document with the given disclosure index exists. |