In this study, we deposited a series of Ag and N co-doped ZnO thin films (ZnAgO:N) with different Ag atomic percentage (at. %) ratios on flexible polyimide (PI) substrates to realize p-type ZnO-based thin films for wearable thermoelectric applications by in situ co-sputtering of ZnO and Ag by RF and DC magnetron sputtering in a mixture of Ar and N2O gases. To evaluate the thermoelectric performance of these ZnAgO:N thin films, we measured the Seebeck coefficient S and electrical conductivity sigma of the thin films with various Ag at. % ratios and calculated the power factor S-2 sigma. These measurements confirmed that the co-doping of Ag and N into ZnO is an effective method for fabricating p-type ZnAgO:N thin films with sigma in the range of about 10(5)-3.3 x 10(6) S/m, as a function of Ag at. % ratio on the flexible PI substrates. In addition, the presence of an optimal Ag at. % ratio that leads to a maximum S-2 sigma for the p-type ZnAgO:N thin films was observed. Raman spectroscopy and x-ray photoelectron spectroscopy revealed that the p-type conductivity in ZnAgO:N thin films originates from the acceptors Ag-Zn and N-O formed by the co-dopants Ag and N. As a result, the S and sigma of the p-type ZnAgO:N thin films were investigated to be affected significantly by the acceptors and defects formed by the Ag and N co-dopants in the thin films. The influence of Ag-Zn and N-O on the appearance of the p-type conductivity in ZnAgO:N thin films and S and sigma of the thin films was intensively studied.