DocoDoco

日本語

JavaScript API

DocoDoco can be used easily by calling up the script tag. A particular environment is not required for the installation as it's operated by the client side (web browser).

Request URL


http://api.docodoco.jp/v5/docodoco

Request Tag


Please describe the contents of the HTML file located between <head> and </head>. Regarding the issuance of API key, please refer to  How to use before use.

<script type="text/javascript" src="http://api.docodoco.jp/v5/docodoco?key=API key1" charset="utf-8"></script>

Data Acquisition Function Table

Judgement results can be obtained via the function below. (character code: UTF-8).
The value is displayed based on the information of the environment currently being accessed.

Basic data

Following is a list of data acquired as default when using DocoDoco.
Please refer to the third party data for the optional data.

JavaScript API – Table of basic data acquisition function
Data Function name Description Value
Country SURFPOINT.getContinentCode() Get a matching Continenty code. Loading...
SURFPOINT.getCountryCode() Get a matching country code. Loading...
SURFPOINT.getCountryAName() Get a matching country English name. Loading...
SURFPOINT.getCountryJName() Get a matching country Japanese name. Loading...
Prefecture SURFPOINT.getRegionCode() Get a matching region Japanese name. Loading...
SURFPOINT.getPrefCode() Get a matching prefecture Japanese name. Loading...
SURFPOINT.getPrefAName() Get a matching prefecture name. Loading...
SURFPOINT.getPrefJName() Get a matching prefecture Japanese name. Loading...
SURFPOINT.getPrefLatitude() Get a latitude. Loading...
SURFPOINT.getPrefLongitude() Get a longitude. Loading...
Municipality SURFPOINT.getCityCode() Get a matching city code. Loading...
SURFPOINT.getCityAName() Get a matching city English name. Loading...
SURFPOINT.getCityJName() Get a matching city Japanese name. Loading...
SURFPOINT.getCityLatitude() Get a latitude. Loading...
SURFPOINT.getCityLongitude() Get a longitude. Loading...
Organization SURFPOINT.getBCFlag() Get a company flag. Loading...
SURFPOINT.getOrgCode() Get a matching organization code. Loading...
SURFPOINT.getOrgOfficeCode() Get a matching pmain/branch office flag. Loading...
SURFPOINT.getOrgIndependentCode() Get a matching self-employed business flag. Loading...
SURFPOINT.getOrgName() Get a matching organization name. Loading...
SURFPOINT.getOrgPrefCode() Get a matching prefecture code. Loading...
SURFPOINT.getOrgCityCode() Get a matching city code. Loading...
SURFPOINT.getOrgLatitude() Get a latitude. Loading...
SURFPOINT.getOrgLongitude() Get a longitude. Loading...
SURFPOINT.getOrgZipCode() Get a matching company zipcode. Loading...
SURFPOINT.getOrgAddress() Get a matching company address. Loading...
SURFPOINT.getOrgTel() Get a matching Telephone number. Loading...
SURFPOINT.getOrgFax() Get a matching FAX number. Loading...
SURFPOINT.getOrgIpoType() Get a matching listing classification flag. Loading...
SURFPOINT.getStockTickerNumber() Get a matching stock ticker code. Loading...
SURFPOINT.getOrgDate() Get a matching date of the establishment. Loading...
SURFPOINT.getOrgCapitalCode() Get a matching capital code. Loading...
SURFPOINT.getOrgEmployeesCode() Get a matchingpayroll number code. Loading...
SURFPOINT.getOrgGrossCode() Get a matching sales amount code. Loading...
SURFPOINT.getOrgPresident() Get a matching the name of the president. Loading...
SURFPOINT.getOrgIndustrialCategoryL() Get a matching organization industrial category large classification. Loading...
SURFPOINT.getOrgIndustrialCategoryM() Get a matching organization industrial category meddle classification. Loading...
SURFPOINT.getOrgIndustrialCategoryS() Get a matching organization industrial category small classification. Loading...
SURFPOINT.getOrgIndustrialCategoryT() Get a matching organization industrial category fine classification. Loading...
SURFPOINT.getOrgUrl() Get a matching organization URL. Loading...
SURFPOINT.getOrgDomainName() Get a matching organization domain name.(based on the Organization data) Loading...
SURFPOINT.getDomainType() Get a matching domain type.(based on the IP data) Loading...
SURFPOINT.getOrgEnglishName() Get a matching organization name in English. Loading...
SURFPOINT.getOrgEnglishAddress() Get a matching organization address in English. Loading...
Environment SURFPOINT.getIP() Get a matching IP address. Loading...
SURFPOINT.getLineCode() Get a matching line code. Loading...
SURFPOINT.getLineJName() Get a matching line Japanese name. Loading...
SURFPOINT.getTimeZone() Get a matching tel timezone. Loading....
SURFPOINT.getTelCode() Get a matching tel code.(based on the Organization data) Loading...
SURFPOINT.getDomainName() Get a matching domain name.(based on the IP) Loading...
SURFPOINT.getProxyFlag() Get a proxy flag. Loading...
SURFPOINT.getEncryptedIP() Get a letter string of encrypted IP address. Loading...
Confidence Facter(CF) SURFPOINT.getPrefCF() Get a matching prefecture JCF value. Loading...
SURFPOINT.getCityCF() Get a matching city CF value. Loading...
SURFPOINT.getLineCF() Get a matching line CF value. Loading...


Third party data

Following data is provided as an option of DocoDoco. Please proceed to enable data acquisition at the administrative screen of DocoDoco when using.
Please refer to the corporate number related data for details.

JavaScript API – Table of the third party data acquisition function
Data Function name Description Value
corporate number SURFPOINT.HoujinBangou_3.getHoujinBangou() Get a corporate number Loading...
SURFPOINT.HoujinBangou_3.getHoujinName() Get a trade name or name
(based on corporate number)
Loading...
SURFPOINT.HoujinBangou_3.getHoujinAddress() Get a address of headquarter
(based on corporate number)
Loading...
SURFPOINT.HoujinBangou_3.getHoujinLastUpdate() Get a last update for corporate number related data Loading...


Default Function Table

It is possible to easily re-write the contents by using the function below.

JavaScript API Default Function Tabl
Function name Parameter Description
SURFPOINT.changeContents( string id, string str ) id id attribute Changing the designated id elements
str replacement string
SURFPOINT.getContents( string id, string path ) id id attribute Reading and outputting a designated file
path the file to replace


JavaScript Error


The following information will be returned in case of error.

JavaScript API Error
Type Error Contents Response
Authentication Alert An alert will be displayed when the API key fails to be authenticated.
Contents:このキーは無効、又は別のサイトで使われています。
This key either invalid, or currently being used on another site.
Confirm whether or not the registered domain for the API key is correct.

Page Top