This article provides a detailed walkthrough on how to use the REST API to combine posts from multiple WordPress sites. It’s also a good example of how to use JavaScript promises and leverage the browser’s local storage API.
Source: Combining Posts From Multiple WordPress Sites Using The REST API