API question: not returning all posts

[ad_1]

Hi r/Wordpress! Apologize in advance if the question/topic is not allowed (checked the rules and it seems it should be ok?)

I’m trying to write a small importer/updater on a real estate WP that’s using the WPResidence theme/plugin. AFAIK and according to their website, all “properties” are stored in the wp_post table, and it seems that way when you try to edit one in the main wp-admin interface (they have a special post_type `estate_property`). I’m trying to first fetch all the properties but when I try to use the `wp/v2/posts` API, I only get the non-property posts. Even if I try to get a single post using the `wp/v2/posts/<id>` with an ID of a property post, I get a 404 error.

Is there another way to get those types of posts or I’m just stuck in using some sort of bulk importer plugin?

Edit: markdown edits

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer