The Goertzel algorithm is designed to determine the intensity (magnitude) of a certain frequency. Frequency is an input parameter.
To get the frequency spectrum of an audio signal (intensity, if the frequency range), you need to execute the Goertzel algorithm for a large series of frequencies, but it would be wise to do one Fourier transform to get similar results.
We can say that the Goertzel algorithm finds one sample of discrete FT.
source share