dnbvid.getData("paapi967","json","T",{},function(dnb_Data){//Mapping goes here if (dnb_Data.status == 200){ //status == 200 represents a match//Basic example: myVar = dnb_Data.duns ? dnb_Data.duns : "" //Advanced example: myVar= dnb_Data.naicsCodes ? dnb_Data.naicsCodes.substr(1,5) : "" } //The empty array between"T" and "function(dnb_Data)" can be used to pass back data //Example: {"p1": "value1", "p2":variable2} //"value1" will be recorded on our end as-is //variable2 will be recorded as thevalue of said variable, assuming it is defined //"p1" through "p10" exist });