Get blog post from main domain to sub domain using API Tester

Hello,

Can you please assist us to get blog posts from Main Domain to Sub Domain using API Tester. We just want to display blogs posts of the Main Domain to Sub Domain (Title, Image, Excerpt and read more link). On click, posts open to the Main Domain.

Hoping for the solution.

Thank you and best regards.

GET https://your-domain.com/wp-json/wp/v2/posts/<id> can be used to grab a post from another WordPress domain. The JSON response should have all the information you need there. That page has other REST related requests you can make for posts. Have a great day.

Hello,

Thank you for the response.

Any tutorial on this at “theme.co” from basics?

Thank you and best regards.