# 最近区域

> 返回距离用户位置最近的区域。
> Canonical HTML: https://tursodb.cn/zh-cn/docs/api-reference/locations/closest-region/
> Upstream Source (MIT): https://docs.turso.tech/api-reference/locations/closest-region
> Language: zh-CN

---
#### 响应

**server** `string`

响应服务器的位置代码。

**client** `string`

客户端请求的位置代码。

```bash cURL
curl https://region.turso.io
```

```ts Node.js
import { createClient } from "@tursodatabase/api";

const turso = createClient({
  org: "...",
  token: "",
});

const { server, client } = await turso.locations.closest();
```

```json 200
{
  "server": "lhr",
  "client": "lhr"
}
```
