| name | arxiv-api |
| description | Use the arXiv API to fetch full paper metadata and PDF links after identifying promising computer vision papers from search results or citations. |
| allowed-tools | read_file run_python_inline |
| compatibility | Requires outbound HTTPS access. No API key is required. |
arXiv API
Use this skill when you already have candidate paper titles or arXiv identifiers and need abstracts, authors, publication dates, category tags, or PDF URLs.
Workflow
- Start with title or author queries if you do not already have an arXiv ID.
- Extract the entry IDs and PDF URLs for the most relevant papers.
- Save the selected paper metadata to the workspace before implementing ideas from the paper.
- If you need the PDF text, download the PDF in Python and parse it in a separate scratch script.
Python Pattern
import requests
import xml.etree.ElementTree as ET
query = "all:phase correlation image registration"
url = "http://export.arxiv.org/api/query"
params = {
"search_query": query,
"start": 0,
"max_results": 5,
}
response = requests.get(url, params=params, timeout=30)
response.raise_for_status()
root = ET.fromstring(response.text)
ns = {"atom": "http://www.w3.org/2005/Atom"}
for entry in root.findall("atom:entry", ns):
title = entry.findtext("atom:title", default="", namespaces=ns).strip()
summary = entry.findtext("atom:summary", default="", namespaces=ns).strip()
entry_id = entry.findtext("atom:id", default="", namespaces=ns).strip()
print(title)
print(entry_id)
print(summary[:400])
print("---")
Practical Notes
- arXiv search is weaker than Semantic Scholar for ranking; use it after you already know roughly what you want.
- Prefer saving the
entry_id, published, updated, authors, and primary_category.
- PDF links are usually the entry ID with
.pdf or an alternate link in the feed.