I have a JSON document full of UK postcodes, and I need the list of addresses that are matched to these postcodes. Does anyone know where I can find this data?
Adam, I love this question and would also like an answer.
Our aims may differ, though, if you want a one-of solution to handle your JSON file only (approx how many postcodes are in it?). I would like code a web site such that the user enters a post code & is given a drop-down list of associated addresses from which to choose. Let's see if we can't find a solution to both.
The accepted answer to How do I match street addresses to UK postcodes? says
I believe you need the Royal Mail Postcode Address File. From that link:
PAF is the only complete source of all known UK Postcodes.
Services do exist to handle requests for this info, such that it may be cheaper to use such services for small numbers of requests (obviously you have issues as and when such services aren't available for whatever reasons).
When I follow up the PAF, I find it to be an expensive service (more than GBP 1k/year), but they do offer a micro-business license which says
If your organisation is a Microbusiness with less than 9 employees and turnover below £2 million per annum, you may be eligible to access free PAF Data for one year for the purpose of developing your addressing Solutions.
If you wish to use our other complementary address data products, or continue to use PAF after your first year of use you will need to return the correct licence fees for the supply and use of each of our products. Fees are payable to Royal Mail in full every year.
So, it looks like you could use that license and would have a twelvemonth in which to manipulate your JSON file.
That won't help me, so I will continue to search futher & update this answer if I fidn other solutions
https://getaddress.io/ looked promising, but won't quite do it, I think.
I use the Open Street Map nominatum API for other porpoises, but cant' quite see to achieve what we want with it:-( Great, free, API, though.
https://postcodes.io/ gives useful info from a post code, but, again, not what we want :-(