{"id":4223,"date":"2021-07-21T01:53:34","date_gmt":"2021-07-21T01:53:34","guid":{"rendered":"https:\/\/www.leadshook.com\/help\/?p=4223"},"modified":"2024-02-14T11:40:10","modified_gmt":"2024-02-14T11:40:10","slug":"postcodes-io-api-integration","status":"publish","type":"post","link":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/","title":{"rendered":"Postcodes.io API Integration"},"content":{"rendered":"\n<p class=\"has-luminous-vivid-amber-background-color has-background wp-block-paragraph\"><strong>Please Note:<\/strong> This article is provided for your convenience and to make it easy to implement based on our limited experience and testing.\u00a0 Ideally, you should work with your developer.\u00a0 Our standard free support does not extend to custom scripts and coding.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Postcodes.io is a postcode &amp; geolocation API for the UK<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Free, Open Source and based solely on Open Data<\/li>\n\n\n\n<li>allows UK postcode data to be queried over a JSON HTTP API.<\/li>\n\n\n\n<li>is a free postcode lookup API and geocoder for the UK.<\/li>\n\n\n\n<li>does not require any authentication.<\/li>\n\n\n\n<li><a href=\"https:\/\/postcodes.io\/\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/postcodes.io\/<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Postcode Lookup<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li>This uniquely identifies a postcode.<\/li>\n\n\n\n<li>Returns a single postcode entity for a given postcode (case, space insensitive).<\/li>\n\n\n\n<li>If no postcode is found it returns &#8220;404&#8221; response code.<\/li>\n\n\n\n<li><a href=\"https:\/\/postcodes.io\/docs\" target=\"_blank\" rel=\"noreferrer noopener\">https:\/\/postcodes.io\/docs<\/a><\/li>\n\n\n\n<li><strong>Method = GET<\/strong><\/li>\n\n\n\n<li><strong>URL = https:\/\/api.postcodes.io\/postcodes\/{postcode}<\/strong><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Video tutorial:<\/h2>\n\n\n\n<figure class=\"wp-block-embed is-type-video is-provider-vimeo wp-block-embed-vimeo\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"LeadsHook - Postcodes API Integration.mp4\" src=\"https:\/\/player.vimeo.com\/video\/577826816?dnt=1&amp;app_id=122963\" width=\"980\" height=\"613\" frameborder=\"0\" allow=\"autoplay; fullscreen; picture-in-picture\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Please Note: This article is provided for your convenience and to make it easy to implement based on our limited experience and testing.\u00a0 Ideally, you should work with your developer.\u00a0 Our standard free support does not extend to custom scripts and coding. Postcodes.io is a postcode &amp; geolocation API for the UK Postcode Lookup Video [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[29,12,281],"tags":[844,546,843],"class_list":["post-4223","post","type-post","status-publish","format-standard","hentry","category-general","category-leadshook","category-webhooks","tag-api-integration","tag-api-node","tag-postcodes-io"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.8 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Postcodes.io API Integration - LeadsHook Knowledge Base<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Postcodes.io API Integration - LeadsHook Knowledge Base\" \/>\n<meta property=\"og:description\" content=\"Please Note: This article is provided for your convenience and to make it easy to implement based on our limited experience and testing.\u00a0 Ideally, you should work with your developer.\u00a0 Our standard free support does not extend to custom scripts and coding. Postcodes.io is a postcode &amp; geolocation API for the UK Postcode Lookup Video [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/\" \/>\n<meta property=\"og:site_name\" content=\"LeadsHook Knowledge Base\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/leadshook\/\" \/>\n<meta property=\"article:published_time\" content=\"2021-07-21T01:53:34+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-02-14T11:40:10+00:00\" \/>\n<meta name=\"author\" content=\"Nik T\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@leadshook\" \/>\n<meta name=\"twitter:site\" content=\"@leadshook\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Nik T\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/\"},\"author\":{\"name\":\"Nik T\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/4bfe37d814563cc729828b7055313f4d\"},\"headline\":\"Postcodes.io API Integration\",\"datePublished\":\"2021-07-21T01:53:34+00:00\",\"dateModified\":\"2024-02-14T11:40:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/\"},\"wordCount\":143,\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"keywords\":[\"API Integration\",\"API Node\",\"Postcodes.io\"],\"articleSection\":[\"General\",\"LeadsHook\",\"Webhooks\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/\",\"name\":\"Postcodes.io API Integration - LeadsHook Knowledge Base\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\"},\"datePublished\":\"2021-07-21T01:53:34+00:00\",\"dateModified\":\"2024-02-14T11:40:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/postcodes-io-api-integration\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Postcodes.io API Integration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#website\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"name\":\"LeadsHook Knowledge Base\",\"description\":\"LeadsHook Training &amp; Technical Help\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#organization\",\"name\":\"LeadsHook\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"contentUrl\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/wp-content\\\/uploads\\\/2018\\\/12\\\/leadshook-logo.png\",\"width\":350,\"height\":83,\"caption\":\"LeadsHook\"},\"image\":{\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/leadshook\\\/\",\"https:\\\/\\\/x.com\\\/leadshook\",\"https:\\\/\\\/www.linkedin.com\\\/showcase\\\/leadshook\\\/\"]},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/#\\\/schema\\\/person\\\/4bfe37d814563cc729828b7055313f4d\",\"name\":\"Nik T\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g\",\"caption\":\"Nik T\"},\"sameAs\":[\"http:\\\/\\\/www.LeadsHook.com\"],\"url\":\"https:\\\/\\\/www.leadshook.com\\\/help\\\/author\\\/nik\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Postcodes.io API Integration - LeadsHook Knowledge Base","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/","og_locale":"en_US","og_type":"article","og_title":"Postcodes.io API Integration - LeadsHook Knowledge Base","og_description":"Please Note: This article is provided for your convenience and to make it easy to implement based on our limited experience and testing.\u00a0 Ideally, you should work with your developer.\u00a0 Our standard free support does not extend to custom scripts and coding. Postcodes.io is a postcode &amp; geolocation API for the UK Postcode Lookup Video [&hellip;]","og_url":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/","og_site_name":"LeadsHook Knowledge Base","article_publisher":"https:\/\/www.facebook.com\/leadshook\/","article_published_time":"2021-07-21T01:53:34+00:00","article_modified_time":"2024-02-14T11:40:10+00:00","author":"Nik T","twitter_card":"summary_large_image","twitter_creator":"@leadshook","twitter_site":"@leadshook","twitter_misc":{"Written by":"Nik T","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/#article","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/"},"author":{"name":"Nik T","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/4bfe37d814563cc729828b7055313f4d"},"headline":"Postcodes.io API Integration","datePublished":"2021-07-21T01:53:34+00:00","dateModified":"2024-02-14T11:40:10+00:00","mainEntityOfPage":{"@id":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/"},"wordCount":143,"publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"keywords":["API Integration","API Node","Postcodes.io"],"articleSection":["General","LeadsHook","Webhooks"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/","url":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/","name":"Postcodes.io API Integration - LeadsHook Knowledge Base","isPartOf":{"@id":"https:\/\/www.leadshook.com\/help\/#website"},"datePublished":"2021-07-21T01:53:34+00:00","dateModified":"2024-02-14T11:40:10+00:00","breadcrumb":{"@id":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.leadshook.com\/help\/postcodes-io-api-integration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.leadshook.com\/help\/"},{"@type":"ListItem","position":2,"name":"Postcodes.io API Integration"}]},{"@type":"WebSite","@id":"https:\/\/www.leadshook.com\/help\/#website","url":"https:\/\/www.leadshook.com\/help\/","name":"LeadsHook Knowledge Base","description":"LeadsHook Training &amp; Technical Help","publisher":{"@id":"https:\/\/www.leadshook.com\/help\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.leadshook.com\/help\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.leadshook.com\/help\/#organization","name":"LeadsHook","url":"https:\/\/www.leadshook.com\/help\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/","url":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","contentUrl":"https:\/\/www.leadshook.com\/help\/wp-content\/uploads\/2018\/12\/leadshook-logo.png","width":350,"height":83,"caption":"LeadsHook"},"image":{"@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/leadshook\/","https:\/\/x.com\/leadshook","https:\/\/www.linkedin.com\/showcase\/leadshook\/"]},{"@type":"Person","@id":"https:\/\/www.leadshook.com\/help\/#\/schema\/person\/4bfe37d814563cc729828b7055313f4d","name":"Nik T","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/48d53e68db0b1db1cd5c54a750130fb2ee0c663306ff1bd434373f1a368ef7a0?s=96&d=mm&r=g","caption":"Nik T"},"sameAs":["http:\/\/www.LeadsHook.com"],"url":"https:\/\/www.leadshook.com\/help\/author\/nik\/"}]}},"_links":{"self":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/4223","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/comments?post=4223"}],"version-history":[{"count":12,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/4223\/revisions"}],"predecessor-version":[{"id":6086,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/posts\/4223\/revisions\/6086"}],"wp:attachment":[{"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/media?parent=4223"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/categories?post=4223"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.leadshook.com\/help\/wp-json\/wp\/v2\/tags?post=4223"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}