Cookie

Cookie consent

We use some essential cookies to make this website work. We'd like to set additional cookies to help us measure your experience when you view and interact with the website.

Cookie policy

ngd/retrieve

Postcoder NGD autocomplete for the OS National Geographic Database (NGD) provides free real-time suggestions as users start to type their address, and a chargeable lookup to retrieve full details of a selected NGD record.

This API endpoint returns the NGD record for a suggestion ID found using the ngd/find API endpoint.

Try the sample code for NGD autocomplete.
NGD: Enable access on your API key using the Features page or by contacting us.

Request URL

https://ws.postcoder.com/pcw/ngd/retrieve?id={id}&query={query}&apikey={apikey}

Querystring parameters

ParameterDescriptionExample
apikeyYour API keyapikey=PCW45-12345-12345-1234X
idThe ID of the suggestion to look up, found using the ngd/find API endpointid=5870082467
queryThe URL-encoded search term which was used with ngd/find API endpointquery=10%20foxg
addtagsSpecifies the additional response fields to include within the response using a comma-delimited list, supported values: royalmailaddresses, alternateaddresses, streetaddress, metadata, planning, relatedentities, otherclassifications, fullngdaddtags=royalmailaddresses,metadata
linesWhen used with addtags=royalmailaddresses, sets the number of address lines (1-6) to include in the response so you can mirror the layout of your existing address form; see include and exclude query parameters for further customisation optionslines=3
includeSpecifies the extra address fields to include within the address lines using a comma-delimited list, supported values: posttown, postcodeinclude=posttown,postcode
excludeSpecifies the address fields to exclude within the address lines using a comma-delimited list, supported values: poboxnumber, organisationname, premise, departmentname, subbuildingname, buildingname, buildingnumber, dependentthoroughfare, thoroughfare, doubledependentlocality, dependentlocalityexclude=organisationname
formatSets the format of the response, xml or json (default unless "application/xml" header is detected)format=json
identifierSpecifies your own meaningful identifier for the request such as "websiteA" or "client123"; you can view usage for each identifier on the Identifier Usage page, which may be helpful when using your API key across multiple websites, apps or clientsidentifier=websiteA
callbackSpecifies the name of your JSONP callback functioncallback=jsoncallback

Example request and response

After finding suggestions using the ngd/find API endpoint, return the NGD record with a suggestion ID of 5870082467, including the Royal Mail addresses field group with up to three address lines:

https://ws.postcoder.com/pcw/ngd/retrieve?id=5870082467&query=10%20foxg&addtags=royalmailaddresses&lines=3&apikey=PCW45-12345-12345-1234X&format=json
[
    {
        "dataset": "GB",
        "featuretype": "builtaddress",
        "uprn": "5870082467",
        "udprn": "22524732",
        "parentuprn": "5870082458",
        "rootuprn": "5870082458",
        "hierarchylevel": "2",
        "usrn": "22600558",
        "description": "Built Address",
        "fulladdress": "FLAT 10, 10, FOXGLOVE WAY, HACKBRIDGE, SM6 7JJ",
        "subname": "FLAT 10",
        "number": "10",
        "streetname": "FOXGLOVE WAY",
        "townname": "HACKBRIDGE",
        "postcode": "SM6 7JJ",
        "country": "England",
        "latitude": "51.3828568",
        "longitude": "-0.1549238",
        "easting": "528493.56",
        "northing": "166482.80",
        "geometry": "POINT(528493.56 166482.8)",
        "floorlevel": "3",
        "lowestfloorlevel": "3.0",
        "highestfloorlevel": "3.0",
        "postcodesource": "A record which is linked to a Royal Mail address",
        "royalmailaddresses": [
            {
                "udprn": "22524732",
                "uprn": "5870082467",
                "premise": "Flat 10, 10",
                "subbuildingname": "FLAT 10",
                "buildingnumber": "10",
                "thoroughfare": "FOXGLOVE WAY",
                "posttown": "WALLINGTON",
                "postcode": "SM6 7JJ",
                "postcodetype": "Small User",
                "deliverypointsuffix": "6S",
                "latitude": "51.3828568",
                "longitude": "-0.1549238",
                "easting": "528493.56",
                "northing": "166482.80",
                "geometry": "POINT(528493.56 166482.8)",
                "positionalaccuracy": "Central Internal Position",
                "geometryallocationmethod": "Matched UPRN",
                "matchedaddressfeaturetype": "Built Address",
                "matchtype": "Direct",
                "matchdate": "2012-04-23",
                "matchmethod": "Automated",
                "matchingorganisation": "GeoPlace",
                "changetype": "New",
                "theme": "Address",
                "description": "Postcode Address File",
                "versiondate": "2025-09-23",
                "versionavailablefromdate": "2025-09-24T00:00:00.000Z",
                "entrydate": "2016-01-18",
                "updatedate": "2016-01-18",
                "addressline1": "Flat 10",
                "addressline2": "10 Foxglove Way"
            }
        ]
    }
]

