arxiv
Python wrapper for the arXiv API
What it is and what it does
arxiv is a Python wrapper around the arXiv API that lets you search the Cornell University Library's preprint repository and retrieve paper metadata. It abstracts away HTTP request handling, XML parsing, and pagination logic, exposing a simple Client-Search-Result interface. You construct a Search with a query string (supporting arXiv's advanced syntax), pass it to a Client, and iterate over Result objects containing title, authors, abstract, PDF URL, and other metadata.
The package is designed for researchers, data scientists, and developers who need programmatic access to arXiv papers. It handles connection pooling, configurable retry logic, and rate limiting through client-side delays. You can search by keyword, author, title, or paper ID; download PDFs and source tarballs; and customize pagination and retry behavior for different use cases.
Use it for:
- Build a research paper recommendation system by querying arXiv for papers matching specific topics and analyzing their metadata.
- Automate literature review by searching for papers in your field and downloading abstracts or full PDFs for batch processing.
- Monitor new preprints in a research area by running periodic searches and storing results in a database.
- Fetch paper metadata for citation analysis or bibliographic tools that need to enrich records with arXiv information.
- Create a personal paper library by searching and downloading papers matching your interests into local storage.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides a Python interface to search, retrieve metadata, and download papers from the arXiv preprint repository, handling API pagination, retries, and result parsing.
Yes. The package is actively maintained, has no known vulnerabilities, installs with low friction, and is widely used (top 5000 PyPI packages). MIT licensing imposes no restrictions. Install it if you need programmatic access to arXiv papers; the API is straightforward and the dependency footprint is small.
Install
arxiv on PyPI
pip
pip install arxivuv
uv add arxivpoetry
poetry add arxivInstalling arxiv
Before you install
Low friction install with three lightweight runtime dependencies (lxml, requests, typing-extensions). Active maintenance with a release 14 days ago and last commit on 2026-07-31; repository has 1541 stars and is not archived.
License in practice
MIT license (permissive) means you can use, modify, and distribute this package freely with minimal restrictions, provided you include the license notice.
Quickstart
pip install arxiv
import arxiv
client = arxiv.Client()
search = arxiv.Search(query="quantum", max_results=10)
for result in client.results(search):
print(result.title)
Requires Python 3.10 or later.
Verify before relying
- Rate-limiting behavior and whether arXiv's API enforces throttling that would affect bulk queries.
- Whether the package handles arXiv API outages or maintenance windows gracefully.
- Performance characteristics when fetching large result sets or complex queries.
Package facts
| License | MIT (permissive) |
| Python support | supports the current Python release (>=3.10) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — lxml, requests, typing-extensions |
| Maintenance | actively maintained — 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 19,631,249/month — #1,058 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: arxiv-4.0.1-py3-none-any.whl
Keywords: academic, api, arxiv, journals, papers, wrapper
Tags
More Scientific/Engineering packages
NumPy provides an N-dimensional array object…
permissive · top 100 on PyPI
pandaspandas provides fast, flexible data structures…
permissive · top 100 on PyPI
scipyscipy provides numerical algorithms for…
permissive · top 100 on PyPI
scikit-learnscikit-learn provides a comprehensive Python…
permissive · top 1,000 on PyPI
dilldill extends Python's pickle module to…
permissive · top 1,000 on PyPI
multiprocessMultiprocess is an enhanced fork of Python's…
permissive · top 1,000 on PyPI
arxiv-mcp-serverAn MCP server that exposes arXiv search, paper…
permissive · top 15,000 on PyPI
lexisnexisapiProvides a Python interface to the LexisNexis…
permissive · top 15,000 on PyPI
firecrawl-pyClient library for the Firecrawl API that…
permissive · top 5,000 on PyPI
firecrawlA Python SDK for web scraping, crawling,…
permissive · top 5,000 on PyPI
eventregistryQuery news articles and events from Event…
permissive · top 15,000 on PyPI
semanticscholarProvides a typed Python client for querying…
permissive · top 15,000 on PyPI
pyalexPyAlex is a Python interface to the OpenAlex…
permissive · top 15,000 on PyPI
pyzoteroPyzotero is a Python client library for the…
unclear · top 15,000 on PyPI
voyageaiProvides Python access to Voyage AI's embedding…
permissive · top 5,000 on PyPI