With the Rest API we get all the posts. But, Sometimes we want to get only specific posts by post ids. WordPress have rest API parameter
include which return only requested posts by post ids.
https://example.org/wp-json/wp/v2/posts?include=11,12 It return only 2 posts whose ids are 11 & 12.
Note: By default it return 10 posts. If you have more than 10 posts then add parameter `per_page` which return all the posts.