AI engineering glossary · Web APIs HTTP

What is accept header?

Accept header: A request header in which the client lists the response formats it can handle, optionally ranked by preference. The server may use it to choose between formats such as JSON and XML.

Level: intermediateTopic: Web APIs HTTP

Accept header: an example

Accept: application/json asks the server to reply with JSON rather than HTML.

Related terms

More Web APIs HTTP terms

Where you learn it

Accept header is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.