cURL
curl --request GET \ --url https://api.planetscale.com/v1/regions \ --header 'Authorization: <api-key>'
{ "current_page": 123, "next_page": 123, "next_page_url": "<string>", "prev_page": 123, "prev_page_url": "<string>", "data": [ { "id": "<string>", "provider": "<string>", "enabled": true, "public_ip_addresses": [ "<string>" ], "display_name": "<string>", "location": "<string>", "slug": "<string>" } ] }
Endpoint is available without authentication.
If provided, specifies the page offset of returned results
If provided, specifies the number of returned results
Returns the available public PlanetScale regions
The current page number
The next page number
The next page of results
The previous page number
The previous page of results
Show child attributes
The ID of the region
The cloud provider for the region
Whether new clusters can be created in this region
List of public IP addresses for the region
The name of the region
The location of the region
The slug identifier for the region
Was this page helpful?