List of valid UK counties

Hi,

I’m based in the UK and only serve UK businesses.

I’m using the API to create a contact record, and it appears I need to pass in a valid REGION (this would be state I assume).

After reading the forums, people are mentioning using codes, however I’ve found the only thing that works for me is to pass in the actual county name e.g. Leicestershire.

This then means, I’ll need a dropdown on my website containing all valid counties.

Does anyone know where this list is for the UK. I don’t want to have to test every individual one.

Thanks.

I don’t know of the official list but here’s the code directly from the UI when you select United Kingdom for the country:

<select id="appstate" name="appstate" class="field-valid"><option value="Aberdeen City">Aberdeen City</option><option value="Aberdeenshire">Aberdeenshire</option><option value="Angus">Angus</option><option value="Antrim and Newtownabbey">Antrim and Newtownabbey</option><option value="Ards and North Down">Ards and North Down</option><option value="Argyll and Bute">Argyll and Bute</option><option value="Armagh, Banbridge and Craigavon">Armagh, Banbridge and Craigavon</option><option value="Barking and Dagenham">Barking and Dagenham</option><option value="Barnet">Barnet</option><option value="Barnsley">Barnsley</option><option value="Bath and North East Somerset">Bath and North East Somerset</option><option value="Bedford">Bedford</option><option value="Belfast">Belfast</option><option value="Bexley">Bexley</option><option value="Birmingham">Birmingham</option><option value="Blackburn with Darwen">Blackburn with Darwen</option><option value="Blackpool">Blackpool</option><option value="Blaenau Gwent">Blaenau Gwent</option><option value="Bolton">Bolton</option><option value="Bournemouth">Bournemouth</option><option value="Bracknell Forest">Bracknell Forest</option><option value="Bradford">Bradford</option><option value="Brent">Brent</option><option value="Bridgend [Pen-y-bont ar Ogwr]">Bridgend [Pen-y-bont ar Ogwr]</option><option value="Brighton and Hove">Brighton and Hove</option><option value="Bristol, City of">Bristol, City of</option><option value="Bromley">Bromley</option><option value="Buckinghamshire">Buckinghamshire</option><option value="Bury">Bury</option><option value="Caerphilly [Caerffili]">Caerphilly [Caerffili]</option><option value="Calderdale">Calderdale</option><option value="Cambridgeshire">Cambridgeshire</option><option value="Camden">Camden</option><option value="Cardiff [Caerdydd]">Cardiff [Caerdydd]</option><option value="Carmarthenshire [Sir Gaerfyrddin]">Carmarthenshire [Sir Gaerfyrddin]</option><option value="Causeway Coast and Glens">Causeway Coast and Glens</option><option value="Central Bedfordshire">Central Bedfordshire</option><option value="Ceredigion [Sir Ceredigion]">Ceredigion [Sir Ceredigion]</option><option value="Cheshire East">Cheshire East</option><option value="Cheshire West and Chester">Cheshire West and Chester</option><option value="Clackmannanshire">Clackmannanshire</option><option value="Conwy">Conwy</option><option value="Cornwall">Cornwall</option><option value="Coventry">Coventry</option><option value="Croydon">Croydon</option><option value="Cumbria">Cumbria</option><option value="Darlington">Darlington</option><option value="Denbighshire [Sir Ddinbych]">Denbighshire [Sir Ddinbych]</option><option value="Derby">Derby</option><option value="Derbyshire">Derbyshire</option><option value="Derry and Strabane">Derry and Strabane</option><option value="Devon">Devon</option><option value="Doncaster">Doncaster</option><option value="Dorset">Dorset</option><option value="Dudley">Dudley</option><option value="Dumfries and Galloway">Dumfries and Galloway</option><option value="Dundee City">Dundee City</option><option value="Durham County">Durham County</option><option value="Ealing">Ealing</option><option value="East Ayrshire">East Ayrshire</option><option value="East Dunbartonshire">East Dunbartonshire</option><option value="East Lothian">East Lothian</option><option value="East Renfrewshire">East Renfrewshire</option><option value="East Riding of Yorkshire">East Riding of Yorkshire</option><option value="East Sussex">East Sussex</option><option value="Edinburgh, City of">Edinburgh, City of</option><option value="Eilean Siar">Eilean Siar</option><option value="Enfield">Enfield</option><option value="England">England</option><option value="England and Wales">England and Wales</option><option value="Essex">Essex</option><option value="Falkirk">Falkirk</option><option value="Fermanagh and Omagh">Fermanagh and Omagh</option><option value="Fife">Fife</option><option value="Flintshire [Sir y Fflint]">Flintshire [Sir y Fflint]</option><option value="Gateshead">Gateshead</option><option value="Glasgow City">Glasgow City</option><option value="Gloucestershire">Gloucestershire</option><option value="Great Britain">Great Britain</option><option value="Greenwich">Greenwich</option><option value="Gwynedd">Gwynedd</option><option value="Hackney">Hackney</option><option value="Halton">Halton</option><option value="Hammersmith and Fulham">Hammersmith and Fulham</option><option value="Hampshire">Hampshire</option><option value="Haringey">Haringey</option><option value="Harrow">Harrow</option><option value="Hartlepool">Hartlepool</option><option value="Havering">Havering</option><option value="Herefordshire">Herefordshire</option><option value="Hertfordshire">Hertfordshire</option><option value="Highland">Highland</option><option value="Hillingdon">Hillingdon</option><option value="Hounslow">Hounslow</option><option value="Inverclyde">Inverclyde</option><option value="Isle of Anglesey [Sir Ynys Môn]">Isle of Anglesey [Sir Ynys Môn]</option><option value="Isle of Wight">Isle of Wight</option><option value="Isles of Scilly">Isles of Scilly</option><option value="Islington">Islington</option><option value="Kensington and Chelsea">Kensington and Chelsea</option><option value="Kent">Kent</option><option value="Kingston upon Hull">Kingston upon Hull</option><option value="Kingston upon Thames">Kingston upon Thames</option><option value="Kirklees">Kirklees</option><option value="Knowsley">Knowsley</option><option value="Lambeth">Lambeth</option><option value="Lancashire">Lancashire</option><option value="Leeds">Leeds</option><option value="Leicester">Leicester</option><option value="Leicestershire">Leicestershire</option><option value="Lewisham">Lewisham</option><option value="Lincolnshire">Lincolnshire</option><option value="Lisburn and Castlereagh">Lisburn and Castlereagh</option><option value="Liverpool">Liverpool</option><option value="London, City of">London, City of</option><option value="Luton">Luton</option><option value="Manchester">Manchester</option><option value="Medway">Medway</option><option value="Merthyr Tydfil [Merthyr Tudful]">Merthyr Tydfil [Merthyr Tudful]</option><option value="Merton">Merton</option><option value="Mid and East Antrim">Mid and East Antrim</option><option value="Mid Ulster">Mid Ulster</option><option value="Middlesbrough">Middlesbrough</option><option value="Midlothian">Midlothian</option><option value="Milton Keynes">Milton Keynes</option><option value="Monmouthshire [Sir Fynwy]">Monmouthshire [Sir Fynwy]</option><option value="Moray">Moray</option><option value="Neath Port Talbot [Castell-nedd Port Talbot]">Neath Port Talbot [Castell-nedd Port Talbot]</option><option value="Newcastle upon Tyne">Newcastle upon Tyne</option><option value="Newham">Newham</option><option value="Newport [Casnewydd]">Newport [Casnewydd]</option><option value="Newry, Mourne and Down">Newry, Mourne and Down</option><option value="Norfolk">Norfolk</option><option value="North Ayrshire">North Ayrshire</option><option value="North East Lincolnshire">North East Lincolnshire</option><option value="North Lanarkshire">North Lanarkshire</option><option value="North Lincolnshire">North Lincolnshire</option><option value="North Somerset">North Somerset</option><option value="North Tyneside">North Tyneside</option><option value="North Yorkshire">North Yorkshire</option><option value="Northamptonshire">Northamptonshire</option><option value="Northern Ireland">Northern Ireland</option><option value="Northumberland">Northumberland</option><option value="Nottingham">Nottingham</option><option value="Nottinghamshire">Nottinghamshire</option><option value="Oldham">Oldham</option><option value="Orkney Islands">Orkney Islands</option><option value="Oxfordshire">Oxfordshire</option><option value="Pembrokeshire [Sir Benfro]">Pembrokeshire [Sir Benfro]</option><option value="Perth and Kinross">Perth and Kinross</option><option value="Peterborough">Peterborough</option><option value="Plymouth">Plymouth</option><option value="Poole">Poole</option><option value="Portsmouth">Portsmouth</option><option value="Powys">Powys</option><option value="Reading">Reading</option><option value="Redbridge">Redbridge</option><option value="Redcar and Cleveland">Redcar and Cleveland</option><option value="Renfrewshire">Renfrewshire</option><option value="Rhondda, Cynon, Taff [Rhondda, Cynon,Taf]">Rhondda, Cynon, Taff [Rhondda, Cynon,Taf]</option><option value="Richmond upon Thames">Richmond upon Thames</option><option value="Rochdale">Rochdale</option><option value="Rotherham">Rotherham</option><option value="Rutland">Rutland</option><option value="Salford">Salford</option><option value="Sandwell">Sandwell</option><option value="Scotland">Scotland</option><option value="Scottish Borders, The">Scottish Borders, The</option><option value="Sefton">Sefton</option><option value="Sheffield">Sheffield</option><option value="Shetland Islands">Shetland Islands</option><option value="Shropshire">Shropshire</option><option value="Slough">Slough</option><option value="Solihull">Solihull</option><option value="Somerset">Somerset</option><option value="South Ayrshire">South Ayrshire</option><option value="South Gloucestershire">South Gloucestershire</option><option value="South Lanarkshire">South Lanarkshire</option><option value="South Tyneside">South Tyneside</option><option value="Southampton">Southampton</option><option value="Southend-on-Sea">Southend-on-Sea</option><option value="Southwark">Southwark</option><option value="St. Helens">St. Helens</option><option value="Staffordshire">Staffordshire</option><option value="Stirling">Stirling</option><option value="Stockport">Stockport</option><option value="Stockton-on-Tees">Stockton-on-Tees</option><option value="Stoke-on-Trent">Stoke-on-Trent</option><option value="Suffolk">Suffolk</option><option value="Sunderland">Sunderland</option><option value="Surrey">Surrey</option><option value="Sutton">Sutton</option><option value="Swansea [Abertawe]">Swansea [Abertawe]</option><option value="Swindon">Swindon</option><option value="Tameside">Tameside</option><option value="Telford and Wrekin">Telford and Wrekin</option><option value="Thurrock">Thurrock</option><option value="Torbay">Torbay</option><option value="Torfaen [Tor-faen]">Torfaen [Tor-faen]</option><option value="Tower Hamlets">Tower Hamlets</option><option value="Trafford">Trafford</option><option value="United Kingdom">United Kingdom</option><option value="Vale of Glamorgan, The [Bro Morgannwg]">Vale of Glamorgan, The [Bro Morgannwg]</option><option value="Wakefield">Wakefield</option><option value="Wales [Cymru]">Wales [Cymru]</option><option value="Walsall">Walsall</option><option value="Waltham Forest">Waltham Forest</option><option value="Wandsworth">Wandsworth</option><option value="Warrington">Warrington</option><option value="Warwickshire">Warwickshire</option><option value="West Berkshire">West Berkshire</option><option value="West Dunbartonshire">West Dunbartonshire</option><option value="West Lothian">West Lothian</option><option value="West Sussex">West Sussex</option><option value="Westminster">Westminster</option><option value="Wigan">Wigan</option><option value="Wiltshire">Wiltshire</option><option value="Windsor and Maidenhead">Windsor and Maidenhead</option><option value="Wirral">Wirral</option><option value="Wokingham">Wokingham</option><option value="Wolverhampton">Wolverhampton</option><option value="Worcestershire">Worcestershire</option><option value="Wrexham [Wrecsam]">Wrexham [Wrecsam]</option><option value="York">York</option></select>

Wow, that’s quite a list. Thanks so much John for sharing. Greatly appreciated. :grinning:

1 Like

Glad to help! Hope it works for you :wink: