Filter works
It's easy to filter works with the filter parameter:
Get works where the publication year is 2020
https://api.openalex.org/works?filter=publication\_year:2020
In this example the filter is publication_year and the value is 2020.
/works attribute filters
/works attribute filtersYou can filter using these attributes of the Work object (click each one to view their documentation on the Work object page):
The host_venue and alternate_host_venues properties have been deprecated in favor of primary_location and locations. The attributes host_venue and alternate_host_venues are no longer available in the Work object, and trying to access them in filters or group-bys will return an error.
authorships.author.id(alias:author.id) β Authors for a work (OpenAlex ID)authorships.author.orcid(alias:author.orcid) β Authors for a work (ORCID)authorships.institutions.country_code(alias:institutions.country_code)authorships.institutions.id(alias:institutions.id) β Institutions affiliated with the authors of a work (OpenAlex ID)authorships.institutions.ror(alias:institutions.ror) β Institutions affiliated with the authors of a work (ROR ID)authorships.is_corresponding(alias:is_corresponding) β This filter marks whether or not we have corresponding author information for a given workbest_oa_location.licenseβ The Open Acess license for a workconcepts.id(alias:concept.id) β The concepts associated with a workcorresponding_author_idsβ Corresponding authors for a work (OpenAlex ID)doiβ The DOI (Digital Object Identifier) of a workgrants.award_idβ Award IDs for grantsgrants.funderβ Funding organizations linked to grants for a workids.pmid(alias:pmid)ids.openalex(alias:openalex) β The OpenAlex ID for a workids.mag(alias:mag)open_access.is_oa(alias:is_oa) β Whether a work is Open Accessopen_access.oa_status(alias:oa_status) β The Open Access status for a work (e.g., gold, green, hybrid, etc.)
/works convenience filters
/works convenience filtersThese filters aren't attributes of the Work object, but they're handy for solving some common use cases:
abstract.search
abstract.searchText search using abstracts
Value: a search string
Returns: works whose abstract includes the given string. See the search page for details on the search algorithm used.
Get works with abstracts that mention "artificial intelligence":
https://api.openalex.org/works?filter=abstract.search:artificial%20intelligence
authors_count
authors_countNumber of authors for a work
Value: an Integer
Returns: works with the chosen number of authorships objects (authors). You can use the inequality filter to select a range, such as authors_count:>5.
Get works that have exactly one author
https://api.openalex.org/works?filter=authors\_count:1
authorships.institutions.continent (alias: institutions.continent)
authorships.institutions.continent (alias: institutions.continent)Value: a String with a valid continent filter
Returns: works where at least one of the author's institutions is in the chosen continent.
Get works where at least one author's institution in each work is located in Europe
https://api.openalex.org/works?filter=authorships.institutions.continent:europe
authorships.institutions.is_global_south (alias: institutions.is_global_south)
authorships.institutions.is_global_south (alias: institutions.is_global_south)Value: a Boolean (true or false)
Returns: works where at least one of the author's institutions is in the Global South (read more).
Get works where at least one author's institution is in the Global South
https://api.openalex.org/works?filter=authorships.institutions.is\_global\_south:true
best_open_version
best_open_versionValue: a String with one of the following values:
any: This means thatbest_oa_location.version=submittedVersion,acceptedVersion, orpublishedVersionacceptedOrPublished: This means thatbest_oa_location.versioncan beacceptedVersionorpublishedVersionpublished: This means thatbest_oa_location.version=publishedVersion
Returns: works that meet the above criteria for best_oa_location.
Get works whose
best_oa_locationis a submitted, accepted, or published version:https://api.openalex.org/works?filter=best_open_version:any``
cited_by
cited_byValue: the OpenAlex ID for a given work
Returns: works found in the given work's referenced_works section. You can think of this as outgoing citations.
cites
citesValue: the OpenAlex ID for a given work
Returns: works that cite the given work. This is works that have the given OpenAlex ID in the referenced_works section. You can think of this as incoming citations.
Get works that cite
https://openalex.org/W2741809807:https://api.openalex.org/works?filter=cites:W2741809807``
concepts_count
concepts_countValue: an Integer
Returns: works with the chosen number of concepts.
Get works with at least three concepts assigned
https://api.openalex.org/works?filter=concepts\_count:>2
default.search
default.searchText search across titles, abstracts, and full text of works
Value: a search string
This works the same as using the search parameter for Works.
display_name.search (alias: title.search)
display_name.search (alias: title.search)Text search across titles for works
Value: a search string
Returns: works whosedisplay_name (title) includes the given string; see the search page for details.
Get works with titles that mention the word "wombat":
https://api.openalex.org/works?filter=title.search:wombat
from_created_date
from_created_dateValue: a date, formatted as yyyy-mm-dd
Returns: works with created_date greater than or equal to the given date.
This field requires an OpenAlex Premium subscription to access. Click here to learn more.
Get works created on or after January 12th, 2023 (does not work without valid API key):
https://api.openalex.org/works?filter=from_created_date:2023-01-12&api_key=myapikey
from_publication_date
from_publication_dateValue: a date, formatted as yyyy-mm-dd
Returns: works with publication_date greater than or equal to the given date.
Get works published on or after March 14th, 2001:
https://api.openalex.org/works?filter=from_publication_date:2001-03-14
from_updated_date
from_updated_dateValue: a date, formatted as an ISO 8601 date or date-time string (for example: "2020-05-17", "2020-05-17T15:30", or "2020-01-02T00:22:35.180390").
Returns: works with updated_date greater than or equal to the given date.
This field requires an OpenAlex Premium subscription to access. Click here to learn more.
Get works updated on or after January 12th, 2023 (does not work without valid API key):
https://api.openalex.org/works?filter=from_updated_date:2023-01-12&api_key=myapikey
fulltext.search
fulltext.searchValue: a search string
Returns: works whose fulltext includes the given string. Fulltext search is available for a subset of works, obtained either from PDFs or n-grams, see Work.has_fulltext for more details.
Get works with fulltext that mention "climate change":
https://api.openalex.org/works?filter=fulltext.search:climate%20change
has_abstract
has_abstractWorks that have an abstract available
Value: a Boolean (true or false)
Returns: works that have or lack an abstract, depending on the given value.
Get the works that have abstracts:
https://api.openalex.org/works?filter=has_abstract:true
has_doi
has_doiValue: a Boolean (true or false)
Returns: works that have or lack a DOI, depending on the given value. It's especially useful for grouping.
Get the works that have no DOI assigned:
https://api.openalex.org/works?filter=has_doi:false``
has_oa_accepted_or_published_version
has_oa_accepted_or_published_versionValue: a Boolean (true or false)
Returns: works with at least one of the locations has is_oa= true and version is acceptedVersion or publishedVersion. For Works that undergo peer review, like journal articles, this means there is a peer-reviewed OA copy somewhere. For some items, like books, a published version doesn't imply peer review, so they aren't quite synonymous.
Get works with an OA accepted or published copy
https://api.openalex.org/works?filter=has_oa_accepted_or_published_version:true
has_oa_submitted_version
has_oa_submitted_versionValue: a Boolean (true or false)
Returns: works with at least one of the locations has is_oa= true and version is submittedVersion. This is useful for finding works with preprints deposited somewhere.
Get works with an OA submitted copy:
https://api.openalex.org/works?filter=has_oa_submitted_version:true``
has_orcid
has_orcidValue: a Boolean (true or false)
Returns: if true it returns works where at least one author or has an ORCID ID. If false, it returns works where no authors have an ORCID ID. This is based on the orcid field within authorships.author. Note that, sometimes, we assign ORCID using author disambiguation, so this does not necessarily mean that the work itself has ORCID information.
Get the works where at least one author has an ORCID ID:
https://api.openalex.org/works?filter=has_orcid:true
has_pmcid
has_pmcidValue: a Boolean (true or false)
Returns: works that have or lack a PubMed Central identifier (pmcid) depending on the given value.
Get the works that have a
pmcid:https://api.openalex.org/works?filter=has_pmcid:true``
has_pmid
has_pmidValue: a Boolean (true or false)
Returns: works that have or lack a PubMed identifier (pmid), depending on the given value.
Get the works that have a
pmid:https://api.openalex.org/works?filter=has_pmid:true``
has_ngrams (DEPRECATED)
has_ngrams (DEPRECATED)Works that have n-grams available to enable full-text search in OpenAlex.
This filter has been deprecated. See instead: has_fulltext.
Value: a Boolean (true or false)
Returns: works for which n-grams are available or unavailable, depending on the given value. N-grams power fulltext searches through the fulltext.search filter and the search parameter.
Get the works that have n-grams:
https://api.openalex.org/works?filter=has_ngrams:true
has_references
has_referencesValue: a Boolean (true or false)
Returns: works that have or lack referenced_works, depending on the given value.
Get the works that have references:
https://api.openalex.org/works?filter=has_references:true
journal
journalValue: the OpenAlex ID for a given source, where the source is type: journal
Returns: works where the chosen source ID is the primary_location.source.
locations.source.host_institution_lineage
locations.source.host_institution_lineageValue: the OpenAlex ID for an Institution
Returns: works where the given institution ID is in locations.source.host_organization_lineage
Get the works that have
https://openalex.org/I205783295in theirhost_organization_lineage:https://api.openalex.org/works?filter=locations.source.host_institution_lineage:https://openalex.org/I205783295
locations.source.publisher_lineage
locations.source.publisher_lineageValue: the OpenAlex ID for a Publisher
Returns: works where the given publisher ID is in locations.source.host_organization_lineage
Get the works that have
https://openalex.org/P4310320547in theirpublisher_lineage:https://api.openalex.org/works?filter=locations.source.publisher_lineage:https://openalex.org/P4310320547
mag_only
mag_onlyValue: a Boolean (true or false)
Returns: works which came from MAG (Microsoft Academic Graph), and no other data sources.
MAG was a project by Microsoft Research to catalog all of the scholarly content on the internet. After it was discontinued in 2021, OpenAlex built upon the data MAG had accumulated, connecting and expanding it using a variety of other sources. The methods that MAG used to identify and aggregate scholarly content were quite different from most of our other sources, and so the content inherited from MAG, especially works that we did not connect with data from other sources, can look different from other works. While it's great to have these MAG-only works available, you may not always want to include them in your results or analyses. This filter allows you to include or exclude any works that came from MAG and only MAG.
Get all MAG-only works:
https://api.openalex.org/works?filter=mag_only:true
primary_location.source.has_issn
primary_location.source.has_issnValue: a Boolean (true or false)
Returns: works where the primary_location has at least one ISSN assigned.
Get the works that have an ISSN within the primary location:
https://api.openalex.org/works?filter=primary_location.source.has_issn:true
primary_location.source.publisher_lineage
primary_location.source.publisher_lineageValue: the OpenAlex ID for a Publisher
Returns: works where the given publisher ID is in primary_location.source.host_organization_lineage
Get the works that have
https://openalex.org/P4310320547in theirpublisher_lineage:https://api.openalex.org/works?filter=primary_location.source.publisher_lineage:https://openalex.org/P4310320547
raw_affiliation_strings.search
raw_affiliation_strings.searchValue: a search string
Returns: works that have at least one raw_affiliation_strings which includes the given string. See the search page for details on the search algorithm used.
Get works with the words Department of Political Science, University of Amsterdam somewhere in at least one author's
raw_affiliation_strings:https://api.openalex.org/works?filter=raw_affiliation_strings.search:department%20of%20political%20science%20university%20of%amsterdam
related_to
related_toValue: the OpenAlex ID for a given work
Returns: works found in the given work's related_works section.
Get works related to https://openalex.org/W2486144666:
https://api.openalex.org/works?filter=related_to:W2486144666
repository
repositoryValue: the OpenAlex ID for a given source, where the source is type: repository
Returns: works where the chosen source ID exists within the locations.
You can use this to find works where authors are associated with your university, but the work is not part of the university's repository. π
Get works that are available in the University of Michigan Deep Blue repository (OpenAlex ID:
https://openalex.org/S4306400393)https://api.openalex.org/works?filter=repository:S4306400393Get works where at least one author is associated with the University of Michigan, but the works are not found in the University of Michigan Deep Blue repository
https://api.openalex.org/works?filter=institutions.id:I27837315,repository:!S4306400393
You can also use this as a group_by to learn things about repositories:
Learn which repositories have the most open access works
https://api.openalex.org/works?filter=is_oa:true&group_by=repository
title_and_abstract.search
title_and_abstract.searchText search across titles and abstracts for works
Value: a search string
Returns: works whose display_name (title) or abstract includes the given string; see the search page for details.
Get works with title or abstract mentioning "gum disease":
https://api.openalex.org/works?filter=title_and_abstract.search:gum%20disease
to_created_date
to_created_dateValue: a date, formatted as yyyy-mm-dd
Returns: works with created_date less than or equal to the given date.
This field requires an OpenAlex Premium subscription to access. Click here to learn more.
Get works created on or after January 12th, 2023 (does not work without valid API key):
https://api.openalex.org/works?filter=to_created_date:2024-01-12&api_key=myapikey
to_publication_date
to_publication_dateValue: a date, formatted as yyyy-mm-dd
Returns: works with publication_date less than or equal to the given date.
Get works published on or before March 14th, 2001:
https://api.openalex.org/works?filter=to_publication_date:2001-03-14
to_updated_date
to_updated_dateValue: a date, formatted as an ISO 8601 date or date-time string (for example: "2020-05-17", "2020-05-17T15:30", or "2020-01-02T00:22:35.180390").
Returns: works with updated_date less than or equal to the given date.
This field requires an OpenAlex Premium subscription to access. Click here to learn more.
Get works updated before or on January 12th, 2023 (does not work without valid API key):
https://api.openalex.org/works?filter=to_updated_date:2023-01-12&api_key=myapikey
version
versionValue: a String with value publishedVersion, submittedVersion, acceptedVersion, or null
Returns: works where the chosen version exists within the locations. If null, it returns works where no version is found in any of the locations.
Get works where a published version is available in at least one of the locations:
https://api.openalex.org/works?filter=version:publishedVersion
Last updated