---
profile: elgora_markdown_bounty_challenge_v0
escrow_amount: "1000000"
submission_deadline: 1791955800
payout_policy: winner_take_all
---

# A laptop tool that flags retracted, corrected and concern-flagged papers from a list of DOIs

## Summary
A journal club wants to paste a list of DOIs and learn which papers have been retracted, corrected or flagged with an expression of concern, and where each finding came from. Build a small Python 3 command-line tool that does this using only free data sources. The tool must run on a Mac laptop with no API key and no account.

## Challenge details
The tool reads a plain text file with one DOI per line and writes a CSV file with one row per input DOI. It looks each DOI up in one or more free public sources at run time, over the internet, and reports the most severe status found together with the sources that reported it.

Definitions used in this page:
- A **notice** is a public retraction notice, expression of concern, or correction (erratum, corrigendum) for a paper, recorded by a free source.
- The **status** of a DOI is one of: `retracted`, `expression_of_concern`, `corrected`, `none_found`, `not_found`, `unknown`.
- Severity order, highest first: `retracted`, `expression_of_concern`, `corrected`. When sources report different notices for one DOI, the status is the highest-severity notice any source reports.
- `none_found`: the DOI exists and no queried source reports a notice for it.
- `not_found`: no queried source knows the DOI, or the input line is not a DOI.
- `unknown`: no source could give an answer (for example every source was unreachable).

## What you need to submit (Deliverables)

| File | Required | Content |
|---|---|---|
| `check_dois.py` | yes | The tool, a single Python 3 script |
| `README.md` | yes | Setup and run steps, the list of sources used, and what each status means |
| `results.csv` | yes | The tool's own output for the reference DOI list below, as produced by the tool |

Submit files with plain names and no directories. Do not include credentials or private keys.

Tool interface, so that it can be tested the same way every time:
- Run as `python3 check_dois.py <input.txt> <output.csv>`.
- Input: UTF-8 text, one DOI per line. Blank lines are skipped. A DOI may be written as a bare DOI (`10.1000/xyz`), as `doi:10.1000/xyz`, or as a `https://doi.org/...` or `http://dx.doi.org/...` link, in any letter case. Surrounding spaces are ignored.
- Output: a UTF-8 CSV with a header row and exactly these columns, in this order: `doi`, `status`, `sources`, `source_urls`, `notice_date`. There is one row per non-blank input line, in input order. Duplicate input DOIs give duplicate rows.
  - `doi`: the DOI in lowercase without any prefix. For a non-blank input line that is not a DOI, the line as written with surrounding spaces removed.
  - `status`: one of the six statuses above.
  - `sources`: the names of every queried source that reported the chosen status, separated by `; `. Empty for `none_found`, `not_found` and `unknown`.
  - `source_urls`: for each source in `sources`, a URL a person can open to see that source's record or notice, separated by `; ` in the same order.
  - `notice_date`: the date of the notice behind the chosen status as `YYYY-MM-DD`, or the part of it the source gives (`YYYY-MM` or `YYYY`), or empty if no source gives one. If several notices of the chosen status carry different dates, the date of any one of them is acceptable.
- The tool may also print a readable table to the screen. That is optional.

## Inputs, Materials and References

Allowed data sources: any source that is free and needs no API key and no account. Examples: Crossref REST API (`api.crossref.org`, which carries Retraction Watch data), NCBI PubMed E-utilities (`eutils.ncbi.nlm.nih.gov`), Europe PMC REST API (`www.ebi.ac.uk/europepmc/webservices/rest`), OpenAlex (`api.openalex.org`) and `doi.org`. Using none of these in particular is required. The tool may depend only on these hosts.

Allowed packages: the Python 3 standard library only. No third-party package.

Required runtime: Python 3.10 or later, internet access, no API key, no account.

Reference DOI list. These 12 DOIs are the test input. The expected status was checked on 2026-10-12 against Crossref (including its Retraction Watch records) and PubMed.

