詳細を見る
特徴
高品質で信頼性の高い郵便番号APIサービスを無料で提供しています
アクセス制限なし
CloudflareのCDNを利用しているため、ほとんどのデータはCDNでキャッシュされています。高速な応答と安定したサービスを実現しつつ、利用制限を設けていません。
Cloudflare CDN高速・安定
最先端のWeb技術を利用して約70msでデータの返却が完了する高速なレスポンスを実現。HTTP/3対応、IPv6対応、転送圧縮対応で快適に利用できます。
外部データセンターからの監視を行い、稼働率も公開しています。
地域から検索
地図または都道府県リストから郵便番号を検索できます
地図から選ぶ
地図上の都道府県をクリックすると、その地域の郵便番号一覧が表示されます
都道府県から郵便番号検索
北海道・東北
関東
信州・北陸
東海・近畿
中国・四国
九州・沖縄
デモ
郵便番号を入力して、住所情報を自動取得する実装例
ライブデモ
サンプルコード
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.getElementById('postcode').addEventListener('keyup', function(e) { | |
if (!e.key.match(/[0-9]/)) return; | |
const postcode = e.target.value; | |
if (postcode.length !== 7) return; | |
const url = `https://postcode.teraren.com/postcodes/${postcode}.json`; | |
fetch(url) | |
.then(response => response.json()) | |
.then(json => { | |
document.getElementById('prefecture').value = json.prefecture; | |
document.getElementById('city').value = json.city; | |
document.getElementById('suburb').value = json.suburb; | |
}) | |
.catch(error => { | |
console.error(error); | |
['prefecture', 'city', 'suburb'].forEach(id => { | |
document.getElementById(id).value = ''; | |
}); | |
}); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form> | |
<input type="text" id="postcode" placeholder="1600023" maxlength="7" autofocus> | |
<input type="text" id="prefecture" placeholder="東京都" disabled> | |
<input type="text" id="city" placeholder="新宿区" disabled> | |
<input type="text" id="suburb" placeholder="西新宿" disabled> | |
</form> |
よくある質問
サービスに関するよくある質問と回答
最終更新日: 2025/03/01 19:20:34