a Web-API wrapper for corporate number system in Japan. Written in Typescript.
Japanese: https://www.houjin-bangou.nta.go.jp/
Specification(written in ja):
https://www.houjin-bangou.nta.go.jp/webapi/
Node.js
npm i houjinbangou-api
You must have an Application ID to use the service. Please proceed this form what request to publish of ID, if you don't have it.
https://www.houjin-bangou.nta.go.jp/webapi/riyo-todokede/
Here is a example code that making request to endpoints.
import { HoujinBangou } from "houjinbangou-api"
const APPLICATION_ID: string = "XXXXXXXXXX"
const HB = new HoujinBangou(APPLICATION_ID)
/* Request endpoints */
async function(){
// /num
let response_num = await HB.num({number: "5050005005266", type: "02"})
// /diff
let response_diff = await HB.diff({from: "2019-06-25", to: "2019-06-25", type: "02"})
// /name
let response_name = await HB.name({ name: "大学", type: "02", mode: "2" })
}
Generated using TypeDoc