Japanese postal code API served as static JSON via GitHub Pages

AI-generated summary of reporting by GitHub Opensource Projects. Read the original for the full story.

Why it matters

Developers needing Japanese address autocomplete can now use a free, serverless static JSON API instead of scraping Japan Post data or paying for a hosted lookup service.

Read this as

A developer has built jp-postal-code-api, a free service that lets programs look up Japanese addresses by the country's seven-digit postal codes. Instead of running servers, it converts official Japan Post data into plain JSON files and hosts them on GitHub Pages, with a daily automated refresh. Each lookup returns the address in Japanese kanji, kana phonetics, and English at once. It matters mainly to developers building forms or apps for the Japanese market.

This project removes a recurring cost for anyone shipping products in Japan: maintaining a postal-code database or paying a third-party address lookup provider. It is free, served as static files from GitHub Pages with no infrastructure to run, and updates daily from official Japan Post data. The main risk is dependence on someone else's GitHub Pages instance, which the project mitigates by allowing anyone to fork the repository and host their own copy.

jp-postal-code-api serves Japan Post data as static JSON at https://jp-postal-code-api.ttskch.com/api/v1/{postal_code}.json, accepting seven-digit codes with or without hyphens. Responses include ja, kana, and en address fields plus a prefecture code; multi-municipality codes like 6180000 (spanning Kyoto and Osaka) return an addresses array, and address4 is always present even when empty. A scheduled GitHub Action regenerates the JSON daily. It is built in modern PHP and succeeds the unmaintained madefor/postal-code-api project.

Read the original

This summary exists to save you time, not to replace the source.

Key terms

jp-postal-code-api Japan Post GitHub Pages GitHub Actions madefor/postal-code-api

Was this summary useful?

One click, anonymous. It tells us which summaries to re-run.

Related reading