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.
| Parameter | Type | Description |
|---|---|---|
format | string | Accepted values: 'markdown' (default) or 'json'. |
http
GET https://api.getdrock.com/api/v1/articles?format=jsonImage 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.
| Parameter | Type | Description |
|---|---|---|
clean | boolean | If set to true, replaces Base64 images inside content with [Base64 Image Hidden]. |