英國郵政編碼檢索
專用API
【更新時間: 2024.04.01】
UK POSTCODE API 是一種專門設計用于處理和檢索與英國郵政編碼相關的數據的應用程序編程接口。
咨詢
去服務商官網采購>
|
瀏覽次數
10
采購人數
0
試用次數
0
試用
收藏
×
完成
取消
×
書簽名稱
確定
|
相似API
- API詳情
- 接口文檔
- 使用指南
- 常見 FAQ
- 關于我們
- 相關推薦

產品介紹

什么是英國郵政編碼檢索?
服務詳情
UK Postcode API 是一種網絡服務,它允許開發者通過編程方式查詢和使用英國的郵政編碼數據。這些API通常提供多種功能,如地址自動完成、郵政編碼查找、地址詳情獲取、地理編碼、距離計算等。這些服務對于構建涉及地址和位置信息的應用程序非常有用,例如電子商務網站、物流管理系統、地圖服務等。
核心功能
- 郵政編碼查詢API
- 地址查詢API
- UDPRN查找
- 地址自動建議API
應用場景
地址驗證
營銷和廣告
風險評估
零售和配送
什么是英國郵政編碼檢索接口?
由服務使用方的應用程序發起,以Restful風格為主、通過公網HTTP協議調用英國郵政編碼檢索,從而實現程序的自動化交互,提高服務效率。

使用指南

按郵政編碼查詢郵編信息接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/postcodes/PL1 1AR&x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq' | json_pp
按地址查詢郵編信息接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/addresses?query=Bridge Road&page=0&limit=50&x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq' |
按UDPRN編碼查詢郵編信息接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/udprn/64983?x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq'
自動補全地址接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/addresses/autocomplete?query=Cottage&x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq'

產品問答

?
郵政編碼查找如何工作?
郵政編碼查找是一種搜索功能,允許用戶輸入郵政編碼并從下拉列表中選擇正確的地址。選擇后,地址字段將填寫完整的地址。
?
使用英國郵政編碼查找 API 的好處?
使用英國郵政編碼查找 API 對于企業和客戶來說都有很多好處。它提供了易于使用的搜索功能,可顯著加快在線輸入地址的過程。它還通過準確地向客戶提供有關其位置的最新地理信息來減少錯誤。此外,它還可以通過為客戶每次搜索時提供準確的地址來幫助確保數據質量,使企業更輕松地高效地提供產品和服務。

關于我們

