title | description | sidebarTitle | api |
---|---|---|---|
Closest Region |
Returns the closest region to the user's location. |
Closest Region |
curl https://region.turso.io
import { createClient } from "@tursodatabase/api";
const turso = createClient({
org: "...",
token: "",
});
const { server, client } = await turso.locations.closest();
{
"server": "lhr",
"client": "lhr"
}