You can’t do it by default with WordPress, but it is possible with a custom endpoint. You can find the docs in the REST API handbook: https://developer.wordpress.org/rest-api/extending-the-rest-api/adding-custom-endpoints/
Related Posts:
- WordPress Rest API custom endpoint optional param
- How do I cache (core) API requests?
- WP REST API only returning partial list of users
- Slow REST API calls on self-hosted WordPress [closed]
- Retrieving pages with multiple tags using REST API
- how to authenticate for the REST API from a plugin and from command line
- WordPress API – Get Drafts
- How do I use the WP REST API plugin and the OAuth Server plugin to allow for registration and login?
- How to stop WP API endpoint from caching?
- How to get the attached gallery in the rest API?
- WP API : date_query parameter
- Custom route for WP-API gives “rest_no_route” value
- Get more than 10 posts in a specific category with the wordpress api
- “rest_no_route” – Debug error
- Developing Themes with React/Angular
- curl POST work with user meta but not the custom user meta
- Implementing the wp json-rest api
- Create post with REST API in php with file_get_contents
- node-wpapi: how to handle authentication?
- How can I cache WordPress Rest API Response
- WordPress REST API always misses parameters – rest_missing_callback_param
- Adding rest api endpoints to an old theme
- Develop REST API using WordPress for Android app [closed]
- Why aren’t tags and categories added in post request to WP Rest API
- Calling an API to do authentication / user login
- How do I query my WordPress posts on another HTML page using the WordPress Restful API?
- body_class REST field in WP-API
- How to edit feature image with XML RPC?
- How to add an endpoint for my custom post type? /wp-json/wp/v2/posts is working but it didn’t in the custom post
- WP REST API and Access-Control-Allow-Origin
- rest_cannot_create_user
- Periodically Query an external API on wordpress site
- Extending the API I created to return category names
- Rest WP_Error always return null
- Posting data from Ionic app to WordPress
- Expand author, tags and categories in the WordPress JSON API
- How to display parent category with first level child in REST API
- Why does “if statement” has to “die()”, otherwise wont work?
- Best way to make a JSON API from WordPress?
- REST API And Error Codes – No Message
- How to login via wordpress api and get user details?
- How many users/load can the rest API handle?
- Is there a developers api for craigslist.org
- Access WordPress API Outside of WordPress (command-line PHP)
- Create API for single sign-on with 3rd party site
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- What is the best way to get directory path for wp-config.php?
- List Table API – Safe to use?
- API integration with WordPress
- POST to a REST API from a wordpress form
- get WP-API by page id
- get_userdata by username
- How to Securely and remotely Create new user in wordpress using Rest API
- API in numbers?
- Stuck with wp_remote_post sending data to an external api on user registration
- How to get title tag of an external page with http api?
- WordPress REST API “rest_authentication_errors” doesn’t work external queries?
- How to Increase WordPress JSON API Speed?
- Can’t get POST data in API endpoint callback
- Integrate ZOHO Recruit API?
- How do I get the intended post type of a revision post?
- Allow logged in WordPress user to access 3rd party Laravel API via OAuth
- Does it still make sense using json endpoint ep_mask now that there’s the new rest api? [closed]
- Limit post creation by role
- Adding Images into API
- Enabling CORS with WordPress
- WordPress keeps autoplaying my Youtube-Links no matter what I write
- wc_get_products() not return the images details
- WordPress REST Api: update user
- Woocommerce REST API – add filter to set maximum query per page for product brands [closed]
- [Zapier + WP Webhooks Pro]: Custom Fields get cut off at first comma or semicolon
- Images are displaying as blank images
- Integrating API in to WordPress
- How to get the post_id after you successfully create new post using xmlrpc api wp newPost?
- hybridauth (google OAuth integration) and WP problems
- How to search by slug and old slug in single API
- How to queue API requests with PHP in WordPress?
- trigger WordPress rest any API call
- Escape commas in REST API
- how to create JSON array [] for REST response?
- How can I display Only the first Array/Object?
- Call external API
- exclude particular category in api
- How to receive JSON payload from a digital device
- is it possible to fetch data from a remote api while admin is writing a new post?
- Adding Amchart Interface to WordPress API
- Connecting WordPress with an External API
- WordPress json rest api displaying 10 categories only
- Deleting media using the WordPress Rest API
- Creating posts, containing data from remote API
- Bypass wp_safe_remote_get()?
- Using PHP Api wrapper within plugin. Wrapper uses name space
- Querying Posts Using JSON API
- Is it possible to make website content available on another website?
- multi-language multi-site with REST API
- WooCommerce REST API endpoints don’t exist
- How get JSON from external API on every page load if not existing in transient?
- External api call using wordpress
- Login and register by API
- Woocommerce API for calling products by Category ID