Skip to main content
v2026.11,858 entries · CC-BY 4.0

arXiv API: Query Syntax, Limits and Terms of Use

How the arXiv API works: query syntax, the 30,000-result cap, the one-request-per-3-seconds rule, and when to use OAI-PMH, S3 or Kaggle instead.

Written and maintained by CASRAI Editorial Board

Last updated

The arXiv API is arXiv’s programmatic search interface: a single HTTP endpoint that accepts a query and returns matching article metadata as Atom 1.0 XML. Before writing any code, note the three rules that decide whether a script is acceptable: no more than one request every three seconds on a single connection, a hard ceiling of 30,000 results per query, and a licence split in which the metadata is CC0 but the e-prints are not freely redistributable. Those limits are spread across three different arXiv pages, and this guide puts them side by side.

What the arXiv API is

arXiv describes the API as “real-time programmatic access” to its metadata and search, with every response returned in the body as Atom 1.0 rather than HTML or JSON. Requests go to export.arxiv.org, the host arXiv names for programmatic access: http://export.arxiv.org/api/query?{parameters}. One example in the user manual uses the https form of the same host. Errors also come back as Atom, as a single entry holding the error message.

The API returns descriptive metadata (titles, authors, abstracts, categories, dates and links). It is a search and lookup tool, not a bulk-download tool; for bulk work arXiv points elsewhere (see the access-route table below).

Who runs it and what it covers

The API is run by arXiv itself and documented in its user manual and in a separate Terms of Use for arXiv APIs. It covers arXiv’s own records, so it answers questions about arXiv preprints only, not the wider literature. The manual says new articles are only available to the API at midnight, so results for a given query change at most once a day, and it asks users to cache their results.

How to query the arXiv API

  1. Build the base request. Start from http://export.arxiv.org/api/query? and add parameters separated by &.
  2. Set search_query. Prefix each term with a field: ti (title), au (author), abs (abstract), cat (category) or all (all fields). The manual also lists co, jr, rn and id, but advises using id_list instead of id:.
  3. Combine terms. Use AND, OR and ANDNOT. Spaces are written as +, parentheses as %28 and %29, and phrase quotes as %22.
  4. Or fetch known records with id_list. Give a comma-separated list of arXiv IDs. If you supply both search_query and id_list, the API returns only those IDs from the list that also match the search.
  5. Restrict by date if needed. Use submittedDate:[YYYYMMDDTTTT+TO+YYYYMMDDTTTT], with times in 24-hour GMT to the minute.
  6. Page through results. start is a 0-based offset (default 0) and max_results is the page size (default 10).
  7. Sort. sortBy takes relevance, lastUpdatedDate or submittedDate; sortOrder takes ascending or descending.
  8. Parse the Atom feed. Each match is an entry in the feed. arXiv’s manual gives example code in Python (using urllib and feedparser), Perl and Ruby.

Worked examples built from the manual’s own syntax

Goal search_query pattern (from the user manual)
Articles by one author in a date window au:del_maestro+AND+submittedDate:[202301010600+TO+202401010600]
Same author, excluding a title word au:del_maestro+ANDNOT+ti:checkerboard
Author plus an exact title phrase au:del_maestro+AND+ti:%22quantum+criticality%22
Two terms anywhere in the record all:electron+AND+all:proton

For a recurring feed, the manual’s pattern is to add sortBy=submittedDate (or lastUpdatedDate) with sortOrder=descending to a stored query and cache the result, since results change only when new articles are added.

Strengths and limits

Rate and usage rules

The Terms of Use for the legacy APIs (OAI-PMH, RSS and the arXiv API) say to make no more than one request every three seconds and to limit requests to a single connection at a time. The limit applies to all machines under your control as a whole; adding machines to evade it is prohibited, and arXiv asks anyone needing a higher rate to contact support. The user manual separately encourages a 3-second delay in your code and asks users to cache their results.

The bulk-data page suggests a different pattern, bursts of up to 4 requests per second followed by a 1-second sleep. That figure conflicts with the Terms of Use. A cautious implementation follows the stricter, binding rule: one request every three seconds, one connection.

