{
"count": 4,
"items": [
{
"input": "1600 Pennsylvania Ave NW, Washington, DC 20500",
"country_code": "US",
"country": "United States",
"status": "ok",
"lat": 38.8987026,
"lon": -77.0351892,
"formatted_address": "1600 PENNSYLVANIA AVE NW, WASHINGTON, DC, 20500",
"street": "PENNSYLVANIA AVE NW",
"house_number": "1600",
"postcode": "20500",
"city": "WASHINGTON",
"region": "DC",
"precision": "interpolated (address range)",
"score": 1,
"official_id": "TIGER:76225813",
"source": "U.S. Census Bureau Geocoder",
"licence": "Public domain (U.S. Government work)",
"country_detected": true,
"checked_at": "2026-11-23T21:23:23Z",
"response_ms": 555
},
{
"input": "Damrak 1, 1012 LG Amsterdam",
"country_code": "NL",
"country": "Netherlands",
"status": "ok",
"lat": 52.3771445,
"lon": 4.8980385,
"formatted_address": "Damrak 1, 1012LG Amsterdam",
"street": "Damrak",
"house_number": "1",
"postcode": "1012LG",
"city": "Amsterdam",
"region": "Noord-Holland",
"precision": "rooftop (BAG address)",
"score": 1,
"official_id": "BAG:0363200012113669",
"source": "PDOK Locatieserver (BAG)",
"licence": "CC0 1.0",
"country_detected": true,
"checked_at": "2026-11-23T21:23:22Z",
"response_ms": 319
},
{
"input": "Calle Gran Via 28, Madrid",
"country_code": "ES",
"country": "Spain",
"status": "ok",
"lat": 40.42023,
"lon": -3.7019733,
"formatted_address": "CALLE GRAN VIA 28, 28013 Madrid",
"street": "CALLE GRAN VIA",
"house_number": "28",
"postcode": "28013",
"city": "Madrid",
"region": "Comunidad de Madrid",
"precision": "rooftop / entrance",
"score": 1,
"official_id": "Catastro:0549711VK4704H",
"source": "(IGN Spain, Catastro)",
"licence": "CC BY 4.0 (scne.es)",
"country_detected": true,
"checked_at": "2026-11-23T21:23:23Z",
"response_ms": 506
},
{
"input": "10 Downing Street, London SW1A 2AA",
"country_code": "GB",
"country": "United Kingdom",
"status": "ok",
"lat": 51.503541,
"lon": -0.12767,
"formatted_address": "SW1A 2AA, Westminster, England",
"street": null,
"house_number": null,
"postcode": "SW1A 2AA",
"city": "Westminster",
"region": "London",
"precision": "postcode centroid",
"score": 1,
"official_id": "ONS:E01004736",
"extra": {
"lsoa": "Westminster 018C",
"msoa": "Westminster 018",
"ward": "St James's",
"constituency": "Cities of London and Westminster"
},
"source": "(ONS Postcode Directory, OS Open Names)",
"licence": "Open Government Licence v3.0",
"country_detected": true,
"checked_at": "2026-11-23T21:23:22Z",
"response_ms": 107
}
]
}
curl --location --request GET 'https://zylalabs.com/api/15416/us+census+tract+lookup+api/41418/geocoding+api?addresses=1600 Pennsylvania Ave NW, Washington, DC 20500,Damrak 1, 1012 LG Amsterdam,Calle Gran Via 28, Madrid,10 Downing Street, London SW1A 2AA&country=auto&includeCensus=false' --header 'Authorization: Bearer YOUR_API_KEY'
注册后,每个开发者都会被分配一个个人 API 访问密钥,这是一个唯一的字母和数字组合,用于访问我们的 API 端点。要使用 美国人口普查区查询 API 进行身份验证,只需在 Authorization 标头中包含您的 bearer token。
| 标头 | 描述 |
|---|---|
授权
|
必需
应为 Bearer access_key. 订阅后,请查看上方的"您的 API 访问密钥"。
|
将美国地址转换为纬度或经度以及州、县和人口普查区 FIPS、GEOID,数据来自美国人口普查局官方地理编码器,每次最多 100 个
地址与坐标双向转换,覆盖 10 个官方政府地址登记系统:美国人口普查局、加拿大自然资源部、英国国家统计局邮政编码、法国 BAN、西班牙 CartoCiudad、荷兰 BAG、瑞士、挪威、爱沙尼亚、波兰
每个请求最多可返回 100 条结果,具体取决于端点
每次请求都会从公共来源收集实时数据。相同的请求可能会从缓存中提供,最长缓存时间为 6 小时在线a
列表参数可接受多个以逗号分隔的值,例如:london,paris. .
该端点接受以下查询参数,均为可选:addresses、coordinates、country、includeCensus。Addresses:地址、邮政编码或地点名称,每次最多 100 个。系统会根据文本(邮政编码格式、城市或国家名称)检测国家。要强制指定,请设置下方的 Country,或在某一行前加上类似“FR: 8 bd du Port, 80000 Amiens”的前缀。支持:US、CA、GB(邮政编码/地点级别)、FR、ES、NL、CH、NO、EE、PL。Seve 坐标:可选点,格式为“lat,lon”,例如 52.3759,4.8975。返回最近的官方地址(FR、ES、NL、NO、PL)、最近的邮政编码(GB),或县和人口普查区(US)。 .