Skip to content
/api/v1/scrapping/pdf

Download filing as PDF, HTML, or plain text.

Download filing as PDF, HTML, or plain text. Auto-detects CIK from the SEC URL (or accepts an explicit `cik` body field as fallback). The selected CIK must be a string containing only ASCII digits (0-9); invalid company numbers and paths outside the download directory return HTTP 400. iXBRL viewer links (containing `/ix?doc=`) are normalized server-side.

25 tokensSince v1.0.0

Why use this

Download a filing as a PDF attachment, or save its fetched source content as HTML or TXT. The successful response is the file itself.

Common use case

Saving a filing for an investor presentation.

Returns the requested file directly. Save the response bytes instead of parsing JSON. The server checks the caller and existing download quota before creating a directory or removing a cached file. Company numbers must contain only ASCII digits, and resolved document paths must remain in the download directory.

Parameters

NameInRequiredDefaultAllowedDescriptionExample
cikbodyoptional——Company number as a string of ASCII digits (0-9), required only when link contains no /data/<digits>/ segment. Leading zeroes are preserved. A company number extracted from link takes precedence over this fallback.320193
typebodyoptionalpdf—Output format: pdf renders the document; html and txt save the fetched source content with that extension. The txt option does not strip HTML markup.pdf
fileNamebodyoptional——Attachment filename. The selected output extension is appended when missing. Defaults to the internal document filename.AAPL-10K-2025

Response schema

FieldTypeNullableDescription
(binary)stringnoFile bytes returned directly as an attachment, with Content-Type determined by type and Content-Disposition containing the download name. There is no JSON success envelope or signed download URL.

Errors

StatusLabelDescription
400Invalid or missing input, an escaping download path, or document generation failure.
403The existing monthly download quota is exceeded.

Code samples

curl -X POST "https://api.finradar.ai/api/v1/scrapping/pdf" \
  -H "X-API-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "link": "https://www.sec.gov/Archives/edgar/data/320193/000032019324000123/aapl-20240928.htm",
  "cik": "320193",
  "type": "pdf",
  "fileName": "AAPL-10K-2025"
}'

Generate an API key in /account/credentials to run live queries (literal YOUR_API_KEY placeholder shown until then).

Try it

Related endpoints