Kyle Demes

Who tells us what open access actually costs? Data and scripts

The numbers and charts behind the field note on OpenAPC: who reports the open access fees they pay, how much of the record that covers, and how fees paid compare with the list prices OpenAlex holds. OpenAPC data come from the OpenAPC repository at commit fb5cb04 (downloaded 29 November 2026; Open Database License). OpenAlex data come from the OpenAlex API (CC0), pulled on 1 December 2026. (The post’s first version, published earlier on 1 December, used OpenAlex data pulled on 29 November; OpenAlex’s fee data changed overnight, so the numbers were refreshed. Those earlier files are in this repository’s history.) MANIFEST.md maps every number and chart in the post to its script and file.

Definitions

Check it yourself (in a browser)

These links work in a browser without an API key. Without one, everyone on your network shares a small free daily allowance, so if a link stops working, get a free key at https://openalex.org/settings/api and add &api_key=YOUR_KEY to the end. OpenAlex updates every night, so counts drift from the ones in the post.

Run order

export OPENALEX_API_KEY=...        # optional; raises the rate limit
cd scripts
python3 00_download.py             # OpenAPC files at the pinned commit + ECB annual rates -> cache/
python3 01_openapc_counts.py       # OpenAPC-only counts (no API calls)
python3 02_match_openalex.py       # every OpenAPC DOI in OpenAlex (~11,000 calls; resumable)
python3 03_openalex_bases.py       # gold and hybrid articles by year, country, corresponding institution (reuses saved files unless --refresh)
python3 04_sources.py              # list-price fields for each journal
python3 05_join.py                 # one row per fee-paid article with its list price in euros (cache/joined.csv)
python3 06_reporter_ids.py         # OpenAPC institutions to OpenAlex IDs by ROR
python3 07_authorships_2023.py     # author countries and corresponding institutions for 2023 articles (~1,300 calls)
python3 08_paid_vs_list.py         # fee paid vs list price
python3 09_coverage.py             # coverage by year, country and reporter
python3 10_canada.py               # Canadian records in OpenAPC
python3 post_numbers.py            # every OpenAlex-dependent number in the post, from results/

Python 3.9 or later, standard library only. common.py holds paths, the API helper, DOI cleaning and currency conversion. OpenAlex updates daily, so a later run will differ a little.

What’s not here, and why