Stack Overflow gives 30 latest feeds but you can restrict it to display 5 or 10 as per your need by supplying a AngularJS filter limitTo:10 in the ng-repeat directive.

That’s it folks… the snippet above will display my latest 10 activities from my stack overflow account to anywhere I want. You may try it by replacing your XML feed URL in the service that I have created above.