ADS Paper Search
Use ADS/SciX first when you need authoritative paper metadata such as bibcode, DOI, journal, volume, and page. Use arXiv when you need public search without a token or want preprint metadata.
Data sources
- ADS/SciX API endpoint:
https://api.adsabs.harvard.edu/v1/search/query
- arXiv public API endpoint:
https://export.arxiv.org/api/query
Authentication
- ADS requires the environment variable
ADS_API_TOKEN
- arXiv public search does not require a token
- If ADS token is missing, do not guess metadata; fall back to arXiv only when arXiv is suitable
Good use cases
- Find paper metadata from a bibcode such as
2020PhRvD.101h3520Y
- Resolve title, author list, DOI, abstract, journal, volume, page
- Search preprints by arXiv query or arXiv ID
- Generate or fix BibTeX entries in
ref.bib
- Check whether two bib entries are duplicates
Minimal ADS query pattern
curl -sS -H "Authorization: Bearer $ADS_API_TOKEN" \
"https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2020PhRvD.101h3520Y&fl=title,author,year,bibcode,doi,abstract,pub,volume,page"
Minimal arXiv query patterns
Search by keywords:
curl -sS "https://export.arxiv.org/api/query?search_query=all:21cm&start=0&max_results=5"
Search by arXiv ID:
curl -sS "https://export.arxiv.org/api/query?id_list=1911.07442"
Recommended ADS fields
Use fl= with these fields when repairing references:
title
author
year
bibcode
doi
abstract
pub
volume
page
Workflow
- Query ADS by bibcode when available.
- If no bibcode, query ADS by DOI or exact title.
- If ADS token is unavailable or the paper is only a preprint, use arXiv.
- Read the response carefully and do not invent missing fields.
- When creating BibTeX, keep the citation key already used by the project unless the user asks to rename it.
- If replacing a duplicate or wrong entry, explain which old entry was wrong and which API record replaces it.
Notes
- Prefer ADS for published-paper metadata.
- Prefer arXiv for public searching and preprints.
- arXiv returns Atom XML, not JSON; parse carefully.
Example task
For a broken yoshiura2020b entry, query ADS by the target bibcode, then rewrite only that BibTeX block with the returned metadata. If a user instead gives an arXiv ID, query arXiv first and only add journal metadata if ADS is also available.
1---2name: ads-paper-search3description: Use when looking up astronomy or physics papers by bibcode, arXiv ID, DOI, title, author, abstract, citation metadata, or when repairing BibTeX/reference entries with ADS/SciX or arXiv records.4---56# ADS Paper Search78Use ADS/SciX first when you need authoritative paper metadata such as bibcode, DOI, journal, volume, and page. Use arXiv when you need public search without a token or want preprint metadata.910## Data sources1112- ADS/SciX API endpoint: `https://api.adsabs.harvard.edu/v1/search/query`13- arXiv public API endpoint: `https://export.arxiv.org/api/query`1415## Authentication1617- ADS requires the environment variable `ADS_API_TOKEN`18- arXiv public search does not require a token19- If ADS token is missing, do not guess metadata; fall back to arXiv only when arXiv is suitable2021## Good use cases2223- Find paper metadata from a bibcode such as `2020PhRvD.101h3520Y`24- Resolve title, author list, DOI, abstract, journal, volume, page25- Search preprints by arXiv query or arXiv ID26- Generate or fix BibTeX entries in `ref.bib`27- Check whether two bib entries are duplicates2829## Minimal ADS query pattern3031```bash32curl -sS -H "Authorization: Bearer $ADS_API_TOKEN" \33 "https://api.adsabs.harvard.edu/v1/search/query?q=bibcode:2020PhRvD.101h3520Y&fl=title,author,year,bibcode,doi,abstract,pub,volume,page"34```3536## Minimal arXiv query patterns3738Search by keywords:3940```bash41curl -sS "https://export.arxiv.org/api/query?search_query=all:21cm&start=0&max_results=5"42```4344Search by arXiv ID:4546```bash47curl -sS "https://export.arxiv.org/api/query?id_list=1911.07442"48```4950## Recommended ADS fields5152Use `fl=` with these fields when repairing references:5354- `title`55- `author`56- `year`57- `bibcode`58- `doi`59- `abstract`60- `pub`61- `volume`62- `page`6364## Workflow65661. Query ADS by bibcode when available.672. If no bibcode, query ADS by DOI or exact title.683. If ADS token is unavailable or the paper is only a preprint, use arXiv.694. Read the response carefully and do not invent missing fields.705. When creating BibTeX, keep the citation key already used by the project unless the user asks to rename it.716. If replacing a duplicate or wrong entry, explain which old entry was wrong and which API record replaces it.7273## Notes7475- Prefer ADS for published-paper metadata.76- Prefer arXiv for public searching and preprints.77- arXiv returns Atom XML, not JSON; parse carefully.7879## Example task8081For a broken `yoshiura2020b` entry, query ADS by the target bibcode, then rewrite only that BibTeX block with the returned metadata. If a user instead gives an arXiv ID, query arXiv first and only add journal metadata if ADS is also available.