Dynamics 365 Business Central: compressing API responses at max.
This post explains how to use Brotli compression instead of gzip to reduce the size of OData API responses from Business Central. Brotli significantly decreases bandwidth usage and transfer times for high-volume API calls by achieving better compression ratios than the default gzip algorithm.

post Stefano Demiliani
"Brotli is a high-efficiency, lossless compression algorithm developed by Google that achieves higher compression ratios compared to traditional algorithms such as gzip."
Key points
- Business Central APIs compress responses with gzip by default, negotiated via Accept-Encoding and Content-Encoding headers
- Sending Accept-Encoding: br makes the API return Brotli-compressed responses, which were much smaller in tests on a custom Item API
- For 10000 items the response dropped from roughly 11 MB with gzip to about 515 KB with Brotli
- In C#, an HttpClient with AutomaticDecompression set to Brotli and a br accept header handles decompression transparently
- Brotli may add slight server overhead, though the author saw no significant difference
Quotes
- “Brotli is a high-efficiency, lossless compression algorithm developed by Google that achieves higher compression ratios compared to traditional algorithms such as gzip.” (Explains why Brotli is superior to the default compression method for reducing data transmission size)
AL objects mentioned
As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.
Possibly related
No source states these links: they share an object, a model read them, or a person found the same subject.
- BC Friday Tips #69 Item Blocked Fields — possibly related: both name Table 27 “Item”
- BC Friday Tips #84 Why Is Your Item Missing from the Sales Line Lookup? — possibly related: both name Table 27 “Item”
- Business Central 2025 wave 2 (BC27): App version in “Copy error details”/”Share details via” — possibly related: both name Table 27 “Item”
- Dynamics 365 Business Central: How to add Filter by item attributes to the Item Ledger Entries page — possibly related: both name Table 27 “Item”
- Dynamics 365 Business Central: How to bulk import marketing text to items – Customization — possibly related: both name Table 27 “Item”
- Dynamics 365 Business Central: How to change Zero (0) of Flowfield field to Dash (-) on the page — possibly related: both name Table 27 “Item”
- Dynamics 365 Business Central: Why are the newly added fields in drop-down not displayed? (e.g., adding item Search Description to DropDown fieldgroup) — possibly related: both name Table 27 “Item”
- Introducing: AI-Powered Analysis with Copilot (2024 release wave 1) — possibly related: both name Table 27 “Item”
- Introducing: Sales Lines Suggestions with Copilot ( 2024 release wave 1) — possibly related: both name Table 27 “Item”
- Leveraging RecordRef and FieldRef for Dynamic Coding — possibly related: both name Table 27 “Item”
Context
- Features: OData API compression, Brotli compression, gzip compression, HTTP compression, API response optimization
Source: Stefano Demiliani, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.