Array of arXiv paper IDs (e.g., ['2101.01234', '2101.05678']). Maximum 100 IDs allowed.
Optionaloptions: {Optional request configuration
OptionalrateLimit?: ArxivRateLimitConfigRate limiting configuration to respect arXiv API guidelines
Optionalretries?: numberNumber of retry attempts for failed requests (default: 3)
OptionaltimeoutMs?: numberRequest timeout in milliseconds (default: 10000)
OptionaluserAgent?: stringCustom User-Agent header for requests
Promise resolving to query results with feed metadata and paper entries
// Fetch papers by ID
const result = await getArxivEntriesById(['2101.01234', '2101.05678']);
result.entries.forEach(entry => {
console.log(`${entry.arxivId}: ${entry.title}`);
});
// With rate limiting
const result = await getArxivEntriesById(
['2101.01234'],
{
rateLimit: {
tokensPerInterval: 1,
intervalMs: 3000, // 1 request per 3 seconds
},
timeoutMs: 15000,
}
);
Fetches arXiv papers by their IDs using the simpler id_list API mode.
This is a convenience function for the simpler arXiv API mode where you provide a comma-delimited list of paper IDs and get back the data for those papers. It's simpler than using search queries when you already know the paper IDs.