APITier
企業
APITier公司是一家領先的技術解決方案提供商,專注于為企業提供定制化的API管理和集成服務。公司通過其創新的平臺,幫助客戶優化數據流、提高運營效率,并確保數據安全。APITier致力于通過先進的技術,推動企業數字化轉型,實現業務增長。
聯系信息
服務時間:
09:00~19:00
電話號碼:
07611451
API接口列表
按郵政編碼查詢郵編信息
按地址查詢郵編信息
UDPRN編碼查詢郵編信息
地址自動建議
按郵政編碼查詢郵編信息
1.1 簡要描述
“郵政編碼查找”API 獲取給定英國郵政編碼的地址。此 API 提供了一個 JSON 接口來搜索英國地址的郵政編碼。
1.2 請求URL
https://postcode.apitier.com/v1/postcodes
1.3 請求方式
GET
1.4 入參
參數名 | 參數類型 | 默認值 | 是否必傳 | 描述 |
---|---|---|---|---|
postcode | String | PL1 1AR | 是 | 郵編 |
x-api-key | String | 3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq | 是 | 密鑰 |
1.5 出參
參數名 | 參數類型 | 默認值 | 描述 |
---|---|---|---|
status | int | 200 | 狀態碼 |
message | string | Success | 返回消息 |
noOfItems | int | 0 | 數據條數 |
result.postcode | string | PL1_1AR | 郵編 |
result.district | string | Plymouth | 地區 |
result.ward | string | St_Peter_and_the_Waterfront_PL1_1AR | 區 |
result.county | string | Devon | 縣 |
result.country | string | England | 國家 |
result.geocode.eastings | string | 247702 | 中央經線向東距離 |
result.geocode.northings | string | 0054920 | 中央經線向北距離 |
result.geocode.latitude | string | 50.374411 | 經度 |
result.geocode.longitude | string | -4.143138 | 緯度 |
addresses[0].po_box | string | ||
addresses[0].line_2 | string | CopthorneHotel | |
addresses[0].postcode_type | string | ArmadaWay | |
addresses[0].line_3 | string | ArmadaWay | |
addresses[0].su_organisation_indicator | string | ||
addresses[0].building_number | string | ||
addresses[0].udprn | string | 18911185 | |
addresses[0].thoroughfare | string | ArmadaWay | |
addresses[0].line_1 | string | CopthorneHotelsLtd | |
addresses[0].postcode_outcode | string | PL1 | |
addresses[0].postcode_compact | string | PL11AR | |
addresses[0].dependant_thoroughfare | string | ||
addresses[0].premise | string | CopthorneHotel | |
addresses[0].post_town | string | PLYMOUTH | |
addresses[0].building_name | string | CopthorneHotel | |
addresses[0].organisation_name | string | CopthorneHotelsLtd | |
addresses[0].postcode | string | PL11AR | |
addresses[0].department_name | string | ||
addresses[0].postcode_incode | string | 1AR | |
addresses[0].address | string | CopthorneHotelsLtd | |
addresses[0].double_dependant_locality | string | ||
addresses[0].sub_building_name | string | ||
addresses[0].dependant_locality | string | ||
addresses[0].delivery_point_suffix | string | 1A |
1.6 錯誤碼
錯誤碼 | 錯誤信息 | 描述 |
---|---|---|
200 | success | 成功 |
1.7 示例
請求參數{ "postcode": "PL1 1AR", "x-api-key": "3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq" } 返回參數 { "status": "200", "message": "Success", "noOfItems": "6", "result.postcode": "PL1_1AR", "result.district": "Plymouth", "result.ward": "St_Peter_and_the_Waterfront_PL1_1AR", "result.county": "Devon", "result.country": "England", "result.geocode.eastings": "247702", "result.geocode.northings": "0054920", "result.geocode.latitude": "50.374411", "result.geocode.longitude": "-4.143138", "addresses[0].line_2": "CopthorneHotel", "addresses[0].postcode_type": "ArmadaWay", "addresses[0].line_3": "ArmadaWay", "addresses[0].udprn": "18911185", "addresses[0].thoroughfare": "ArmadaWay", "addresses[0].line_1": "CopthorneHotelsLtd", "addresses[0].postcode_outcode": "PL1", "addresses[0].postcode_compact": "PL11AR", "addresses[0].premise": "CopthorneHotel", "addresses[0].post_town": "PLYMOUTH", "addresses[0].building_name": "CopthorneHotel", "addresses[0].organisation_name": "CopthorneHotelsLtd", "addresses[0].postcode": "PL11AR", "addresses[0].postcode_incode": "1AR", "addresses[0].address": "CopthorneHotelsLtd", "addresses[0].delivery_point_suffix": "1A" } 錯誤碼 { "200": "success" }
按地址查詢郵編信息
2.1 簡要描述
英國的地址查找是查找該國特定位置的完整郵政地址的過程。
2.2 請求URL
https://postcode.apitier.com/v1/addresses
2.3 請求方式
GET
2.4 入參
參數名 | 參數類型 | 默認值 | 是否必傳 | 描述 |
---|---|---|---|---|
query | String | Bridge Road | 是 | 查詢參數 |
x-api-key | String | 3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq | 是 | 密鑰 |
limit | Int | 50 | 是 | 返回最大條數 |
page | Int | 是 | 頁數 |
2.5 出參
參數名 | 參數類型 | 默認值 | 描述 |
---|---|---|---|
status | int | 200 | 狀態碼 |
message | string | Success | 返回消息 |
total | int | 2 | 數據總數 |
result.hits[0].address | string | TheBridges | 地址 |
result.hits[0].building_name | string | TheBridges | 建筑名稱 |
result.hits[0].building_number | string | 建筑物編號 | |
result.hits[0].line_1 | string | TheBridges | 線路_1 |
result.hits[0].line_2 | string | BridgeRoad | 線路_2 |
result.hits[0].line_3 | string | Bishopstone | 線路_3 |
result.hits[0].organisation_name | string | 機構名稱 | |
result.hits[0].po_box | string | HK860 | 郵政信箱 |
result.hits[0].post_town | string | SALISBURY | 驛站 |
result.hits[0].postcode | string | SP54BS | 郵政編碼 |
result.hits[0].premise | string | TheBridges | 前提 |
result.hits[0].sub_building_name | string | 子建筑名稱 | |
result.hits[0].thoroughfare | string | BridgeRoad | 通道 |
result.hits[0].udprn | string | 23063218 | UDPRN |
2.6 錯誤碼
錯誤碼 | 錯誤信息 | 描述 |
---|---|---|
200 | success | 成功 |
2.7 示例
請求參數{ "query": "Bridge Road", "x-api-key": "3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq", "limit": "50", "page": "" } 返回參數 { "status": "200", "message": "Success", "total": "2", "result.hits[0].address": "TheBridges", "result.hits[0].building_name": "TheBridges", "result.hits[0].line_1": "TheBridges", "result.hits[0].line_2": "BridgeRoad", "result.hits[0].line_3": "Bishopstone", "result.hits[0].po_box": "HK860", "result.hits[0].post_town": "SALISBURY", "result.hits[0].postcode": "SP54BS", "result.hits[0].premise": "TheBridges", "result.hits[0].thoroughfare": "BridgeRoad", "result.hits[0].udprn": "23063218" } 錯誤碼 { "200": "success" }
UDPRN編碼查詢郵編信息
3.1 簡要描述
通過UDPRN編碼查詢英國相關郵編信息數據
3.2 請求URL
https://postcode.apitier.com/v1/udprn
3.3 請求方式
GET
3.4 入參
參數名 | 參數類型 | 默認值 | 是否必傳 | 描述 |
---|---|---|---|---|
UDPRN | String | 64983 | 是 | 英國 UDPRN |
x-api-key | String | 3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq | 是 | 密鑰 |
3.5 出參
參數名 | 參數類型 | 默認值 | 描述 |
---|---|---|---|
status | int | 200 | 狀態碼 |
message | string | Success | 返回消息 |
result.building_number | string | 9 | 建筑物編號 |
result.premise | string | 9 | 前提 |
result.building_name | string | 建筑物名稱 | |
result.sub_building_name | string | 子建筑物名稱 | |
result.organisation_name | string | 機構名稱 | |
result.line_1 | string | 9MarchburnPlace | 線路_1 |
result.line_2 | string | 線路_2 | |
result.line_3 | string | 線路_3 | |
result.postcode | string | AB167PL | 郵政編碼 |
result.thoroughfare | string | MarchburnPlace | 通道 |
result.post_town | string | ABERDEEN | 驛站 |
result.po_box | string | 9 | 郵政信箱 |
result.ward | string | Northfield/MastrickNorth | 選區 |
result.district | string | AberdeenCity | 區 |
result.county | string | Scotland | 縣 |
result.country | string | Scotland | 國家 |
result.udprn | string | 64983 | udprn編號 |
result.address | string | 9_Marchburn_Place_ABERDEEN_AB16_7PL_9 | 地址 |
result.postcode_incode | string | 7PL | 郵政編碼_輸入代碼 |
result.postcode_outcode | string | AB16 | 郵政編碼_輸出代碼 |
result.postcode_compact | string | AB167PL | 郵政編碼_縮寫 |
result.postcode_type | string | S | 郵政編碼類型 |
result.department_name | string | 部門名稱 | |
result.su_organisation_indicator | string | 用戶組織 | |
result.double_dependant_locality | string | 雙依賴局部性 | |
result.dependant_thoroughfare | string | 依賴通道 | |
result.dependant_locality | string | ||
result.delivery_point_suffix | int | 1Q | 交貨點后綴 |
result.geocode.eastings | string | 390246 | 中央經度向東距離 |
result.geocode.northings | string | 0808744 | 中央經度向北距離 |
result.geocode.latitude | string | 57.169420 | 經度 |
result.geocode.longitude | string | -2.162936 | 緯度 |
3.6 錯誤碼
錯誤碼 | 錯誤信息 | 描述 |
---|---|---|
200 | success | 成功 |
3.7 示例
請求參數{ "UDPRN": "64983", "x-api-key": "3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq" } 返回參數 { "status": "200", "message": "Success", "result.building_number": "9", "result.premise": "9", "result.line_1": "9MarchburnPlace", "result.postcode": "AB167PL", "result.thoroughfare": "MarchburnPlace", "result.post_town": "ABERDEEN", "result.po_box": "9", "result.ward": "Northfield/MastrickNorth", "result.district": "AberdeenCity", "result.county": "Scotland", "result.country": "Scotland", "result.udprn": "64983", "result.address": "9_Marchburn_Place_ABERDEEN_AB16_7PL_9", "result.postcode_incode": "7PL", "result.postcode_outcode": "AB16", "result.postcode_compact": "AB167PL", "result.postcode_type": "S", "result.delivery_point_suffix": "1Q", "result.geocode.eastings": "390246", "result.geocode.northings": "0808744", "result.geocode.latitude": "57.169420", "result.geocode.longitude": "-2.162936" } 錯誤碼 { "200": "success" }
地址自動建議
4.1 簡要描述
“地址自動建議”API 用于建議給定搜索詞的地址結果。此 API 提供 JSON 接口來提取完整??或部分地址查詢的地址建議。
4.2 請求URL
https://postcode.apitier.com/v1/addresses/autocomplete
4.3 請求方式
GET
4.4 入參
參數名 | 參數類型 | 默認值 | 是否必傳 | 描述 |
---|---|---|---|---|
x-api-key | String | 3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq | 是 | 密鑰 |
query | String | Cottage | 是 | 查詢關鍵字 |
4.5 出參
參數名 | 參數類型 | 默認值 | 描述 |
---|---|---|---|
status | int | 200 | 狀態碼 |
message | string | Success | 返回消息 |
result.total | int | 2 | 返回數據總數 |
result.hits[0].address | string | Cottage_1_23_Cross_Hill_Hunmanby | 地址 |
result.hits[0].udprn | string | 55109741 | udprn編碼 |
result.hits[0].urls.findByUDPRN | string | https://postcode.apitier.com/v1/udprn/55109741?x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq | 網址 |
4.6 錯誤碼
錯誤碼 | 錯誤信息 | 描述 |
---|---|---|
200 | success | 200 |
4.7 示例
請求參數{ "x-api-key": "3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq", "query": "Cottage" } 返回參數 { "status": "200", "message": "Success", "result.total": "2", "result.hits[0].address": "Cottage_1_23_Cross_Hill_Hunmanby", "result.hits[0].udprn": "55109741", "result.hits[0].urls.findByUDPRN": "https://postcode.apitier.com/v1/udprn/55109741?x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq" } 錯誤碼 { "200": "success" }

