Skip to main content

myADS

myADS is a lightweight Python package to track citations to your (or others') research papers via the NASA ADS API.

It helps you:

  • Report an author's current citation stats with author position and publication IDs
  • Detect new or updated citations since the last check
  • Find missing papers with deep search (any author position)
  • Search for any author's publications without database tracking
  • Maintain a local, efficient database for fast querying

Installation

Install from PyPI with:

pip install myads

Or install from source:

git clone https://github.com/stuartmcalpine/myADS.git
cd myADS
pip install .

Getting Started

No manual database setup needed — it is created automatically at ~/.local/share/myads/database.db the first time you run a command (see Database Location to change this).

1. Add Your ADS API Token

First, get your token here.

Then add it:

myads add-token YOUR-ADS-API-TOKEN

2. Add Authors to Track

Add an author by their name:

myads add-author "FirstName" "LastName" --orcid ORCID-ID

About ORCID:

  • Optional but highly recommended to avoid name ambiguity
  • Enables tracking papers at any author position (where ORCID is attached in ADS)
  • Without ORCID, only first-author papers are tracked by default

Example:

myads add-author "Jane" "Doe" --orcid 0000-0002-1825-0097

You can list authors you've added:

myads list-authors

Remove an author:

myads remove-author AUTHOR_ID

(Find AUTHOR_ID by listing authors.)

Usage

Check for New Citations

myads check
  • Checks for any new or updated citations to your tracked papers
  • You can target a specific author:
myads check --author-id 1
  • See more detail (including updated citations):
myads check --verbose
  • Deep check to find co-authored papers not captured by ORCID search (uses name matching):
myads check --deep --author-id 1

This finds papers where the author appears at any position but the ORCID isn't attached in ADS, or for authors without ORCID who want to track co-authored work. You'll be prompted to confirm each candidate paper. Papers you reject are remembered, so you won't be asked again. To reset this memory:

myads clear-rejected --author-id 1

Note: During myads check, you may be prompted to remove papers that exist in your local database but are no longer found in ADS results. This typically happens when author metadata is corrected in ADS, ORCIDs are updated, or papers are retracted. Answer 'n' to keep the paper if you know it's yours, or use myads ignore to exclude it from tracking.

Generate a Citation Report

myads report
  • Displays a report with:
    • Publication ID (for ignoring papers)
    • Author position (1st, 2nd, 3rd, ...)
    • Total citations
    • Recent citations (last 90 days)
    • Citations per year
    • Publication year
    • Direct ADS links

You can generate a report for a specific author:

myads report --author-id 1

For a detailed per-paper breakdown including a quarterly citation timeline, use --extended:

myads report --extended

To show only specific publications (IDs from the report), use --id:

myads report --id 12 15 --extended

Ignore Publications

Mark conference proceedings, theses, or other papers you don't want to track:

myads ignore PUBLICATION_ID --reason "conference proceedings"

View ignored papers:

myads list-ignored

Restore tracking:

myads unignore PUBLICATION_ID

Search Without Tracking

Search for any author's publications without adding them to your database:

myads search "Jane" "Doe"

Options:

  • --orcid ORCID-ID - Restrict results to papers matching both ORCID and author name (AND logic)
  • --first-author-only - Restrict to first author papers only
  • --format {table,json,csv} - Output format
  • --max-rows N - Number of results (default: 100)
  • --sort FIELD - ADS sort order (default: "citation_count desc")
  • --no-stats - Skip the summary statistics (table format only)

Example:

myads search "Jane" "Doe" --orcid 0000-0002-1825-0097 --format csv > output.csv

Command Overview

Command Purpose
myads add-author "First" "Last" [--orcid ORCID] Add a new author
myads remove-author AUTHOR_ID Remove an author
myads list-authors List all tracked authors
myads add-token YOUR-TOKEN Add or update your ADS API token
myads check [--author-id ID] [--verbose] [--deep] [--max-rows N] Check for new/updated citations
myads report [--author-id ID] [--show-ignored] [--extended] [--id ID ...] Generate citation reports
myads ignore PUBLICATION_ID [--reason TEXT] Mark publication as ignored
myads unignore PUBLICATION_ID Restore tracking for publication
myads list-ignored [--author-id ID] List ignored publications
myads clear-rejected [--author-id ID] Clear deep check rejection memory
myads list-rejected [--author-id ID] View rejected papers from deep check
myads search "First" "Last" [--orcid ORCID] [--first-author-only] [--format FMT] One-off author search

All commands accept a global --db-path PATH option placed before the command (e.g. myads --db-path my.db report).

How it Works

Local Database: myADS uses an SQLite database to track publications, citations, and authors. This approach efficiently updates data and minimizes API calls.

Smart Citation Metrics:

  • Recent citations are based on citing papers published in the last 90 days
  • Citations per year are computed dynamically
  • H-index is estimated automatically
  • Author position is determined from the full author list

Deep Search: Default tracking behavior depends on ORCID: with ORCID, myADS tracks papers at any author position (where ORCID is attached in ADS) plus first-author papers by name; without ORCID, only first-author papers are tracked. Use --deep to find additional co-authored papers not captured by ORCID search, with interactive confirmation to avoid false matches.

Automatic Resilience:

  • Failed ADS requests are retried with exponential back-off
  • A clear error is raised if your ADS token is invalid or expired (re-run myads add-token)
  • The database and its tables are created automatically, and older databases are migrated in place

Tips

  • Adding ORCIDs enables tracking at any author position (not just first author) and avoids name ambiguity
  • Use --deep periodically to catch co-authored papers where ORCID wasn't properly linked in ADS
  • Ignore conference proceedings or other non-article publications to clean up your reports
  • Use myads search to quickly check someone's work without adding them to your database
  • Set up a cron job or scheduled task to run myads check weekly
  • You can track multiple authors — perfect for research groups

Troubleshooting

Database Location

By default, myADS stores its database at:

  • ~/.local/share/myads/database.db (XDG spec, recommended)
  • ~/myADS_database.db (legacy location, if it already exists)

Customize location:

# Using environment variable
export MYADS_DATABASE_PATH=/custom/path/myads.db
myads check

# Using command-line flag
myads --db-path /custom/path/myads.db check

No Publications Found

If myads check or myads search returns no results:

With ORCID:

  • Verify your ORCID is correct on orcid.org
  • Check that ADS has linked your ORCID to your papers
  • Verify name spelling matches ADS records
  • Try --deep to find papers without ORCID metadata

Without ORCID:

  • Only first-author papers are tracked by default
  • Add an ORCID for better coverage
  • Use --deep to search all author positions
  • Check name spelling and format (e.g., "Last, First")

Paper Removal Prompts

During myads check, you may be prompted to remove papers not found in current ADS results.

Common causes:

  • Author metadata corrected in ADS (name spelling changed)
  • ORCID associations updated or removed
  • Paper retracted or moved to different collection
  • Your search criteria changed (e.g., added ORCID)

What to do:

  • Answer 'n' to keep the paper if you know it's yours
  • Use myads ignore <pub_id> to keep but exclude from tracking
  • Answer 'y' to remove if it was incorrectly added

Rate Limits

ADS API has daily rate limits. If you hit the limit:

  • Reduce --max-rows to fetch fewer results
  • Wait 24 hours for limit reset
  • Check remaining calls: the number of calls used and remaining is logged when each run finishes (set LOGLEVEL=WARNING to hide it)

Python API

The ADS query layer can also be used directly from Python:

from myads import ADSQueryWrapper

ads = ADSQueryWrapper("YOUR-ADS-API-TOKEN")

# Generic query (up to 2000 rows per request)
result = ads.get(q='author:"Doe, Jane"', fl="title,bibcode,citation_count,pubdate",
                 sort="citation_count desc", rows=50)
print(result.num_found)
df = result.papers_df          # pandas DataFrame (adds ads_link, years_since_pub,
                               # citation_count_per_year when the fields are present)
for paper in result.papers:    # ADSPaper objects; missing fields are None
    print(paper.bibcode, paper.title)

# Paginate through every result
pages = ads.get_all_results(q='author:"Doe, Jane"', fl="bibcode,title")

# Convenience helpers
ads.citations("2020ApJ...900....1D")   # papers citing a bibcode
ads.references("2020ApJ...900....1D")  # papers referenced by a bibcode
ads.search_author("Doe, Jane")

The citation tracker is available as myads.cite_tracker.CitationTracker, which exposes the same operations as the CLI.

Development

pip install -e ".[dev]"  # Install with dev dependencies (pytest, black, ruff, mypy)
pip install -e ".[viz]"  # Install with visualization dependencies for notebooks
pytest tests/            # Run the test suite (no real ADS calls are made)

Disclaimer

This tool queries the NASA/ADS database under fair-use API limits. Make sure you have appropriate permissions and token access.

License

MIT License — see LICENSE.


Made for astronomers and researchers by Stuart McAlpine.

Metadata

Release files for myads 3.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for myads 3.3.0
File Size Uploaded Provenance Actions
myads-3.3.0.tar.gz 38.5 kB With provenance Details for myads-3.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for myads 3.3.0
File Interpreter ABI Platform Actions
myads-3.3.0-py3-none-any.whl Python 3 none any Details for myads-3.3.0-py3-none-any.whl

Total release size: 73.4 kB

Release files / myads-3.3.0.tar.gz

Download URL myads-3.3.0.tar.gz
Size 38.5 kB
Tags Source
SHA-256 checksum
How to use checksums
023914cf41b740a51d2900d0586e093338446d5514f95584a74f3554a1074617
BLAKE2b-256 checksum
How to use checksums
b2aeab55f6e9039521f77c9ead9fad3f576e92501d2db62a7e4dd734cdfdcf95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Release files / myads-3.3.0-py3-none-any.whl

Download URL myads-3.3.0-py3-none-any.whl
Size 34.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1d882f460298a38d374de1168261ba269b848f766a6fe565e1b2d0fb23fc5176
BLAKE2b-256 checksum
How to use checksums
8563cd8c804494198b996f61294144959f597a14d66b6c8d358f86ff7249389e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

Security for myads 3.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for myads-3.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 19, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page