Response fields

The following fields, where populated, are returned by default. See additional response fields for the full list.

FieldDescriptionExample
datasetDataset identifier, either GB or IslandsGB
featuretypeFeature type, one of: builtaddress, prebuildaddress, historicaddress or nonaddressableobjectbuiltaddress
uprnUnique Property Reference Number (UPRN) assigned by a local custodian or Ordnance Survey as a persistent identifier200004353841
updrnComma-delimited list of Unique Delivery Point Reference Numbers (UDPRNs) assigned by Royal Mail as a persistent identifier when there are one or more Royal Mail addresses associated with the UPRN17308537
parentuprnUnique Property Reference Number (UPRN) of the parent record if a parent-child relationship exists200004353841
rootuprnIn instances where an address sits in a hierarchy (for example, Child UPRN - Parent UPRN - Grandparent UPRN), the Root UPRN will display the Unique Property Reference Number (UPRN) for the top level Addressable Object in the parent-child structure, which in this example is the Grandparent UPRN200004353841
hierarchylevelIn instances where an address sits in a hierarchy (for example, Child UPRN - Parent UPRN - Grandparent UPRN), the Hierarchy Level attribute describes the position of the given UPRN within the overall set of relationships. For example, FLAT 1 is the Child UPRN at the lowest level and its Hierarchy Level will be 3; its Parent UPRN is BLOCK H, which will have a Hierarchy Level of 2; BLOCK H has, in turn, a Parent UPRN of EXETER UNIVERSITY, which will have a Hierarchy Level of 11
usrnUnique Street Reference Number (USRN), a unique and persistent identifier of a Street which is assigned by the Roads or Highway Authority28920601
descriptionShort descriptive value that provides a summary of the featurePostal Address
fulladdressConcatenation of the following address components: Organisation (Pre-Build and Built Address Feature Types only), Sub Name and / or Name and / or Number, Street Name, Locality, Town Name, Island Name and Postcode LocatorEMMAUS HOUSE, 65, THE CLOSE, NORWICH, NR1 4DH
organisationnameName of the organisation operating from the address
poboxnumberConcatenation of 'PO BOX' and the Post Office Box (PO Box) number or the British Forces Post Office (BFPO) number
subnameSecondary description for subdivisions of properties. For example: Sub Name: 'CRYNANT LIBRARY', Name: 'CRYNANT COMMUNITY CENTRE'.
namePrimary description applied to an address, for example: 'SWANSEA UNIVERSITY BAY CAMPUS'. This attribute will also include numbers when the name contains non-numeric characters, such as 44A. Some descriptive names, when included with the rest of the address, are sufficient to identify the property uniquely and unambiguously, for example, MAGISTRATES COURT. Sometimes the name will be a blend of distinctive and descriptive naming, for example, RAILWAY TAVERN (PUBLIC HOUSE) or THE COURT ROYAL (HOTEL)EMMAUS HOUSE
numberGives a unique numeric identifier for addresses on a given street, for example, '11' (per Local Authority Street Naming and Numbering conventions). This includes numbers that contain a range, decimals or non-numeric characters, for example, 1-11 and 10A65
streetnameName, number or descriptor that identifies the nearest accessible Street that an Address is located on or close toTHE CLOSE
localityName of the area or geographical identifier within a town, settlement, village or hamlet that an address is located within. For example, a locality may be a suburb, housing estate or commercial estate
townnameName of the settlement that the Street is located within. Where a settlement can be a City, Town, Village, Hamlet or ParishNORWICH
islandnameName of the island upon which an Address is located; only populated for addresses in the OS NGD Islands collection
postcodePostcodeNR1 4DH
countryName of the geographical territory that the Address is located within, where a geographical territory represents either a devolved country or an island nationEngland
latitudeLatitude of the Address location in accordance with the ETRS89 (EPSG:4258) coordinate reference system52.6308744
longitudeLongitude of the Address location in accordance with the ETRS89 (EPSG:4258) coordinate reference system1.3009883
eastingX coordinate defining the position of the object in accordance with the British National Grid (EPSG:27700) coordinate reference system623485.00
northingY coordinate defining the position of the object in accordance with the British National Grid (EPSG:27700) coordinate reference system308793.00
geometryGeometry for the featurePOINT(623485 308793)
floorlevelRepresents either: the access point to the Address, or the floor level or levels that the Address is located on fully occupies or represents occupiable space within the property
lowestfloorlevelIn cases where the Floor Level contains a list of floor levels (for example, where a commercial organisation occupies multiple levels within a building), the first value provided will be taken as the lowest floor level. For example, where Floor Level attribute values are given as -1, 0, 1, 2, 3, the Lowest Floor Level is -1. Mezzanine levels may be represented by a partial number, for example, 1.5. If the Floor Level attribute only contains one value, that value will also be used by the Lowest Floor Level attribute
highestfloorlevelIn cases where the Floor Level attribute contains a list of floor levels (for example, where a commercial organisation occupies multiple levels within a building), the last value provided will be taken as the highest floor level. For example, where Floor Level attribute values are given as -1, 0, 1, 2, 3, the Highest Floor Level is 3. Mezzanine levels may be represented by a partial number, for example, 1.5. If the Floor Level attribute only contains one value, that value will also be used by the Highest Floor Level attribute
postcodesourceIdentifies the source of the postcode assigned to an address. This attribute can be used to identify properties capable of receiving mail as defined by Royal Mail for PAF matched address records, or as defined by Local Authorities for records which are not PAF matched but which are believed to be capable of receiving mail. For example, flats behind a front door with single letter boxA record which is linked to a Royal Mail address

