ARCNM

API reference

Regions

The Regions API reads the platform's cost-region hierarchy: list regions by level or parent, fetch one, and read its reference cost drivers as of a date.

The Regions API reads the platform's cost-region hierarchy: list regions by level or parent, fetch one, and read its reference cost drivers as of a date.

Auto-generated from the public OpenAPI spec — this page never drifts from the running API. Base URL https://api.arcnm.io. Authenticate with the X-API-Key header (see Authentication).

List Regions

GET /api/v1/regions

List the cost regions an environment can bind to, sorted by code.

The response is a plain array, so the page position travels in the Link (RFC 8288) and X-Next-Cursor / X-Has-More response headers.

Paginated. Pass cursor (from the previous response) to fetch the next page; limit caps the page size.

Parameters

Name In Type Required Description
level query string no Only regions of this level: world
parent query string no Only the direct children of this region code.
priced query boolean no true: only regions with reference values of their own; false: only inheriting ones.
cursor query string no Opaque position token from the previous page's next_cursor (or the Link / X-Next-Cursor response header). Omit it for the first page. Keep every other query parameter identical for the whole walk — a cursor replayed against different filters is rejected.
limit query integer no Maximum rows to return in one page.

Request

curl -X GET https://api.arcnm.io/api/v1/regions \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/regions",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/regions", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.

Status Code When
401 invalid_api_key Missing, malformed, or revoked API key.
403 insufficient_scope The key is valid but lacks a scope this endpoint requires.
429 rate_limited Per-key or per-org rate limit exceeded — back off with jitter and retry.

Get Region

GET /api/v1/regions/{code}

One cost region with its inheritance path and aliases.

Parameters

Name In Type Required Description
code path string yes Region code or alias.

Request

curl -X GET https://api.arcnm.io/api/v1/regions/{code} \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/regions/{code}",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/regions/{code}", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.

Status Code When
401 invalid_api_key Missing, malformed, or revoked API key.
403 insufficient_scope The key is valid but lacks a scope this endpoint requires.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
429 rate_limited Per-key or per-org rate limit exceeded — back off with jitter and retry.

Response body 200

Field Type Description
aliases string[] Other spellings that resolve to this region (NUTS, legacy codes).
ancestors string[] Region codes from the parent up to WORLD — the inheritance path.
centroid_lat number Approximate centre of the region (capital or geographic centre), latitude in decimal degrees; null for a macro region without one.
centroid_lon number Approximate centre of the region (capital or geographic centre), longitude in decimal degrees; null for a macro region without one.
code string Region code: ISO 3166-1 alpha-2 for a country, ISO 3166-2 for a subdivision, M49- for a UN macro region, WORLD for the root.
currency string ISO 4217 currency the region trades in.
is_priced boolean True when the region carries reference values of its own; false when every driver inherits from the parent region.
iso3166_1 string ISO 3166-1 alpha-2.
iso3166_2 string ISO 3166-2 code.
level string world
name_de string
name_en string
name_es string
name_it string
nuts_code string NUTS code, EU regions.
parent_code string The region this one inherits from; null on WORLD.
timezone string
un_m49 string UN M49 numeric code.

Example response

{
  "aliases": [
    "string"
  ],
  "ancestors": [
    "string"
  ],
  "centroid_lat": 0,
  "centroid_lon": 0,
  "code": "string",
  "currency": "EUR",
  "is_priced": true,
  "iso3166_1": "string",
  "iso3166_2": "string",
  "level": "string",
  "name_de": "string",
  "name_en": "string",
  "name_es": "string",
  "name_it": "string",
  "nuts_code": "string",
  "parent_code": "string",
  "timezone": "string",
  "un_m49": "string"
}

Get Region Drivers

GET /api/v1/regions/{code}/drivers

Every cost-driver value the region resolves at a date — its own values and the ones it inherits from parent regions, each naming the region that answered. A value licensed for use in a price only (derived_only) is listed without its value, band or source line. A provisional value says so, and why (provisional).

Parameters

Name In Type Required Description
code path string yes Region code or alias.
as_of query string no Costing date the values apply at; default today.
drivers query string no Comma-separated driver keys to include; default every driver.

Request

curl -X GET https://api.arcnm.io/api/v1/regions/{code}/drivers \
  -H "X-API-Key: $ARCNM_API_KEY"
import requests

resp = requests.get(
    "https://api.arcnm.io/api/v1/regions/{code}/drivers",
    headers={"X-API-Key": "YOUR_API_KEY"},
)
resp.raise_for_status()
print(resp.json())
const resp = await fetch("https://api.arcnm.io/api/v1/regions/{code}/drivers", {
  method: "GET",
  headers: {
    "X-API-Key": process.env.ARCNM_API_KEY!,
  },
})
const data = await resp.json()

Responses

Status Description
200 Successful Response
422 Validation Error
default Error — the error envelope; branch on error.code.

Errors

Standard error responses — see the Errors catalog for the full envelope, request_id, and retry-safety table.

Status Code When
401 invalid_api_key Missing, malformed, or revoked API key.
403 insufficient_scope The key is valid but lacks a scope this endpoint requires.
404 not_found A referenced resource doesn't exist or isn't visible to your organisation.
429 rate_limited Per-key or per-org rate limit exceeded — back off with jitter and retry.