---
id: post/demiliani-com/11962
type: post
title: "Dynamics 365 Business Central: compressing API responses at max."
summary: 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.
tier: community
language: en
tags:
  - api optimization
  - bandwidth reduction
  - compression
  - odata
  - performance
  - high-throughput
system: integration
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:01:32.331Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-post: 1
  input_hash: 2a2e09575ebb674c12b75e626bb0b211f6d447ced0def29ef482ece34f35592a
evidence:
  - kind: blog
    url: https://demiliani.com/2025/06/23/dynamics-365-business-central-compressing-api-responses-at-max/
    title: "Dynamics 365 Business Central: compressing API responses at max."
    date: "2025-06-23"
    commit: null
    t: null
    quote: null
  - kind: blog
    url: https://demiliani.com/2025/06/23/dynamics-365-business-central-compressing-api-responses-at-max/
    title: "Dynamics 365 Business Central: compressing API responses at max."
    date: "2025-06-23"
    commit: null
    t: null
    quote: Brotli is a high-efficiency, lossless compression algorithm developed by Google that achieves higher compression ratios compared to traditional algorithms such as gzip.
links:
  learn: []
  objects:
    - object/table/27
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
post_id: "11962"
source_id: demiliani-com
source_name: Stefano Demiliani
url: https://demiliani.com/2025/06/23/dynamics-365-business-central-compressing-api-responses-at-max/
published_at: "2025-06-23T13:15:54.000Z"
author: Stefano Demiliani
full_text: false
words: 761
quotes:
  - text: Brotli is a high-efficiency, lossless compression algorithm developed by Google that achieves higher compression ratios compared to traditional algorithms such as gzip.
    why_it_matters: Explains why Brotli is superior to the default compression method for reducing data transmission size
code_objects_mentioned:
  - table Item
systems:
  - integration
  - platform
versions_mentioned: []
preview:
  embeddable: true
  frame_url: https://demiliani.com/2025/06/23/dynamics-365-business-central-compressing-api-responses-at-max/embed/
  image: https://demiliani.com/wp-content/uploads/2025/06/d365bc_apicompression_00.png
  image_alt: null
  image_w: 619
  image_h: 352
  site_name: Stefano Demiliani
  favicon: https://demiliani.com/wp-content/uploads/2022/09/sd_wordpress_logo.png?w=32
  probed_at: "2026-10-07T11:52:02.546Z"
---

# Dynamics 365 Business Central: compressing API responses at max.

[Read the post](https://demiliani.com/2025/06/23/dynamics-365-business-central-compressing-api-responses-at-max/) · Stefano Demiliani (Stefano Demiliani, MVP) · 2025-06-23 · 761 words · tier community · reviewed (checked by Opus)

> 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.

## 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.

- [table 27 "Item"](../../objects/table/27.md)

## 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.