Additional response fields

Use the addtags querystring parameter to specify a comma-delimited list of response field groups to include in the response. The following groups are supported:

Royal Mail addresses

An NGD record may have zero, one or more associated Royal Mail addresses. Append ?addtags=royalmailaddresses to your request to include the following fields in the response.

FieldDescriptionExample
udprnUnique Delivery Point Reference Number (UDPRN) assigned by Royal Mail as a persistent identifier17308537
uprnThe Unique Property Reference Number (UPRN) to which a Unique Delivery Point Reference Number (UDPRN) has been matched200004353841
organisationnameName of the organisation operating from the addressTHE DEAN & CHAPTER OF NORWICH CATHEDRAL
premiseConcatenation of the following address components: Department Name, PO Box, Sub Building Name, Building Name and Building NumberCHAPTER OFFICE, 65
departmentnameFor some organisations, department name is indicated because mail is received by subdivisions of the main organisation at distinct delivery points
poboxnumberPost Office Box (PO Box) number or the British Forces Post Office (BFPO) number
subbuildingnameIdentifiers for subdivisions of propertiesCHAPTER OFFICE
buildingnameDescription applied to a single building or a small group of buildings, such as HIGHFIELD HOUSE. This also includes those building numbers that contain non-numeric characters, such as 44A. Some descriptive names, when included with the rest of the address, are sufficient to identify the property uniquely and unambiguously, for example, MAGISTRATES COURT. Sometimes the building name will be a blend of distinctive and descriptive naming, for example, RAILWAY TAVERN (PUBLIC HOUSE) or THE COURT ROYAL (HOTEL)
buildingnumberA number given to a single building or a small group of buildings, thus identifying it from its neighbours, for example, 44. Building numbers that contain a range, decimals or non-numeric characters do not appear in this field but will be found in the Building Name or the Sub Building Name fields65
dependentthoroughfareIn certain places, for example, town centres, there are named thoroughfares within other named thoroughfares, for example, parades of shops on a high street where different parades have their own identity. For example, KINGS PARADE, HIGH STREET and QUEENS PARADE, HIGH STREET
thoroughfareA thoroughfare is a road, track or named access route on which there are Royal Mail delivery points, for example, HIGH STREETTHE CLOSE
doubledependentlocalityThis is used to distinguish between similar thoroughfares or the same thoroughfare within a dependent locality. For example, Millbrook Industrial Estate and Cranford Estate in this situation: BRUNEL WAY, MILLBROOK INDUSTRIAL ESTATE, MILLBROOK, SOUTHAMPTON and BRUNEL WAY, CRANFORD ESTATE, MILLBROOK, SOUTHAMPTON
dependentlocalityDependent locality areas define an area within a post town. These are only necessary for postal purposes and are used to aid differentiation where there are thoroughfares of the same name in the same locality. For example, High Street in Shirley and Swaythling in this situation: HIGH STREET, SHIRLEY, SOUTHAMPTON and HIGH STREET, SWAYTHLING, SOUTHAMPTON
posttownThe town or city in which the Royal Mail sorting office is located which services this record. There may be more than one, possibly several, sorting office in a town or cityNORWICH
postcodePostcodeNR1 4DH
postcodetypeDescribes the address as a small or large user as defined by Royal MailSmall User
deliverypointsuffixTwo-character code uniquely identifying an individual delivery point within a postcode1S
welshdependentthoroughfareThe Welsh translation of Dependent Thoroughfare
welshthoroughfareThe Welsh translation of Thoroughfare
welshdoubledependentlocalityThe Welsh translation of Double Dependent Locality
welshdependentlocalityThe Welsh translation of Dependent Locality
welshposttownThe Welsh translation of Post Town
latitudeValue defining the latitude of the Address location in accordance with the ETRS89 (EPSG:4258) coordinate reference system52.6308744
longitudeValue defining the longitude of the Address location in accordance with the ETRS89 (EPSG:4258) coordinate reference system1.3009883
eastingX coordinate defining the position of the object in accordance with the British National Grid (EPSG:27700) coordinate reference system623485.00
northingY coordinate defining the position of the object in accordance with the British National Grid (EPSG:27700) coordinate reference system308793.00
geometryGeometry for the featurePOINT(623485 308793)
positionalaccuracyLocal Authority assigned value giving a description of the accuracy of the coordinate position allocated to the Address location, for example, 'Central Internal Position' of a buildingCentral Internal Position
geometryallocationmethodDescribes the method by which a geometry was allocated to the Royal Mail record. Where a Royal Mail record is matched to a Local Authority record, the geometry will be assigned from the matched record. Where a Royal Mail record cannot be directly matched, geometry will be assigned by reference to a parent record, a street, or records which share the postcode unit, sector, district or area – in the listed order of preference. Where none of the listed methods are available, the geometry will be allocated to an internal centre point for the Local Authority area or Island in which the Royal Mail address is locatedMatched UPRN
unmatchedreasonDescribes the reason that the Royal Mail record has not been matched to a Local Authority record
unmatchedreasondateDate on which the Unmatched Reason value was captured
matchedaddressfeaturetypeThe feature type of the Unique Property Reference Number (UPRN) to which the Unique Delivery Point Reference Number (UDPRN) has been matchedBuilt Address
matchtypeDescription of the relationship assigned between the Unique Delivery Point Reference Number (UDPRN) and the Unique Property Reference Number (UPRN). Where a Postcode Address File (PAF) record relates directly to a Local Authority record, this is set to ‘Direct.’ If a ‘Direct’ match cannot be found, a PAF record may be matched to a Parent, Neighbour or Street record in Local Authority data, in order to estimate a position for the PAF recordDirect
matchdateDate on which the match was made between the Unique Delivery Point Reference Number (UDPRN) and the Unique Property Reference Number (UPRN)2012-04-23
matchmethodThe method by which the match was madeUnknown
matchingorganisationDescribes the organisation which made the match between the Royal Mail record and the Local Authority recordGeoPlace
changetypeThe type of change that generated a new version of the featureNew
themeThe OS NGD theme to which this feature belongsAddress
descriptionA single descriptive value intended for a quick understanding of what the feature representsPostcode Address File
versiondateDate when the version was last updated2025-09-23
versionavailablefromdateDate this version of the feature became the latest version2025-09-24T00:00:00.000Z
versionavailabletodateDate this version of the feature was superseded by an update or ceased to exist
entrydateDate of the change file that first supplied the Royal Mail record2016-01-18
updatedateDate the Royal Mail record last changed
addressline1Describes the first line of the address, when address lines are requested using the lines query parameterTHE DEAN & CHAPTER OF NORWICH CATHEDRAL
addressline2Describes the second line of the addressCHAPTER OFFICE
addressline3Describes the third line of the address65 THE CLOSE
addressline4Describes the fourth line of the address
addressline5Describes the fifth line of the address
addressline6Describes the sixth line of the address

