# User-Agent

*noun*

say it: **“YOO-zer AY-jent”** **/ˈjuzər ˈeɪdʒənt/**

A request header that tells the server which program sent the request, such as a browser's name or an app's name and contact.

## What is the **User-Agent** header?

**User-Agent** is a request header that names the program sending the request, such as a browser or your script. Some
APIs, such as the US National Weather Service's, ask every program to send one with a way to contact its author.

```python
headers = {"User-Agent": "CampingTrip/1.0 (example@example.com)"}
response = requests.get(url, headers=headers, timeout=10)
```

## In a sentence

- “The weather API asked for a **User-Agent** with an email address.”
- “Her script's **User-Agent** names the app, so the API's owners know who's calling.”

Level: Journeyman · [More REST API terms at this level](https://www.ask-codey.com/glossary?category=rest-api&level=3)

Updated: November 19, 2026

Source: https://www.ask-codey.com/glossary/user-agent
