Skip to content

Regions

1 operation in the WP Waterfall API.

List regions

get/regionsPermalink to List regions

  • Scope: sites:read
  • Permission: sites.read

The data center locations a site may use, the default first. Every region where Google lists the node shape is open, and a plan costs the same in each (ADR 215). has_data_center is false when none runs there yet: the first site opens one (a few minutes) at no extra charge. Show label (the city, never the country), not the code. WP Waterfall staff also see regions that take no sites, with status closed and a closed_reason; a site there answers 422 region_closed. A region with status unavailable is open but cannot start a data center right now (the cloud account is at its quota): unavailable_reason says so, it stays listed, and a site there answers 409 region_unavailable before anything is charged: pick another location.

Parameters

NameInTypeDescription
limitqueryintegerHow many rows to return in one page: at most 200, and 50 when left out. Default: 50. Range: 1 to 200.
cursorquerystringThe next_cursor of the page before. Leave it out for the first page.

Responses

StatusBodyDescription
200RegionListRegions
400ProblemThe request could not be read: bad JSON, a bad header, or a malformed value.
401ProblemThe credentials are missing, expired, or revoked. The WWW-Authenticate header names the Bearer scheme.
403ProblemThe credentials are valid but may not do this: the role, the API key scope, or a required confirmation is missing.
422ProblemThe request was read but a value is not valid, or a required confirmation or Idempotency-Key is missing. The errors list names each field.
429ProblemA rate limit was reached. Wait Retry-After seconds. Limits are per caller, per company, and per address.
4XXProblemProblem Details (RFC 9457)

200 response fields

NameTypeDescription
data requiredarray of RegionThe rows of this page.
data[].code requiredstring
data[].city requiredstring
data[].countrystring or nullThe ISO 3166 country code of the data center, such as US.
data[].labelstringThe city a person reads, such as "Ashburn, Virginia". It never shows the country. Show this, never code.
data[].provider requiredstring
data[].has_data_centerbooleanTrue when a shared node already runs here. False means no data center exists in this region yet: the first site opens one, which takes a few minutes and costs nothing extra. Optional so an older API still parses.
data[].machine_family requiredstringOne of: C4D.
data[].default_machine_type requiredstring
data[].status requiredstringOne of: warm, on_demand, closed, unavailable.
data[].unavailable_reasonstring or nullWhy a region is unavailable right now, in plain words. Null otherwise.
data[].first_site_seconds requiredinteger or nullTypical seconds from request to a live site. Null until measured on a real node.
data[].is_default requiredboolean
data[].closed_reasonstring or nullWhy a closed region takes no sites, in plain words. Null for an open region.
data[].site_surcharge_centsintegerThe regional surcharge of one site a month here, in cents: 0 where Google prices the data center like us-east4, else a whole dollar amount each site whose live environment runs here adds to the plan. The plan price is the same everywhere. Optional so an older API parses. Range: 0 to any.
data[].popularbooleanTrue for one of the most popular data centers, at most five at a time. With 20 or more live sites on the platform these are the five regions with the most live sites; below that, the regions WordPress sites most commonly use. Only a region a customer can pick is popular. Optional so an older API still parses.
next_cursor requiredstring or nullSend it as cursor to get the next page. Null on the last page.