Alternate addresses

An NGD record may have zero, one or more associated alternate addresses. Append ?addtags=alternateaddresses to your request to include the following fields in the response.

FieldDescriptionExample
alternateaddressidPrimary key providing a unique identifiereca05a92-7387-42fa-87ac-7689b7c6359d
uprnUnique Property Reference Number (UPRN) assigned by a local custodian or Ordnance Survey as a persistent identifier200004353841
featuretypeversiondateDate of the feature version to which this related component applies2024-05-18
usrnUnique Street Reference Number (USRN), a unique and persistent identifier of a Street which is assigned by the Roads or Highway Authority28920601
addressstatusLifecycle status of a given Address, for example, Alternative, Approved, HistoricHistorical
alternatesubnameProvides an alternative address label to the one provided in the Sub Name. An alternative address label may be present for a number of reasons, for example, retention of an old address label or an alias address label has been recorded by the Local Authority
alternatenameProvides an alternative address label to the one provided in the name. An alternative address label may be present for a number of reasons, for example, retention of an old address label or an alias address label has been recorded by the Local AuthorityPLOT 1
alternatenumberProvides an alternative address number to the one provided in the Number attribute1
streetnameName, number or descriptor that identifies the nearest accessible Street that an Address is located on or close toTHE CLOSE
localityName of the area or geographical identifier within a town, settlement, village or hamlet that an address is located within. For example, a locality may be a suburb, housing estate or commercial estate
townnameName of the settlement that the Street is located within. Where a settlement can be a City, Town, Village, Hamlet or ParishNORWICH
islandnameName of the island upon which an Address is located; only populated for addresses in the OS NGD Islands collection
languageThe language in which the address label attribution has been captured for the alternative recordeng
postcodePostcodeNR1 4DH
fulladdressConcatenation of the following address components: Organisation (Pre-Build and Built Address Feature Types only), Sub Name and / or Name and / or Number, Street Name, Locality, Town Name, Island Name and Postcode LocatorPLOT 1, 65, THE CLOSE, NORWICH, NR1 4DH
floorlevelRepresents either: the access point to the Address, or the floor level or levels that the Address is located on fully occupies or represents occupiable space within the property
lowestfloorlevelIn cases where the Floor Level contains a list of floor levels (for example, where a commercial organisation occupies multiple levels within a building), the first value provided will be taken as the lowest floor level. For example, where Floor Level attribute values are given as -1, 0, 1, 2, 3, the Lowest Floor Level is -1. Mezzanine levels may be represented by a partial number, for example, 1.5. If the Floor Level attribute only contains one value, that value will also be used by the Lowest Floor Level attribute
highestfloorlevelIn cases where the Floor Level attribute contains a list of floor levels (for example, where a commercial organisation occupies multiple levels within a building), the last value provided will be taken as the highest floor level. For example, where Floor Level attribute values are given as -1, 0, 1, 2, 3, the Highest Floor Level is 3. Mezzanine levels may be represented by a partial number, for example, 1.5. If the Floor Level attribute only contains one value, that value will also be used by the Highest Floor Level attribute
updatedateDate on which any attribute of the record was last changed2016-02-10
effectivestartdateDate on which the record was inserted into the Local Authority database2007-03-15
effectiveenddateDate on which the record ceased to exist2009-06-04

