Guide
Identify a column of codes
Send the column
Send the codes without a
geographyorrelease. POST them as JSON or CSV, up to 250,000 values, or put a short column in the URL as repeatedvalueparameters. Here are four council codes and one newer one:curl -X POST "https://api.ukdataatlas.com/v1/areas:validate" \ -H "Content-Type: application/json" \ --data '{"values":["E07000026","E07000028","E07000029","E08000025","E06000063"]}'Read the likely release
The API checks the column against every compiled release and ranks them by how many values each holds exactly.
likelynames the best, herelocalAuthorityrelease2022-12-uk-bgc-v2, andcandidateslists the top ten with a count of statuses for each.verdictsums up whether you can use the column as it is:Verdict What it means joinableEvery value names exactly one area of the likely release. mixed-code-systemsThe codes are real, but no single release holds them all. incompleteSome values are unknown, malformed or ambiguous. unmatchedNo release holds any of the values. Choose between ties
Many codes stay the same for years, so several releases can hold a column equally well. When that happens,
likelyis the newest of them andlikely.tiedWithlists the rest. The codes alone can't tell them apart, so pick by the date your data describes. Find boundaries for a date names the release that was current then:curl "https://api.ukdataatlas.com/v1/boundary-releases:resolve?geography=localAuthority&date=2021-06-30"Handle a mixed column
In the example,
E06000063is Cumberland, a council created in April 2023 from Allerdale, Copeland and Carlisle, which are also in the column. No release holds both, so the verdict ismixed-code-systems. The newer code's status isnot-yet-current, and itspresentInlists the releases that do hold it.recommendationslists published lookups between the releases involved, with their quality. Use one to convert the stray codes, or drop them, then join the column to the release.The check never converts or joins anything for you. It reports what it found and leaves the choice to you.
/areas:validateValidate a whole columnget/boundary-releases:resolveFind boundaries for a date