Lookup Postcode
GET/postcodes/:postcode
Returns the complete list of addresses for a postcode. Postcode searches are space and case insensitive.
The Postcode Lookup API provides a JSON interface to search UK addresses from a postcode. It can be used to power Postcode Lookup driven address searches, like Postcode Lookup.
Postcode Not Found
Lookup balance is unaffected by invalid postcodes. The API returns a 404
response with response body:
{
"code": 4040,
"message": "Postcode not found",
"suggestions": ["SW1A 0AA"]
}
Suggestions
If a postcode cannot be found, the API will provide up to 5 closest matching postcodes. Common errors will be corrected first (e.g. mixing up O
and 0
or I
and 1
).
If the suggestion list is small (fewer than 3), there is a high probability the correct postcode is there. You may notify the user or immediately trigger new searches.
The suggestion list will be empty if the postcode has deviated too far from a valid postcode format.
Multiple Residence
A small number of postcodes will return more than 100 premises. These may require pagination. Use page
to paginate the result set.
Request
Path Parameters
Postcode to retrieve
Query Parameters
API Key
Your unique identifier that allows access to our APIs.
Begins ak_
. Available from your dashboard
Restrict Result Fields
Comma separated whitelist of address elements to return.
E.g. filter=line_1,line_2,line_3
returns only line_1
, line_2
and line_3
address elements in your response
Possible values: <= 100
Page
0 indexed indicator of the page of results to receive. Virtually all postcode results are returned on page 0.
A small number of Multiple Residence postcodes may need pagination (i.e. have more than 100 premises).
A comma separated list of tags to query over.
Useful if you want to specify the circumstances in which the request was made.
If multiple tags are specified, the response will only comprise of requests for which all the tags are satisfied - i.e. searching "foo,bar"
will only query requests which tagged both "foo"
and "bar"
.
Responses
- 200
- 400
- 404
Success
- application/json
- Schema
- Example (from schema)
- Postcode Found
Schema
- Array [
- Postcode Address File Address
- Multiple Residence Address
- Not Yet Built Address
- PAF Alias Address
- Welsh PAF Address
- AddressBase Core
- Global Address
- MOD1
- MOD2
- The Manor
- 1-2
- A
- 12A
- K
- Victoria House
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- The Manor
- 1-2
- A
- 12A
- K
- Victoria House
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- The Manor
- 1-2
- A
- 12A
- K
- Victoria House
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- The Manor
- 1-2
- A
- 12A
- K
- Victoria House
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- The Manor
- 1-2
- A
- 12A
- K
- Victoria House
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- The Manor
- 1-2
- A
- 12A
- K
- Victoria House
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
paf
(GBR) Postcode Address Filemr
(GBR) Multiple Residence Filenyb
(GBR) Not Yet Built Filepafa
(GBR) Alias Filepafw
(GBR) Welsh Fileab
(GBR) AddressBase Coreecaf
(IRL) Eircode ECAFecad
(IRL) Eircode ECADusps
(USA) USPS Zip+4herewe
(Western Europe) Western Europe Datasetgnaf
(Australia) Geoscape Geocoded National Address File- MOD1
- MOD2
- MOD1
- MOD2
- Ireland ECAD Address
- Ireland ECAF Address
- United States Postal Service Address
- HERE Address
- GnafAddress
- Dual. Two number separated by '/' e.g. 63/64 = 63, 64
- Sequence. An odd or even sequence of numbers with lower and upper bound separated by an underscore '_' e.g.
1_5
= 1,3,5 and2_6
= 2,4,6 - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g.
63-66
= 63, 64, 56, 66 The building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality. - MOD1
- MOD2
- MOD1
- MOD2
- Residential Address Point. This type of address point has one residential addresses associated with it.
- Non-Residential Address Point. This type of address point has one or more non-residential address (business, club or other organisation) associated with it.
- Mixed Address Point. This is a special case where the residential and non residential addresses in the building are essentially the same address. The typical example is a farm house on an active farm. It is important to note that this is a special case. In general a building with both residential and non-residential addresses (e.g. an apartment over a shop) will receive two address points, one commercial and one residential, and hence two Eircodes.
- Single Occupancy Residential Building. This type of building contains one residential address.
- Multi Occupancy Residential Building. This type of building contains multiple residential addresses.
- Single Occupancy Non-Residential Building. This type of building contains one non-residential address (business, club or other organisation).
- Multi Occupancy Non-Residential Building. This type of building contains multiple non-residential addresses (business, club or other organisation).
- Multi Occupancy Mixed Use Building. This type of building contains multiple residential and non- residential addresses.
- Residential Building Group. This type of building group contains buildings with residential addresses only.
- Non-Residential Building Group This type of building group contains buildings with non-residential addresses (business, club or other organisation) only.
- Mixed Building Group. This type of building group contains buildings with residential and non-residential addresses. Can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
- Rural Locality. This is generally a townland.
- Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.
- Shopping District. Shopping Centre.
- Housing Estate. Residential Housing Estate.
- Village. Based on Census 2011 population < 1,500.
- Town. Based on Census 2011 population > 1,500.
- Urban Area. Wholly within a village/town/city e.g. Rathmines.
- Suburban Locality. This is an area that is both rural and urban, as it is both a townland, and also an area name applied to houses in a town, as the town has extended partially into the townland.
- Village. Based on Census 2011 population < 1,500
- Town. Based on Census 2011 population > 1,500
- Postal District. Dublin 1 to 24
- City. Dublin, Cork, Limerick, Galway or Waterford
- Rural Locality. This is generally a townland.
- Industrial Estate. Industrial Estate, Industrial Park, Business Campus, etc.
- Shopping District. Shopping Centre.
- Housing Estate. Residential Housing Estate.
- Village. Based on Census 2011 population < 1,500.
- Town. Based on Census 2011 population > 1,500.
- Urban Area. Wholly within a village/town/city e.g. Rathmines.
- Suburban Locality. This is an area that is both rural and urban, as it is both a townland, and also an area name applied to houses in a town, as the town has extended partially into the townland.
- Village. Based on Census 2011 population < 1,500
- Town. Based on Census 2011 population > 1,500
- Postal District. Dublin 1 to 24
- City. Dublin, Cork, Limerick, Galway or Waterford
R
ResidentialC
CommercialB
BothU
Unknown- Dual. Two number separated by '/' e.g. 63/64 = 63, 64
- Sequence. An odd or even sequence of numbers with lower and upper bound separated by an underscore '_' e.g.
1_5
= 1,3,5 and2_6
= 2,4,6 - Range. A range of consecutive numbers with lower and upper bound separated by a dash '-' e.g.
63-66
= 63, 64, 56, 66 The building number never appears on a line by itself and can prepend Building Group, Primary Thoroughfare or Primary Locality. - MOD1
- MOD2
- MOD1
- MOD2
- "B" indicates PO Box
- "H" indicates highway
- "C" indicates city
- "G" indicates general
- "R" indicates rural
- L = LACS address: The old (usually rural-route) address that has been converted for the LACS system.
- Blank = Not applicable
- A = City government building—alternates only
- B = Federal government building—alternates only
- C = State government building—alternates only
- D = Firm only—base and alternates
- E = City government building and firm only—alternates only
- F = Federal government building and firm only—alternates only
- G = State government building and firm only—alternates only
- B = Branch
- C = Community post office (CPO)
- N = Non-postal community name, former USPS facility, or place name
- P = Post Office
- S = Station
- U = Urbanization
- M = Military ZIP Code
- P = ZIP Code having only Post Office Boxes
- U = Unique ZIP Code (ZIP assigned to a single organization)
- Blank = Standard ZIP with many addresses assigned to it
- "Y = City/state name is a USPS-approved mailing name."
- "N = City/state name is not approved for mailing purposes."
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- MOD1
- MOD2
- ]
result object[]required
All addresses listed at the postcode.
If Eircode is enabled, addreses for the Republic of Ireland will be returned in the English format.
Global unique internally generated identifier for an address
Possible values: [paf
]
Indicates the provenance of an address
Possible values: [GBR
, IMN
, JEY
, GGY
]
3 letter country code (ISO 3166-1)
Possible values: [GB
, IM
, JE
, GG
]
2 letter country code (ISO 3166-1)
Possible values: [England
, Scotland
, Wales
, Northern Ireland
, Jersey
, Guernsey
, Isle of Man
]
Full country names (ISO 3166)
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 30 characters
**Filter by Town or City" A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
Possible values: >= 6 characters
and <= 8 characters
Correctly formatted postcode. Capitalised and spaced.
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
Short code representing the county or province. May be empty (""
)
UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
Up to 12 digits in length.
Multiple Residence premises currently share the same UPRN as the parent premise.
May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer Number.MAX_SAFE_INTEGER
in most browsers causing this datapoint to be corrupted.
Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
Up to 8-digit numeric code.
A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
umprn object required
A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
Note: this will be an empty string ""
when not used.
string
number
Possible values: >= 2 characters
and <= 4 characters
The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
Possible values: >= 3 characters
and <= 3 characters
The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
Possible values: <= 35 characters
When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
Possible values: <= 35 characters
Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
Possible values: <= 80 characters
Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
Possible values: <= 80 characters
Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
Possible values: <= 4 characters
Number to identify premise on a thoroughfare or dependant thoroughfare.
Possible values: <= 50 characters
Name of residential or commercial premise.
Examples:
Possible values: <= 30 characters
When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
Possible values: <= 6 characters
When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation
Possible values: [S
, L
, ``]
This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
On average there are 19 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
eastings object required
Eastings reference using the Ordnance Survey National Grid reference system.
Northern Ireland Eastings uses the Irish Grid Reference System.
Metres from origin. E.g. 550458
Returns an empty string if no location data is available. Otherwise a number is returned.
string
number
northings object required
Northings reference using the Ordnance Survey National Grid reference system
Northern Ireland Northings uses the Irish Grid Reference System
Metres from origin. E.g. 180458
Returns an empty string if no location data is available. Otherwise a number is returned
string
number
Global unique internally generated identifier for an address
Possible values: [mr
]
Indicates the provenance of an address
Possible values: [GBR
, IMN
, JEY
, GGY
]
3 letter country code (ISO 3166-1)
Possible values: [GB
, IM
, JE
, GG
]
2 letter country code (ISO 3166-1)
Possible values: [England
, Scotland
, Wales
, Northern Ireland
, Jersey
, Guernsey
, Isle of Man
]
Full country names (ISO 3166)
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 30 characters
**Filter by Town or City" A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
Possible values: >= 6 characters
and <= 8 characters
Correctly formatted postcode. Capitalised and spaced.
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
Short code representing the county or province. May be empty (""
)
UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
Up to 12 digits in length.
Multiple Residence premises currently share the same UPRN as the parent premise.
May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer Number.MAX_SAFE_INTEGER
in most browsers causing this datapoint to be corrupted.
Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
Up to 8-digit numeric code.
A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
umprn object required
A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
Note: this will be an empty string ""
when not used.
string
number
Possible values: >= 2 characters
and <= 4 characters
The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
Possible values: >= 3 characters
and <= 3 characters
The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
Possible values: <= 35 characters
When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
Possible values: <= 35 characters
Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
Possible values: <= 80 characters
Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
Possible values: <= 80 characters
Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
Possible values: <= 4 characters
Number to identify premise on a thoroughfare or dependant thoroughfare.
Possible values: <= 50 characters
Name of residential or commercial premise.
Examples:
Possible values: <= 30 characters
When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
Possible values: <= 6 characters
When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation
Possible values: [S
, L
, ``]
This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
On average there are 19 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
eastings object required
Eastings reference using the Ordnance Survey National Grid reference system.
Northern Ireland Eastings uses the Irish Grid Reference System.
Metres from origin. E.g. 550458
Returns an empty string if no location data is available. Otherwise a number is returned.
string
number
northings object required
Northings reference using the Ordnance Survey National Grid reference system
Northern Ireland Northings uses the Irish Grid Reference System
Metres from origin. E.g. 180458
Returns an empty string if no location data is available. Otherwise a number is returned
string
number
Global unique internally generated identifier for an address
Possible values: [nyb
]
Indicates the provenance of an address
Possible values: [GBR
, IMN
, JEY
, GGY
]
3 letter country code (ISO 3166-1)
Possible values: [GB
, IM
, JE
, GG
]
2 letter country code (ISO 3166-1)
Possible values: [England
, Scotland
, Wales
, Northern Ireland
, Jersey
, Guernsey
, Isle of Man
]
Full country names (ISO 3166)
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 30 characters
**Filter by Town or City" A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
Possible values: >= 6 characters
and <= 8 characters
Correctly formatted postcode. Capitalised and spaced.
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
Short code representing the county or province. May be empty (""
)
UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
Up to 12 digits in length.
Multiple Residence premises currently share the same UPRN as the parent premise.
May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer Number.MAX_SAFE_INTEGER
in most browsers causing this datapoint to be corrupted.
Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
Up to 8-digit numeric code.
A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
umprn object required
A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
Note: this will be an empty string ""
when not used.
string
number
Possible values: >= 2 characters
and <= 4 characters
The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
Possible values: >= 3 characters
and <= 3 characters
The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
Possible values: <= 35 characters
When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
Possible values: <= 35 characters
Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
Possible values: <= 80 characters
Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
Possible values: <= 80 characters
Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
Possible values: <= 4 characters
Number to identify premise on a thoroughfare or dependant thoroughfare.
Possible values: <= 50 characters
Name of residential or commercial premise.
Examples:
Possible values: <= 30 characters
When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
Possible values: <= 6 characters
When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation
Possible values: [S
, L
, ``]
This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
On average there are 19 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
eastings object required
Eastings reference using the Ordnance Survey National Grid reference system.
Northern Ireland Eastings uses the Irish Grid Reference System.
Metres from origin. E.g. 550458
Returns an empty string if no location data is available. Otherwise a number is returned.
string
number
northings object required
Northings reference using the Ordnance Survey National Grid reference system
Northern Ireland Northings uses the Irish Grid Reference System
Metres from origin. E.g. 180458
Returns an empty string if no location data is available. Otherwise a number is returned
string
number
Global unique internally generated identifier for an address
Possible values: [pafa
]
Indicates the provenance of an address
Possible values: [GBR
, IMN
, JEY
, GGY
]
3 letter country code (ISO 3166-1)
Possible values: [GB
, IM
, JE
, GG
]
2 letter country code (ISO 3166-1)
Possible values: [England
, Scotland
, Wales
, Northern Ireland
, Jersey
, Guernsey
, Isle of Man
]
Full country names (ISO 3166)
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 30 characters
**Filter by Town or City" A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
Possible values: >= 6 characters
and <= 8 characters
Correctly formatted postcode. Capitalised and spaced.
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
Short code representing the county or province. May be empty (""
)
UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
Up to 12 digits in length.
Multiple Residence premises currently share the same UPRN as the parent premise.
May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer Number.MAX_SAFE_INTEGER
in most browsers causing this datapoint to be corrupted.
Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
Up to 8-digit numeric code.
A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
umprn object required
A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
Note: this will be an empty string ""
when not used.
string
number
Possible values: >= 2 characters
and <= 4 characters
The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
Possible values: >= 3 characters
and <= 3 characters
The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
Possible values: <= 35 characters
When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
Possible values: <= 35 characters
Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
Possible values: <= 80 characters
Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
Possible values: <= 80 characters
Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
Possible values: <= 4 characters
Number to identify premise on a thoroughfare or dependant thoroughfare.
Possible values: <= 50 characters
Name of residential or commercial premise.
Examples:
Possible values: <= 30 characters
When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
Possible values: <= 6 characters
When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation
Possible values: [S
, L
, ``]
This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
On average there are 19 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
eastings object required
Eastings reference using the Ordnance Survey National Grid reference system.
Northern Ireland Eastings uses the Irish Grid Reference System.
Metres from origin. E.g. 550458
Returns an empty string if no location data is available. Otherwise a number is returned.
string
number
northings object required
Northings reference using the Ordnance Survey National Grid reference system
Northern Ireland Northings uses the Irish Grid Reference System
Metres from origin. E.g. 180458
Returns an empty string if no location data is available. Otherwise a number is returned
string
number
Global unique internally generated identifier for an address
Possible values: [pafw
]
Indicates the provenance of an address
Possible values: [GBR
]
3 letter country code (ISO 3166-1)
Possible values: [GB
]
2 letter country code (ISO 3166-1)
Possible values: [Wales
]
Full country names (ISO 3166)
Possible values: [cy
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 30 characters
**Filter by Town or City" A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
Possible values: >= 6 characters
and <= 8 characters
Correctly formatted postcode. Capitalised and spaced.
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
Short code representing the county or province. May be empty (""
)
UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
Up to 12 digits in length.
Multiple Residence premises currently share the same UPRN as the parent premise.
May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer Number.MAX_SAFE_INTEGER
in most browsers causing this datapoint to be corrupted.
Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
Up to 8-digit numeric code.
A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
umprn object required
A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
Note: this will be an empty string ""
when not used.
string
number
Possible values: >= 2 characters
and <= 4 characters
The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
Possible values: >= 3 characters
and <= 3 characters
The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
Possible values: <= 35 characters
When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
Possible values: <= 35 characters
Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
Possible values: <= 80 characters
Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
Possible values: <= 80 characters
Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
Possible values: <= 4 characters
Number to identify premise on a thoroughfare or dependant thoroughfare.
Possible values: <= 50 characters
Name of residential or commercial premise.
Examples:
Possible values: <= 30 characters
When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
Possible values: <= 6 characters
When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation
Possible values: [S
, L
, ``]
This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
On average there are 19 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
eastings object required
Eastings reference using the Ordnance Survey National Grid reference system.
Northern Ireland Eastings uses the Irish Grid Reference System.
Metres from origin. E.g. 550458
Returns an empty string if no location data is available. Otherwise a number is returned.
string
number
northings object required
Northings reference using the Ordnance Survey National Grid reference system
Northern Ireland Northings uses the Irish Grid Reference System
Metres from origin. E.g. 180458
Returns an empty string if no location data is available. Otherwise a number is returned
string
number
Global unique internally generated identifier for an address
Possible values: [ab
]
Indicates the provenance of an address
Possible values: [GBR
]
3 letter country code (ISO 3166-1)
Possible values: [GB
]
2 letter country code (ISO 3166-1)
Possible values: [England
, Scotland
, Wales
]
Full country names (ISO 3166)
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 30 characters
**Filter by Town or City" A Post Town is mandatory for delivery of mail to a Delivery Point. This is not necessarily the nearest town geographically, but a routing instruction to the Royal Mail delivery office sorting mail for that Delivery Point. A Post Town will always be present in every address, and for some Localities the Post Town will be the only locality element present.
Possible values: >= 6 characters
and <= 8 characters
Correctly formatted postcode. Capitalised and spaced.
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
Short code representing the county or province. May be empty (""
)
UPRN stands for Unique Property Reference Number and is maintained by the Ordnance Survey (OS). Local governments in the UK have allocated a unique number for each land or property.
Up to 12 digits in length.
Multiple Residence premises currently share the same UPRN as the parent premise.
May not be available for a small number of Great Britain addresses due to longer update cycles for Ordnance Survey's AddressBase datasets. Returns empty string "" in these instances.
Although UPRN takes an integer format, we encode and transmit this data as strings. As a 12 digit number, the UPRN can exceed the maximum safe integer Number.MAX_SAFE_INTEGER
in most browsers causing this datapoint to be corrupted.
Take special care when storing UPRN. As a 12 digit identifier, you will need 64 bits to encode every possible UPRN value. This means applications like Excel will corrupt cells containing UPRN values.
UDPRN stands for ‘Unique Delivery Point Reference Number’. Royal Mail assigns a unique UDPRN code for each premise on PAF. Simple, unique reference number for each Delivery Point. Unlikely to be reused when an address expires.
Up to 8-digit numeric code.
A new UDPRN is automatically assigned to each new Delivery Point added to PAF.
umprn object required
A small minority of individual premises (as identified by a UDPRN) may have multiple occupants behind the same letterbox. These are known as Multiple Residence occupants and can be queried via the Multiple Residence dataset. Simple, unique reference number for each Multiple Residence occupant.
Note: this will be an empty string ""
when not used.
string
number
Possible values: >= 2 characters
and <= 4 characters
The first part of a postcode is known as the outward code. e.g. The outward code of ID1 1QD is ID1. Enables mail to be sorted to the correct local area for delivery. This part of the code contains the area and the district to which the mail is to be delivered, e.g. ‘PO1’, ‘SW1A’ or ‘B23’.
Possible values: >= 3 characters
and <= 3 characters
The second part of a postcode is known as the inward code. e.g. The inward code of ID1 1QD is 1QD.
The number identifies the sector in the postal district. The number is followed by 2 letters. The letters then define one or more properties in that sector.
Possible values: <= 35 characters
When the same thoroughfare name reoccurs in a Post town, it may not be possible to make it dependant on a dependant thoroughfare. In this case the thoroughfare is dependant on a locality. For example if we want to find 1 Back Lane in Huddersfield we see that there are three.
Possible values: <= 35 characters
Used to supplement Dependant Locality. A Double Dependant Locality supplied along with a Dependant Locality if the Dependant Locality exists twice in the same locality.
Possible values: <= 80 characters
Also known as the street or road name. In general each Thoroughfare Name will have a separate Postcode. Longer Thoroughfares with high number ranges often have multiple Postcodes covering the entire length of the road, with breaks at suitable points e.g. junctions or natural breaks in the road.
Possible values: <= 80 characters
Used to supplement thoroughfare. When a thoroughfare name is used twice in the same Post Town, the dependant thoroughfare is added to uniquely indentify a delivery point.
Possible values: <= 4 characters
Number to identify premise on a thoroughfare or dependant thoroughfare.
Possible values: <= 50 characters
Name of residential or commercial premise.
Examples:
Possible values: <= 30 characters
When a premise is split into individual units such as flats, apartments or business units. Cannot be present without either building_name or building_number. E.g. Flat 1, A, 10B
Possible values: <= 6 characters
When the PO Box Number field is populated it will contain PO BOX nnnnnn where n represents the PO Box number. Note that the PO Box details can occasionally consist of a combination of numbers and letters. PO Box Numbers are only allocated to Large Users.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation.
Possible values: <= 60 characters
Used to supplment Organisation Name to identify a deparment within the organisation
Possible values: [``]
This indicates the type of user. It can only take the values 'S' or 'L' indicating small or large respectively. Large User Postcodes. These are assigned to one single address either due to the large volume of mail received at that address, or because a PO Box or Selectapost service has been set up. Small User Postcodes. These identify a group of Delivery Points.
On average there are 19 Delivery Points per Postcode. However this can vary between 1 and, in some cases, 100. There will never be more than 100 Delivery Points on a Postcode.
Small User Organisation Indicator can have the values 'Y' or space. A value of 'Y' indicates that a Small User Organisation is present at this address.
A unique Royal Mail 2-character code (the first numeric & the second alphabetical), which, when added to the Postcode, enables each live Delivery Point to be uniquely identified. Once the Delivery Point is deleted from PAF the DPS may be reused (although they aren’t reused until all remaining Delivery Points in the range have been allocated). The DPS for a Large User is always '1A' as each Large User has its own Postcode.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
eastings object required
Eastings reference using the Ordnance Survey National Grid reference system.
Northern Ireland Eastings uses the Irish Grid Reference System.
Metres from origin. E.g. 550458
Returns an empty string if no location data is available. Otherwise a number is returned.
string
number
northings object required
Northings reference using the Ordnance Survey National Grid reference system
Northern Ireland Northings uses the Irish Grid Reference System
Metres from origin. E.g. 180458
Returns an empty string if no location data is available. Otherwise a number is returned
string
number
native AddressBase Corerequired
Represents a GB address in Ordnance Survey's AddressBase Core dataset
Global unique internally generated identifier for an address
Possible values: [ab
]
Indicates the provenance of an address
Possible values: [en
, ar
, az
, be
, bg
, bn
, bs
, ca
, cs
, cy
, da
, de
, el
, es
, et
, eu
, fi
, fo
, fr
, ga
, gl
, gn
, he
, hi
, hr
, hu
, hy
, id
, is
, it
, ka
, kk
, km
, kn
, lt
, lv
, mk
, mn
, ms
, mt
, my
, nl
, no
, pl
, pt
, ro
, ru
, sk
, sl
, sq
, sr
, sv
, ta
, th
, tr
, uk
, uz
, vi
, wa
, zh
]
Language represented by 2 letter ISO Code (639-1)
First Address Line. Often contains premise and thoroughfare information. In the case of a commercial premise, the first line is always the full name of the registered organisation. Never empty.
Second Address Line. Often contains thoroughfare and locality information. May be empty
Third address line. May be empty.
Possible values: <= 84 characters
A pre-computed string which sensibly combines building_number, building_name and sub_building_name. building_number, building_name and sub_building_name represent raw data from Royal Mail's and can be difficult to parse if you are unaware of how the Postcode Address File premise fields work together. For this reason, we also provide a pre-computed premise field which intelligently gathers these points into a single, simple premise string. This field is ideal if you want to pull premise information and thoroughfare information separately instead of using our address lines data.
Possible values: <= 12 characters
Unique Property Reference Number (UPRN) assigned by the LLPG Custodian or Ordnance Survey.
Possible values: <= 8 characters
Royal Mail's Unique Delivery Point Reference Number (UDPRN).
Possible values: <= 12 characters
UPRN of the parent Record if a parent-child relationship exists.
Possible values: <= 8 characters
Unique Street Reference Number assigned by the Street Name and Numbering Custodian OR
Ordnance Survey depending on the address record.
Possible values: <= 20 characters
The Topographic Identifier taken from OS MasterMap Topography Layer. This TOID is assigned to the UPRN by performing a spatial intersection between the two identifiers. It consists of the letters 'osgb' and is followed by up to sixteen digits.
Possible values: <= 4 characters
A code that describes the classification of the address record to a maximum of a secondary level.
Possible values: <= 8 characters
A value in metres defining the x location in accordance with the British National Grid.
Possible values: <= 9 characters
A value in metres defining the y location in accordance with the British National Grid.
A value in metres defining the y location in accordance with the British National Grid.
A value defining the Longitude location in accordance with the ETRS89 coordinate reference system.
Possible values: <= 500 characters
A single attribute containing text concatenation of the address elements separated by a comma.
Possible values: <= 100 characters
Street / Road name for the address record.
Possible values: <= 35 characters
A locality defines an area or geographical identifier within a town, village or hamlet. Locality represents the lower level geographical area. The locality field should be used in conjunction with the town name and street description fields to uniquely identify geographic area where there may be more than one within an administrative area.
Possible values: <= 35 characters
Geographical town name assigned by the Local Authority. Please note this can be different from the Post Town value assigned by Royal Mail.
Possible values: <= 2 characters
A two-character code uniquely identifying an individual delivery point within a postcode, assigned by Royal Mail.
Possible values: <= 30 characters
The town or city in which the Royal Mail sorting office is located which services this address record.
Condition: POST_TOWN is not populated if this is the same as TOWN_NAME.
Possible values: <= 9 characters
The Office for National Statistics Governmental Statistical Service (GSS) code representing the contributing Local Authority.
Possible values: <= 1 characters
Representative Point Code describes the accuracy of the coordinate that has been allocated to the UPRN as indicated by the Local Authority and enhanced using large scale OS data.
The latest date on which any of the attributes on this record were last changed.
Possible values: <= 50 characters
Third level of geographic area name to record island names where appropriate.
Possible values: <= 50 characters
, [I
, U
, D
]
This enumeration is used in association with the attribute “CHANGE_CODE”. This enumeration identifies the type of change that has been made to a feature. The change type must be set when a feature is inserted, updated or deleted. Please see section 3 for more information. Example I = Insert, U = Update, D = Delete
Possible values: <= 110 characters
The building name is a description applied to a single address or a group of addresses.
Possible values: <= 13 characters
The building number is a number or range of numbers given to a single address or a group of addresses.
Possible values: <= 110 characters
The sub-building name and/or number for the address record.
Possible values: <= 8 characters
A postcode assigned by Royal Mail for the address record.
Possible values: <= 13 characters
Text concatenation of 'PO BOX' and the Post Office Box (PO Box) number or 'BFPO' and the British Forces Post Office number.
Possible values: <= 100 characters
The organisation name is the business name given, when appropriate, to an address record.
Full country names (ISO 3166)
3 letter country code (ISO 3166-1)
Since postal, administrative or traditional counties may not apply to some addresses, the county field is designed to return whatever county data is available. Normally, the postal county is returned. If this is not present, the county field will fall back to the administrative county. If the administrative county is also not present, the county field will fall back to the traditional county. May be empty in cases where no administrative, postal or traditional county present.
The current district/unitary authority to which the postcode has been assigned.
The current administrative/electoral area to which the postcode has been assigned. May be empty for a small number of addresses.
Traditional counties are provided by the Association of British Counties. It is historical data, and can date from the 1800s. May be empty.
The current administrative county to which the postcode has been assigned.
A Unitary Authority name, where one is present. If there is no Unitary Authority, the County name is used. This information is not static, because County boundaries may change due to administrative changes. Data
source: ONS
Postal counties were used for the distribution of mail before the Postcode system was introduced in the 1970s. The Former Postal County was the Administrative County at the time. This data rarely changes. May be empty.
Global unique internally generated identifier for an address
Possible values: [paf
, pafw
, pafa
, mr
, nyb
, usps
, ecaf
, ecad
, ab
, herewe
, heret
, heresa
, hereo
, herena
, heremeas
, heremea
, herem
, herei
, herehk
, hereee
, hereap
, gnaf
]
Indicates the provenance of an address.
Possible values: [GBR
, IMN
, JEY
, GGY
, USA
, PRI
, GUM
, IRL
, VAT
, FRA
, GRL
, NLD
, LUX
, AUT
, GIB
, LIE
, FIN
, UNI
, ISL
, CHE
, PRT
, BEL
, MCO
, ITA
, FRO
, NOR
, DNK
, SMR
, MLT
, AND
, SWE
, DEU
, ESP
, SJM
, BRN
, IDN
, KHM
, MMR
, MYS
, PHL
, SGP
, THA
, TLS
, VNM
, ALB
, ARM
, AZE
, BGR
, BIH
, BLR
, CYP
, CZE
, EST
, GEO
, GRC
, HRV
, HUN
, KAZ
, KGZ
, KOS
, LTU
, LVA
, MDA
, MKD
, MNE
, POL
, ROU
, RUS
, SRB
, SVK
, SVN
, TUR
, UKR
, UZB
, HKG
, BGD
, IND
, LKA
, MAC
, AGO
, ARE
, BFA
, BHR
, BWA
, CMR
, EGY
, GHA
, ISR
, JOR
, KEN
, KWT
, LBN
, LSO
, MAR
, MOZ
, MUS
, MYT
, NAM
, NGA
, OMN
, QAT
, REU
, SAU
, SEN
, SWZ
, TUN
, ZAF
, ZMB
, ZWE
, BHS
, BLZ
, BMU
, CAN
, CRI
, CYM
, DOM
, GTM
, HND
, HTI
, JAM
, MEX
, NIC
, PAN
, SLV
, VGB
, AUS
, CCK
, CXR
, FJI
, NCL
, NFK
, NZL
, PYF
, TON
, VUT
, ABW
, ARG
, BLM
, BOL
, BRA
, BRB
, CHL
, COL
, CUW
, DMA
, ECU
, GLP
, GUF
, GUY
, MAF
, MTQ
, PER
, PRY
, SUR
, TTO
, URY
, VEN
, TWN
, CHN
, JPN
, KOR
, LAO
, MNG
, PNG
, PRK
, SLB
, TJK
, TKM
, BTN
, IOT
, LKA
, MDV
, NPL
, PAK
, AFG
, BDI
, BEN
, CAF
, CIV
, COD
, COG
, COM
, CPV
, DJI
, DZA
, ERI
, ESH
, ETH
, GAB
, GIN
, GMB
, GNB
, GNQ
, IRN
, IRQ
, LBR
, LBY
, MDG
, MLI
, MRT
, MWI
, NER
, RWA
, SHN
, SLE
, SOM
, SSD
, STP
, SYC
, TCD
, TGO
, TZA
, UGA
, SDN
, SYR
, YEM
, CUB
, SPM
, TCA
, COK
, KIR
, NIU
, NRU
, PCN
, TKL
, TUV
, WLF
, WSM
, AIA
, ATG
, BES
, FLK
, GRD
, KNA
, LCA
, MSR
, SGS
, SXM
, VCT
, ASM
, FSM
, MHL
, MNP
, PLW
, VIR
]
3 letter country code (ISO 3166-1)
Possible values: [GB
, IM
, JE
, GG
, US
, PR
, GU
, IE
, VA
, FR
, GL
, NL
, LU
, AT
, GI
, LI
, FI
, GB
, IS
, CH
, PT
, BE
, MC
, IT
, FO
, NO
, DK
, SM
, MT
, AD
, SE
, DE
, ES
, SJ
, BS
, BZ
, BM
, CA
, CR
, KY
, DO
, GT
, HN
, HT
, JM
, MX
, NI
, PA
, SV
, VG
, AU
, CC
, CX
, FJ
, NC
, NF
, NZ
, PF
, TO
, VU
, AW
, AR
, BL
, BO
, BR
, BB
, CL
, CO
, CW
, DM
, EC
, GP
, GD
, GF
, GY
, MF
, MQ
, PE
, PY
, SR
, TT
, UY
, VE
, TW
, BN
, ID
, KH
, MM
, MY
, PH
, SG
, TH
, TL
, VN
, AL
, AM
, AZ
, BG
, BA
, BY
, CY
, CZ
, EE
, GE
, GR
, HR
, HU
, KZ
, KG
, XK
, LT
, LV
, MD
, MK
, ME
, PL
, RO
, RU
, RS
, SK
, SI
, TR
, UA
, UZ
, HK
, BD
, IN
, LK
, MO
, AO
, AE
, BF
, BH
, BW
, CM
, EG
, GH
, IL
, JO
, KE
, KW
, LB
, LS
, MA
, MZ
, MU
, YT
, NA
, NG
, OM
, QA
, RE
, SA
, SN
, SZ
, TN
, ZA
, ZM
, ZW
, CN
, JP
, KR
, LA
, MN
, PG
, KP
, SB
, TJ
, TM
, BT
, IO
, LK
, MV
, NP
, PK
, AF
, BI
, BJ
, CF
, CI
, CD
, CG
, KM
, CV
, DJ
, DZ
, ER
, EH
, ET
, GA
, GN
, GM
, GW
, GQ
, IR
, IQ
, LR
, LY
, MG
, ML
, MR
, MW
, NE
, RW
, SH
, SL
, SO
, SS
, ST
, SC
, TD
, TG
, TZ
, UG
, SD
, SY
, YE
, CU
, PM
, TC
, CK
, KI
, NU
, NR
, PN
, TK
, TV
, WF
, WS
, AI
, AG
, BQ
, FK
, KN
, LC
, MS
, GS
, SX
, VC
, AS
, FM
, MH
, MP
, PW
, VI
]
2 letter country code (ISO 3166-1)
Possible values: [en
, ar
, az
, be
, bg
, bn
, bs
, ca
, cs
, cy
, da
, de
, el
, es
, et
, eu
, fi
, fo
, fr
, ga
, gl
, gn
, he
, hi
, hr
, hu
, hy
, id
, is
, it
, ka
, kk
, km
, kn
, lt
, lv
, mk
, mn
, ms
, mt
, my
, nl
, no
, pl
, pt
, ro
, ru
, sk
, sl
, sq
, sr
, sv
, ta
, th
, tr
, uk
, uz
, vi
, wa
, zh
]
Language represented by 2 letter ISO Code (639-1)
First line of the address. Typically the building number and street name
Second line of the address. Can be blank
Third line of the address. Can also be blank
Represents the postal or zip code
The city, town or other primary locality
State or county name
Code abbreviation for state or county used in some countries.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
Possible values: [United Kingdom
, England
, Scotland
, Wales
, Northern Ireland
, Isle of Man
, Jersey
, Guernsey
, Guam
, United States
, Puerto Rico
, Ireland
, Vatican City
, France
, Greenland
, Netherlands
, Luxembourg
, Austria
, Gibraltar
, Liechtenstein
, Finland
, United Kingdom
, Iceland
, Switzerland
, Portugal
, Belgium
, Monaco
, Italy
, Faroe Islands
, Norway
, Denmark
, San Marino
, Malta
, Andorra
, Sweden
, Germany
, Spain
, Svalbard and Jan Mayen
, Bahamas
, Belize
, Bermuda
, Canada
, Costa Rica
, Cayman Islands
, Dominican Republic
, Guatemala
, Honduras
, Haiti
, Jamaica
, Mexico
, Nicaragua
, Panama
, El Salvador
, British Virgin Islands
, Australia
, Cocos (Keeling) Islands
, Christmas Island
, Fiji
, New Caledonia
, Norfolk Island
, New Zealand
, French Polynesia
, Tonga
, Vanuatu
, Aruba
, Argentina
, Saint Barthélemy
, Bolivia
, Brazil
, Barbados
, Chile
, Colombia
, Curaçao
, Dominica
, Ecuador
, Guadeloupe
, Grenada
, French Guiana
, Guyana
, Saint Martin (French part)
, Martinique
, Peru
, Paraguay
, Suriname
, Trinidad and Tobago
, Uruguay
, Venezuela
, Taiwan
, Brunei Darussalam
, Indonesia
, Cambodia
, Myanmar
, Malaysia
, Philippines
, Singapore
, Thailand
, Timor-Leste
, Vietnam
, Albania
, Armenia
, Azerbaijan
, Bulgaria
, Bosnia and Herzegovina
, Belarus
, Cyprus
, Czech Republic
, Estonia
, Georgia
, Greece
, Croatia
, Hungary
, Kazakhstan
, Kyrgyzstan
, Kosovo
, Lithuania
, Latvia
, Moldova
, North Macedonia
, Montenegro
, Poland
, Romania
, Russia
, Serbia
, Slovakia
, Slovenia
, Turkey
, Ukraine
, Uzbekistan
, Hong Kong
, Bangladesh
, India
, Sri Lanka
, Macau
, Angola
, United Arab Emirates
, Burkina Faso
, Bahrain
, Botswana
, Cameroon
, Egypt
, Ghana
, Israel
, Jordan
, Kenya
, Kuwait
, Lebanon
, Lesotho
, Morocco
, Mozambique
, Mauritius
, Mayotte
, Namibia
, Nigeria
, Oman
, Qatar
, Réunion
, Saudi Arabia
, Senegal
, Eswatini
, Tunisia
, South Africa
, Zambia
, Zimbabwe
, China
, Japan
, South Korea
, Laos
, Mongolia
, Papua New Guinea
, North Korea
, Solomon Islands
, Tajikistan
, Turkmenistan
, Bhutan
, British Indian Ocean Territory
, Sri Lanka
, Maldives
, Nepal
, Pakistan
, Afghanistan
, Burundi
, Benin
, Central African Republic
, Côte d'Ivoire
, Democratic Republic of the Congo
, Republic of the Congo
, Comoros
, Cape Verde
, Djibouti
, Algeria
, Eritrea
, Western Sahara
, Ethiopia
, Gabon
, Guinea
, Gambia
, Guinea-Bissau
, Equatorial Guinea
, Iran
, Iraq
, Liberia
, Libya
, Madagascar
, Mali
, Mauritania
, Malawi
, Niger
, Rwanda
, Saint Helena
, Sierra Leone
, Somalia
, South Sudan
, São Tomé and Príncipe
, Seychelles
, Chad
, Togo
, Tanzania
, Uganda
, Sudan
, Syria
, Yemen
, Cuba
, Saint Pierre and Miquelon
, Turks and Caicos Islands
, Cook Islands
, Kiribati
, Niue
, Nauru
, Pitcairn Islands
, Tokelau
, Tuvalu
, Vanuatu
, Wallis and Futuna
, Samoa
, Anguilla
, Antigua and Barbuda
, Bonaire, Sint Eustatius and Saba
, Falkland Islands (Malvinas)
, Saint Kitts and Nevis
, Saint Lucia
, Montserrat
, South Georgia and the South Sandwich Islands
, Sint Maarten (Dutch part)
, Saint Vincent and the Grenadines
, American Samoa
, Federated States of Micronesia
, Marshall Islands
, Northern Mariana Islands
, Palau
, United States Virgin Islands
]
Full country names (ISO 3166)
native object required
The native representation of a non-UK address
Global unique internally generated identifier for an address
Possible values: [ecad
]
Source of address
Possible values: [IRL
]
3 letter country code (ISO 3166-1)
Possible values: [IE
]
2 letter country code (ISO 3166-1)
Possible values: [Ireland
]
Full country names (ISO 3166)
Possible values: [en
, ga
]
Language represented by 2 letter ISO Code (639-1)
Possible values: <= 200 characters
Address Line 1
Possible values: <= 200 characters
Address Line 2
Possible values: <= 200 characters
Address Line 3
Possible values: <= 200 characters
Address Line 4
Possible values: <= 200 characters
Address Line 5
Possible values: <= 200 characters
Address Line 6
Possible values: <= 200 characters
Address Line 7
Possible values: <= 200 characters
Address Line 8
Possible values: <= 200 characters
Address Line 9
Possible values: <= 60 characters
The department or division within an organisation. If the department element exists, then the organisation must also exist.
Possible values: <= 60 characters
Organisation name
Possible values: <= 60 characters
The sub-building refers to an apartment, flat or unit within a building.
Possible values: <= 60 characters
The name given to the building. Prepended by sub building, if any, when the sub building does not appear on a line to itself. The building name is omitted if it is the same as either the Organisation or Building Group.
Possible values: <= 40 characters
A number associated with the whole building. The building number may have a numeric and an alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple building number or a complex building number. The building number always relates to the whole building and not a sub-unit within it. A complex building number may be one of the following:
Possible values: <= 60 characters
A building group is a collection of buildings with a collective name, located on or near the same thoroughfare.
Possible values: <= 40 characters
The name of the thoroughfare on which premises are located. It may appear on a line by itself or be appended to either a sub building or building number.
Addresses with thoroughfares can sometimes have the thoroughfare excluded where a Building Group exists, such as a Retail Centre or Business Park, and the thoroughfare is not part of the Postal Address.
Possible values: <= 40 characters
It is never present without a primary thoroughfare. The primary thoroughfare is dependent on the secondary thoroughfare and appears before the secondary thoroughfare in any address.
Secondary thoroughfare are generally used to assist locating a primary thoroughfare.
Possible values: <= 40 characters
First locality elements which can refer to areas, districts, industrial estates, towns, etc.
The primary locality refers to the specific place the address is.
In urban areas, the primary locality can be required to distinguish between two thoroughfares of the same name in the same district or town. Industrial estates with named thoroughfares are also held as localities. In rural areas the primary locality is generally a townland name.
Possible values: <= 40 characters
Never present without a primary locality. The secondary locality has a wider geographic scope than the primary locality.
It is the secondary locality therefore which differentiates addresses with the same primary locality name within the same county.
Secondary localities are more likely to be required for rural addresses.
Second locality elements which can refer to areas, districts, industrial estates, towns, etc
The secondary locality helps identify where the primary locality is located.
Possible values: <= 40 characters
Also known as the Post Town.
The name of the post town associated with the premises for postal delivery purposes. This includes Dublin Postal Districts "Dublin 1" to "Dublin 24".
The post town is a significant element of the Postal Address, however it is not always populated in an address. The official post office guide, Eolaí an Phoist4, describes post towns in the following manner:
"A provincial postal address may include the name of a town or village several miles distant, with which the addressee has little or no connection, and, in some places, especially if this residence happens to be near a county boundary, the name of the neighbouring county instead of the county in which he actually resides. The explanation is that the main mail despatches have to be sent for more detailed sub division to certain centres known as POST TOWNS, chosen because of their accessibility and convenience."
Possible values: <= 30 characters
One of the 26 Counties in the Republic of Ireland. These counties are sub-national divisions used for the purposes of administrative, geographical and political demarcation. Post County is the County associated with the Post Town, not the geographic county in which the building is located. The Post County is normally used as part of the Postal Address with some exceptions e.g. Dublin Postal Districts where the Post County is not used and some Post Towns (e.g. Tipperary, Kildare, etc.) that have the same name as the Post County.
Possible values: <= 60 characters
The seven character Eircode has an A65 F4E2 format. The Eircode is a mandatory address element. The last line of a Postal Address will contain the Eircode, displayed with a space. e.g. A65 F4E2
.
The Eircode is always the last line of a Postal Address generated within the state, e.g. if an address has four lines then the Eircode will be on its own on Address Line 5. For inbound international mail the country name IRELAND should be appended as the last line of the Postal Address.
Possible values: <= 16 characters
The address reference is the An Post GeoDirectory address reference identifier used by the Universal Service Provider.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
Possible values: non-empty
and <= 10 characters
Unique 10 digit ECAD ID
Possible values: non-empty
and <= 10 characters
Organisation ID
Possible values: non-empty
and <= 10 characters
Address Point ID
Possible values: non-empty
and <= 10 characters
Building ID
Building Group ID
Possible values: non-empty
and <= 10 characters
Primary Thoroughfare ID
Secondary Thoroughfare ID
Possible values: non-empty
and <= 10 characters
Primary Locality ID
Secondary Locality ID
The post town is a significant element of the Postal Address, however it is not always populated in an address. The official post office guide, Eolaí an Phoist1, describes post towns in the following manner:
"A provincial postal address may include the name of a town or village several miles distant, with which the addressee has little or no connection, and, in some places, especially if this residence happens to be near a county boundary, the name of the neighbouring county instead of the county in which he actually resides. The explanation is that the main mail despatches have to be sent for more detailed sub division to certain centres known as post towns, chosen because of their accessibility and convenience."
Possible values: non-empty
and <= 10 characters
Post Town ID
Possible values: non-empty
and <= 10 characters
Post County ID
NUA means "non-unique address".
The NUA field contains true
when the address is a non-unique address, and false
when it is a unique address.
Ireland has a very high level of non-unique addresses (NUA), i.e. the address does not contain a unique building number or name. Approximately 35% of all Irish addresses are non-unique which equates to 600,000 addresses.
The typical example of NUA addressing is where every address in a townland is the same. The way that post is delivered is by local knowledge of postal delivery personnel of which addressee lives in which house.
N.B. For a NUA address, it is impossible to match to a unique record in the ECAD and assign an Eircode.
Gaeltact refers to a district where the Irish government recognises that the Irish language is the predominant language.
Returns true
if address is in a Gaeltacht area and false
if not.
Addresses points can assume one of the following values:
Buildings can contain multiple address points of type Residential and/or Non-Residential.
The building type can assume one of the following values:
Buildings can also have a more specific address types such as a Hospital, School, Shopping Centre, etc.
The building group type can be:
Building groups can also have a more specific address type such as a Hospital, School, Shopping Centre, etc.
The locality type can be:
Where the locality is also the post town, the type can be:
The locality type can be:
Where the locality is also the post town, the type can be:
Describes the type of building, e.g. detached, semi-detached, bungalow.
Possible values: [N
, Y
, ``]
A Yes/No field, indicating whether or not the building is a holiday home.
Possible values: [N
, Y
, ``]
A Yes/No field, indicating whether or not the building is under construction.
Possible values: [R
, C
, B
, U
]
Can be one of:
Possible values: [Y
, N
, ``]
A Yes/No field, indicating whether the building is vacant.
Possible values: [Y
, N
, ``]
A Yes/No field, indicating whether the organisation is vacant.
The NACE Code for the Category.
Name of the NACE Category
Name of local authority
Unique Identifier for Electoral Divisions 2017 data.
Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
Unique Identifier for the Small Area 2017 data.
Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
Unique Identifier for townland 2017 data.
Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
Unique Identifier for the 7 Gaeltacht areas 2017 data.
Note that this field is subject to breaking changes if a new generation of government data IDs is released. Currently this uses 2017 IDs. Contact us to be notified ahead of his change.
An Post sorting information.
An Post sorting information.
An Post publicity post zone information.
Global unique internally generated identifier for an address
Possible values: [ecaf
]
Source of address
Possible values: [IRL
]
3 letter country code (ISO 3166-1)
Possible values: [IE
]
2 letter country code (ISO 3166-1)
Possible values: [Ireland
]
Full country names (ISO 3166)
Possible values: [en
, ga
]
Language represented by 2 letter ISO Code (639-1)
Possible values: <= 200 characters
Address Line 1
Possible values: <= 200 characters
Address Line 2
Possible values: <= 200 characters
Address Line 3
Possible values: <= 200 characters
Address Line 4
Possible values: <= 200 characters
Address Line 5
Possible values: <= 200 characters
Address Line 6
Possible values: <= 200 characters
Address Line 7
Possible values: <= 200 characters
Address Line 8
Possible values: <= 200 characters
Address Line 9
Possible values: <= 60 characters
The department or division within an organisation. If the department element exists, then the organisation must also exist.
Possible values: <= 60 characters
Organisation name
Possible values: <= 60 characters
The sub-building refers to an apartment, flat or unit within a building.
Possible values: <= 60 characters
The name given to the building. Prepended by sub building, if any, when the sub building does not appear on a line to itself. The building name is omitted if it is the same as either the Organisation or Building Group.
Possible values: <= 40 characters
A number associated with the whole building. The building number may have a numeric and an alphanumeric component, which are concatenated e.g. 2A, or alternatively will have a simple building number or a complex building number. The building number always relates to the whole building and not a sub-unit within it. A complex building number may be one of the following:
Possible values: <= 60 characters
A building group is a collection of buildings with a collective name, located on or near the same thoroughfare.
Possible values: <= 40 characters
The name of the thoroughfare on which premises are located. It may appear on a line by itself or be appended to either a sub building or building number.
Addresses with thoroughfares can sometimes have the thoroughfare excluded where a Building Group exists, such as a Retail Centre or Business Park, and the thoroughfare is not part of the Postal Address.
Possible values: <= 40 characters
It is never present without a primary thoroughfare. The primary thoroughfare is dependent on the secondary thoroughfare and appears before the secondary thoroughfare in any address.
Secondary thoroughfare are generally used to assist locating a primary thoroughfare.
Possible values: <= 40 characters
First locality elements which can refer to areas, districts, industrial estates, towns, etc.
The primary locality refers to the specific place the address is.
In urban areas, the primary locality can be required to distinguish between two thoroughfares of the same name in the same district or town. Industrial estates with named thoroughfares are also held as localities. In rural areas the primary locality is generally a townland name.
Possible values: <= 40 characters
Never present without a primary locality. The secondary locality has a wider geographic scope than the primary locality.
It is the secondary locality therefore which differentiates addresses with the same primary locality name within the same county.
Secondary localities are more likely to be required for rural addresses.
Second locality elements which can refer to areas, districts, industrial estates, towns, etc
The secondary locality helps identify where the primary locality is located.
Possible values: <= 40 characters
Also known as the Post Town.
The name of the post town associated with the premises for postal delivery purposes. This includes Dublin Postal Districts "Dublin 1" to "Dublin 24".
The post town is a significant element of the Postal Address, however it is not always populated in an address. The official post office guide, Eolaí an Phoist4, describes post towns in the following manner:
"A provincial postal address may include the name of a town or village several miles distant, with which the addressee has little or no connection, and, in some places, especially if this residence happens to be near a county boundary, the name of the neighbouring county instead of the county in which he actually resides. The explanation is that the main mail despatches have to be sent for more detailed sub division to certain centres known as POST TOWNS, chosen because of their accessibility and convenience."
Possible values: <= 30 characters
One of the 26 Counties in the Republic of Ireland. These counties are sub-national divisions used for the purposes of administrative, geographical and political demarcation. Post County is the County associated with the Post Town, not the geographic county in which the building is located. The Post County is normally used as part of the Postal Address with some exceptions e.g. Dublin Postal Districts where the Post County is not used and some Post Towns (e.g. Tipperary, Kildare, etc.) that have the same name as the Post County.
Possible values: <= 60 characters
The seven character Eircode has an A65 F4E2 format. The Eircode is a mandatory address element. The last line of a Postal Address will contain the Eircode, displayed with a space. e.g. A65 F4E2
.
The Eircode is always the last line of a Postal Address generated within the state, e.g. if an address has four lines then the Eircode will be on its own on Address Line 5. For inbound international mail the country name IRELAND should be appended as the last line of the Postal Address.
Possible values: <= 16 characters
The address reference is the An Post GeoDirectory address reference identifier used by the Universal Service Provider.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
Possible values: <= 10 characters
The unique identifier in the ECAF is the ecaf_id
. This unique identifier allows each address in the ECAF to be uniquely identified. It can also be used as index once the data has been imported into a relational database. This is a numeric field that can store values from 0 to 2,147,483,647. It is represented as a number up to 10 digits long. All other fields in ECAF are alphanumeric.
Global unique internally generated identifier for an address
Possible values: [usps
]
Identifies the address as sourced from USPS
Possible values: [American Samoa
, Federated States of Micronesia
, Guam
, Marshall Islands
, Northern Mariana Islands
, Palau
, Puerto Rico
, United States
, United States Virgin Islands
]
Full country names (ISO 3166)
Possible values: [ASM
, FSM
, GUM
, MHL
, MNP
, PLW
, PRI
, USA
, VIR
]
3 letter country code (ISO 3166-1)
Possible values: [AS
, FM
, GU
, MH
, MP
, PR
, PW
, US
, VI
]
2 letter country code (ISO 3166-1)
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
A house, rural route, contract box, or Post Office Box number. The numeric or alphanumeric component of an address preceding the street name. Often referred to as house number.
Number of the sub unit, apartment, suite etc
4 digit ZIP add-on code.
The primary delivery line (usually the street address) of the address.
Secondary delivery line of the address. Typically populated if the first line is the firm or building name.
Last line of the address comprising of city, state, zip code and zip+4
Possible values: <= 5 characters
A 5-digit code that identifies a specific geographic delivery area. ZIP Codes can represent an area within a state, or a single building or company that has a very high mail volume.
Possible values: <= 9 characters
Nine-digit code that identifies a small geographic delivery area that is serviceable by a single carrier; appears in the last line of the address on a mail piece.
Possible values: <= 10 characters
Field that contains a number that uniquely identifies a record; used to identify the base record to which an add or delete transaction is being directed. The Update Key Number field is used only when applying transactions to the base file; it is not used in address matching and remains fixed for the life of the record. The field is alphanumeric and consists of the database segment code (V1, V2, W1, W2, X1, X2, Y1, Y2, Z1, or Z2) and eight characters containing an alphanumeric value ranging from 00000001 to AAAAAAAA.
Possible values: <= 1 characters
, [G
, H
, F
, S
, P
, R
, M
, ``]
An alphabetic value that identifies the type of data in the record. - G = General delivery (5-Digit ZIP, ZIP + 4, and Carrier Route products) - H = High-rise (ZIP + 4 only) - F = Firm (ZIP + 4 only) - S = Street (5-Digit ZIP, ZIP + 4, and Carrier Route products) - P = PO Box (5-Digit ZIP, ZIP + 4, and Carrier Route products) - R = Rural route/contract (5-Digit ZIP, ZIP + 4, and Carrier Route products) - M = Multi-carrier (Carrier Route product only)
Possible values: <= 4 characters
A 4 character ID identifying the postal route for the address. The first character indicates the route type. Specifically:
Possible values: <= 2 characters
A geographic direction that precedes the street name.
Possible values: <= 28 characters
The official name of a street as assigned by a local governing authority. The Street Name field contains only the street name and does not include directionals (EAST, WEST, etc.) or suffixes (ST, DR, BLVD, etc.). This element may also contain literals, such as PO BOX, GENERAL DELIVERY, USS, PSC, or UNIT.
Possible values: <= 4 characters
Code that is the standard USPS abbreviation for the trailing designator in a street address.
Possible values: <= 2 characters
A geographic direction that follows the street name.
Possible values: <= 40 characters
The name of a company, building, apartment complex, shopping center, or other distinguishing secondary address information. This field is normally used with firm and highrise records but may also contain literals such as “Postmaster” or “United States Postal Service.”
Possible values: <= 4 characters
A descriptive code used to identify the type of address secondary range information in the Address Secondary Range field. This code may be useful in address matching, e.g., the secondary address numbers may indicate apartment, suite, or trailer numbers.
Possible values: <= 1 characters
, [A
, B
, ``]
Code that specifies whether a record is a base (preferred) or alternate record. Base records (represented as "B") can represent a range of addresses or an individual address, such as a firm record, while alternate records (represented as "A") are individual delivery points. Base records are generally preferred over alternate records. Government deliveries will only be listed on alternate records with the appropriate government building indicator (federal, state, or city) set.
Possible values: <= 1 characters
, [``, L
]
The Locatable Address Conversion Service (LACS) indicator describes records that have been converted to the LACS system (a product/system in a different USPS® product line that allows mailers to identify and convert a rural route address to a city-style address). Rural route and some city addresses are being modified to city-style addresses so that emergency services (e.g., ambulances, police) can find these addresses more efficiently.
Possible values: <= 1 characters
, [``, A
, B
, C
, D
, E
, F
, G
]
An alphabetic value that identifies the type of government agency at the delivery point and/or whether a firm is the only delivery at an address. For this purpose, "address" is defined as the complete delivery line (e.g., complete street address and, if included as part of the firm record, the secondary abbreviation and/or address secondary number).
Possible values: <= 2 characters
A 2-character abbreviation for the name of a state, U.S. territory, or armed forces ZIP Code designation. If APO/FPO/DPO, then the state abbreviation will be “AA,” “AE,” or “AP.”
Full name of a state, U.S. territory, or armed forces ZIP Code designation.
Possible values: <= 6 characters
Municipality City State Key. Currently blank.
Possible values: <= 6 characters
An index to the City State file that provides the urbanization name for this delivery range.
Possible values: <= 6 characters
In the Carrier Route, Five-Digit ZIP Code, Delivery Statistics, and ZIP + 4 products, an index to the City State product record that provides the preferred last-line name for this address range. In the City State product, the preferred last line city/state key contains the key value of a City State product record that has the default preferred or alternate preferred last-line key for a given ZIP Code.
The name of the county or parish in which the 5-digit ZIP Code resides. If APO/FPO/DPO, then the county name will be blank.
A valid city name for mailing purposes; appears in the last line of an address on a mail piece.
A standard 13-character abbreviation for a city/state name. This field is only used for names that are greater than 13 characters in length and have a city/state mailing name indicator of "Y." If the field is longer than 13 characters and the city/state mailing name indicator is "N," the field will be blank.
Field that contains the default preferred or alternate preferred last-line name for a ZIP Code.
Possible values: <= 1 characters
, [B
, C
, N
, P
, S
, U
, Y
, ``]
The type of locale identified in the city/state name. The facility may be a USPS facility, such as a post office, station, or branch, or it may be a non-postal place name. City/state name facility codes include the following:
Possible values: <= 1 characters
, [``, M
, P
, U
]
A field that describes the type of ZIP area that a 5-digit ZIP Code serves, e.g., a single educational institution, post office boxes only, or a single address that has unusually high mail volume or many different addresses.
Possible values: <= 1 characters
Specifies whether or not the city state name can be used as a last line of address on a mail piece.
Possible values: <= 1 characters
Identifies where automation Carrier Route rates are available and where the commingling of automation and non-automation mail, including Enhanced Carrier Routes and 5-digit presort, on the same pallet or in the same container is allowed.
finance_number object required
A code assigned to Postal Service facilities (primarily Post Offices) to collect cost and statistical data and compile revenue and expense data.
string
number
congressional_district_number object required
A standard value identifying a geographic area within the United States served by a member of the U.S. House of Representatives. If Army/Air Force (APO), Fleet Post Office (FPO), or Diplomatic/Defense Post Office (DPO), this field will be blank. If there is only one member of Congress within a state, the code will be "AL" (at large).
string
number
county_number object required
The Federal Information Processing Standard (FIPS) code assigned to a given county or parish within a state. In Alaska, it identifies a region within the state. If APO/FPO/DPO, and the record type is “S,” “H,” or “F,” the county number will be blank.
string
number
Global unique internally generated identifier for an address
Three character country code based on ISO Standard 3166.
Can be empty string ""
if not present.
Possible values: [herewe
, heret
, heresa
, hereo
, herena
, heremeas
, heremea
, herem
, herei
, herehk
, hereee
, hereap
]
Possible values: >= 2 characters
and <= 2 characters
Language Code of Address and Building Name for the Point Address.
Possible values: non-empty
and <= 150 characters
First address line.
Can be empty string ""
if not present.
Possible values: <= 150 characters
Second address line.
Can be empty string ""
if not present.
Possible values: <= 150 characters
Third address line.
Can be empty string ""
if not present.
Possible values: <= 150 characters
Fourth address line.
Can be empty string ""
if not present.
Possible values: <= 150 characters
Fifth address line.
Can be empty string ""
if not present.
Possible values: <= 150 characters
Address / House Number uniquely identifying the address along the specified road link.
Can be empty string ""
if not present.
Address Type defines the type of address represented by the Point Address (e.g., Base, Commercial).
Can be empty string ""
if not present.
delivery_latitude object required
string
number
delivery_longitude object required
string
number
Possible values: <= 150 characters
Name of the Building to which the Point Address is associated.
Can be empty string ""
if not present.
latitude object required
string
number
longitude object required
string
number
Possible values: non-empty
and <= 100 characters
The full spelling of the street name, including Prefix, Base Name, Suffix, Street Type, and Direction on Sign.
Possible values: <= 15 characters
Full postal code; could be numeric or alphanumeric postal code.
Can be empty string ""
if not present.
Identifies the highest administrative level in which a country can be subdivided.
Identifies an intermediate administrative level of a country and is a sub-division of an Order-1 area. Only countries with a five (or more) level administrative hierarchy have Order-2 administrative levels defined. This feature can be used for destination selection and map display.
Identifies the lowest level of the country's administrative hierarchy that is present country- wide. (No gaps exist in the coverage.)
Identifies the lowest administrative level for a country. This level does not cover the entire country, (as opposed to the Order-8 Area level which does cover the entire country). This feature should be used in conjunction with Zone and Order-8 Area for destination selection. The Built-up Area polygon, as published in RDF_CARTO, can also be used for map display.
Global unique internally generated identifier for an address
Possible values: [gnaf
]
Possible values: [AUS
, CCK
, CXR
, NFK
]
3 letter country code (ISO 3166-1)
Possible values: [AU
, CC
, CX
, NF
]
2 letter country code (ISO 3166-1)
Possible values: [Australia
, Cocos (Keeling) Islands
, Christmas Island
, Norfolk Island
]
Full country names (ISO 3166)
First address line.
Can be empty string ""
if not present.
Second address line.
Can be empty string ""
if not present.
Possible values: [en
]
Language represented by 2 letter ISO Code (639-1)
Address / House Number uniquely identifying the address along the specified street.
Can be empty string ""
if not present.
longitude object required
The longitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. -0.1283983
Returns an empty string if no location data is available.
string
number
latitude object required
The latitude of the postcode (WGS84/ETRS89).
Can be a positive or negative decimal. E.g. 51.5083983
.
Returns an empty string if no location data is available.
string
number
The Persistent Identifier is unique to the real world feature this record represents.
Date this record was created.
Date this record was last modified (not retired/recreated in line with ICSM standard).
Date this record was retired.
Combines both building/property name fields. Field length: up to 200 alphanumeric characters (AS4590:2006 5.7).
Lot number prefix. Field length: up to two alphanumeric characters (AS4590:2006 5.8.1).
Lot number. Field length: up to five alphanumeric characters (AS4590:2006 5.8.1).
Lot number suffix. Field length: up to two alphanumeric characters (AS4590:2006 5.8.1).
Specification of the type of a separately identifiable portion within a building/complex. Field Length: up to seven upper case alpha characters (AS4590:2006 5.5.1.1).
Level number prefix. Field length: up to two alphanumeric characters (AS4590:2006 5.5.2.2).
flat_number object required
string
number
Flat/unit number suffix Field length: up to two alphanumeric characters (AS4590:2006 5.5.1.2).
Level type. Field length: up to four alphanumeric characters (AS4590:2006 5.5.2.1).
Level number prefix. Field length: up to two alphanumeric characters (AS4590:2006 5.5.2.2).
level_number object required
string
number
Level number suffix. Field length: up to two alphanumeric characters (AS4590:2006 5.5.2.2).
Prefix for the first (or only) number in range. Field length: up to three uppercase alphanumeric characters (AS4590:2006 5.5.3.1).
number_first object required
string
number
Suffix for the first (or only) number in range. Field length: up to two uppercase alphanumeric characters (AS4590:2006 5.5.3.1).
Prefix for the last number in range. Field length: up to three uppercase alphanumeric characters (AS4590:2006 5.5.3.2).
number_last object required
string
number
Suffix for the last number in range. Field length: up to two uppercase alphanumeric characters (AS4590:2006 5.5.3.2).
Street/Locality of this address - not mandatory N as some records in G-F may not require street (e.g. remote rural property).
A = Alias record, P = Principal record.
Postcodes are optional as prescribed by AS4819 and AS4590:2006 5.13.
Private street information. This is not broken up into name/type/suffix. Field length: up to 75 alphanumeric characters. This is not currently populated.
Generic parcel id field derived from the Geoscape Australia’s Cadastre parcel where available.
confidence object required
string
number
Binary indicator of the level of geocoding this address has. e.g. 0 = 000 = (No geocode), 1 = 001 = (No Locality geocode, No Street geocode, Address geocode), etc.
Indicator that identifies if the address is P (Primary) or S (secondary).
Alias type (e.g. "Synonym").
Unique abbreviation for the geocode type.
default_latitude object required
string
number
default_longitude object required
string
number
The code indicating the type of change, for example, LOC-STN for locality name and street name change.
Code for mesh block match e.g. 1.
Code for mesh block match e.g. 1.
Address type (e.g. "Postal", Physical").
Address site name. Field length: 200 alphanumeric characters.
An identifier that relates to this specific geocoded site (e.g. "Transformer 75658").
Unique abbreviation for geocode feature. (e.g. "PRCL") (SAWG 7.4.1).
Spatial precision of the geocode expressed N as number in the range, 1 (unique identification of feature) to 6 (feature associated to region i.e. postcode).
Measurement (metres) of a geocode from other geocodes associated with the same address persistent identifier.
Planimetric accuracy.
Elevation. This field is not currently populated.
Site longitude
Site latitude
geocode_type_priority_order object required
string
number
site_geocode_priority_order object required
string
number
The name of the locality or suburb.
Required to differentiate localities of the same name within a state.
Describes the class of locality (e.g. Gazetted, topographic feature etc.). Lookup to locality class.
locality_gnaf_reliability_code object required
string
number
The alias name for the locality or suburb.
Postcode.
Alias type code for the locality.
locality_planimetric_accuracy object required
string
number
locality_latitude object required
string
number
locality_longitude object required
string
number
The 2016 mesh block code.
The 2021 mesh block code.
Code of 1 OR 2 when the root address:-
Code 1: Automatically generated when the primary and secondary addresses share the same street number, street name (and type) and locality name components.
Code 2: Manually generated where the primary and secondary addresses MAY or MAY NOT share the same street number, street name (and type) and locality name components
The state or territory name. All in uppercase. E.g. TASMANIA.
The state or territory abbreviation.
Defines whether this street represents a confirmed or unconfirmed street.
Street name. e.g. "POPLAR".
The street type code. e.g. "PLACE".
The street suffix code. e.g. "WEST".
gnaf_street_confidence object required
string
number
street_locality_gnaf_reliability_code object required
string
number
The street alias name. e.g. "POPLAR".
The street type code. e.g. "PLACE".
The street suffix code. e.g. "WEST".
The alias type code.
street_locality_boundary_extent object required
string
number
street_locality_planimetric_accuracy object required
string
number
street_locality_latitude object required
string
number
street_locality_longitude object required
string
number
Abbreviation of street type
Abbreviation of street type
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Not available for non-UK addresses. See id
for address identifier
Possible values: [``]
Not available for non-UK addresses. See id
for address identifier
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses
Possible values: [``]
Not available for non-UK addresses. See id
for address identifier
Possible values: [2000
]
Possible values: [Success
]
Possible values: <= 10
Possible values: >= 1
and <= 100
Default value: 100
{
"result": [
{
"postcode": "SW1A 2AA",
"postcode_inward": "2AA",
"postcode_outward": "SW1A",
"post_town": "London",
"dependant_locality": "",
"double_dependant_locality": "",
"thoroughfare": "Downing Street",
"dependant_thoroughfare": "",
"building_number": "10",
"building_name": "",
"sub_building_name": "",
"po_box": "",
"department_name": "",
"organisation_name": "Prime Minister & First Lord Of The Treasury",
"udprn": 23747771,
"postcode_type": "L",
"su_organisation_indicator": "",
"delivery_point_suffix": "1A",
"line_1": "Prime Minister & First Lord Of The Treasury",
"line_2": "10 Downing Street",
"line_3": "",
"premise": "10",
"longitude": -0.12767,
"latitude": 51.503541,
"eastings": 530047,
"northings": 179951,
"country": "England",
"traditional_county": "Greater London",
"administrative_county": "",
"postal_county": "London",
"county": "London",
"district": "Westminster",
"ward": "St. James's",
"uprn": "100023336956",
"id": "paf_23747771",
"country_iso": "GBR",
"country_iso_2": "GB",
"county_code": "",
"language": "en",
"umprn": "",
"dataset": "paf"
}
],
"code": 2000,
"message": "Success",
"limit": 100,
"page": 0,
"total": 1
}
{
"result": [
{
"postcode": "SW1A 2AA",
"postcode_inward": "2AA",
"postcode_outward": "SW1A",
"post_town": "London",
"dependant_locality": "",
"double_dependant_locality": "",
"thoroughfare": "Downing Street",
"dependant_thoroughfare": "",
"building_number": "10",
"building_name": "",
"sub_building_name": "",
"po_box": "",
"department_name": "",
"organisation_name": "Prime Minister & First Lord Of The Treasury",
"udprn": 23747771,
"postcode_type": "L",
"su_organisation_indicator": "",
"delivery_point_suffix": "1A",
"line_1": "Prime Minister & First Lord Of The Treasury",
"line_2": "10 Downing Street",
"line_3": "",
"premise": "10",
"longitude": -0.12767,
"latitude": 51.503541,
"eastings": 530047,
"northings": 179951,
"country": "England",
"traditional_county": "Greater London",
"administrative_county": "",
"postal_county": "London",
"county": "London",
"district": "Westminster",
"ward": "St. James's",
"uprn": "100023336956",
"id": "paf_23747771",
"country_iso": "GBR",
"country_iso_2": "GB",
"county_code": "",
"language": "en",
"umprn": "",
"dataset": "paf"
}
],
"code": 2000,
"message": "Success",
"limit": 100,
"page": 0,
"total": 1
}
Bad Request
- application/json
- Schema
- Example (from schema)
Schema
- Array [
- ]
API Response Code. Non 2xxx
code indicates a failure. This code will provide a more specific reason when a failure occurs and facilitates debugging.
Human readable error message supplied with every error response.
errors object[]
Indicates location of error in request query or URL parameter
Indicates location of error in request query or URL parameter
{
"code": 0,
"message": "string",
"errors": [
{
"message": "should have required property 'type'",
"path": ".query.type",
"errorCode": "required.openapi.validation"
}
]
}
Postcode Not Found
- application/json
- Schema
- Example (from schema)
Schema
Possible values: [4040
]
Possible values: [Postcode not found
]
A list of alternate nearest matching postcodes you can try
{
"code": 4040,
"message": "Postcode not found",
"suggestions": [
"SN13 0SF"
]
}