Turso Cloud API Reference Resources Locations
Closest Region
Returns the closest region to the user's location.
Response
server string
The location code for the server responding.
client string
The location code for the client request.
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"
} Synced from official Turso documentation (
tursodatabase/turso-docs
· MIT License)
Official Docs ↗