You are right, APIs should not expose internal data and structures, but if you depend on APIs not written by you, it will rarely be a good use of your time to develop a different API just feel better about this.
And even if you develop your own API it is going to be hard to use for example something instead of post ids without making the API response even slower. You can probably use some kind symetric “encryption” for that, but I assume 99.9% of the developers will not see the point (I am in the 0.1%, but the reality is that something like that is unlikely to add any significant security for most sites)
Related Posts:
- Store a default value for a transient on plugin activation
- Creating a post with the REST API, curl and oauth returning 401 error
- Does the REST API (official) support custom post types?
- wordpress custom endpoint multiple params
- Continue execution after WP REST API response
- Why is the post meta[] empty when I make a call to the wordpress rest api?
- WordPress Scheduled Event Request Blocking
- Accessing the database from a plugin outside of action hooks
- what is the best practice to add new field to an api route
- Woocommerce api: create product with images – bad request
- wp_remote_get() returns 403 while file_get_contents() does not
- Update results, Before deleting the related category [closed]
- Execute long and heavy processes
- PHP > Scheduled Tasks > Sending daily email with dynamic API variables
- wpdb prepare insert table doesn’t work
- How to set a template with wp_insert_post
- Is it possible to create new user from external form using REST API?
- Cant register rest routs from class instance
- Validate and Sanitize WP REST API Request using WP JSON Schema?
- Set default Database Storage Engine when creating tables with plugins?
- How to clone all WordPress Rest API end points
- How do I make this Metabox show current DB value?
- select a single val though a table in wordpress
- no_rest_route error on custom routes
- Flatten Responses returned via WP REST API via WP_Error for obfuscation
- How do i post data to url with fields?
- wp_update_post gives 500 internal error
- code that I can run, or a plug in to show what sql tables something pulls information from
- Looping through and combining calls to Woocommerce REST API
- get Woocommerce product format json for WP_Query
- How to edit the default database of WordPress [closed]
- base64_encode conflict with convert_smilies in wordpress
- Properly process a custom WP REST API request (Authenticate, Authorize + Validate)?
- How to pass and validate nonce in custom REST routes
- Create custom table for wordpress custom registration flow
- Query posts by custom taxonomy slug in WP REST API?
- oneOf JSON Schema validation not properly working for custom post meta value?
- Authenticate + Authorize WP REST API request before built-in WP JSON Schema Payload Validation?
- Adding Microsoft Teams Incoming Webhook to WordPress, Problem with Rest Route?
- WordPress REST API – Custom field not added to pages
- Issue with WordPress Plugin Activation Hook and Table Creation
- REST API Plugin Update call back not updating the plugin
- Application password header not checked in REST API
- Can external API content be added to Rest API in WordPress
- Custom rest fields not loaded in rest api cpt response
- How can I find the cause of a 500 server error?
- I can’t update my data through $wpdb
- wpdb Cannot Update column in Database
- Can’t upload CSV file to plugin directory using custom upload form in admin panel
- wordpress frontend editor to add extra css to website
- Custom route and query
- Can’t successfully check if post with title exist in database
- Cant connect to database with php 7.3
- how to Update 15k products on plugin activation with meta_option
- Lost in trying to create user database system
- Delete database record using plugin from admin panel
- Why does my settings form redirect to the homepage?
- Using admin-post.php for admin form but it directs me to admin-post.php white screen
- Filter by field with array value in ACF on WP REST API
- How to get image from url from the database?
- Hooks for post saving make a post-new.php to load latest post’s data
- REST API works in browser and via AJAX but fails via cURL
- Wpdb get->results to out the the month from the db
- Custom Registration username_exists / email_exists
- How can I search all plugins for composer’s vendor/autoload.php?
- WordPress WP_Query without query GET parameters
- Filter results from a serialized string to use on statistics
- Where to copy woocommerce files to in my custom theme to avoid editing the core plugin?
- How to add data to a custom field at the wp_users table?
- Creating custom page template from existing PHP site
- wordpress site – using custom database and PHP
- Action Hook Inside WordPress Plugin Shortcode
- How can I display Custom Post type Custom Columns and its Content in a Dashboard Widget?
- Comment “like” problem – “users who like this” avatar linking to current user profile instead of “liker’s” profile
- custom post type with role Vendor
- How to override a plugins script
- Get wp_current_user_id using PHP and MySQL
- Can I remove or edit an include() from a function with a filter?
- Call to undefined function error in plugin
- Adding Additional Variables on Menus Page
- WPDB – Read and write value from / to database
- Woocommerce custom Plugin in wordpress [closed]
- How to Generate a list of Most Commented post?
- custom plugin with upload files does not work
- Why when I create a new post I found 2 record related to this post into the posts database table?
- Adding data to custom wordpress database table
- Removed jQuery script from header.php , any problems?
- phpMyAdmin error #1062 – Duplicate entry ‘1’ for key ‘PRIMARY’
- Add row to custom database Table and delete all rows older than 1 day
- Execute Jquery when a specific page in my plugin is loading
- How can I get plugin meta data without knowing the plugin folder?
- Using flickr api in custom wordpress plugin
- Toolbar Hidden in a Virtual Page
- PHP: How to access db the right way in plugin?
- What is the difference between Null vs Empty (Zero Length) string?
- calling admin-ajax.php from admin-ajax.php
- Submit form to db
- Get category id when SEO URL is turned on
- How to display results from a data table with an encrypted user id?
- SQL error with custom query