You have to write the post view count logic. After that you have to call that meta count in in rest API using the below API code.
This link will help to get count response in the rest api.
You have to write the post view count logic. After that you have to call that meta count in in rest API using the below API code.
This link will help to get count response in the rest api.