EPISODE · Jun 19, 2026 · 10 MIN
How APIs Use Content Negotiation to Serve Multiple Formats
from The API Podcast with Fexingo: REST, GraphQL, and Modern Web APIs · host Fexingo
In this episode of The API Podcast with Fexingo, Lucas and Luna explore content negotiation—the HTTP mechanism that lets a single API endpoint return JSON, XML, HTML, or even binary formats based on the client's Accept header. Using a real example from GitHub's API, they trace how the Accept header evolved from a simple content-type switch to a powerful tool for versioning and feature flags. Listeners learn how APIs negotiate for the right representation, why 'application/vnd.github.v3+json' changed the game, and how modern APIs use proactive content negotiation to reduce round trips. Episode 60 also covers the trade-offs between server-driven and agent-driven negotiation, and why REST APIs increasingly lean on the Vary header to improve cache efficiency. A concrete, developer-focused conversation for anyone building or consuming APIs in 2026. #ContentNegotiation #HTTP #REST #APIs #AcceptHeader #GitHubAPI #JSON #XML #MediaTypes #VaryHeader #ServerDrivenNegotiation #AgentDrivenNegotiation #APIVersioning #WebAPIs #Technology #FexingoBusiness #BusinessPodcast #TheAPIPodcast Keep every episode free: buymeacoffee.com/fexingo
What this episode covers
In this episode of The API Podcast with Fexingo, Lucas and Luna explore content negotiation—the HTTP mechanism that lets a single API endpoint return JSON, XML, HTML, or even binary formats based on the client's Accept header. Using a real example from GitHub's API, they trace how the Accept header evolved from a simple content-type switch to a powerful tool for versioning and feature flags. Listeners learn how APIs negotiate for the right representation, why 'application/vnd.github.v3+json' changed the game, and how modern APIs use proactive content negotiation to reduce round trips. Episode 60 also covers the trade-offs between server-driven and agent-driven negotiation, and why REST APIs increasingly lean on the Vary header to improve cache efficiency. A concrete, developer-focused conversation for anyone building or consuming APIs in 2026. #ContentNegotiation #HTTP #REST #APIs #AcceptHeader #GitHubAPI #JSON #XML #MediaTypes #VaryHeader #ServerDrivenNegotiation #AgentDrivenNegotiation #APIVersioning #WebAPIs #Technology #FexingoBusiness #BusinessPodcast #TheAPIPodcast Keep every episode free: buymeacoffee.com/fexingo
NOW PLAYING
How APIs Use Content Negotiation to Serve Multiple Formats
No transcript for this episode yet
Similar Episodes
Mar 26, 2026 ·1m
Mar 19, 2026 ·34m
Feb 18, 2026 ·11m
Feb 11, 2026 ·45m