---
name: "mongoc_client_get_uri"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_client_get_uri"
---

# mongoc\_client\_get\_uri(3)

## SYNOPSIS

```
const mongoc_uri_t *
mongoc_client_get_uri (const mongoc_client_t *client);
```

Fetches the *mongoc\_uri\_t* used to create the client.

## PARAMETERS

- •

  **client**: A *mongoc\_client\_t*.

## RETURNS

A *mongoc\_uri\_t* that should not be modified or freed.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
