add procDataForApi function in newspubfunc