Convert to other areas
Regroup a measure onto a different set of areas, such as wards up to local authorities, using a crosswalk you choose. Only counts can be converted, because converting works by adding values up.
/data/{measure-id}/convertGood to know
- Find a crosswalk with List crosswalks.
- The response's
methodtells you whether the conversion wasexact, meaning every area fitted neatly inside one target.
measure-idstringrequiredA measure id from
GET /v1/measures, such aspopulation, or one of itsaliases, such ashouse-prices. An alias is read as the id it names, and the response'sContent-Locationheader gives the request it was read as. Case, spaces and punctuation are set aside, soHouse Pricesishouse-prices.
crosswalkstringoptionalA crosswalk id returned by
GET /crosswalks, applied forward. Required unlesspathis named; naming both is refused.pathstringoptionalA relationship path id returned by
GET /relationships, applied through every step. Required unlesscrosswalkis named; naming both is refused.periodstringrequiredThe observation period as the partition publishes it, e.g.
2022,2026-04oryear-ending-2026-03. A measure's periods are listed in its catalogue entry.geographystringrequiredThe geography the publisher observed the values on. With
boundaryYearit selects one source partition of the measure; it never converts values onto another geography.One ofwardlocalAuthorityconstituencylsoamsoadataZonesuperOutputAreaboundaryYearintegerrequiredThe year of the boundaries the values are published on:
2023withgeography=localAuthoritymeans local authorities as they were in 2023. It names the publisher's area set, not one boundary release; a year can have several releases (May and December), andreleasechooses which to draw where a route offers it.limitinteger 1–500optionalHow many records to return, 1 to 500.
Default100cursorstringoptionalThe
meta.nextCursorof the previous page. A cursor is opaque and belongs to the query that issued it.
Returns
EnvelopeCursor-paginated derived values on the crosswalk's target areas, with the conversion method and the crosswalk's own provenance.
apiVersionv1requiredatlasReleasestringrequiredThe immutable
/atlas-releasereleaseIdfor the artifacts that produced this response.metaobjectrequiredShowHide1 child field
nextCursorstring | nullrequiredOpaque cursor for the next page, or null at the end.
- 400A query parameter is malformed or its cursor is not valid for this result set.
- 404No resource matches that identity.
- 422The measure is intensive, the crosswalk starts at another geography, or the partition cannot be converted completely.
- 503The referenced build artifact has not been built yet.
Every error has the same shape. See Errors for how to handle them.
Show the precise behaviourHide the precise behaviour
Converts a source partition onto another geography or code vintage using the crosswalk, or the published relationship path, the caller names. Exactly one of crosswalk and path is required. The route never selects a conversion path: GET /crosswalks lists the published crosswalks and GET /relationships the published paths, and the response repeats each crosswalk's method, quality, weighting and content hash.
A path carries values through every one of its steps in order, in the direction each step declares. Weights multiply along the path, so a source split at one step and split again at the next is apportioned by the product of the two published weights. A path is refused as a whole if any step would drop a value or split one without a weight.
The crosswalk decides the target areas, so this route selects no geometry release: passing release is refused rather than ignored. Ask /data/{measure-id} with a compatible release to join geometry to source-exact values instead. Only a measure declared extensive may be converted, because conversion works by adding values up. An intensive measure is rejected: a share or a rank cannot be regrouped by summing, and weighting one by area produces a number with no meaning. The reported method distinguishes the outcomes. Across a path it describes every step together: exact only if no step splits a source, and population-weighted only if every splitting step is. exact means every source area sits wholly within one target, so the conversion is a regrouping and the partition total is unchanged. area-weighted means some sources were split in proportion to overlapping area, which is an estimate that assumes the measure is spread evenly across each source. population-weighted means they were split by where each source's residents live, counted from the crosswalk's population building blocks, which assumes the measure follows resident population. A source code the crosswalk does not carry, or a split source with no published weight, is rejected rather than partially converted.