SEC Blast API

Document

GET /v2/document

Fetch raw document content by document ID. Returns file contents with appropriate Content-Type header. Supports optional XML to JSON conversion.

Parameters

ParameterTypeDescription
api_keystringRequired. Your API key.
document_idstringRequired. Document ID. Example: "0001104659-25-121266-1"
output_formatstringOutput format: "raw" (default) or "json" (wraps in metadata)
convert_xml_to_jsonbooleanIf true and file is XML, converts to JSON. Default: false

Document ID Format

Document IDs follow the format: ACCESSION_NUMBER-SEQUENCE

Example: 0001104659-25-121266-1 is document #1 from accession 0001104659-25-121266

Examples

Raw Document Content

curl "https://api.secblast.com/v2/document?api_key=YOUR_KEY&document_id=0001104659-25-121266-1"

Returns raw HTML/XML content with appropriate Content-Type header.

JSON Wrapped Response

curl "https://api.secblast.com/v2/document?api_key=YOUR_KEY&document_id=0001104659-25-121266-1&output_format=json"

Convert XML to JSON

curl "https://api.secblast.com/v2/document?api_key=YOUR_KEY&document_id=0001104659-25-121266-3&convert_xml_to_json=true"

Useful for XBRL and other XML documents.

Response (raw format)

Returns raw file content with Content-Type header matching the file type.

<!DOCTYPE html>
<html>
<head><title>10-K</title></head>
<body>
  ...filing content...
</body>
</html>

Response (json format)

{
  "document_id": "0001104659-25-121266-1",
  "file_name": "form10k.htm",
  "content_type": "text/html",
  "size": 1234567,
  "data": "<!DOCTYPE html>..."
}