You can get a single record by identifier, for example
http://demo.wp-api.org/wp-json/wp/v2/posts/?filter[p]=470
But according to support, it will not work for multiple messages.
https:
So you can start the loop and get one after the other.
But for several you need to put a function
add_filter('rest_query_vars', 'custom_rest_query_vars');
function custom_rest_query_vars($query_vars) {
$query_vars = array_merge( $query_vars, array('post','post__in','type','id') );
return $query_vars;
}
Then you need to run
+filter[post__in][]=470&filter[post__in][]=469
source
share