Group works
You can group works with the group_by parameter:
Get counts of works by Open Access status:
https://api.openalex.org/works?group_by=oa_status
Or you can group using one the attributes below.
It's best to read about group by before trying these out. It will show you how results are formatted, the number of results returned, and how to sort results.
/works group_by attributes
/works group_by attributesThe 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(aliasauthor.id)authorships.author.orcid(aliasauthor.orcid)authorships.institutions.country_code(aliasinstitutions.country_code)authorships.institutions.continent(aliasinstitutions.continent)authorships.institutions.id(aliasinstitutions.id)authorships.institutions.ror(aliasinstitutions.ror)authorships.institutions.type(aliasinstitutions.type)authorships.is_corresponding(alias:is_corresponding): this marks whether or not we have corresponding author information for a given workhas_ngrams(DEPRECATED)open_access.is_oa(aliasis_oa)open_access.oa_status(aliasoa_status)
Last updated