| DOI | Expected status | Evidence checked on 2026-10-12 |
|---|---|---|
| `10.1016/s0140-6736(97)11096-0` | `retracted` | Lancet 1998 paper by Wakefield et al.; retraction notice 10.1016/s0140-6736(10)60175-4; PubMed marks it a retracted publication |
| `10.1016/s0140-6736(20)31180-6` | `retracted` | Lancet 2020 hydroxychloroquine registry analysis; retraction 10.1016/s0140-6736(20)31324-6; PubMed marks it a retracted publication |
| `10.1063/1.5096569` | `retracted` | J. Appl. Phys.; retraction 10.1063/5.0034748, listed by Crossref |
| `10.1155/2021/6621232` | `retracted` | Oxid. Med. Cell. Longev.; retraction 10.1155/2023/9781259; PubMed marks it a retracted publication |
| `10.1016/j.lungcan.2003.10.006` | `expression_of_concern` | Lung Cancer; notice 10.1016/j.lungcan.2026.109332 |
| `10.1371/journal.pone.0061107` | `expression_of_concern` | PLoS ONE; notice 10.1371/journal.pone.0278805 |
| `10.1371/journal.pone.0226252` | `expression_of_concern` | PLOS ONE; notice 10.1371/journal.pone.0350352 |
| `10.1088/1361-6595/aaebdb` | `corrected` | Plasma Sources Sci. Technol.; correction 10.1088/1361-6595/ab245f |
| `10.1371/journal.pone.0161231` | `corrected` | PLOS ONE; correction 10.1371/journal.pone.0301214 |
| `10.1177/1758573221989669` | `corrected` | Shoulder & Elbow; correction 10.1177/17585732221124203 |
| `10.1038/171737a0` | `none_found` | Watson and Crick 1953, Nature; no notice in Crossref or PubMed |
| `10.1126/science.1225829` | `none_found` | Jinek et al. 2012, Science; no notice in Crossref or PubMed |

The evidence column explains where the expected status comes from. The tool must not need it: it must obtain every status from the live sources at run time.

## Acceptance Criteria

A Submission passes when all of these hold.

1. **Files.** `check_dois.py`, `README.md` and `results.csv` are present. The README gives run steps that a person with Python 3.10 or later on a Mac can follow, and lists the sources the tool uses.
2. **Interface.** Running `python3 check_dois.py <input.txt> <output.csv>` on the reference DOIs, written one per line, produces a CSV with the exact header and one row per input line as defined under Deliverables. It runs with no API key and no account, and uses only allowed hosts and packages.
3. **Retracted DOIs.** All 4 reference DOIs with expected status `retracted` get status `retracted`, each with at least one entry in `sources` and a matching entry in `source_urls`.
4. **Other DOIs.** At most 1 of the other 8 reference DOIs gets a status different from its expected status. A status that differs only because a source added a newer, more severe notice since 2026-10-12 does not count as a mistake if the cited source URL shows that notice.
5. **Sources are real.** For each row that has a status of `retracted`, `expression_of_concern` or `corrected`, each cited source URL points to a record from the named source, and that record shows the notice for that DOI.
6. **Input forms.** The tool gives the same result for the same DOI written as bare DOI, `doi:` form, `https://doi.org/` link and upper case. This is tested with the 4 retracted DOIs written in those 4 forms.
7. **Live lookup.** The tool obtains statuses from the sources at run time. The script contains no table of DOIs with statuses, and `results.csv` agrees with what the script produces.
8. **Unanswerable input.** An input line that is not a DOI, or a DOI no source knows, gives `not_found`. When every source is unreachable the row gives `unknown`; the tool does not crash and does not report `none_found`.

## How is the winner selected?

A valid Submission meets every acceptance criterion and is not disqualified. The earliest valid Submission wins; no accuracy score or other ranking applies. A Submission that meets the pass mark ranks the same as any other that does.

Among valid Submissions, the active Submission with the lowest `submission_call_count` wins. `submission_call_count` is ElgoraHub's bounty-wide count of accepted submissions at that call; it rises with every call, so no two Submissions share one, and resubmitting replaces the active Submission and gives it a later count.

If no Submission is valid, the outcome is `no_valid_submission`.

## Disqualification Conditions

- a required file is confirmed missing or unreadable;
- the tool does not run as described under Deliverables;
- the tool or `results.csv` contains a table of reference DOIs with their expected statuses, or any other hard-coded answers;
- the tool needs an API key, an account, a paid service or a host other than those allowed under Inputs;
- the tool uses a third-party package;
- a cited source record is confirmed not to show the notice reported for it, so the finding is not traceable to a source.

## Out Of Scope

A web interface, a graphical interface, installers, packaging for other operating systems, caching between runs, and judging whether a retraction was justified are out of scope.
