8. If integers $x, y$ satisfy $\frac{1}{x}-\frac{1}{y}=\frac{1}{2023}$, then the number of such integer pairs $(x, y)$ is $\qquad$ pairs.
$$
\begin{array}{l}
\frac{1}{x}-\frac{1}{y}=\frac{y-x}{x y}=\frac{1}{2023} \Rightarrow x y+2023 x-2023 y=0 \\
\Rightarrow(x-2023)(y+2023)=-2023^{2}=-7^{2} \times 17^{4} .
\end{array}
$$

When $x-2023=-2023, y+2023=2023$, then $x=y=0$, which is not valid.
Therefore, the number of integer pairs $(x, y)$ that satisfy the condition is $2 \times 3 \times 5-1=29$.