UK Post Code API

UK Post Code API

This API will grant you access to Postcode Addresses File from the Royal Mail. Be able to make reverse geocoding in the UK just with a Post Code.

API description

About the API:

Be able to access Postcode Addresses Files from the Royal Mail with this API. Just with the Postal Code you will be able to make reverse geocoding in the UK. 

 

What this API receives and what your API provides (input/output)?

 

Pass the Post Code of your choice, and receive information like district, geocode, and Post Code Addresses. 

 

What are the most common uses cases of this API?

 

This API is useful for those apps and website that needs to implement a Post Code Lookup integration. 

Be able to verify the location of your users when creating a checkout integration. 

Recognize their location with this API. And create a validation for payment checkouts. 

 

Are there any limitations to your plans?

Besides API call limitations per month, there are no other limitations. 

API Documentation

Endpoints


Gets addresses for the given UK PostCode



                                                                            
GET https://zylalabs.com/api/759/uk+post+code+api/481/post+code+lookup
                                                                            
                                                                        

Test Endpoint

API EXAMPLE RESPONSE

       
                                                                                                        
                                                                                                                                                                                                                            {"status":200,"message":"Success","noOfItems":37,"result":{"postcode":"PL1 1DN","district":"Plymouth","ward":"St Peter and the Waterfront","county":"Devon","country":"England","geocode":{"eastings":"248025","northings":"0054420","lattitude":"50.370001","longitude":"-4.138397"},"addresses":[{"po_box":"","line_2":"","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"5","udprn":"18911184","thoroughfare":"St. Andrews Cross","line_1":"5 St. Andrews Cross","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"5","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"5 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"","dependant_locality":"","delivery_point_suffix":"4T"},{"po_box":"","line_2":"2 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":"Y","building_number":"2","udprn":"18911247","thoroughfare":"St. Andrews Cross","line_1":"Achievement Training","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"2","post_town":"PLYMOUTH","building_name":"","organisation_name":"Achievement Training","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Achievement Training, 2 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"","dependant_locality":"","delivery_point_suffix":"1A"},{"po_box":"","line_2":"Royal Buildings","postcode_type":"S","line_3":"St. Andrews Cross","su_organisation_indicator":"Y","building_number":" ","udprn":"18911248","thoroughfare":"St. Andrews Cross","line_1":"Royal Garden Restaurant","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Royal Buildings","post_town":"PLYMOUTH","building_name":"Royal Buildings","organisation_name":"Royal Garden Restaurant","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Royal Garden Restaurant, Royal Buildings, St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"","dependant_locality":"","delivery_point_suffix":"1L"},{"po_box":"","line_2":"3 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":"Y","building_number":"3","udprn":"18911251","thoroughfare":"St. Andrews Cross","line_1":"Londis Supermarket","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"3","post_town":"PLYMOUTH","building_name":"","organisation_name":"Londis Supermarket","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Londis Supermarket, 3 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"","dependant_locality":"","delivery_point_suffix":"1F"},{"po_box":"","line_2":"4 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":"Y","building_number":"4","udprn":"18911252","thoroughfare":"St. Andrews Cross","line_1":"Skipton Bldg Soc","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"4","post_town":"PLYMOUTH","building_name":"","organisation_name":"Skipton Bldg Soc","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Skipton Bldg Soc, 4 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"","dependant_locality":"","delivery_point_suffix":"1G"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027623","thoroughfare":"St. Andrews Cross","line_1":"Flat 1","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 1, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 1, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 1","dependant_locality":"","delivery_point_suffix":"3B"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027624","thoroughfare":"St. Andrews Cross","line_1":"Flat 2","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 2, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 2, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 2","dependant_locality":"","delivery_point_suffix":"3D"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027625","thoroughfare":"St. Andrews Cross","line_1":"Flat 3","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 3, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 3, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 3","dependant_locality":"","delivery_point_suffix":"3E"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027626","thoroughfare":"St. Andrews Cross","line_1":"Flat 4","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 4, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 4, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 4","dependant_locality":"","delivery_point_suffix":"3F"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027627","thoroughfare":"St. Andrews Cross","line_1":"Flat 5","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 5, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 5, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 5","dependant_locality":"","delivery_point_suffix":"3G"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027628","thoroughfare":"St. Andrews Cross","line_1":"Flat 6","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 6, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 6, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 6","dependant_locality":"","delivery_point_suffix":"3H"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027629","thoroughfare":"St. Andrews Cross","line_1":"Flat 7","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 7, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 7, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 7","dependant_locality":"","delivery_point_suffix":"3J"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027630","thoroughfare":"St. Andrews Cross","line_1":"Flat 8","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 8, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 8, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 8","dependant_locality":"","delivery_point_suffix":"3L"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027631","thoroughfare":"St. Andrews Cross","line_1":"Flat 9","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 9, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 9, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 9","dependant_locality":"","delivery_point_suffix":"3N"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027632","thoroughfare":"St. Andrews Cross","line_1":"Flat 10","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 10, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"","postcode_incode":"1DN","address":"Flat 10, 8 St. Andrews Cross, PLYMOUTH, PL1 1DN","double_dependant_locality":"","sub_building_name":"Flat 10","dependant_locality":"","delivery_point_suffix":"3P"},{"po_box":"","line_2":"8 St. Andrews Cross","postcode_type":"S","line_3":"","su_organisation_indicator":" ","building_number":"8","udprn":"54027633","thoroughfare":"St. Andrews Cross","line_1":"Flat 11","postcode_outcode":"PL1","postcode_compact":"PL11DN","dependant_thoroughfare":"","premise":"Flat 11, 8","post_town":"PLYMOUTH","building_name":"","organisation_name":"","postcode":"PL1 1DN","department_name":"",...
                                                                                                                                                                                                                    
                                                                                                    

Post Code Lookup - CODE SNIPPETS


curl --location --request GET 'https://zylalabs.com/api/759/uk+post+code+api/481/post+code+lookup&postcode=Required' --header 'Authorization: Bearer YOUR_API_KEY' 

    

API Access Key & Authentication

After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the UK Post Code API REST API, simply include your bearer token in the Authorization header.

Headers

Header Description
Authorization [Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed.


Simple Transparent Pricing

No long term commitments. One click upgrade/downgrade or cancellation. No questions asked.

🚀 Enterprise
Starts at $10,000/Year

  • Custom Volume
  • Dedicated account manager
  • Service-level agreement (SLA)

Customer favorite features

  • ✔︎ Only Pay for Successful Requests
  • ✔︎ Free 7-Day Trial
  • ✔︎ Multi-Language Support
  • ✔︎ One API Key, All APIs.
  • ✔︎ Intuitive Dashboard
  • ✔︎ Comprehensive Error Handling
  • ✔︎ Developer-Friendly Docs
  • ✔︎ Postman Integration
  • ✔︎ Secure HTTPS Connections
  • ✔︎ Reliable Uptime

Zyla API Hub is, in other words, an API MarketPlace. An all-in-one solution for your developing needs. You will be accessing our extended list of APIs with only your user. Also, you won't need to worry about storing API keys, only one API key for all our products is needed.

Prices are listed in USD. We accept all major debit and credit cards. Our payment system uses the latest security technology and is powered by Stripe, one of the world’s most reliable payment companies. If you have any trouble with paying by card, just contact us at [email protected]

Sometimes depending on the bank's fraud protection settings, a bank will decline the validation charge we make when we attempt to be sure a card is valid. We recommend first contacting your bank to see if they are blocking our charges. If more help is needed, please contact [email protected] and our team will investigate further

Prices are based on a recurring monthly subscription depending on the plan selected — plus overage fees applied when a developer exceeds a plan’s quota limits. In this example, you'll see the base plan amount as well as a quota limit of API requests. Be sure to notice the overage fee because you will be charged for each additional request.

Zyla API Hub works on a recurring monthly subscription system. Your billing cycle will start the day you purchase one of the paid plans, and it will renew the same day of the next month. So be aware to cancel your subscription beforehand if you want to avoid future charges.

Just go to the pricing page of that API and select the plan that you want to upgrade to. You will only be charged the full amount of that plan, but you will be enjoying the features that the plan offers right away.

Yes, absolutely. If you want to cancel your plan, simply go to your account and cancel on the Billing page. Upgrades, downgrades, and cancellations are immediate.

You can contact us through our chat channel to receive immediate assistance. We are always online from 9 am to 6 pm (GMT+1). If you reach us after that time, we will be in contact when we are back. Also you can contact us via email to [email protected]

 Service Level
88%
 Response Time
1,118ms

Useful links:


Category:


Tags: