Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
beita6969 avatar

Arxiv Search

  • 17 installs
  • 869 repo stars
  • Updated June 8, 2026
  • beita6969/scienceclaw

arxiv-search is a Claude skill that searches arXiv preprints via the public API with curl and parses the Atom XML response.

About

This skill searches arXiv preprints through the public API using curl, then parses the returned Atom XML with Python. It supports field prefixes, boolean operators, category codes, direct ID lookup, and pagination. A researcher uses it to find preprints and metadata across physics, math, CS, and other fields, under a rule that every result must come from an actual API response and never from training data.

  • Searches arXiv preprints via the public API with curl
  • Parses Atom XML and supports field prefixes, boolean, and pagination
  • Enforces a zero-hallucination rule so results come only from API responses

Arxiv Search by the numbers

  • 17 all-time installs (skills.sh)
  • Ranked #10,813 of 16,556 AI & Agent Building skills by installs in the Skillselion catalog
  • Data as of Aug 2, 2026 (Skillselion catalog sync)
At a glance

arxiv-search capabilities & compatibility

Capabilities
arxiv search · preprint search · metadata lookup
Use cases
research
Pricing
Free
From the docs

What arxiv-search says it does

Search arXiv preprints via public API. Covers physics, math, CS, q-bio, q-fin, statistics, electrical engineering, and economics.
SKILL.md
NEVER fabricate results from training data.
SKILL.md
npx skills add https://github.com/beita6969/scienceclaw --skill arxiv-search

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs17
repo stars869
Last updatedJune 8, 2026
Repositorybeita6969/scienceclaw

What it does

Search arXiv preprints by topic, author, or category using the public API via curl, with a strict no-fabrication rule.

Who is it for?

Finding arXiv preprints and metadata by topic, author, or category

Skip if: Published journal articles or biomedical literature

When should I use this skill?

You need to search arXiv or look up a preprint by ID

What you get

arXiv preprint titles, authors, and metadata parsed from real API responses.

  • parsed arXiv preprint list
  • paper metadata and abstracts

By the numbers

  • 7 query field prefixes (ti/au/abs/co/jr/cat/all)
  • 1 request per 3 seconds bulk rate guidance

Files

SKILL.mdMarkdownGitHub ↗

arXiv Search

Search arXiv preprints via public API. Covers physics, math, CS, q-bio, q-fin, statistics, electrical engineering, and economics.

API Endpoint

curl -s "http://export.arxiv.org/api/query?search_query=all:transformer+attention&start=0&max_results=5"

Parameters: search_query= (required), id_list= (direct lookup by arXiv ID), start= (pagination offset), max_results= (default 10, max 30000), sortBy=relevance|lastUpdatedDate|submittedDate, sortOrder=ascending|descending.

Query Syntax

Field prefixes: ti: title, au: author, abs: abstract, co: comment, jr: journal ref, cat: category, all: all fields.

Boolean: AND, OR, ANDNOT. Example:

curl -s "http://export.arxiv.org/api/query?search_query=au:bengio+AND+cat:cs.LG+AND+ti:attention&max_results=10"

Category Codes

Physics: astro-ph (.CO/.EP/.GA/.HE/.IM/.SR), cond-mat (.dis-nn/.mes-hall/.mtrl-sci/.soft/.stat-mech/.str-el/.supr-con), hep-ex, hep-lat, hep-ph, hep-th, quant-ph, gr-qc, nucl-ex, nucl-th

CS: cs.AI, cs.CL (NLP), cs.CV, cs.LG (ML), cs.CR, cs.DB, cs.DS, cs.SE, cs.RO

Math: math.AG, math.AP, math.CO, math.PR, math.ST

Other: q-bio (.BM/.CB/.GN/.MN/.NC/.PE/.QM/.SC/.TO), q-fin (.CP/.EC/.GN/.MF/.PM/.PR/.RM/.ST/.TR), stat (.AP/.CO/.ME/.ML/.OT/.TH), eess (.AS/.IV/.SP/.SY), econ (.EM/.GN/.TH)

Response Parsing

The API returns Atom XML. Parse with Python:

curl -s "http://export.arxiv.org/api/query?search_query=ti:large+language+model&max_results=5&sortBy=submittedDate&sortOrder=descending" | python3 -c "
import sys, xml.etree.ElementTree as ET
ns = {'a': 'http://www.w3.org/2005/Atom'}
root = ET.parse(sys.stdin).getroot()
for entry in root.findall('a:entry', ns):
    title = entry.find('a:title', ns).text.strip().replace('\n', ' ')
    aid = entry.find('a:id', ns).text.strip().split('/abs/')[-1]
    pub = entry.find('a:published', ns).text[:10]
    authors = ', '.join(a.find('a:name', ns).text for a in entry.findall('a:author', ns))
    print(f'[{aid}] {pub} | {title}')
    print(f'  Authors: {authors}\n')
"

Direct Lookup and Pagination

# By ID
curl -s "http://export.arxiv.org/api/query?id_list=2301.07041,2302.13971"

# Pagination
curl -s "http://export.arxiv.org/api/query?search_query=cat:cs.AI&start=0&max_results=25&sortBy=submittedDate&sortOrder=descending"
curl -s "http://export.arxiv.org/api/query?search_query=cat:cs.AI&start=25&max_results=25&sortBy=submittedDate&sortOrder=descending"

Rate Limiting

No official limit, but keep to 1 request per 3 seconds for bulk queries. For large-scale harvesting, use the OAI-PMH bulk access endpoint instead.

Best Practices

1. Use sortBy=submittedDate&sortOrder=descending for latest papers. 2. Combine cat: with keyword searches for targeted results. 3. Check opensearch:totalResults in the response for total match count. 4. For PDF access, replace /abs/ with /pdf/ in the paper URL. 5. Use id_list for direct lookups (faster and more reliable). 6. URL-encode spaces as + in query terms.

Zero-Hallucination Rule

NEVER fabricate results from training data. Every paper title, author, DOI, PMID, citation count, and metadata detail presented to the user MUST come from an actual API response in this conversation. If the API returns no results or partial data, report exactly what was returned. Do not "fill in" missing details from memory.

Related skills

FAQ

How does it query arXiv?

It calls the public export.arxiv.org API with curl and parses the Atom XML response in Python.

How does it avoid fabricated results?

A zero-hallucination rule requires every title, author, and metadata detail to come from an actual API response in the conversation.

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.