Get posts data from the server