ABOUT
Public open and free world codebook database, browse or contribute.
Supported CDN outputs are JSON, XML and CSV. Accepted upload formats are XLS, CSV, TEXT, XML and JSON.
FEATURES• CONVERT
• HOSTING
• SHARING
Examples
Test Codebook
Test Protected Codebook
const cbUID = 'Unique Id'; //dbcodebook.com/d/D5CD671C3FE64ABCB27A440A02DB1AAA/
const cbVerson = 'latest'; //1..n|latest|default
const cbSecretKey = 'Secret Key';
const cbOutput = 'json'; //json|xml|csv
const url = 'https://dbcodebook.com/d/'+cbUID+'/'+cbOutput+'/'+cbVerson+'/'+cbSecretKey+'/';
var xhr = new XMLHttpRequest();
xhr.open('GET', url, true);
xhr.responseType = 'json';
xhr.onload = function() {
if (xhr.status === 200) {
/* OK Response */
const dataJson = xhr.response;
console.log('Data:', dataJson);
} else {
/* Bad Response */
console.error(xhr.status, xhr.response);
}
};
xhr.send();