How Much Bandwidth Do You Need for an API in 2025?

Reynaldi
Reynaldi •

When talking about bandwidth or data transfer in the context of the web, most people think of bandwidth used by the actual webpages that you host. Thanks to a report by HTTP Archive, we know that webpages in 2025 weigh around 2.5 MB.

Page Weight Page Weight (source: HTTP Archive)

This page weight includes everything that gets downloaded to render a page, like HTML, CSS, JS, fonts, images, and other assets.

However, this does not tell the story about bandwidth used for APIs.

Websites Are Heavy

It’s tempting to assume that HTML, CSS, and JS are tiny since they are just text. However, HTML itself is bloated since you need to use markup tags, not including the attributes and more inline data.

Add to that:

  • CSS frameworks that load hundreds of KB
  • JavaScript bundles
  • Images, assets, fonts
  • Tracking scripts, analytics, etc.

So it’s not a surprise that when talking about websites, they are in the MB range.

APIs Are a Different Story

There’s no equivalent report for APIs similar to HTTP Archive for webpages. However, we can make some educated estimates.

APIs typically send structured data, mostly in JSON format, without extra markup, styles, or images. To put this into perspective, here is a 128 KB dummy JSON data.

128 KB JSON 128 KB JSON

It contains over 700+ objects, each with multiple fields. In most scenarios, an API response in this size range (100KB) is already considered large.

Estimate: APIs Are 20x Lighter Than Webpages

If we compare:

TypeSizeContent
Webpage~2.5MBHTML, CSS, JS, images, assets
API~100 KBMostly text JSON data

That’s a 20x difference. If a webpage consumes that amount of bandwidth, an API request would likely be 5% of that.

What This Means for Bandwidth Planning

For a website with heavy assets, total data transfer can easily reach hundreds of gigabytes or even terabytes per month at scale. This is why you see website hosting providers offer a lot of bandwidth compared to API services.

APIs, however, are much lighter. So your data transfer costs and bandwidth needs for APIs are often much lower than for a full website, even with the same number of requests.

Conclusion

APIs are significantly lighter compared to webpages. They can be up to 20x lighter than websites, even with the same number of requests. When planning for bandwidth needs or data transfer usage with APIs, you can expect to use much less data compared to your web hosting requirements.

It's time to build great websites without CORS errors

First 500 CORS proxy requests a month are free

Fix CORS errorsNo credit card required.