The Digital Address API provides features such as token issuance, ZIP Code* search, company-specific ZIP Code search, and Digital Address lookup.
*ZIP Code refers to Postal Code
*In this API, all response object keys are always returned. If a corresponding value does not exist, it will be returned as null.
Unified search endpoint for ZIP Code, Unique Corporate ZIP Code, and Digital Address.
Specify one option to perform a search and return address information.
When searching, specify the page number and the number of records to retrieve. If not specified, default values will be applied.
Parameters:
page:Page number (default:1)limit:
Maximum number of records to retrieve (default:1000, max:1000)choikitype:Type of returned town field (If not specified, choikitype=1 is assumed)1:Without brackets2:With bracketssearchtype:Search target (If not specified, searchtype=1 is assumed)1:Search for ZIP Code, Unique Corporate ZIP Code, and Digital Address2:Search for ZIP Code and Digital Address| search_code required | string
|
| page | number Page number (default:1) |
| limit | number Maximum number of records to retrieve (default:1000, max:1000) |
| ec_uid | string Provider's user ID (query parameter) |
| choikitype | number Specify the fields to return (If not specified, choikitype=1 is assumed)
|
| searchtype | number Specify the Search Method (If not specified, searchtype=1 is assumed)
|
{- "addresses": [
- {
- "dgacode": null,
- "zip_code": "0100492",
- "pref_code": "05",
- "pref_name": "秋田県",
- "pref_kana": null,
- "pref_roma": null,
- "city_code": "05368",
- "city_name": "南秋田郡大潟村",
- "city_kana": null,
- "city_roma": null,
- "town_name": "字西",
- "town_kana": null,
- "town_roma": null,
- "biz_name": "あきたこまち生産者協会",
- "biz_kana": "アキタコマチセイサンシヤキヨウカイ",
- "biz_roma": null,
- "block_name": "4丁目88",
- "other_name": null,
- "address": null,
- "longitude": null,
- "latitude": null
}
], - "searchtype": "bizzipcode",
- "limit": 10,
- "count": 1,
- "page": 1
}Search for the corresponding ZIP Code and address information from part of the address.
| ec_uid | string Provider's user ID (query parameter) |
page parameter and the maximum number of records to retrieve with the limit parameterpage and limit are omitted, default values (page=1, limit=1000) will be appliedpref_code and pref_name are requested, pref_code will take prioritycity_code and city_name are requested, city_code will take priority| pref_code | string Prefecture Code |
| pref_name | string Prefecture Name |
| pref_kana | string Prefecture Name (Kana) |
| pref_roma | string Prefecture Name (Romanized) |
| city_code | string City Code |
| city_name | string City Name |
| city_kana | string City Name (Kana) |
| city_roma | string City Name (Romanized) |
| town_name | string Town |
| town_kana | string Town (Kana) |
| town_roma | string Town (Romanized) |
| freeword | string Free Word |
| flg_getcity | number Flag for Retrieving City List Only (default:0, 0:Retrieve all information, 1:Retrieve city information only) |
| flg_getpref | number Flag for Retrieving Prefecture List Only (default:0, 0:Retrieve all information, 1:Retrieve prefecture information only) |
| page | integer Page Number (default:1) |
| limit | integer Maximum Number of Records to Retrieve (default:1000, max:1000) |
都道府県コードと市区町村コード
{- "pref_code": "13",
- "city_code": "13102",
- "flg_getcity": 0,
- "flg_getpref": 0,
- "page": 1,
- "limit": 100
}{- "addresses": [
- {
- "zip_code": "1040044",
- "pref_code": "13",
- "pref_name": "東京都",
- "pref_kana": "トウキョウト",
- "pref_roma": "TOKYO",
- "city_code": "13102",
- "city_name": "中央区",
- "city_kana": "チュウオウク",
- "city_roma": "CHUO-KU",
- "town_name": "明石町",
- "town_kana": "アカシチョウ",
- "town_roma": "AKASHICHO"
}, - {
- "zip_code": "1040042",
- "pref_code": "13",
- "pref_name": "東京都",
- "pref_kana": "トウキョウト",
- "pref_roma": "TOKYO",
- "city_code": "13102",
- "city_name": "中央区",
- "city_kana": "チュウオウク",
- "city_roma": "CHUO-KU",
- "town_name": "入船一丁目",
- "town_kana": "イリフネ 1",
- "town_roma": "IRIFUNE 1"
}
], - "level": 2,
- "limit": 100,
- "count": 2,
- "page": 1
}Based on the grant_type of client_credentials in OAuth2.0, the API returns a usage token in response to the token request.
By specifying the client ID and secret key, which were obtained in advance through organization and system registration, a request is made.
If the verification result is valid, a JWT-format token is returned.
| x-forwarded-for required | string Source IP address |
| User-Agent required | string Client user agent string |
| grant_type required | string grant_type (fixed as "client_credentials") |
| client_id required | string Client ID |
| secret_key required | string Secret Key |
{- "grant_type": "client_credentials",
- "client_id": "TEST7t6fj7eqC5v6UDaHlpvvtesttest",
- "secret_key": "testGzhSdzpZ1muyICtest0123456789"
}{- "scope": "J1",
- "token_type": "jwt",
- "expires_in": 123456,
- "token": "{アクセストークン}"
}