Content Formats

How the Drock API returns content to best fit your needs.

Output Format (`?format=`)

You can choose between Markdown format (default) or raw JSON content.

ParameterTypeDescription
format
stringAccepted values: 'markdown' (default) or 'json'.
http
GET https://api.getdrock.com/api/v1/articles?format=json

Image Cleanup (`?clean=true`)

Drock allows replacing heavy Base64-encoded images within the Markdown content with symbolic text to reduce response size. Cover images are unaffected as they are already optimized CDN URLs.

ParameterTypeDescription
clean
booleanIf set to true, replaces Base64 images inside content with [Base64 Image Hidden].