How to apply exclude filter on dictionary entries
Categories
- 362 All Categories
- 2 Member guidelines
- 63 Ask the Community: Technical and operational questions
- 68 General
- 10 Ask the Community: Other
- 60 Report a bug
- 12 Suggest an improvement
- 7 How to get useful technical help
- 92 Frequently asked questions
- 6 Tutorials and presentations
- 26 API endpoints
- 9 News and updates
- 3 Language datasets
- 18 Review my code
[Action required] API changes announcement for existing customers
Note: This announcement applies to API customers that are registered to a Prototype and Developer plans.
Hello all!
We are writing to inform you that a new set of plans is replacing our current application plans (Prototype and Developer plans) and prices.
As of 10th May 2022, the Prototype and Developer plans will no longer be operational. Oxford Dictionaries API will offer two new plans:
- Introductory plan
- Unlimited plan
For Prototype and Developer plan customers, changes are happening between 12th April 2022 and 10th May 2022. So do not worry! You will have time to check the options and choose how you wish to proceed using our data by selecting the Introductory or Unlimited plan.
For further instructions on how to change plans, and for more information, please visit our new plans announcement page:
https://developer.oxforddictionaries.com/new-plans-announcement
If you have any questions, please feel free to leave us a comment or reach us at our Contact Us page. (https://developer.oxforddictionaries.com/contact-us)
The Oxford dictionaries API team
Note: This announcement applies to API customers that are registered to a Prototype and Developer plans.
Hello all!
We are writing to inform you that a new set of plans is replacing our current application plans (Prototype and Developer plans) and prices.
As of 10th May 2022, the Prototype and Developer plans will no longer be operational. Oxford Dictionaries API will offer two new plans:
- Introductory plan
- Unlimited plan
For Prototype and Developer plan customers, changes are happening between 12th April 2022 and 10th May 2022. So do not worry! You will have time to check the options and choose how you wish to proceed using our data by selecting the Introductory or Unlimited plan.
For further instructions on how to change plans, and for more information, please visit our new plans announcement page:
https://developer.oxforddictionaries.com/new-plans-announcement
If you have any questions, please feel free to leave us a comment or reach us at our Contact Us page. (https://developer.oxforddictionaries.com/contact-us)
The Oxford dictionaries API team
How to apply exclude filter on dictionary entries

I want to find dictionary entries of a word but excluding the domain "sex". How to achieve that?
Best Answer
-
AmosDuveen Member, Administrator, Moderator admin
Hi @shahood,
Whether you call it confusion or not, the fact is that you cannot apply a domain filter in an entries call (but you can in a wordlist call).
Answers
Once you have figured out how to make a call, you will need to find out how to search the output for the domains array and check whether any of the strings within match the string "sex". If you get a positive response, you can then choose not to display the entry.
Oh so we will have to do it through our respective code. That’s weird! “domains” is available as a filter already but it works when we want the output to contain only certain domains (equal to). IMHO it should also work when we need the output doesn’t contain certain domains (not equal to).
Hi @shahood,
You're confusing the entries endpoint with the wordlist endpoint. You can use wordlist to filter (both inclusively and exclusively) but the output will only be a list of words. If you want to return a full entry, you need to use the entries endpoint and if you want to prevent certain content displaying then you need to code that into your program.
I’m not confusing both endpoints, it is just that one of these endpoints contains a feature that the other doesn’t. In my case, I want entries for a word, not a wordlist. Doing that in code would require a lot of iterations.