arXiv Research
Search arXiv via its free REST API — no key, no dependency, just HTTP (via @coder exec/Bash
curl, or @webfetch). The API returns Atom XML.
Search
curl -s "https://export.arxiv.org/api/query?search_query=all:diffusion+models&start=0&max_results=5"
Field prefixes: ti: title, au: author, abs: abstract, cat: category (e.g. cs.LG).
Combine with +AND+/+OR+. Sort: &sortBy=submittedDate&sortOrder=descending.
Fetch a specific paper
curl -s "https://export.arxiv.org/api/query?id_list=2402.03300"
Parse <title>, <author><name>, <summary>, and the <link> to the PDF with grep/sed
or pipe through python3 for clean output.
Read the paper
- Abstract page →
@webfetchhttps://arxiv.org/abs/<id> - Full text →
@webfetchhttps://arxiv.org/pdf/<id>(then summarize sections the user wants)
Workflow for "find + summarize"
- Search → pick the top N by relevance/recency.
- For each, fetch the abstract; present title, authors, year, one-line summary, link.
- If the user picks one,
@webfetchthe PDF and give a structured summary
(problem → method → results → limitations).
Rules
- Respect arXiv's rate limit: ~1 request / 3s; batch with
max_resultsinstead of looping fast. - Always include the arXiv ID and link so the user can verify.