英国邮政编码检索

英国邮政编码检索

专用API
服务商 服务商: APITier
【更新时间: 2024.04.01】 UK POSTCODE API 是一种专门设计用于处理和检索与英国邮政编码相关的数据的应用程序编程接口。
服务星级:6星
⭐ ⭐ ⭐ ⭐ ⭐ ⭐ 🌟
调用次数
0
集成人数
0
商用人数
0
! SLA: N/A
! 响应: N/A
! 适用于个人&企业
收藏
×
完成
取消
×
书签名称
确定
<
产品介绍
>

什么是英国邮政编码检索?

 

服务详情

UK Postcode API 是一种网络服务,它允许开发者通过编程方式查询和使用英国的邮政编码数据。这些API通常提供多种功能,如地址自动完成、邮政编码查找、地址详情获取、地理编码、距离计算等。这些服务对于构建涉及地址和位置信息的应用程序非常有用,例如电子商务网站、物流管理系统、地图服务等。

 

核心功能

  • 邮政编码查询API
  • 地址查询API
  • UDPRN查找
  • 地址自动建议API

 

 

应用场景

地址验证
地址验证
该 API 可用于验证给定的邮政编码和地址是否匹配,有助于防止错误并提高邮寄和运输信息的准确性。
营销和广告
营销和广告
该 API 可用于根据邮政编码或人口统计信息将广告和营销活动定位到特定区域。
风险评估
风险评估
该API可用于评估风险并根据位置做出决策,它可用于保险行业根据邮政编码给出报价。
零售和配送
零售和配送
零售商和送货公司可以使用该 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
>
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

<
最可能同场景使用的其他API
>