Result ceilings

  • A single query can return at most 30,000 results in total; a max_results above 30,000 returns HTTP 400.
  • Retrieve large result sets in slices of at most 2,000 using start and max_results.
  • The manual advises refining queries that match more than 1,000 results, and says the OAI-PMH interface is more suitable for bulk metadata harvesting.

What you may do with the data

The Terms of Use put arXiv’s descriptive metadata under the CC0 1.0 public domain dedication. E-prints are different: redistribution needs the copyright holder’s permission, you may retrieve them for personal or research use, and hosting or serving e-prints yourself is prohibited unless the copyright holder or the submission licence permits it. arXiv encourages linking to the abstract page and asks that you not present a project as endorsed by arXiv without permission. For repository and CRIS teams this means a harvested metadata record can be stored and reused freely, while a harvested PDF cannot be assumed to be.

Alternatives: which arXiv access route to use

Route What arXiv says it provides Use it when
arXiv API Real-time programmatic search and metadata access, Atom 1.0 XML You need live queries, small result sets or lookups by ID
OAI-PMH Metadata for all articles, updated daily; arXiv calls it the preferred way to bulk-download or keep an up-to-date copy of its metadata You maintain a local copy of arXiv metadata (see OAI-PMH)
Amazon S3 Processed PDF and source files for all available articles You need the full files in bulk; arXiv asks that the complete corpus not be downloaded programmatically through the API
Kaggle dataset The full machine-readable arXiv dataset, hosted on Kaggle You want a ready-made dataset for analysis

If your question spans more than arXiv, two sibling guides cover other open scholarly indexes: OpenAlex and the Semantic Scholar API. To compare arXiv with a life-sciences server, see arXiv vs bioRxiv.

FAQ

What format does the arXiv API return?

Atom 1.0 XML. Everything in the body of the HTTP responses is Atom 1.0, including errors, which arrive as a single entry containing the message.

How fast can I call the arXiv API?

The Terms of Use allow no more than one request every three seconds, on a single connection, counted across all machines you control.

What is the maximum number of results?

30,000 per query, retrieved in slices of at most 2,000. A larger max_results returns HTTP 400.

Can I download arXiv in bulk through the API?

No. arXiv names OAI-PMH as the preferred route for bulk metadata, Amazon S3 for the processed PDF and source files, and a Kaggle dataset for the machine-readable corpus.

Can I republish arXiv papers I retrieve?

Metadata is CC0 1.0. The e-prints themselves cannot be redistributed without the copyright holder’s permission, or a licence on the submission that allows it.

Sources

Related CASRAI reading: preprint servers explained and what is an institutional repository.

Follow CASRAI

Research-administration guidance, standards updates and independent tool reviews.

Ask CASRAI · free to try

Ask about arXiv API: Query Syntax, Limits and Terms of Use

Ask your first 2 questions free below. Subscribers get 150 a day for $29 a month.

An AI assistant specialized in research administration. It cites the sources behind every answer, labels web answers and says when it can't answer.

Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.

Works on this site and inside Claude, Cursor and the AI tools you already use.

Everything CASRAI publishes — this page, the dictionary, the guides and the news — stays free to read, with no account and no card.

Referenced across the research world

University of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logoUniversity of Cambridge logoColumbia University logoCrossref logoUniversity of Edinburgh logoHarvard University logoUniversity of Oxford logoPrinceton University logoStanford School of Medicine logoUniversity College London logoORCID logo
  • University of Cambridge logo
  • Columbia University logo
  • Crossref logo
  • University of Edinburgh logo
  • Harvard University logo
  • University of Oxford logo
  • Princeton University logo
  • Stanford School of Medicine logo
  • University College London logo
  • ORCID logo

View CASRAI adoption →

Ask CASRAI · Regulatory Radar

Research-admin question? Get an answer that links its sources.

An AI assistant specialized in research administration. Every answer links its sources to check before you act. 2 questions free, no account. $29/month after.

  • Answers draw on CASRAI's guides and dictionary plus the federal and funder documents we index: Federal Register, Grants.gov, Regulations.gov and UKRI.
  • Every answer numbers its sources and links each one, so you can check the source yourself.