Street address

An NGD record may have zero or one associated street address. Append ?addtags=streetaddress to your request to include the following fields in the response.

FieldDescriptionExample
usrnUnique Street Reference Number (USRN), a unique and persistent identifier of a Street which is assigned by the Roads or Highway Authority28920601
versiondateDate when the version was last updated2022-11-01
versionavailablefromdateDate this version of the feature became the latest version2022-11-02T00:00:00.000Z
versionavailabletodateDate this version of the feature ceased to be the latest version
changetypeType of change that generated a new version of the featureNew
themeThe OS NGD theme to which this feature belongsAddress
descriptionShort descriptive value that provides a summary of the featureStreet
streettypeDescription of the street record type, for example, whether the Street has an official designated street nameOfficially Designated Street Name
classificationCode for the primary street classification, for example, denoting it to be 'open to all vehicles'All Vehicles
operationalstateDescription of the current state of the Street, indicating which point the street record is at within its lifecycleOpen
operationalstatedateDate at which the Street achieved its current state in the world, as referenced by the 'operationalState' attribute2003-02-07
streetnameName, number or descriptor that identifies the nearest accessible Street that an Address is located on or close toTHE CLOSE
localityName of the area or geographical identifier within a town, settlement, village or hamlet that an address is located within. For example, a locality may be a suburb, housing estate or commercial estate
townnameName of the settlement that the Street is located within. A settlement can be a City, Town, Village, Hamlet or ParishNORWICH
administrativeareaName of the Administrative Unit that the Address is located withinNORFOLK
countryName of the geographical territory that the Address is located within, where a geographical territory represents either a devolved country or an island nationEngland
alternatelanguagestreetnameName, number or descriptor that identifies the nearest accessable street that an Address is located on or close to, defined in either Welsh (cym) or Gaelic / Scottish Gaelic (gla)
alternatelanguagelocalityName of the area or geographical identifier within a town, settlement, village or hamlet that an address is located within, defined in either Welsh (cym) or Gaelic / Scottish Gaelic (gla). For example, a locality may be a suburb, housing estate or commercial estate
alternatelanguagetownnameName of the settlement that the address is located within, defined in either Welsh (cym) or Gaelic / Scottish Gaelic (gla). A settlement can be a City, Town, Village, Hamlet or Parish
alternatelanguageadministrativeareaName of the Administrative Unit that the Address is located within, defined in either Welsh (cym) or Gaelic / Scottish Gaelic (gla)
alternatelanguageISO 3166-3 Language Code for Welsh or Gaelic / Scottish Gaelic
snnauthoritycodeAlphanumeric code which identifies the Street Naming and Numbering Authority or the Local Highway Authority2625
snnauthoritydescriptionName of the responsible Street Naming and Numbering Authority or Local Highways AuthorityNORWICH
surfacematerialDescription indicating the type of surface finish on the Street, for example, 'Metalled'Metalled
starteastingX coordinate in metres for the position of the start point of the street defined in British National Grid (EPSG::27700) coordinate reference system623392.00
startnorthingY coordinate in metres for the position of the start point of the street defined in British National Grid (EPSG::27700) coordinate reference system308760.00
endeastingX coordinate in metres for the position of the end point of the street defined in British National Grid (EPSG::27700) coordinate reference system623358.00
endnorthingY coordinate in metres for the position of the end point of the street defined in British National Grid (EPSG::27700) coordinate reference system308875.00
startlatitudeValue defining the Latitude of the position of the start point of the street defined in accordance with the ETRS89 (EPSG::4258) coordinate reference system52.6300000
startlongitudeValue defining the Longitude of the position of the start point of the street defined in accordance with the ETRS89 (EPSG::4258) coordinate reference system1.3000000
endlatitudeValue defining the Latitude of the position of the end point of the street defined in accordance with the ETRS89 (EPSG::4258) coordinate reference system52.6300000
endlongitudeValue defining the Longitude of the position of the end point of the street defined in accordance with the ETRS89 (EPSG::4258) coordinate reference system1.3000000
geometryGeometry for the featureMULTIPOINT((623392 308760),(623358 308875))
streettoleranceTolerance of the Start and End Location coordinates in metres10
effectivestartdateDate on which this record was inserted into the Local Authority database2003-02-07
effectiveenddateDate on which the record ceased to exist

