Abstract In this paper, the Dirac equation with the q-deformed Scarf potential for spin symmetry is solved for the arbitrary spin-orbit quantum number k, in the presence of Coulomb-like potential tensor. Using the Feynman path integral formalism and the Pekeris approximation of the centrifugal term, we obtain the bound state energy eigenvalues and the associated spinor of the Dirac particle. Furthermore, this
method is used to determine the spectrum of two diatomic molecules Li2 (61 Πu ) and KRb(B −1 Π). The obtained results are compared to the experimental and numerical ones.