---
hide_title: false
hide_table_of_contents: false
pagination_next: null
pagination_prev: null
---
# URLSearchParams.get()

The **`get()`** method of the `URLSearchParams`
interface returns the first value associated to the given search parameter.

## Syntax

```js
get(name)
```

### Parameters

- `name`
  - : The name of the parameter to return.

### Return value

A string if the given search parameter is found; otherwise,
**`null`**.
