# ArXiv Paper Metadata Scraper (`ahmdshrif/arxiv-paper-metadata-scraper`) Actor

Extracts full metadata (title, authors, abstract, subjects, dates, DOI, PDF/HTML/source links) from arXiv paper abstract pages given a list of URLs.

- **URL**: https://apify.com/ahmdshrif/arxiv-paper-metadata-scraper.md
- **Developed by:** [Ahmed Ashraf](https://apify.com/ahmdshrif) (community)
- **Categories:** AI, Developer tools, Other
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 1 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$1.00 / 1,000 paper scrapeds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## ArXiv Paper Metadata Scraper

Extracts full metadata from arXiv paper abstract pages — title, authors, abstract, subject categories, submission/revision dates, version history, DOI, license, and links to the PDF, HTML rendering, and TeX source. Built for researchers, ML engineers, and AI agents who need structured arXiv metadata for a known list of papers, without scraping or parsing pages by hand.

### Why this scraper

- Takes direct arXiv URLs as input — no search query workaround required, so you get exactly the papers you ask for.
- Returns fuller page data than typical alternatives: full version history dates, DOI, license URL, and the TeX source link, not just title/abstract/authors.
- Priced at $0.001 per paper, lower than other per-paper arXiv scrapers.

### Output fields

| Field | Type | Description |
|---|---|---|
| url | string | The arXiv abstract page URL that was scraped |
| arxiv\_id | string | The arXiv identifier, e.g. 1706.03762 |
| title | string | Paper title |
| authors | string | Comma-separated list of author names |
| abstract | string | Full abstract text |
| primary\_subject | string | Primary arXiv subject/category, e.g. Computation and Language (cs.CL) |
| subjects | string | Semicolon-separated list of all listed subjects/categories |
| comments | string | Author comments field, e.g. page/figure count |
| submitted\_date | string | Original submission date |
| last\_revised\_date | string | Date of the most recent revision |
| latest\_version | string | Latest version label, e.g. v7 |
| num\_versions | integer | Total number of versions submitted |
| pdf\_url | string | Direct link to the PDF |
| html\_url | string | Link to the experimental HTML rendering, if available |
| source\_url | string | Link to the TeX/source archive |
| doi | string | arXiv-issued DOI, if present |
| license\_url | string | License URL for the submission |

### Input

```json
{
  "startUrls": [
    { "url": "https://arxiv.org/abs/1706.03762" }
  ],
  "maxItems": 50
}
```

### Output

```json
{
  "url": "https://arxiv.org/abs/1706.03762",
  "arxiv_id": "1706.03762",
  "title": "Attention Is All You Need",
  "authors": "Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, Illia Polosukhin",
  "abstract": "The dominant sequence transduction models are based on complex recurrent or convolutional neural networks in an encoder-decoder configuration. The best performing models also connect the encoder and decoder through an attention mechanism. We propose a new simple network architecture, the Transformer, based solely on attention mechanisms, dispensing with recurrence and convolutions entirely. Experiments on two machine translation tasks show these models to be superior in quality while being more parallelizable and requiring significantly less time to train. Our model achieves 28.4 BLEU on the WMT 2014 English-to-German translation task, improving over the existing best results, including ensembles by over 2 BLEU. On the WMT 2014 English-to-French translation task, our model establishes a new single-model state-of-the-art BLEU score of 41.8 after training for 3.5 days on eight GPUs, a small fraction of the training costs of the best models from the literature. We show that the Transformer generalizes well to other tasks by applying it successfully to English constituency parsing both with large and limited training data.",
  "primary_subject": "Computation and Language (cs.CL)",
  "subjects": "Computation and Language (cs.CL); Machine Learning (cs.LG)",
  "comments": "15 pages, 5 figures",
  "submitted_date": "12 Jun 2017",
  "last_revised_date": "2 Aug 2023",
  "latest_version": "v7",
  "num_versions": 7,
  "pdf_url": "https://arxiv.org/pdf/1706.03762",
  "html_url": "https://arxiv.org/html/1706.03762v7",
  "source_url": "https://arxiv.org/src/1706.03762",
  "doi": "https://doi.org/10.48550/arXiv.1706.03762",
  "license_url": "http://arxiv.org/licenses/nonexclusive-distrib/1.0/"
}
```

### Pricing

Pay per event: **$0.001 per paper scraped**. A run of 100 papers costs $0.10; 1,000 papers costs $1.00.

### Use cases

- Building a citation or literature-review dataset from a curated list of arXiv paper URLs.
- Feeding paper abstracts and metadata into a retrieval or RAG pipeline for an AI research assistant.
- Tracking version history and DOIs for papers cited in a lab's internal bibliography or publication tracker.

# Actor input Schema

## `startUrls` (type: `array`):

Pages to export.

## `maxItems` (type: `integer`):

Stop after this many records.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://arxiv.org/abs/1706.03762"
    },
    {
      "url": "https://arxiv.org/abs/2005.14165"
    },
    {
      "url": "https://arxiv.org/abs/1512.03385"
    }
  ],
  "maxItems": 50
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "startUrls": [
        {
            "url": "https://arxiv.org/abs/1706.03762"
        },
        {
            "url": "https://arxiv.org/abs/2005.14165"
        },
        {
            "url": "https://arxiv.org/abs/1512.03385"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("ahmdshrif/arxiv-paper-metadata-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = { "startUrls": [
        { "url": "https://arxiv.org/abs/1706.03762" },
        { "url": "https://arxiv.org/abs/2005.14165" },
        { "url": "https://arxiv.org/abs/1512.03385" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("ahmdshrif/arxiv-paper-metadata-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "startUrls": [
    {
      "url": "https://arxiv.org/abs/1706.03762"
    },
    {
      "url": "https://arxiv.org/abs/2005.14165"
    },
    {
      "url": "https://arxiv.org/abs/1512.03385"
    }
  ]
}' |
apify call ahmdshrif/arxiv-paper-metadata-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ahmdshrif/arxiv-paper-metadata-scraper"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/DWh3cf0FneX3ivqxp/builds/27iEJ1z9HydrLhnBC/openapi.json
