Filter topics
You can filter topics with the filter
parameter:
Get topics that are in the subfield "Epidemiology" (id: 2713)
https://api.openalex.org/topics?filter=subfield.id:2713
It's best to read about filters before trying these out. It will show you how to combine filters and build an AND, OR, or negation query
/topics
attribute filters
/topics
attribute filtersYou can filter using these attributes of the Topic
object (click each one to view their documentation on the Topic
object page):
ids.openalex
(alias:openalex
)
/topics
convenience filters
/topics
convenience filtersThese filters aren't attributes of the Topic
object, but they're included to address some common use cases:
default.search
default.search
Value: a search string
This works the same as using the search
parameter for Topics.
display_name.search
display_name.search
Value: a search string
Returns: topics with a display_name
containing the given string; see the search page for details.
Get topics with
display_name
containing "artificial" and "intelligence":https://api.openalex.org/topics?filter=display_name.search:artificial+intelligence
In most cases, you should use the search
parameter instead of this filter because it uses a better search algorithm.
Last updated