Meta data

Append ?addtags=metadata to your request to include the following fields in the response.

FieldDescriptionExample
effectivestartdateDate on which this record was inserted into the Local Authority database2003-02-25T00:00:00Z
versiondateDate when the version was last updated2024-05-24T00:00:00Z
versionavailablefromdateDate this version of the feature became the latest version2024-05-25T00:00:00Z
changetypeType of change that generated a new version of the featureModified Attributes
themeThe OS NGD theme to which this feature belongsAddress
positionalaccuracyLocal Authority assigned value giving a description of the accuracy of the coordinate position allocated to the Address location, for example, 'Central Internal Position' of a building

Planning

Append ?addtags=planning to your request to include the following fields in the response.

FieldDescriptionExample
buildstatusDescription of the build status of the Address, for example, 'Built Complete'Built In Use
buildstatusdateDate when the address entered the lifecycle state given in Build Status2003-02-25T00:00:00Z
addressstatusLifecycle status of a given Address, for example, 'Provisional' and 'Approved'Approved
classificationcodeAlphanumeric code used to classify the object using the AddressBase Classification SchemeCO01
classificationdescriptionDescription of the classification code as defined in the AddressBase Classification SchemeOffice / Work Studio
primaryclassificationdescriptionDescriptive term used to describe the primary classification code for this addressCommercial
secondaryclassificationdescriptionDescriptive term used to describe the secondary classification code for this addressOffice
tertiaryclassificationdescriptionDescriptive term used to describe the tertiary classification code for this addressOffice / Work Studio
quaternaryclassificationdescriptionDescriptive term used to describe the quaternary classification code for this addressDetached
localcustodiancodeNumeric code identifying the authority responsible for assigning the Unique Property Reference Number (UPRN), creating and maintaining the address record2625
localcustodiandescriptionName of the authority responsible for assigning the Unique Property Reference Number (UPRN), creating and maintaining the address recordNORWICH
lowertierlocalauthoritygsscodeThe Office for National Statistics Governmental Statistical Service (GSS) code representing the lower tier local authorityE07000148

