OAM — citation impact from OpenAlex
OAM computes citation impact metrics for any set of papers: a university, a researcher, a country, a funder's portfolio or a list of DOIs. It tells you whether those papers were cited more or less than comparable papers worldwide. It runs on your own machine, and the data comes from OpenAlex.
OAM returns those metrics keyed by OpenAlex work id. Titles, authors, venues and any other descriptive field come from OpenAlex itself, joined on work_id.
Comparing papers is only fair within a well-defined scope. OpenAlex indexes almost everything, not only research papers but also preprints, datasets, theses and editorials, and these are cited very differently. OAM keeps only peer-reviewed research papers, about 13% of OpenAlex. Only these papers are scored, and only the citations they make are counted. Which papers are scored lists the rules.
How this differs from OpenAlex
OpenAlex already gives most works a citation score, the FWCI. It compares each work with everything OpenAlex indexes, and it counts citations from anything, including preprints, datasets and theses. OAM compares a paper only with papers in its scope, and counts only citations from that scope.
A paper is compared with its cohort: the same subfield, the same publication year, and journal or conference. OpenAlex groups by year, work type and subfield, and splits articles into journal and conference articles. The download counts every citation up to the snapshot, self-citations included. The FWCI also keeps self-citations, but counts only the publication year and the three following years. The two scores are stored side by side. OAM and OpenAlex lists each column and the difference.
Get started
Python 3.11 or newer.
pip install openalex-metrics
Download the data once. This fetches the latest release from Zenodo, 11.9 GiB, and checks every file:
import oam
oam.download()
The files go to ~/oam-data, or to ./data when you work from a clone of this repository. To put them somewhere else, call oam.set_data_dir(path) before downloading, or set the OAM_DATA_DIR environment variable. You need about 25 GB free while the archive is unpacked, and 12 GB once it is installed.
Then score a set of papers:
ids = oam.resolve(institution="I5124864", year=(2020, 2024)) # EPFL
oam.aggregate(ids).round(2)
oam.resolve finds the papers. oam.aggregate scores the ones that can be compared with similar papers. To find an institution's id, search by name:
oam.dimension("institutions", search="Lausanne")
How the pieces fit
a question oam.dimension(...) names → ids (institution, funder, source, topic)
│
▼
the works oam.resolve(...) every work matching, scored or not → list of integer work ids
│ (or your own ids or DOIs)
├──────────────▶ oam.explain(ids) per work: found, in scope, which rule failed
├──────────────▶ oam.get_metrics(ids) per work: citations, ncs, percentile, top flags, OpenAlex FWCI
▼
the indicators oam.aggregate(ids) per group: P, TCS, MCS, MNCS, PP(top 10%), PP(top 1%)
resolve keeps every matching work. explain and get_metrics report on each one. aggregate counts a work when it is scored and its cohort has at least 500 papers. EPFL in 2023 shows each drop:
| Step | Works | Call |
|---|---|---|
| resolved | 7,763 | len(oam.resolve(institution="I5124864", year=2023)) |
| in scope (passes the seven rules) | 4,508 | oam.explain(ids).in_scope.sum() |
| scored | 4,508 | oam.get_metrics(ids).scored.sum() |
counted by aggregate |
4,470 | oam.aggregate(ids).P_full |
The last 38 papers sit in cohorts smaller than 500. aggregate leaves them out while reliable_only=True, which is the default.
resolve returns plain integers, such as [771562940, 1530463068]. Every function also accepts W… ids. aggregate accepts a list, a set, a pandas Series or a NumPy array. From the frame get_metrics returns, pass df.work_id. Nothing calls the network after the download. Titles, DOIs and authors are not in the data. Resolving and scoring EPFL over five years, or a country over a year, takes under a second.
Three examples
These numbers come from the OpenAlex snapshot of 14 October 2026.
A university, over five years
EPFL, 2020 to 2024. Of the 36,475 works with EPFL's name on them, 22,207 are scored.
ids = oam.resolve(institution="I5124864", year=(2020, 2024))
oam.aggregate(ids).round(2)
publication_year P_full TCS_full MCS_full MNCS_full PP_top10_full PP_top1_full
2020 4433 200062.0 45.13 1.95 21.52 3.41
2021 4498 150841.0 33.54 1.80 20.08 3.11
2022 4349 120403.0 27.69 1.89 20.74 2.90
2023 4470 85462.0 19.12 1.74 20.25 3.02
2024 4457 58542.0 13.13 1.83 21.11 3.43
A researcher
Jennifer Doudna, from her ORCID. A researcher is selected by ORCID or by OpenAlex author id. Of 755 works, 391 are scored. by=None gives one row for the whole set.
ids = oam.resolve(orcid="0000-0001-9161-999X")
oam.aggregate(ids, by=None).round(2)
P_full TCS_full MCS_full MNCS_full PP_top10_full PP_top1_full
391 91886.0 235.0 5.97 59.34 14.83
A country
Switzerland, 2020 to 2024. Of 490,707 works, 265,954 are scored.
ids = oam.resolve(country="CH", year=(2020, 2024))
oam.aggregate(ids).round(2)
publication_year P_full TCS_full MCS_full MNCS_full PP_top10_full PP_top1_full
2020 52142 2108683.0 40.44 1.80 18.78 2.87
2021 55231 1744205.0 31.58 1.78 18.79 3.02
2022 53311 1206510.0 22.63 1.71 18.77 2.88
2023 52502 887357.0 16.90 1.71 19.19 3.08
2024 52768 605921.0 11.48 1.75 19.27 2.99
You can select papers the same way by author, funder, journal, field or DOI. Querying lists every option. Cookbook puts a question next to the call that answers it: two institutions, a funder, a journal, co-publications.
Reading the numbers
- P_full is the number of papers that received a score.
- MNCS_full compares those papers with similar papers worldwide. The download counts every citation up to the snapshot, self-citations included. The world average is 1. A value of 2 means cited twice as much.
- PP_top10_full is the share of papers among the 10% most cited of their cohort. For the world it sits a little above 10%, because papers tied at the threshold are all counted in. PP_top1_full is the same for the top 1%.
A recent paper has had less time to be cited. It is compared only with papers from its own year, so MNCS and the top shares can be read across years, while TCS and MCS fall for recent years. For a small institution, compare full and fractional counting before quoting an MNCS. A set of a few dozen papers gives numbers with a wide margin. When the two disagree shows a university whose shared papers carry most of the citations. To count a fixed number of years, or to drop self-citations, the data is rebuilt with that choice. Building shows the arguments.
How the scores work explains the other columns, and full and fractional counting.
Which papers are scored
A paper is scored when it passes all seven rules. On the snapshot of 14 October 2026, 62,493,369 of 464,765,485 works pass, which is 13.45%.
- It is in a core journal or a conference proceedings.
- It has a reference list.
- It has at least one institutional affiliation.
- It is in English.
- It has an OpenAlex subfield.
- It is not paratext, such as an editorial, erratum or table of contents.
- It is not retracted.
Each paper is then compared with papers of the same subfield, publication year and venue type (journal or conference).
These rules are fixed for the data you download. To score a different set of papers, for example to keep papers in every language, edit the rules and rebuild the data. Scope explains each rule, and Building the data explains the rebuild.
Data and licence
The data is built from the public OpenAlex snapshot and released under CC0. oam.download() installs the latest version. To keep one snapshot, pass its Zenodo record id, listed under Versions on the Zenodo page:
oam.download(record=23770181) # the 2026-10-14 snapshot, built with OAM 0.2
Record 23493155 is the same snapshot date built with OAM 0.1. OAM 0.2 and later do not read it.
If you publish results, cite the version you used. Each version has its own DOI, and oam.status() shows which snapshot is installed.
OAM is released under the MIT licence. See LICENSE.
Metadata
Release files for openalex-metrics 0.3.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| openalex_metrics-0.3.1.tar.gz | 165.6 kB | With provenance | Details for openalex_metrics-0.3.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| openalex_metrics-0.3.1-py3-none-any.whl | Python 3 | none | any | Details for openalex_metrics-0.3.1-py3-none-any.whl |
Total release size: 232.6 kB
Release files / openalex_metrics-0.3.1.tar.gz
| Download URL | openalex_metrics-0.3.1.tar.gz |
|---|---|
| Size | 165.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
25e8229594091f9ee75707ef43f13a8e9707d4d9c8424f76165a80822cfe84c0
|
|
BLAKE2b-256 checksum How to use checksums |
1e6c76e8f72be80cda89c7329f40c25eb1428e0542e2c9b179172446fb535279
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logRelease files / openalex_metrics-0.3.1-py3-none-any.whl
| Download URL | openalex_metrics-0.3.1-py3-none-any.whl |
|---|---|
| Size | 67.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3daa9e9c226563b40609d70a19d87032c09882f01b6e87f7fda072bae2451c99
|
|
BLAKE2b-256 checksum How to use checksums |
31cb8d4a8133289f7ce779426c01188e314b21f8dd7c961cc2c04dcc58873cb2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logSecurity for openalex-metrics 0.3.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for openalex_metrics-0.3.1.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 30, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.