使用指南

按郵政編碼查詢郵編信息接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/postcodes/PL1 1AR&x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq' | json_pp
按地址查詢郵編信息接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/addresses?query=Bridge Road&page=0&limit=50&x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq' |
按UDPRN編碼查詢郵編信息接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/udprn/64983?x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq'
自動補全地址接口Curl請求示例代碼:
curl --location --request GET 'https://postcode.apitier.com/v1/addresses/autocomplete?query=Cottage&x-api-key=3apCJpHJY59mF4oOqCzuz2sbGeBfZBYi7S3gzAqq'

依賴服務


產品問答

?
郵政編碼查找如何工作?
郵政編碼查找是一種搜索功能,允許用戶輸入郵政編碼并從下拉列表中選擇正確的地址。選擇后,地址字段將填寫完整的地址。
?
使用英國郵政編碼查找 API 的好處?
使用英國郵政編碼查找 API 對于企業和客戶來說都有很多好處。它提供了易于使用的搜索功能,可顯著加快在線輸入地址的過程。它還通過準確地向客戶提供有關其位置的最新地理信息來減少錯誤。此外,它還可以通過為客戶每次搜索時提供準確的地址來幫助確保數據質量,使企業更輕松地高效地提供產品和服務。

關于我們

APITier
企業
APITier公司是一家領先的技術解決方案提供商,專注于為企業提供定制化的API管理和集成服務。公司通過其創新的平臺,幫助客戶優化數據流、提高運營效率,并確保數據安全。APITier致力于通過先進的技術,推動企業數字化轉型,實現業務增長。
聯系信息
服務時間:
09:00~19:00
電話號碼:
07611451