The spectra of heavy quarkonia are studied in two approaches: with the use of the Afonin-Pusenkov representation of the Regge trajectories for the squared excitation energy (ERT) and using the relativistic Hamiltonian with the universal interaction. The parameters of the ERTs are extracted from the experimental masses and in both cases, bottomonium and charmonium, the value of the radial slope appears to be larger than the orbital slope : in particular in bottomonium the orbital slope , the radial slope and in charmonium , ; in both cases the slopes do not depend on the total momentum , while the intercepts are different for the states with different . For the resonances above the threshold, we predict (in MeV) as 3415, 3862(8), 4196(12), 4475(15), and 4720(17); (in MeV) as 3511, 3943(7), 4274(11), and 4553(15); and (in MeV) as 3556, 3.928(4), 4223(6), and 4474(8) for , 1, 2, 3, which are in good agreement with the experimental masses, and for the states the masses (in MeV) as 3857(8), 4197(11), 4479(13), and 4700(13) are predicted. In bottomonium above the threshold, the resonances with the mass 10698(8) MeV and with the mass 10758(3) MeV are obtained.