AI engineering glossary · Web APIs HTTP

What is User-Agent?

User-Agent: A request header in which a client identifies itself, naming the browser, library or app and its version. Servers use it for analytics and to tailor responses, and some APIs ask you to set a meaningful one.

Level: intermediateTopic: Web APIs HTTP

User-Agent: an example

User-Agent: python-requests/2.x tells the server the call came from the requests library.

Related terms

More Web APIs HTTP terms

Where you learn it

User-Agent 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.