---
title: req.path
description: Returns the request URL pathname.
---

<h3 id='req.path'>req.path</h3>

Returns the request URL pathname.

```js
// example.com/users?sort=desc
console.dir(req.path);
// => '/users'
```
