GO:0036010: protein localization to endosome
A process in which a protein is transported to, or maintained in, a location within an endosome.