Let $r(n)$ denote the sum-of-two-squares function for $n \in \mathbb N$, that is, the number of pairs $(i,j) \in \mathbb Z^2$ such that $i^2+j^2=n$.
The paper Trigonometric polynomials and lattice points by Cilleruelo and Córdoba states (see second paragraph):
It is a well-known fact that $r(n) = O(n^\epsilon)$ for every $\epsilon > 0$.
Can you provide any reference where this result is proved, or discussed, or at least mentioned?
Niven/Zuckerman/Montgomery's An Introduction to the Theory of Numbers (5th ed., 1991) contains two standard (within the field) formulas for the number of such representations, which they call $R(n)$:
Either way we see that $R(n) \le 4\tau(n)$, where $\tau(n)$ is the number of divisors of $n$; and it is well known (but more well known and hopefully easier to find) that $\tau(n) \ll_\varepsilon n^\varepsilon$.
Caution: Niven/Zuckerman/Montgomery use $R(n)$ for the total number of representations of $n$ as the sum of two squares, but they also use $r(n)$ as the number of representations where the two squares are relatively prime; take care when reading.