Related entities

An NGD record may have zero, one or more associated related entities. Append ?addtags=relatedentities to your request to include the following fields in the response.

FieldDescriptionExample
relatedentityidPrimary key providing a unique identifier1dd1906f-112a-498b-8e94-7f1dda358e04
uprnUnique Property Reference Number (UPRN) assigned by a local custodian or Ordnance Survey as a persistent identifier200004353841
featuretypeversiondateDate of the feature version to which this related component applies2024-05-24
crossreferencefeatureDescription of the related dataset that the cross reference refers to, for example, VOA Council TaxOSMM RoadLink
crossreferenceidIdentifier of the related data entity or feature type instance that is the target of the reference or linkosgb4000000027437287
relationshiptypeType of relationship which has been formed between the source and target features, for example, 'Within' or 'Same As'Accessed From
sourceName of the originating data provider that defined the reference or linkGeoPlace
updatedateDate on which any attribute of the record was last changed2016-02-10
effectivestartdateDate on which this relationship was first added into the database2007-12-03
effectiveenddateDate on which the relationship ceased to exist

Other classifications

An NGD record may have zero, one or more associated other classifications. Append ?addtags=otherclassifications to your request to include the following fields in the response.

FieldDescriptionExample
otherclassificationidPrimary key providing a unique identifieracbb7372-0a29-4a33-ac5c-c5dc8b9a89f2
uprnUnique Property Reference Number (UPRN) assigned by a local custodian or Ordnance Survey as a persistent identifier200004353841
featuretypeversiondateDate of the feature version to which this related component applies2025-07-08
classificationcodeAlphanumeric code used to classify the object using the AddressBase Classification SchemeCO01
classificationdescriptionDescription of the classification code as defined in the AddressBase Classification SchemeOffice / Work Studio
classificationschemeName of the classification schemaVOA Primary Description
schemeversionVersion of the classification schema1.0
updatedateDate on which any attribute of the record was last changed2025-07-04

Integration advice

  • Always provide an option for users to enter their address manually if they cannot find it using your address lookup integration
  • URL encode all special characters (including /) in your request parameters with %xx encoding
  • Verify your request was successful by checking for an HTTP status code of 200; see all HTTP status codes with descriptions
  • When using your API key across multiple websites, apps or clients, set the identifier querystring parameter to a meaningful value such as "websiteA" or "client123"; you'll then be able to view these identifiers and the number of requests made by each one on the Identifier Usage page
  • Treat all response fields as optional
  • Use these fields on your address form: addressline1, addressline2, addressline3, posttown, postcode

Credit cost

Each request costs 3.5 credits.

Buy a credit pack or set up a monthly plan to use with all Postcoder features.