Sitemap
JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.

Press enter or click to view image in full size

Member-only story

Instead of JSON, Try These 5 API Response Formats to Speed Up Your API

11 min readOct 9, 2026

--

Binary formats are not a magic switch. But for an endpoint that gets hit thousands of times a minute, the format you choose can matter.

Disclosure: this story was written with the assistance of an AI writing program, then reviewed, edited, and fact-checked by the author.

Picture a search box in an online store. Every time someone types a letter, the app calls /api/products/search, and the server sends back 50 products as JSON.

You can read the full story for free by clicking here

One request is cheap. Now multiply it by thousands of active users, several keystrokes per search, and mobile networks that are not always kind. That “just JSON” response starts to add up: bigger payloads, CPU time spent parsing, and a little more battery drained on every phone.

JSON is a great default. It is readable, supported everywhere, and you can debug it straight from the browser. But a default is not always the best fit for every endpoint.

In this article we walk through five alternatives, each with an Express example built around a search endpoint, plus a script so you can measure the results yourself. We also cover when you should not leave JSON behind.

--

--

Developer Awam
Developer Awam

Written by Developer Awam

We share simple and practical web development tutorials using Laravel, Livewire, and modern tools. https://www.linkedin.com/in/restu-lomutotona-lomboe-portfolio

JavaScript in Plain English
JavaScript in Plain English

Published in JavaScript in Plain English

New JavaScript and Web Development content every day. Follow to join our 3.5M+ monthly readers.