Citation Graph — Free ResearchRabbit Analog
Overview
A free alternative to ResearchRabbit and Connected Papers that needs no API key, account or
subscription. Given a seed DOI (or several seeds), this skill walks the open citation
network (OpenCitations, with the
Semantic Scholar Graph API where OpenCitations
has no data) outward in both directions and assembles a citation / co-citation graph of the
local literature:
- Backward edges — the works each seed cites (its reference list).
- Forward edges — the works that cite each seed.
It then ranks the discovered neighbourhood by co-citation strength — how many of the seed
papers a candidate work connects to, via shared references, shared citers, and direct seed
links — surfacing the papers most central to the topic, just like ResearchRabbit's "Similar
Work" panels. The whole graph is exported as GraphML (open in Gephi, Cytoscape, yEd, or
networkx) and JSON (for downstream code).
No key needed — where the data comes from. Every source is keyless (checked live
2026-11-02):
- OpenCitations Index v2 (
/index/v2/references/doi:<doi> and /citations/doi:<doi>)
lists the DOIs a work cites and the DOIs citing it — open Crossref, DataCite and PubMed
citation data, arXiv preprints included under their 10.48550/arXiv.<id> DOI. The
citations answer is one unpaginated array, so the script reads it as a stream and stops at
--per-seed.
- Semantic Scholar (
/graph/v1/paper/<id>/references, /citations, /paper/batch)
fills the gaps: works OpenCitations has no reference list for (preprints, publishers that
deposit none) and metadata for DOIs Crossref does not register. Its keyless pool is shared
and often answers HTTP 429; the script backs off 2 + 4 + 8 s, then pauses Semantic Scholar
for 30 s and lists on stderr which works it could not check (not checked, never "no
references"). An optional S2_API_KEY gives a dedicated rate limit.
- Crossref (
/works?filter=doi:…, 40 DOIs per call) supplies titles, years and citation
counts for the seeds and ranked works; doi.org content negotiation covers the rest.
Checked live on 2026-11-02: the Ryan & Deci seed built a 972-node graph in 17 s, and BERT +
arXiv:1706.03762 a merged 422-node graph in 15 s, keyless. OpenAlex is no longer used: since
2026 its keyless list calls share a small per-IP daily budget, so dependable use needed an
account. Don't suggest mailto= or a key; neither is needed.
When to Use This Skill
- Map a literature landscape from a starting paper — "I have one key paper, show me the
field around it."
- Find seminal / highly co-cited papers in an area without manually chasing references.
- Snowball a reference network (forward and backward citation chasing) for a review.
- Build a citation map or run a co-citation analysis for a methods/visualization figure.
- Visualize how a research area connects — export to Gephi/Cytoscape for a network figure.
This is the graph-building / discovery tool; it needs a seed work to walk from.
Does NOT Trigger
| Scenario |
Use Instead |
| Free-text research question with no seed paper |
alterlab-research-lookup |
| Checking that each bibliography entry exists / spotting hallucinated or retracted refs |
alterlab-citation-verifier |
| Searching PubMed for biomedical records (MeSH terms, PMIDs, PubMed's own related-articles list) |
alterlab-pubmed |
| Systematic review with PRISMA screening and risk-of-bias |
alterlab-literature-review |
| Centrality or community analysis of your own (non-citation) relational data |
alterlab-sna |
Hand-off rule. When the request matches a row above, open your answer by naming that skill by its exact id (for example alterlab-research-lookup) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.
Quick Start
# No key, no setup. One seed DOI, default 1-hop walk, both formats next to a basename:
uv run python scripts/build_graph.py \
--seed 10.1038/nphys1170 \
--out graph/seed1
# -> graph/seed1.graphml + graph/seed1.json
# Several seeds (DOI / arXiv id), deeper walk, larger ranking:
uv run python scripts/build_graph.py \
--seed 10.1038/nphys1170 \
--seed 10.18653/v1/N19-1423 \
--seed arXiv:2310.06825 \
--depth 2 --per-seed 50 --top 40 \
--out graph/transformer
# Offline smoke test (no network) — verifies the pipeline end-to-end:
uv run python scripts/build_graph.py --self-test
How It Works
- Resolve seeds. Each
--seed becomes a node id, its lowercase DOI. Accepted forms: a
bare DOI (10.1038/nphys1170), a DOI URL, doi:<doi>, or an arXiv id (arXiv:1706.03762
/ 1706.03762, which becomes its DataCite DOI 10.48550/arxiv.1706.03762). OpenAlex work
ids (W…) are refused with a message asking for the DOI.
- Expand backward. Each seed's reference list from OpenCitations, or from Semantic
Scholar when OpenCitations has none, adds
seed -> reference edges.
- Expand forward. The works citing the seed (OpenCitations stream cut at
--per-seed,
or Semantic Scholar's /citations when OpenCitations has none) add citer -> seed edges,
and each citer's own reference list is read the same way, so co-citation and coupling
can be counted.
- Walk deeper. With
--depth N, repeat the forward expansion on first-hop citers (N >= 2).
- Rank by co-citation. Each non-seed node is scored by
shared_refs + shared_citers + direct_seed_links — bibliographic coupling and co-citation against the seed set — with
global cited_by_count as the tie-breaker so canonical works float to the top.
- Hydrate. OpenCitations returns bare DOIs, so the seeds' and ranked works' titles, years
and citation counts come from Crossref (
filter=doi:…, 40 per call), then Semantic
Scholar's batch endpoint and doi.org for what Crossref lacks, and the table is re-ranked.
- Export. Write
<out>.graphml and <out>.json.
Options
| Flag |
Default |
Meaning |
--seed (repeatable) |
— |
Seed DOI, DOI URL, or arXiv id. At least one required. |
--citers-source |
auto |
auto: OpenCitations, then Semantic Scholar for works it has none for. opencitations or semanticscholar: that source only. |
--depth |
1 |
Citation hops to expand. |
--per-seed |
25 |
Max citing works fetched per work. |
--top |
25 |
Size of the co-citation ranking table. |
--out |
citation_graph |
Output basename; writes <out>.graphml and <out>.json. |
--sleep |
0.0 |
Extra seconds to wait after each API call. |
--self-test |
— |
Run the offline self-test and exit (no network). |
The retired --api-key and --mailto flags are still accepted and ignored, so older commands
run. S2_API_KEY (environment only, sent as a header) is the one optional credential.
Output
GraphML (<out>.graphml) — a directed graph with node attributes title, year,
doi, role (seed / reference / citation / neighbor), and cited_by_count. Open it
directly in Gephi, Cytoscape, yEd, or networkx.read_graphml.
JSON (<out>.json) — schema alterlab-citation-graph/1.0. Node ids are lowercase DOIs
(an arXiv preprint is 10.48550/arxiv.<id>); a work with no DOI is pmid:<n> or
s2:<paperId>. cited_by_count comes from Crossref, or Semantic Scholar for works Crossref
does not register, so counts are comparable only roughly:
{
"schema": "alterlab-citation-graph/1.0",
"seeds": ["10.1038/nphys1170"],
"node_count": 142,
"edge_count": 318,
"nodes": [ { "id": "10.…", "title": "…", "year": 2017, "doi": "10.…", "role": "citation", "cited_by_count": 8123 } ],
"edges": [ { "source": "10.…", "target": "10.…" } ],
"cocitation_ranking": [
{ "id": "10.…", "title": "…", "cocitation": 4, "shared_refs": 2,
"shared_citers": 1, "direct_seed_links": 1, "cited_by_count": 8123 }
]
}
Access & Limits
- Just run it. Don't stop to ask for a key or an account: the run is keyless and prints a
note naming its sources.
S2_API_KEY only helps when Semantic Scholar keeps answering 429;
if the user wants one, ask them to set it themselves rather than paste it into chat.
- HTTP 429 from Semantic Scholar means its shared keyless pool is busy. The script backs
off, then pauses that source and reports the works it could not check on stderr; edges
OpenCitations supplied are unaffected. Say so when you report the graph, and re-run later if
a preprint seed's references were among them.
- No silent truncation. A seed whose references or citing works no source could answer for
(both services down, or no DOI they know) stops the run with an explicit error instead of
writing a truncated graph; for deeper hops the script warns and skips that one node.
- Bound the walk. Each citer costs one reference-list call, so
--depth 2 with a large
--per-seed fans out fast; keep --per-seed reasonable and raise --sleep if a service
slows you down.
- Coverage caveat. OpenCitations and Semantic Scholar coverage is broad but imperfect: very
new preprints may have few citing works, and the script takes the first
--per-seed citers
OpenCitations lists (not a ranked sample), so a single-seed ranking can lean on the seed's own
references. A published paper and its arXiv preprint are separate nodes (different DOIs).
- arXiv seeds. An
arXiv:<id> seed is walked under its DataCite DOI
(10.48550/arXiv.<id>), with Semantic Scholar supplying its reference list. If the preprint
has a published version, add that DOI as a second seed to merge both citation sets.
Complementary Tools
| Task |
Tool |
| Add the papers you pick from the ranking to Zotero (DOI → item, collections) |
alterlab-pyzotero |
| Check link/DOI health in a manuscript |
alterlab-link-health |
| Draw or restyle the network figure beyond Gephi defaults |
alterlab-networkx |
Part of the AlterLab Academic Skills suite.
1---2name: alterlab-citation-graph3description: "Free ResearchRabbit / Connected Papers analog — builds a citation and co-citation graph around one or more seed papers from open citation data (the OpenCitations index and Semantic Scholar, with titles from Crossref), with no API key, account or subscription. Walks both directions of the citation network (works the seed cites and works that cite the seed), ranks the discovered neighbourhood by co-citation strength and bibliographic coupling to surface the papers most central to a topic's literature, and exports the network as GraphML (Gephi / Cytoscape / yEd) and JSON. Use when mapping a literature landscape, finding seminal or highly co-cited papers from a seed DOI, snowballing a reference network, building a citation map / co-citation analysis, or visualizing how a research area's papers connect. Part of the AlterLab Academic Skills suite."4license: MIT5allowed-tools: Read Write Edit Bash(python:*) Bash(python3:*) Bash(uv run:*)6compatibility: "No API key required: references and citing works come from the keyless OpenCitations Index v2, with the keyless Semantic Scholar Graph API for works OpenCitations has no data for (backs off on HTTP 429), and titles from Crossref and doi.org. Optional S2_API_KEY only raises Semantic Scholar's rate limit. Network access to api.opencitations.net, api.semanticscholar.org, api.crossref.org and doi.org; stdlib-only, runs under bare `uv run python`."7metadata:8 source: https://skillmd.com/skills/alterlab-ieu/alterlab-citation-graph9 skill-author: AlterLab10 version: "1.3.0"11 last_updated: "2026-11-02"12 credentials: "optional: S2_API_KEY or SEMANTIC_SCHOLAR_API_KEY (a dedicated Semantic Scholar rate limit instead of the shared keyless pool; never needed for a graph)"13---1415# Citation Graph — Free ResearchRabbit Analog1617## Overview1819A free alternative to ResearchRabbit and Connected Papers that needs no API key, account or20subscription. Given a **seed DOI** (or several seeds), this skill walks the open citation21network ([OpenCitations](https://opencitations.net), with the22[Semantic Scholar](https://www.semanticscholar.org/product/api) Graph API where OpenCitations23has no data) outward in both directions and assembles a citation / **co-citation** graph of the24local literature:2526- **Backward edges** — the works each seed *cites* (its reference list).27- **Forward edges** — the works that *cite* each seed.2829It then **ranks the discovered neighbourhood by co-citation strength** — how many of the seed30papers a candidate work connects to, via shared references, shared citers, and direct seed31links — surfacing the papers most central to the topic, just like ResearchRabbit's "Similar32Work" panels. The whole graph is exported as **GraphML** (open in Gephi, Cytoscape, yEd, or33networkx) and **JSON** (for downstream code).3435**No key needed — where the data comes from.** Every source is keyless (checked live362026-11-02):37381. **OpenCitations Index v2** (`/index/v2/references/doi:<doi>` and `/citations/doi:<doi>`)39 lists the DOIs a work cites and the DOIs citing it — open Crossref, DataCite and PubMed40 citation data, arXiv preprints included under their `10.48550/arXiv.<id>` DOI. The41 citations answer is one unpaginated array, so the script reads it as a stream and stops at42 `--per-seed`.432. **Semantic Scholar** (`/graph/v1/paper/<id>/references`, `/citations`, `/paper/batch`)44 fills the gaps: works OpenCitations has no reference list for (preprints, publishers that45 deposit none) and metadata for DOIs Crossref does not register. Its keyless pool is shared46 and often answers HTTP 429; the script backs off 2 + 4 + 8 s, then pauses Semantic Scholar47 for 30 s and lists on stderr which works it could not check (not checked, never "no48 references"). An optional `S2_API_KEY` gives a dedicated rate limit.493. **Crossref** (`/works?filter=doi:…`, 40 DOIs per call) supplies titles, years and citation50 counts for the seeds and ranked works; **doi.org** content negotiation covers the rest.5152Checked live on 2026-11-02: the Ryan & Deci seed built a 972-node graph in 17 s, and BERT +53`arXiv:1706.03762` a merged 422-node graph in 15 s, keyless. OpenAlex is no longer used: since542026 its keyless list calls share a small per-IP daily budget, so dependable use needed an55account. Don't suggest `mailto=` or a key; neither is needed.5657## When to Use This Skill5859- **Map a literature landscape** from a starting paper — "I have one key paper, show me the60 field around it."61- **Find seminal / highly co-cited papers** in an area without manually chasing references.62- **Snowball a reference network** (forward and backward citation chasing) for a review.63- **Build a citation map or run a co-citation analysis** for a methods/visualization figure.64- **Visualize how a research area connects** — export to Gephi/Cytoscape for a network figure.6566This is the *graph-building / discovery* tool; it needs a seed work to walk from.6768### Does NOT Trigger6970| Scenario | Use Instead |71|----------|-------------|72| Free-text research question with no seed paper | `alterlab-research-lookup` |73| Checking that each bibliography entry exists / spotting hallucinated or retracted refs | `alterlab-citation-verifier` |74| Searching PubMed for biomedical records (MeSH terms, PMIDs, PubMed's own related-articles list) | `alterlab-pubmed` |75| Systematic review with PRISMA screening and risk-of-bias | `alterlab-literature-review` |76| Centrality or community analysis of your own (non-citation) relational data | `alterlab-sna` |7778**Hand-off rule.** When the request matches a row above, open your answer by naming that skill by its exact id (for example `alterlab-research-lookup`) and saying in one line why it fits better, then stop applying this skill's procedure. Name it even when you also need to ask for missing input. If only part of the request is out of scope, name the skill for that part and do only the in-scope part. A brief general pointer is fine; the named skill does the work.7980## Quick Start8182```bash83# No key, no setup. One seed DOI, default 1-hop walk, both formats next to a basename:84uv run python scripts/build_graph.py \85 --seed 10.1038/nphys1170 \86 --out graph/seed187# -> graph/seed1.graphml + graph/seed1.json88```8990```bash91# Several seeds (DOI / arXiv id), deeper walk, larger ranking:92uv run python scripts/build_graph.py \93 --seed 10.1038/nphys1170 \94 --seed 10.18653/v1/N19-1423 \95 --seed arXiv:2310.06825 \96 --depth 2 --per-seed 50 --top 40 \97 --out graph/transformer98```99100```bash101# Offline smoke test (no network) — verifies the pipeline end-to-end:102uv run python scripts/build_graph.py --self-test103```104105## How It Works1061071. **Resolve seeds.** Each `--seed` becomes a node id, its lowercase DOI. Accepted forms: a108 bare DOI (`10.1038/nphys1170`), a DOI URL, `doi:<doi>`, or an arXiv id (`arXiv:1706.03762`109 / `1706.03762`, which becomes its DataCite DOI `10.48550/arxiv.1706.03762`). OpenAlex work110 ids (`W…`) are refused with a message asking for the DOI.1112. **Expand backward.** Each seed's reference list from OpenCitations, or from Semantic112 Scholar when OpenCitations has none, adds `seed -> reference` edges.1133. **Expand forward.** The works citing the seed (OpenCitations stream cut at `--per-seed`,114 or Semantic Scholar's `/citations` when OpenCitations has none) add `citer -> seed` edges,115 and each citer's own reference list is read the same way, so co-citation and coupling116 can be counted.1174. **Walk deeper.** With `--depth N`, repeat the forward expansion on first-hop citers (`N >= 2`).1185. **Rank by co-citation.** Each non-seed node is scored by `shared_refs + shared_citers +119 direct_seed_links` — bibliographic coupling and co-citation against the seed set — with120 global `cited_by_count` as the tie-breaker so canonical works float to the top.1216. **Hydrate.** OpenCitations returns bare DOIs, so the seeds' and ranked works' titles, years122 and citation counts come from Crossref (`filter=doi:…`, 40 per call), then Semantic123 Scholar's batch endpoint and doi.org for what Crossref lacks, and the table is re-ranked.1247. **Export.** Write `<out>.graphml` and `<out>.json`.125126## Options127128| Flag | Default | Meaning |129|------|---------|---------|130| `--seed` (repeatable) | — | Seed DOI, DOI URL, or arXiv id. At least one required. |131| `--citers-source` | `auto` | `auto`: OpenCitations, then Semantic Scholar for works it has none for. `opencitations` or `semanticscholar`: that source only. |132| `--depth` | `1` | Citation hops to expand. |133| `--per-seed` | `25` | Max citing works fetched per work. |134| `--top` | `25` | Size of the co-citation ranking table. |135| `--out` | `citation_graph` | Output basename; writes `<out>.graphml` and `<out>.json`. |136| `--sleep` | `0.0` | Extra seconds to wait after each API call. |137| `--self-test` | — | Run the offline self-test and exit (no network). |138139The retired `--api-key` and `--mailto` flags are still accepted and ignored, so older commands140run. `S2_API_KEY` (environment only, sent as a header) is the one optional credential.141142## Output143144**GraphML** (`<out>.graphml`) — a directed graph with node attributes `title`, `year`,145`doi`, `role` (`seed` / `reference` / `citation` / `neighbor`), and `cited_by_count`. Open it146directly in Gephi, Cytoscape, yEd, or `networkx.read_graphml`.147148**JSON** (`<out>.json`) — schema `alterlab-citation-graph/1.0`. Node ids are lowercase DOIs149(an arXiv preprint is `10.48550/arxiv.<id>`); a work with no DOI is `pmid:<n>` or150`s2:<paperId>`. `cited_by_count` comes from Crossref, or Semantic Scholar for works Crossref151does not register, so counts are comparable only roughly:152153```json154{155 "schema": "alterlab-citation-graph/1.0",156 "seeds": ["10.1038/nphys1170"],157 "node_count": 142,158 "edge_count": 318,159 "nodes": [ { "id": "10.…", "title": "…", "year": 2017, "doi": "10.…", "role": "citation", "cited_by_count": 8123 } ],160 "edges": [ { "source": "10.…", "target": "10.…" } ],161 "cocitation_ranking": [162 { "id": "10.…", "title": "…", "cocitation": 4, "shared_refs": 2,163 "shared_citers": 1, "direct_seed_links": 1, "cited_by_count": 8123 }164 ]165}166```167168## Access & Limits169170- **Just run it.** Don't stop to ask for a key or an account: the run is keyless and prints a171 note naming its sources. `S2_API_KEY` only helps when Semantic Scholar keeps answering 429;172 if the user wants one, ask them to set it themselves rather than paste it into chat.173- **HTTP 429 from Semantic Scholar** means its shared keyless pool is busy. The script backs174 off, then pauses that source and reports the works it could not check on stderr; edges175 OpenCitations supplied are unaffected. Say so when you report the graph, and re-run later if176 a preprint seed's references were among them.177- **No silent truncation.** A seed whose references or citing works no source could answer for178 (both services down, or no DOI they know) stops the run with an explicit error instead of179 writing a truncated graph; for deeper hops the script warns and skips that one node.180- **Bound the walk.** Each citer costs one reference-list call, so `--depth 2` with a large181 `--per-seed` fans out fast; keep `--per-seed` reasonable and raise `--sleep` if a service182 slows you down.183- **Coverage caveat.** OpenCitations and Semantic Scholar coverage is broad but imperfect: very184 new preprints may have few citing works, and the script takes the first `--per-seed` citers185 OpenCitations lists (not a ranked sample), so a single-seed ranking can lean on the seed's own186 references. A published paper and its arXiv preprint are separate nodes (different DOIs).187- **arXiv seeds.** An `arXiv:<id>` seed is walked under its DataCite DOI188 (`10.48550/arXiv.<id>`), with Semantic Scholar supplying its reference list. If the preprint189 has a published version, add that DOI as a second seed to merge both citation sets.190191## Complementary Tools192193| Task | Tool |194|------|------|195| Add the papers you pick from the ranking to Zotero (DOI → item, collections) | `alterlab-pyzotero` |196| Check link/DOI health in a manuscript | `alterlab-link-health` |197| Draw or restyle the network figure beyond Gephi defaults | `alterlab-networkx` |198199Part of the AlterLab Academic Skills suite.