How can I link a UK postcode to a list of addresses and then a specific address to a…
- User
How can I link a UK postcode to a list of addresses and then a specific address to a UPRN in as few API calls as possible and at minimum cost?
- Assistant
To link a UK postcode to a list of addresses and then a specific address to a UPRN in as few API calls as possible and at minimum cost, you can use the following approach:
- Use a single API call to a postcode lookup service to get a list of addresses for a given postcode. Some popular options include Postcodes.io (free), Ideal Postcodes, and GetAddress.io.
For example, with Postcodes.io, you can perform a single API call like this:
codehttps://api.postcodes.io/postcodes/{postcode}
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.