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
- Fee-paid articles: rows of OpenAPC’s
apc_de.csv, one article whose fee an institution or funder paid. Amounts are in euros and include VAT where it was paid. - Agreement articles: rows of OpenAPC’s
transformative_agreements.csv. Most carry no per-article cost (they are paid for under the agreement as a whole). Rows where the author opted out of open access (opt_outTRUE, 4,219) are left out. - OpenAPC’s year: the year the fee was paid (fee file) or the licence year (agreements file).
- Matched: an OpenAPC DOI found in OpenAlex. DOIs are cleaned first (lowercase, URL prefixes,
#fragments and trailing punctuation removed). A DOI that OpenAlex returns under another DOI (it follows merges) counts as matched only if the journal shares an ISSN with the OpenAPC row and the year is within one. - Gold and hybrid articles: OpenAlex
type:article,oa_status:gold|hybrid, by publication year. - Country coverage: articles a country’s own institutions reported to OpenAPC that have an author in that country, divided by all gold and hybrid articles with an author there. An article counts for every country on it.
- Reporter coverage (2023): for each reporting institution that is the corresponding author’s institution on at least 100 gold and hybrid articles, the share of those articles it reported. Reporters are matched to OpenAlex by ROR ID.
- List price: OpenAlex
apc_listfor the article, converted to euros from its own currency at the European Central Bank’s average rate for the year paid. OpenAlex holds year-by-year list prices (apc_usd_by_yearon the source) only from 2019; older articles carry the latest price it holds. - Close to list: fee paid within 10% of the list price, either way.
Check it yourself (in a browser)
-
2023 gold and hybrid articles: https://api.openalex.org/works?filter=type:article,oa_status:gold hybrid,publication_year:2023&group_by=oa_status -
The same by author country: https://api.openalex.org/works?filter=type:article,oa_status:gold hybrid,publication_year:2023&group_by=authorships.countries - An article paid €960 in 2013 that carries the latest list price: https://api.openalex.org/works?filter=doi:10.3389/fpsyg.2013.00318&select=id,publication_year,apc_list,apc_paid
- That journal’s year-by-year prices: https://api.openalex.org/sources/S9692511?select=display_name,apc_prices,apc_usd_by_year
- OpenAPC’s own totals: the README at https://github.com/OpenAPC/openapc-de
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
cache/: the OpenAPC downloads and the article-level files (OpenAlex records for each DOI, the joined table, author countries). About 470 MB, and article-level, so not published; the scripts rebuild it.- The charts were drawn as Claude Docs chart widgets from the rows in
results/(named inMANIFEST.md);figures/holds the published images.
