skillfed

arxiv

Python wrapper for the arXiv API

arxiv v4.0.1 19.6M downloads/30d#1,058 on PyPI1,541
Permissive license MIT Active released

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 arxiv

uv

uv add arxiv

poetry

poetry add arxiv

Installing 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

Development Status :: 5 - Production/StableIntended Audience :: DevelopersIntended Audience :: Science/ResearchLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 3Programming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Scientific/EngineeringTopic :: Software Development :: Libraries :: Python Modules

Tags

arxiv paper search apifetch arxiv papers pythonarxiv metadata retrievalarxiv query wrapperdownload arxiv preprintsarxiv api clientsearch academic papers
academic-searchapi-wrappermetadata-retrieval

More Scientific/Engineering packages