The Reader class is the primary interface for interacting with DeepXiv. You can use it to search for papers across different sources (defaulting to arXiv) and perform progressive reading (from brief summaries to full markdown content).
Search Workflow
Use reader.search() to find papers. You can filter by source, categories, authors, organizations, venues, and date ranges.
Progressive Reading Workflow
Once you have an arxiv_id (or equivalent ID from other sources), you can extract information at increasing levels of detail:
brief(arxiv_id): Get title, TLDR, keywords, citation count, and GitHub link.head(arxiv_id): Get metadata and a chapter overview.section(arxiv_id, name): Get a specific section (e.g., "Introduction").raw(arxiv_id): Get the full paper in markdown format.
from deepxiv_sdk import Reader
reader = Reader()
# Search for papers
results = reader.search("agent memory", size=5)
for paper in results["result"]:
print(paper["arxiv_id"], paper["score"], paper["title"])
# Progressive reading
brief = reader.brief("2409.05591")
head = reader.head("2409.05591")
intro = reader.section("2409.05591", "Introduction")