Get an area

Look up one area by its geography, boundary release and code, and get its name and any aliases.

get
/areas/{geography}/{release}/{code}
  • geographystringrequired

    A geography type id, e.g. constituency or ward.

  • releasestringrequired

    A boundary release id, e.g. 2024-07-uk-bgc, or latest for the geography's newest release: the one /boundary-releases:resolve chooses for the furthest date. A response to latest names the release it read in Content-Location. A geography whose newest month holds several releases that differ in more than coverage, or that has a release whose id carries no month, is refused with 409 and the releases that could be newest.

  • codestringrequired

    The official source code for this area on this boundary release.

  • includestring[]optional

    Optional comma-separated expansions. dossier adds boundary evidence, availability and verified-resource links without repeating the area identity; capabilities, citation and metrics are described above.

    One ofdossiercapabilitiescitationmetrics
  • measurestring[]optional

    With include=citation, a measure id from GET /measures, or one of its aliases, to cite. Repeatable.

  • crosswalkstring[]optional

    With include=citation, a crosswalk id from GET /crosswalks to cite. Repeatable.

Returns

AreaEnvelope

The matching compiled area.

  • apiVersionv1required
  • atlasReleasestringrequired

    The immutable /atlas-release releaseId for the artifacts that produced this response.

  • metaobjectrequired
    Show1 child field
    • nextCursorstring | nullrequired

      Opaque cursor for the next page, or null at the end.

  • dataAreaDetailrequired
    Show11 child fields
    • idstringrequired
    • geographystringrequired
    • boundaryReleasestringrequired
    • codestringrequired
    • namestringrequired
    • aliasesstring[]optional
    • postcodesAreaPostcodeCountsoptional

      Unit postcode centroid counts for this area, compiled from the ONS Postcode Directory. live is the number with no termination date; terminated is retained historical directory records; largeUser is the live subset marked as serving a single large user. A postcode on a shared area boundary may be counted in each area it touches.

      Show4 child fields
      • liveintegerrequired
      • terminatedintegerrequired
      • largeUserintegerrequired
      • editionstringrequired

        The ONS Postcode Directory edition used for the counts.

    • dossierobjectoptional

      Present only with include=dossier; boundary evidence, availability and links for this exact area identity.

    • capabilitiesobjectoptional

      Present only with include=capabilities; what the API can serve for this exact area: geometry, relationships, namedLocations and data.

    • citationobjectoptional

      Present only with include=citation; the artifacts that serve this area, pinned by content hash, with their attribution and licences.

    • metricsAreaMetricsoptional

      Present only with include=metrics; measurements of the area's published boundary, with the method that produced them.

      Show9 child fields
      • boundingBoxnumber[]required

        [minLongitude, minLatitude, maxLongitude, maxLatitude] in WGS 84.

      • centroidnumber[]required

        [longitude, latitude] in WGS 84.

      • labelPointnumber[]required

        [longitude, latitude] in WGS 84, always inside the geometry.

      • labelPointMethodstringrequired

        centroid when the centre of area lies inside the geometry, interior-span when it does not and a point inside was chosen instead.

        One ofcentroidinterior-span
      • areaobjectrequired

        One measurement, in three units.

        Show3 child fields
        • m2numberrequired
        • hectaresnumberrequired
        • km2numberrequired
      • perimeterobjectrequired
        Show2 child fields
        • mnumberrequired
        • kmnumberrequired
      • geometryExtentobjectrequired

        How much geometry stands behind the measurements: a mainland and its islands are many parts, and a ring of land has more rings than parts.

        Show3 child fields
        • partsintegerrequired
        • ringsintegerrequired
        • verticesintegerrequired
      • methodobjectrequired

        The projection and rule behind each figure, carried with the response so a measurement can be read on its own.

        Show5 child fields
        • areastringrequired
        • perimeterstringrequired
        • centroidstringrequired
        • labelPointstringrequired
        • caveatstringrequired
      • geometrySourceGeometrySourcerequired

        Where the served WGS84 geometry came from. transformation is present only when the source was reprojected.

        Show3 child fields
        • sourceCrsstringrequired
        • transformationobjectoptional
        • correctionsobject[]optional

          Declared grid corrections that moved this area before it was reprojected, such as northern-ireland-offset.

  • 404No resource matches that identity.
  • 422With include=citation, a named measure holds no observation for this area in a source assessed against this boundary release, or a named crosswalk publishes no relationship for it. With include=metrics, the area's geometry carries no polygon to measure.
  • 503An include needs an artifact this deployment has not built: the data catalogue and crosswalk inventory for citation, or geometry for metrics.

