Skip to content
How APIs Use Content Negotiation to Serve the Right Format episode artwork

Aug 15, 2026 10 min

How APIs Use Content Negotiation to Serve the Right Format

from The API Podcast with Fexingo: REST, GraphQL, and Modern Web APIs Hosted by Fexingo

When your API client asks for JSON but the server says XML, who wins? In this episode, Lucas and Luna dive into HTTP content negotiation — the quiet protocol powering everything from REST APIs to GraphQL. They walk through the Accept header, server-driven negotiation, and the Vary response header, using real examples like GitHub and Stripe. You'll learn why content negotiation is your API's best friend for versioning, caching, and serving multiple formats without breaking clients. Plus, they share a clever trick for debugging negotiation issues with curl and a practical tip for designing APIs that handle both JSON and XML gracefully. If you've ever wondered how your API decides what to send back, this episode has the answers. #ContentNegotiation #HTTPHeaders #APIDesign #RESTAPI #GraphQL #JSON #XML #AcceptHeader #VaryHeader #ServerDriven #ClientDriven #Caching #APIVersioning #WebDevelopment #Technology #FexingoBusiness #BusinessPodcast #API Keep every episode free: buymeacoffee.com/fexingo

Episode details come from the podcast's RSS feed.

Embed this episode

Ready to play

How APIs Use Content Negotiation to Serve the Right Format

0:00 10:53

No transcript yet.

Requests help us decide what to transcribe next.

Frequently asked questions

How long is this episode of The API Podcast with Fexingo: REST, GraphQL, and Modern Web APIs?

This episode is 10 minutes long.

When was this The API Podcast with Fexingo: REST, GraphQL, and Modern Web APIs episode published?

This episode was published on August 15, 2026.

Can I download this The API Podcast with Fexingo: REST, GraphQL, and Modern Web APIs episode?

Yes. Use the download control on the episode player to save the publisher-provided media file.