I just figured it out, just in case it might be helpful for anyone in future:
There is an option available to exclude a particular category – categories_exclude
So, the new rest API would be:
https://www.example.com/?rest_route=/wp/v2/posts&per_page=100&categories_exclude=10
Related Posts:
- WordPress REST API not returning all posts
- How to create REST Based JSON API(how to modify the code below)?
- How to add category to: ‘wp-admin/post-new.php’?
- Fetch All Posts (Including Those Using a Custom Post Type) With WordPress API
- WP Rest API v2 filter and display latest post with specific tag
- Disable REST API for a user ROLE
- ping_status in JSON REST API
- Add ajax load more function using WP API
- How to create a post using REST API with sending data as a JSON body?
- How can I get the media inside a post?
- How to disable WordPress blog folder
- Creating a WordPress Post via REST API – HTML or Markdown?
- How to get post with associated categories and tags names instead of ids with rest api?
- Optimal WP Web App Backend for mobile app development
- Pull in posts using post meta for REST API
- REST API Working for GET but not for POST?
- Loading posts outside wordpress
- How to use “Add link” pop up for a WordPress widget
- Use category base slug in posts’ permalink
- Setting Custom Sort Order of Posts within a Category
- Display the latest post from a category in a page
- How to show list of posts by author and category?
- Exclude posts that only have the ‘Uncategorized’ category [duplicate]
- How to control which category will be picked for the slug of a post?
- Add default content to post (for specific category)
- Query only Posts from Both of Two Category?
- Display most recent post in category instead of archive?
- Post in Multiple Categories to stay in current category (permalink, next previous post link)
- get_post_type_archive_link(‘post’) returns current category archive
- Get user’s most published categories
- Options to get my custom post type metadata via the WordPress API
- Conditional that checks if a current category has any subcategory with posts
- How to set post expiration date and time and move the page to archive after expiration [closed]
- Exclude posts from featuring
- Exclude posts w/ specific post_meta on Rest API endpoint
- Articles are text-only in any “Category” instead of HTML
- How To Remove Certain category Posts From the Blog Page
- Add icon/badge next to posttitle of specific category
- Get current category id from post page wordpress
- Saving category to a post, before publishing the post
- Assign category to new post via URL
- Stop users posting into category while still seeing contents of the category
- Category Page Template not Showing Posts
- WordPress Rest API Create Post
- How to Restrict Previous & Next Post Link to Posts of Same Category?
- WordPress custom Query for Posts in Category display posts multiple times
- Categories list into registration form
- Using ajax on editing a category edit page?
- How to display two random-post sections that are each under their own category
- How to create a sub post?
- WordPress bulk category select when publishing post
- Getting featured image with PHP and not javascript from wordpress api _embed [closed]
- Exclude some categories from listing on the current post
- how can i display my posts alphabetically?
- Change Post Title For Specific Category
- In what context should Categories and Tags be used
- list posts from two categories on a page – plugin not working
- How to create a playlist for audio associated with posts per category
- posts going to 2 pages/categories only show up in 1
- Display Parent Category of a Post belonging only to Subcategory
- Can I style single post that are in multiple catergories?
- Rewriting blog permalinks
- How to make ajax load posts from the current category?
- Format array of objects to json for wp-json
- Show single post child category from a determined parent
- How can I create a ‘sub-blog’ which has its own sidebar on individual posts?
- I want to add the 10 most recent posts under a parent category on the main menu
- WordPress rest API get Posts parent by post ID
- Weird problem occurs while using WordPress REST API to create new post
- How to Create another Page Category like the “Post” and “Pages”
- How to create a button to filter posts (list) by meta value
- Is there a way to save different data when USER interacts with the same POST?
- REST API get featured image source for custom post type
- How to display particular categorie’s post which associated to specific user?
- Display Specific Categories posts on the home page
- show only one category and filter by tag
- Code to display random ordered posts in Categories across pages [duplicate]
- AJAX load more posts not using correct category and repeating the same few posts
- Category posts show on local install, they do not show on live server
- How can I exclude only a specific sub category post from category display?
- how to print total number of posts filtered by category?
- Add category information beneath post?
- How can I display a specific number of post in a category via a url
- Newly created category does not show category
- How to pass multiple checkbox values to wordpress query?
- Show a Category Specific Info Box
- Display the first post’s comments of category in comments.php template
- How to filter categories of a post
- Need All the posts with id, title and date [closed]
- List posts related to category on a div [closed]
- how to show all post with its contents
- wordpress show category link instead of post link [closed]
- CSS – Change height of Storefront / WooCommerce product categories, but not products
- How to display my categories in a list (to a post, not the sidebar)?
- How to make category for word post_content
- WP Rest API feature image breaking react component
- Changes done in admin panel are taking time to reflect in the REST api responses
- I have a blog and want to prompt the user to select a category they like and have that select a random blog post
- How to remove category and other tags from posts page
- Get the category of post from which category page it have been clicked