# Multi-Source Research Paper Scraper (`luochengfengqi/research-paper-metadata-scraper`) Actor

Searches Crossref, OpenAlex, arXiv and Semantic Scholar in one run and merges duplicate works by DOI or arXiv ID into unified records with authors, abstracts, venues, citation counts and open-access PDF links. Accepts keywords, DOIs and arXiv IDs.

- **URL**: https://apify.com/luochengfengqi/research-paper-metadata-scraper.md
- **Developed by:** [luochengfengqi](https://apify.com/luochengfengqi) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## Multi-Source Research Paper Scraper

Queries Crossref, OpenAlex, arXiv and Semantic Scholar in a single run and merges records that describe the same work into one unified schema. The same paper usually exists in several of these sources under different identifiers and with different field coverage: Crossref knows the publisher and journal, OpenAlex knows citation counts and topics, arXiv knows the preprint and its PDF, Semantic Scholar knows fields of study. Maintaining four API clients, four response parsers and a deduplication step is the repetitive part of literature reviews, related-work collection and research monitoring; this Actor performs it against the native HTTP APIs of the four sources, without a headless browser and without requiring API keys (an optional Semantic Scholar key only raises rate limits).

Each input item is a keyword search, a DOI or an arXiv ID. Source records are merged when they share a DOI, an arXiv ID, or a normalized title with year and first author, so a journal article and its preprint become one record whose `providers` field lists every source that reported it. A run writes the merged works to the dataset and a per-query, per-source `SUMMARY` record to the default Key-Value Store.

### Table of Contents

- [Extraction Pipeline](#extraction-pipeline)
- [Input Formats](#input-formats)
- [Input Parameters](#input-parameters)
- [Output Schema](#output-schema)
- [How Merging Works](#how-merging-works)
- [Key-Value Store Summary](#key-value-store-summary)
- [Error and Empty-Result Handling](#error-and-empty-result-handling)
- [Usage Examples](#usage-examples)
- [Pricing](#pricing)
- [Limitations and Notes](#limitations-and-notes)
- [Sources and Attribution](#sources-and-attribution)

### Extraction Pipeline

| Source | Endpoints used | Lookup modes | Fields it contributes most often |
|---|---|---|---|
| Crossref | `api.crossref.org/works`, `api.crossref.org/works/{doi}` | Keyword search, DOI | Publisher, journal name, work type, reference counts, PDF links, subjects |
| OpenAlex | `api.openalex.org/works?search=`, `api.openalex.org/works/doi:{doi}` | Keyword search, DOI, arXiv ID via its DataCite DOI | Citation counts, topics and concepts, open-access status, retraction flag, reconstructed abstracts |
| arXiv | `export.arxiv.org/api/query` (Atom XML) | Keyword search, arXiv ID, DOI | Preprint abstract, arXiv categories, journal reference, PDF link |
| Semantic Scholar | `api.semanticscholar.org/graph/v1/paper/search`, `/paper/DOI:{doi}`, `/paper/ARXIV:{id}` | Keyword search, DOI, arXiv ID | Fields of study, citation and reference counts, open-access PDF, venue |

Pipeline steps:

1. Classify every input item as a keyword search, a DOI or an arXiv ID.
2. Query each selected source with the endpoint that matches the lookup mode.
3. Normalize every source response into the shared record shape (authors, dates, identifiers, counts, links, subjects).
4. Apply the optional publication-year filter per source record.
5. Merge records that share a DOI, an arXiv ID, or title plus year and first author.
6. Order the merged works, write dataset records, and store the `SUMMARY` record.

arXiv asks API clients to space requests at least 3 seconds apart; arXiv calls in a run are paced accordingly. Crossref is not queried for arXiv ID lookups because arXiv identifiers are registered as DataCite DOIs, which Crossref does not index.

### Input Formats

| Format | Example | Behavior |
|---|---|---|
| Keywords or title | `large language models` | Bibliographic search on Crossref, full-text search on OpenAlex, `all:` search on arXiv, paper search on Semantic Scholar |
| DOI | `10.1038/s41586-020-2649-2` | Single-work lookup on Crossref, OpenAlex and Semantic Scholar, DOI search on arXiv |
| DOI with prefix | `doi:10.1038/s41586-020-2649-2` | Same as above |
| DOI URL | `https://doi.org/10.1038/s41586-020-2649-2` | Same as above |
| arXiv ID | `1706.03762`, `arxiv:1706.03762`, `1706.03762v7` | Exact lookup on arXiv and Semantic Scholar, OpenAlex lookup via the DataCite DOI, Crossref skipped |
| Mixed list | `["graph neural networks", "10.48550/arXiv.2006.10256", "arxiv:1706.03762"]` | Every item is classified and resolved independently, then all results are merged together |

#### Example Input JSON

```json
{
  "queries": ["large language models", "10.1038/s41586-020-2649-2", "arxiv:1706.03762"],
  "sources": ["crossref", "openalex", "arxiv", "semanticscholar"],
  "maxResultsPerSource": 5,
  "yearFrom": 0,
  "yearTo": 0,
  "includeAbstract": true,
  "sortBy": "MOST_CITED"
}
```

### Input Parameters

| Parameter | Type | Default | Required | Description |
|---|---|---|---|---|
| `queries` | array of string | `["large language models", "10.1038/s41586-020-2649-2"]` | No | Keyword searches, DOIs or arXiv IDs, one entry per lookup. Formats are listed in the Input Formats section. |
| `sources` | array of string | `["crossref", "openalex", "arxiv", "semanticscholar"]` | No | Sources to query for every item. Spelling variants such as `semantic scholar` are accepted. Empty queries all four. |
| `maxResultsPerSource` | integer | `5` | No | Maximum records taken from each source per keyword search, 1 to 50. DOI and arXiv lookups return one work per source. |
| `yearFrom` | integer | `0` | No | Keep works published in this year or later. `0` disables the bound. Works with an unknown year are kept. |
| `yearTo` | integer | `0` | No | Keep works published in this year or earlier. `0` disables the bound. Works with an unknown year are kept. |
| `includeAbstract` | boolean | `true` | No | Include the longest abstract reported by any source. Disable for metadata-only output. |
| `sortBy` | string | `RELEVANCE` | No | `RELEVANCE` keeps first-found order, `NEWEST` and `OLDEST` sort by publication date, `MOST_CITED` sorts by the highest reported citation count. |
| `semanticScholarApiKey` | string (secret) | empty | No | Optional Semantic Scholar API key for higher rate limits. When empty, the operator's configured key is used instead. |

### Output Schema

The sample below is a real merged record from a verification run (the abstract is shortened here for display; stored records carry the full text). Three sources reported this work and were merged into one record.

```json
{
  "status": "OK",
  "title": "Array programming with NumPy",
  "authors": ["Charles R. Harris", "K. Jarrod Millman", "Stefan J. van der Walt"],
  "authorCount": 26,
  "abstract": "Array programming provides a powerful, compact and expressive syntax for accessing, manipulating and operating on data in vectors, matrices and higher-dimensional arrays...",
  "doi": "10.1038/s41586-020-2649-2",
  "arxivId": "2006.10256",
  "openalexId": "W3035965352",
  "semanticScholarId": null,
  "crossrefId": "10.1038/s41586-020-2649-2",
  "providers": ["CROSSREF", "OPENALEX", "ARXIV"],
  "providerCount": 3,
  "matchedQueries": ["10.1038/s41586-020-2649-2"],
  "publishedAt": "2020-06-12",
  "publicationYear": 2020,
  "venue": "Nature",
  "publisher": "Springer Science and Business Media LLC",
  "workType": "journal-article",
  "language": "en",
  "citedByCount": 25461,
  "referenceCount": 128,
  "isOpenAccess": true,
  "isRetracted": false,
  "landingUrl": "https://www.nature.com/articles/s41586-020-2649-2",
  "pdfUrl": "https://arxiv.org/pdf/2006.10256",
  "subjects": ["Software engineering", "Computer science", "cs.SE"],
  "dedupeKey": "doi:10.1038/s41586-020-2649-2",
  "message": null,
  "scrapedAt": "2026-10-23T02:45:11.204Z"
}
```

Author lists, citation counts and subject lists in stored records are complete; only the abstract and author display are shortened in this sample.

#### Field Reference

| Field | Type | Nullable | Description |
|---|---|---|---|
| `status` | string | No | `OK` for paper records, `NOT_FOUND_OR_ERROR` for the diagnostic record. |
| `title` | string | Yes | Paper title as reported by the highest-priority source that has one. |
| `authors` | array of string | No | Author names in listed order, from the source reporting the longest author list. |
| `authorCount` | integer | No | Number of names in `authors`. |
| `abstract` | string | Yes | Longest abstract reported by any source. OpenAlex abstracts are reconstructed from its inverted index. Null when `includeAbstract` is false or no source reports one. |
| `doi` | string | Yes | Digital Object Identifier without the `doi.org` prefix. |
| `arxivId` | string | Yes | arXiv identifier without a version suffix, for example `1706.03762`. |
| `openalexId` | string | Yes | OpenAlex work ID, for example `W3035965352`. |
| `semanticScholarId` | string | Yes | Semantic Scholar paper ID (hex string). |
| `crossrefId` | string | Yes | Crossref work identifier, which is the DOI. |
| `providers` | array of string | No | Sources that reported this work: `CROSSREF`, `OPENALEX`, `ARXIV`, `SEMANTIC_SCHOLAR`. |
| `providerCount` | integer | No | Number of entries in `providers`. Records with a count above 1 are cross-source merges. |
| `matchedQueries` | array of string | No | Input items that matched this work, exactly as supplied. |
| `publishedAt` | string | Yes | Earliest publication date reported by any source, `YYYY-MM-DD` or partial `YYYY-MM` or `YYYY`. Preprint dates count, so this can precede the journal date. |
| `publicationYear` | integer | Yes | Year of `publishedAt`. |
| `venue` | string | Yes | Journal, conference or repository name. Preprints report `arXiv` unless a journal reference is known. |
| `publisher` | string | Yes | Publisher or host organization as reported by Crossref, OpenAlex or Semantic Scholar. |
| `workType` | string | Yes | Work classification from the source vocabulary, for example `journal-article`, `proceedings-article`, `preprint`. Vocabularies differ per source and are not remapped. |
| `language` | string | Yes | Language code such as `en`, when a source reports it. |
| `citedByCount` | integer | Yes | Highest citation count reported by any source. Sources count citations differently, so this is the maximum, not a sum. |
| `referenceCount` | integer | Yes | Highest reference (bibliography) count reported by any source. |
| `isOpenAccess` | boolean | Yes | True when any source reports an open-access copy. Null when no source reports availability. |
| `isRetracted` | boolean | Yes | Retraction flag from OpenAlex. Null when OpenAlex did not report the work. |
| `landingUrl` | string | Yes | Publisher page, DOI link or repository page for the work. |
| `pdfUrl` | string | Yes | Open-access PDF URL when a source reports one, most often the arXiv PDF or the OpenAlex best open-access location. |
| `subjects` | array of string | No | Union of OpenAlex topics and concepts, Crossref subjects, Semantic Scholar fields of study and arXiv categories, deduplicated, capped at 20. |
| `dedupeKey` | string | Yes | The merge key of the record: `doi:...`, `arxiv:...`, or a title-based key. |
| `message` | string | Yes | Diagnostic message. Only set on the `NOT_FOUND_OR_ERROR` record. |
| `scrapedAt` | string | No | Record creation timestamp in UTC ISO 8601 format. |

### How Merging Works

Source records are joined with a union-find over three identifiers: normalized DOI, arXiv ID, and normalized title combined with publication year and first-author surname. Two records merge when they share any one of these. This also merges records that are only connected indirectly, for example a Crossref record sharing a DOI with an OpenAlex record that shares an arXiv ID with the preprint.

Field-level rules inside a merged record:

- Scalar fields (title, venue, publisher, type, language, landing and PDF URLs) are taken from the first source that reports them, in the priority order OpenAlex, Crossref, Semantic Scholar, arXiv.
- `abstract` and `authors` take the longest value reported, because longer usually means more complete.
- `citedByCount` and `referenceCount` take the maximum reported value. Counts from different sources measure different citation graphs and are never summed.
- `publishedAt` and `publicationYear` take the earliest reported date, which is typically the preprint date.
- `subjects` are the union of all sources, deduplicated case-insensitively.
- `isOpenAccess` is true when any source reports an open-access copy.

### Key-Value Store Summary

Every run stores one `SUMMARY` record in the default Key-Value Store:

| Field | Description |
|---|---|
| `startedAt`, `finishedAt` | Run window in UTC ISO 8601 format. |
| `queriesRequested` | Number of input items processed. |
| `sourcesRequested` | Normalized source list used for the run. |
| `sourceRecordsFetched` | Total records collected from all sources before merging. |
| `uniqueWorksStored` | Merged records written to the dataset. |
| `duplicatesMerged` | Source records absorbed into another work during merging. |
| `chargeLimitReached` | True when the run stopped early because the charged-results limit was hit. |
| `semanticScholarKeySource` | Which Semantic Scholar key served the run: `USER_INPUT`, `OPERATOR` or `NONE` (shared keyless pool). The key itself is never stored. |
| `providerStats` | Per-source totals: records fetched, failed requests, and the last error message. |
| `queries` | Per-input breakdown: lookup kind, classified value, records fetched, and per-source outcome or error. |
| `filtersApplied` | Effective `maxResultsPerSource`, year bounds, abstract and sorting settings. |

### Error and Empty-Result Handling

Sources fail independently. When Semantic Scholar answers HTTP 429 (its keyless pool is shared and rate-limited), the run retries with backoff, then records the error in the summary and continues with the remaining sources. The same applies to timeouts and 5xx responses from any source: one failing source or one failing query never fails the whole run.

When nothing is found for the complete input, the dataset receives exactly one diagnostic record and the run still succeeds:

```json
{
  "status": "NOT_FOUND_OR_ERROR",
  "title": null,
  "message": "No records were returned for: nonexistent topic xyz. Check the query spelling or relax the year filters. Provider details are in the SUMMARY record.",
  "scrapedAt": "2026-10-23T02:45:11.204Z"
}
```

Filter diagnostic records out downstream with `status != "OK"`. Diagnostic records are not charged. Per-source errors for a run are always visible in `providerStats` and in the per-query breakdown of the `SUMMARY` record.

### Usage Examples

#### Apify Console

1. Open the Actor page and click **Start**.
2. Leave the default input to fetch recent high-coverage works for `large language models` plus the merged record for the NumPy DOI.
3. Add your own entries, for example `["transformer interpretability", "arxiv:1706.03762"]`, set `sortBy` to `MOST_CITED`, and run.
4. Read the merged works in the **Output** tab and the per-source accounting in the Key-Value Store record `SUMMARY`.

#### cURL

```bash
curl -X POST "https://api.apify.com/v2/acts/luochengfengqi~research-paper-metadata-scraper/run-sync-get-dataset-items?token=YOUR_API_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "queries": ["graph neural networks", "arxiv:1706.03762"],
    "sources": ["crossref", "openalex", "arxiv", "semanticscholar"],
    "maxResultsPerSource": 10,
    "sortBy": "MOST_CITED"
  }'
```

#### Python

```python
from apify_client import ApifyClient

client = ApifyClient("YOUR_API_TOKEN")

run = client.actor("luochengfengqi/research-paper-metadata-scraper").call(run_input={
    "queries": ["diffusion models", "10.1038/s41586-020-2649-2"],
    "maxResultsPerSource": 10,
    "yearFrom": 2020,
    "sortBy": "NEWEST",
})

for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item["publicationYear"], item["title"], item["citedByCount"], item["providers"])

summary = client.key_value_store(run["defaultKeyValueStoreId"]).get_record("SUMMARY")
print(summary["value"]["providerStats"])
```

#### Node.js

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

const client = new ApifyClient({ token: 'YOUR_API_TOKEN' });

const run = await client.actor('luochengfengqi/research-paper-metadata-scraper').call({
    queries: ['retrieval augmented generation'],
    sources: ['openalex', 'arxiv', 'semanticscholar'],
    maxResultsPerSource: 20,
    sortBy: 'MOST_CITED',
});

const { items } = await client.dataset(run.defaultDatasetId).listItems();
const openAccess = items.filter((item) => item.isOpenAccess && item.pdfUrl);
console.log(`${items.length} works, ${openAccess.length} with an open-access PDF`);

const summary = await client.keyValueStore(run.defaultKeyValueStoreId).getRecord('SUMMARY');
console.log(summary.value.duplicatesMerged, 'duplicate source records merged');
```

### Pricing

This Actor uses pay-per-event pricing. Each merged work written to the dataset is charged as one `paper-record` event at $0.003 per record. Source records that merge into an existing work are not charged separately, and diagnostic records are free. The default input produces roughly 15 to 20 merged works, so a default run costs about $0.05 in event charges, plus standard Apify platform usage for compute.

### Limitations and Notes

- This Actor returns metadata and links, not full texts. `pdfUrl` points to an open-access copy when a source reports one; downloading and parsing PDFs is a downstream step.
- Citation counts differ between sources because Crossref, OpenAlex and Semantic Scholar build different citation graphs. The stored `citedByCount` is the maximum reported value and should be compared only within one source's convention when precision matters.
- Semantic Scholar rate limits depend on the key used. A key supplied in `semanticScholarApiKey` wins; otherwise the operator's key configured on the Actor (`SEMANTIC_SCHOLAR_API_KEY`) is used; with no key at all, the shared keyless pool applies and HTTP 429 responses are common. The Actor retries with backoff (1.5 s, then 4 s) and then continues without that source; the failure is recorded in the summary, and `semanticScholarKeySource` shows which key was in effect.
- arXiv responses are parsed from the Atom XML feed, and arXiv requests are paced at least 3 seconds apart as the arXiv API terms request. Large arXiv-heavy batches therefore take proportionally longer.
- Keyword relevance is each source's own ranking. `RELEVANCE` order reflects the order sources returned works in, merged; it is not a unified relevance score across sources.
- A work and its preprint merge into one record whose `publishedAt` is the earlier preprint date. When the journal date matters, prefer records whose only provider is Crossref, or compare `venue` with the arXiv journal reference.
- OpenAlex abstracts are reconstructed from its inverted index, which can lose paragraph breaks. Crossref abstracts can contain publisher markup in the raw feed; markup is stripped here.
- `workType` values are passed through from each source's vocabulary (`journal-article` from Crossref, `article` from OpenAlex, `preprint` for arXiv records) and are not remapped to a single taxonomy.
- Retraction information comes only from OpenAlex (`isRetracted`). A null value means no source reported retraction status, not that the work is confirmed unretracted.

### Sources and Attribution

Data is collected at run time from the public APIs of Crossref, OpenAlex, arXiv and Semantic Scholar, each under its own terms of use. Records keep the source identifiers (`doi`, `arxivId`, `openalexId`, `semanticScholarId`, `crossrefId`) and the `providers` list so every merged record can be traced back to the sources that contributed it. Please respect the upstream terms when redistributing the output: arXiv metadata carries its own reuse conditions, and publisher abstracts remain subject to the publisher's rights.

# Actor input Schema

## `queries` (type: `array`):

One entry per lookup. Accepted formats: (1) keywords or a paper title such as 'large language models'; (2) a DOI such as '10.1038/s41586-020-2649-2', 'doi:10.1038/s41586-020-2649-2' or a doi.org URL; (3) an arXiv ID such as '1706.03762' or 'arxiv:1706.03762', with or without a version suffix.

## `sources` (type: `array`):

Sources to query for every input item: 'crossref', 'openalex', 'arxiv' and 'semanticscholar'. Spelling variants such as 'semantic scholar' are accepted. Leave empty to query all four sources.

## `maxResultsPerSource` (type: `integer`):

Maximum records taken from each source for each keyword search (1 to 50). DOI and arXiv ID lookups always return the single matching work per source.

## `yearFrom` (type: `integer`):

Only keep works whose publication year is this year or later, for example 2020. Set to 0 to disable the lower bound. Works with an unknown year are kept.

## `yearTo` (type: `integer`):

Only keep works whose publication year is this year or earlier, for example 2026. Set to 0 to disable the upper bound. Works with an unknown year are kept.

## `includeAbstract` (type: `boolean`):

When enabled, the longest abstract reported by any source is included in each record. Disable it for metadata-only output with smaller records.

## `sortBy` (type: `string`):

Order of the merged records: RELEVANCE keeps the order in which works were first found, NEWEST and OLDEST sort by publication date, MOST_CITED sorts by the highest citation count reported by any source.

## `semanticScholarApiKey` (type: `string`):

Optional Semantic Scholar API key for higher rate limits. When supplied, your key is used. When left empty, the operator's configured Semantic Scholar key is used instead; with no key at all, the shared keyless pool applies and HTTP 429 responses are more likely.

## Actor input object example

```json
{
  "queries": [
    "large language models",
    "10.1038/s41586-020-2649-2"
  ],
  "sources": [
    "crossref",
    "openalex",
    "arxiv",
    "semanticscholar"
  ],
  "maxResultsPerSource": 5,
  "yearFrom": 0,
  "yearTo": 0,
  "includeAbstract": true,
  "sortBy": "RELEVANCE"
}
```

# Actor output Schema

## `papers` (type: `string`):

No description

## `summary` (type: `string`):

No description

# 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 = {
    "queries": [
        "large language models",
        "10.1038/s41586-020-2649-2"
    ],
    "sources": [
        "crossref",
        "openalex",
        "arxiv",
        "semanticscholar"
    ],
    "maxResultsPerSource": 5,
    "yearFrom": 0,
    "yearTo": 0,
    "includeAbstract": true,
    "sortBy": "RELEVANCE"
};

// Run the Actor and wait for it to finish
const run = await client.actor("luochengfengqi/research-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 = {
    "queries": [
        "large language models",
        "10.1038/s41586-020-2649-2",
    ],
    "sources": [
        "crossref",
        "openalex",
        "arxiv",
        "semanticscholar",
    ],
    "maxResultsPerSource": 5,
    "yearFrom": 0,
    "yearTo": 0,
    "includeAbstract": True,
    "sortBy": "RELEVANCE",
}

# Run the Actor and wait for it to finish
run = client.actor("luochengfengqi/research-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 '{
  "queries": [
    "large language models",
    "10.1038/s41586-020-2649-2"
  ],
  "sources": [
    "crossref",
    "openalex",
    "arxiv",
    "semanticscholar"
  ],
  "maxResultsPerSource": 5,
  "yearFrom": 0,
  "yearTo": 0,
  "includeAbstract": true,
  "sortBy": "RELEVANCE"
}' |
apify call luochengfengqi/research-paper-metadata-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,luochengfengqi/research-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/XodcRaxechHyymEgS/builds/tSK5LtAhirIbpZg73/openapi.json
