# 列出位置

> 回傳你可以建立或複製資料庫的位置清單。
> Canonical HTML: https://tursodb.cn/zh-tw/docs/api-reference/locations/list/
> Upstream Source (MIT): https://docs.turso.tech/api-reference/locations/list
> Language: zh-TW

---
```bash cURL
curl -L https://api.turso.tech/v1/locations \
  -H 'Authorization: Bearer TOKEN'
```

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

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

const locations = await turso.locations.list();
```


## OpenAPI

````yaml GET /v1/locations
openapi: 3.0.1
info:
  title: Turso Platform API
  description: 此處為 API 說明
  license:
    name: MIT
  version: 0.1.0
servers:
  - url: https://api.turso.tech
    description: Turso 的平台 API
security: []
paths:
  /v1/locations:
    get:
      summary: 列出位置
      description: 回傳你可以建立或複製資料庫的位置清單。
      operationId: listLocations
      responses:
        '200':
          description: 成功回應
          content:
            application/json:
              schema:
                type: object
                properties:
                  locations:
                    type: object
                    additionalProperties:
                      type: string
                    description: 位置代碼對應至位置名稱的映射。
                example:
                  locations:
                    aws-ap-northeast-1: AWS AP NorthEast (Tokyo)
                    aws-ap-south-1: AWS AP South (Mumbai)
                    aws-eu-west-1: AWS EU West (Ireland)
                    aws-us-east-1: AWS US East (Virginia)
                    aws-us-east-2: AWS US East (Ohio)
                    aws-us-west-2: AWS US West (Oregon)

````