Every error has the same shape. See Errors for how to handle them.

Show the precise behaviour

Where precompiled postcode placements cover this boundary release, the area also includes live and terminated unit-postcode counts from the ONS Postcode Directory edition shown in postcodes.edition.

include expands the area with any of four reports, each under its own key:

capabilities reports geometry, published relationship and crosswalk edges, direct-code named-location membership, and every measure's capability for this exact area, each in the capability vocabulary described by CapabilityStatus: available, partial, requires-conversion, unsupported or not-built, with a reason on every status but available. A measure is available when a source partition published on this release has a value for the area in every period, and partial when it has one in only some periods or its codes only partly join the release. It requires-conversion when no partition is published on the release but a published crosswalk converts one onto it: each entry in conversions names the crosswalk, the source partition and period, and a ready href to the convert route. A conversion is only offered after that exact conversion has been run on the source's latest period and accepted, and only if it reaches this area. A measure whose values do not add over areas is never offered a conversion. capabilities.data.measures lists the available, partial and convertible measures; capabilities.data.counts counts every measure by status, the unsupported ones included. Compatibility is based on area-code membership only and does not assert equal geometry.

citation returns what a caller needs to cite the area as served by this Atlas release: the immutable Atlas release, the content hash of the area identity artifact, the boundary release's publisher, licence and metadata hash, geometry provenance, the validation results for the release and any cited crosswalk, and an attribution block. Name a measure to cite the observation artifacts, with their content hashes, that hold a value for this area in a source partition assessed against this exact boundary release. Only those partitions' datasets are attributed, together with any dataset a derived measure is calculated from. Name a crosswalk to cite one that publishes a relationship for this area. A resource that supplies nothing for the area is refused with 422 rather than cited. Per-area geometry hashes are not compiled yet and are reported as not-published; the boundary release's metadataHash pins its metadata, which names the source file but does not hash its contents. The envelope's top-level atlasRelease is the release of the API response itself: use citation.identity.contentHash for the compiled area identity, citation.boundary.metadataHash for the boundary metadata, and the hashes under citation.measures, citation.crosswalks and citation.geometry for the other artifacts that support a cited result.

metrics measures the area's geometry without transferring its coordinates: its bounding box, centroid, label point, area and perimeter. The same source, reprojection and declared grid corrections apply as for the geometry itself, and metrics.geometrySource records them. Area is ellipsoidal, taken through EPSG:6933 (WGS 84 / NSIDC EASE-Grid 2.0 Global), a Lambert cylindrical equal-area projection on the WGS 84 ellipsoid, so projected area is area on the ellipsoid and no correction is applied; holes are subtracted. Perimeter sums every ring, holes included, each edge's ground length coming from the ellipsoid's radii of curvature at its mid-latitude. The centroid is the centre of area in that same projection, inverted back to WGS 84. labelPoint is guaranteed to lie inside the geometry: the centroid where that falls within the area, otherwise the midpoint of the widest run of interior found on latitudes sampled across the bounding box; labelPointMethod says which was used. These figures describe the boundary as that release publishes it, at its own generalisation. They are not a published land-area statistic: a coastline-clipped boundary still encloses inland water, so they differ from the ONS Standard Area Measurement that population-density uses as its denominator. The method block repeats this with every response. An area whose geometry carries no polygon to measure, such as a release held only as points, is refused with 422 rather than measured as zero.