# Crossref DOI Metadata & Citation Count Search (`dataspryva/crossref-doi-metadata-and-citation-count-search`) Actor

Search Crossref for scholarly works by keyword, DOI, publisher, journal ISSN or funder, with authors, citation counts, references and full bibliographic metadata.

- **URL**: https://apify.com/dataspryva/crossref-doi-metadata-and-citation-count-search.md
- **Developed by:** [Dataspryva](https://apify.com/dataspryva) (community)
- **Categories:** Automation, Developer tools, Open source
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.49 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

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

## Crossref DOI Metadata & Citation Count Search

Crossref is the DOI registration agency used by tens of thousands of publishers, which makes it the closest thing to a canonical open index of scholarly works. This actor reads that index without an API key: search by keyword or citation-style query, resolve a list of DOIs, or enumerate the output of a publisher, journal, funder, ORCID, award or DOI prefix. Every record carries the DOI, authors, citation and reference counts, funding, licenses, full-text links and the rest of Crossref's deposited metadata.

### What this actor does

- Searches works by free text, author, title, journal/book title, citation-style bibliographic query, publisher name, funder name or affiliation
- Resolves a list of DOIs in bare, URL or `doi:`-prefixed form
- Enumerates every work tied to a Crossref member (publisher), journal ISSN, funder DOI, ORCID, award number/funder or DOI prefix
- Filters by publication, online, print, accepted, posted, created, deposit, update and index dates
- Filters by work type, citation count, reference count and metadata presence: abstract, full text, references, ORCID, license, funder, award, relationship, update policy, ROR ID, update status
- Matches exact metadata: ISBN, ROR ID, alternative ID, container title, clinical trial number, license URL/version, relation type/object, update type and archive partner
- Pages with Crossref cursors up to 50,000 works; date-sorted queries use offset pagination and stop at Crossref's 10,000 offset ceiling
- Retries 429/5xx responses with exponential backoff and `Retry-After` support
- Omits empty fields from every record; no nulls or placeholders

### Modes

| Mode | What it fetches | Main input |
|---|---|---|
| `searchWorks` | Relevance search across works | `searchQuery`, `queryAuthor`, `queryTitle`, `queryBibliographic`, `queryContainerTitle`, `queryPublisher`, `queryFunderName`, `queryAffiliation` |
| `byDois` | Exact lookup for a DOI list | `dois` |
| `byMember` | All works owned by a Crossref member | `memberId` |
| `byJournalIssn` | All works in a journal | `journalIssn` |
| `byFunder` | All works funded by a Funder Registry DOI | `funderDoi` |
| `byOrcid` | All works by a contributor ORCID | `orcid` |
| `byAward` | All works tied to an award | `awardNumber` and/or `awardFunder` |
| `byPrefix` | All works under a DOI prefix | `prefix` |

### Output per work

- `doi`, `doiUrl`, `title`, `subtitle`, `shortTitle`, `originalTitle`, `type`, `subtype`
- `publisher`, `publisherLocation`, `memberId`, `prefix`, `source`, `containerTitle`, `shortContainerTitle`
- `issn[]`, `isbn[]`
- `publishedDate`, `publishedYear`, `publishedPrintDate`, `publishedOnlineDate`
- `createdAt`, `depositedAt`, `indexedAt` — Crossref lifecycle dates
- `isReferencedByCount` — how many Crossref works cite this one (a lower bound on true citations)
- `referencesCount` — how many references the publisher deposited
- `authors` — `{name, family, given, suffix, orcid, authenticatedOrcid, sequence, affiliations, rorIds}`
- `primaryAuthor` — first author's display name
- `editors` — editor blocks when present
- `subjects` — Crossref's subject taxonomy
- `abstract` — the deposited abstract, often JATS XML
- `abstractText` — the abstract with JATS/HTML tags removed, when it differs
- `url`, `primaryUrl` — landing-page URLs
- `page`, `volume`, `issue`, `language`
- `funders` — `{name, doi, doiAssertedBy, awards}`
- `licenses` — `{url, contentVersion, delayInDays, startDate}`
- `fullTextLinks` — `{url, contentType, contentVersion, intendedApplication}`
- `relations` — `{type, id, idType, assertedBy}` for preprints, retractions, corrections and other relationships
- `updates`, `updatedBy` — correction/retraction links in both directions
- `updatePolicy` — the publisher's update-policy URL
- `assertions`, `event`, `contentDomains`, `crossmarkRestricted`, `alternativeIds`, `degrees`
- `references` — cited-reference blocks, only when `includeReferences` is `true`
- `score` — relevance score in search mode
- `recordType` — always `work`
- `scrapedAt` — extraction timestamp

### Input

| Field | Type | Default | Description |
|---|---|---|---|
| `mode` | string | `searchWorks` | `searchWorks`, `byDois`, `byMember`, `byJournalIssn`, `byFunder`, `byOrcid`, `byAward` or `byPrefix` |
| `searchQuery` | string | `large language models` | Free-text relevance query (`searchWorks`) |
| `queryAuthor` | string | – | Author-name query (`searchWorks`) |
| `queryTitle` | string | – | Title-words query (`searchWorks`) |
| `queryContainerTitle` | string | – | Journal, book or proceedings title query (`searchWorks`) |
| `queryBibliographic` | string | – | Citation-style bibliographic query (`searchWorks`) |
| `queryPublisher` | string | – | Publisher-name query (`searchWorks`) |
| `queryFunderName` | string | – | Funder-name query (`searchWorks`) |
| `queryAffiliation` | string | – | Affiliation-name query (`searchWorks`) |
| `dois` | array | `[]` | DOI list for `byDois` |
| `memberId` | string | – | Crossref member/publisher ID |
| `journalIssn` | string | – | Journal ISSN, e.g. `0028-0836` |
| `funderDoi` | string | – | Funder Registry DOI |
| `orcid` | string | – | Contributor ORCID |
| `awardNumber` | string | – | Award or grant number |
| `awardFunder` | string | – | Funder DOI that issued the award |
| `prefix` | string | – | DOI prefix, e.g. `10.1145` |
| `isbn` | string | – | ISBN exact filter |
| `rorId` | string | – | ROR ID exact filter |
| `alternativeId` | string | – | Alternative ID exact filter |
| `exactContainerTitle` | string | – | Exact journal/book title filter |
| `clinicalTrialNumber` | string | – | Clinical trial number filter |
| `licenseUrl` | string | – | Exact license URL filter |
| `licenseVersion` | enum | – | `vor`, `am`, `tdm` or `stm-asf` |
| `relationType` | string | – | Relationship type filter |
| `relationObject` | string | – | Related identifier filter |
| `relationObjectType` | enum | – | `doi`, `issn`, `isbn`, `orcid`, `pmid`, `pmcid`, `arxiv` or `url` |
| `updateType` | string | – | Correction, retraction or other update type |
| `archive` | string | – | Archive partner filter |
| `fromPubDate` | string | – | Published on or after (`YYYY`, `YYYY-MM`, `YYYY-MM-DD`) |
| `untilPubDate` | string | – | Published on or before |
| `fromOnlinePubDate` | string | – | Online publication lower bound |
| `untilOnlinePubDate` | string | – | Online publication upper bound |
| `fromPrintPubDate` | string | – | Print publication lower bound |
| `untilPrintPubDate` | string | – | Print publication upper bound |
| `fromCreatedDate` | string | – | First-deposited lower bound (date or timestamp) |
| `untilCreatedDate` | string | – | First-deposited upper bound |
| `fromDepositDate` | string | – | Deposit/update lower bound |
| `untilDepositDate` | string | – | Deposit/update upper bound |
| `fromIndexDate` | string | – | Reindex lower bound |
| `untilIndexDate` | string | – | Reindex upper bound |
| `fromUpdateDate` | string | – | Metadata-update lower bound |
| `untilUpdateDate` | string | – | Metadata-update upper bound |
| `fromAcceptedDate` | string | – | Acceptance lower bound |
| `untilAcceptedDate` | string | – | Acceptance upper bound |
| `fromPostedDate` | string | – | Posted-content lower bound |
| `untilPostedDate` | string | – | Posted-content upper bound |
| `workType` | enum | `any` | Crossref work type (journal article, book, dataset, preprint and more) |
| `minCitationCount` | integer | – | Minimum cited-by count |
| `minReferencesCount` | integer | – | Minimum deposited reference count |
| `hasAbstract` | boolean | `false` | Keep works with an abstract |
| `hasFullText` | boolean | `false` | Keep works with full-text links |
| `hasReferences` | boolean | `false` | Keep works with references |
| `hasOrcid` | boolean | `false` | Keep works with a contributor ORCID |
| `hasLicense` | boolean | `false` | Keep works with a license |
| `hasFunder` | boolean | `false` | Keep works with funder metadata |
| `hasAward` | boolean | `false` | Keep works with award numbers |
| `hasRelation` | boolean | `false` | Keep works with a relationship |
| `hasUpdatePolicy` | boolean | `false` | Keep works with an update policy |
| `hasRorId` | boolean | `false` | Keep works with a ROR ID |
| `hasAffiliationRorId` | boolean | `false` | Keep works with an affiliation ROR ID |
| `isUpdate` | boolean | `false` | Keep correction/retraction records |
| `hasUpdate` | boolean | `false` | Keep works that have an update |
| `sortBy` | enum | `relevance` | `relevance`, `score`, `published`, `published-online`, `published-print`, `issued`, `created`, `deposited`, `updated`, `indexed`, `is-referenced-by-count` or `references-count` |
| `sortOrder` | enum | `desc` | `desc` or `asc` |
| `includeReferences` | boolean | `false` | Include cited-reference blocks |
| `userAgentEmail` | string | `apify-actor@noreply.apify.com` | Contact email for Crossref's polite pool |
| `maxItems` | integer | `50` | Hard cap on emitted records (1–50,000) |

### Examples

Top-cited LLM papers since 2024:

```json
{
  "mode": "searchWorks",
  "searchQuery": "large language models",
  "fromPubDate": "2024-01-01",
  "minCitationCount": 50,
  "sortBy": "is-referenced-by-count",
  "maxItems": 100
}
```

Resolve a DOI list:

```json
{
  "mode": "byDois",
  "dois": [
    "10.1145/3442188.3445922",
    "https://doi.org/10.1038/nature14539",
    "doi:10.1103/PhysRevLett.116.061102"
  ],
  "includeReferences": true
}
```

Springer journal articles from 2024:

```json
{
  "mode": "byMember",
  "memberId": "297",
  "workType": "journal-article",
  "fromPubDate": "2024-01-01",
  "untilPubDate": "2024-12-31",
  "maxItems": 500
}
```

Open-access works with a license and full text:

```json
{
  "mode": "searchWorks",
  "searchQuery": "climate temperature anomaly",
  "hasLicense": true,
  "hasFullText": true,
  "fromPubDate": "2020-01-01",
  "maxItems": 200
}
```

Every work funded by the US NSF in 2023:

```json
{
  "mode": "byFunder",
  "funderDoi": "10.13039/100000001",
  "fromPubDate": "2023-01-01",
  "untilPubDate": "2023-12-31",
  "maxItems": 200
}
```

### Use cases

- **Citation enrichment** — feed a DOI list and get cited-by counts, references, journal and funder metadata
- **Literature reviews** — export every work matching a query, date range, type or metadata-presence filter
- **Publisher and journal monitoring** — track output by member ID, ISSN or DOI prefix
- **Funding analysis** — enumerate works by funder, award number or award funder
- **Bibliometrics and networks** — author productivity, ORCID/ROR identification, citation counts, relationship and update links
- **RAG and research tooling** — clean JSON records with abstracts, references and canonical DOI URLs

### FAQ

**Does this actor need an API key, cookies or a proxy?** No API key is needed, no cookies are used and no proxy setup is required. Crossref's REST API is public. The actor sends a contact email in its User-Agent for the polite pool, and you can put your own email in `userAgentEmail`.

**What is Crossref?** A not-for-profit DOI registration agency. Publishers deposit metadata for journal articles, books, datasets, preprints, grants and more, and Crossref exposes it through a public REST API.

**What DOI formats are accepted in `dois`?** Bare DOIs, full `https://doi.org/...` URLs, `dx.doi.org` URLs and the `doi:` prefix form.

**What does `isReferencedByCount` count?** Other Crossref records that cite this work, based on reference lists those citing works deposited. It is a lower bound: a citing work that did not deposit its reference list is not counted.

**Can I get the list of works that cite a paper?** Crossref exposes the citation count and reference lists, but not a reverse "cited-by" result list through this API. Use the count and the `references` field of citing works instead.

**Why are abstracts often missing?** Several publishers do not deposit abstracts. When an abstract is present it is often JATS XML; `abstract` keeps the deposited form and `abstractText` gives a tag-stripped version.

**Why do date-sorted runs stop at 10,000?** Crossref does not allow cursors with publication-date sorts. The actor switches to offset pagination for those sorts, and Crossref caps offsets at 10,000. Use a cursor-safe sort such as `created` or `is-referenced-by-count` for larger exports, or narrow the date range.

**What is the largest export?** The cap is 50,000 records. Cursor-safe sorts can reach it; date sorts stop at 10,000 because of Crossref's offset limit.

**Are all fields always present?** No. Crossref records are deposited by publishers and are not uniform. Empty fields are omitted from each record rather than written as null.

**Is this affiliated with Crossref?** No. This is an independent metadata extraction tool, not affiliated with or endorsed by Crossref.

### Limitations

- Citation counts are Crossref's cited-by counts, not a universal citation index.
- Reverse citation lists are not available from the public Crossref API.
- Publication-date sorts are limited to 10,000 records by Crossref's offset cap.
- ORCID, ROR, award and license filters only match metadata publishers actually deposited.
- Abstract quality and availability vary by publisher.
- Some publishers deposit incorrect publication dates; the actor returns Crossref metadata as deposited rather than correcting it.
- Crossref rate limits are handled with retries; very large exports can take several minutes.

# Actor input Schema

## `mode` (type: `string`):

What to fetch. Search by keyword, resolve a DOI list, or enumerate works by publisher, journal, funder, ORCID, award or DOI prefix.

## `searchQuery` (type: `string`):

Free-text query across titles, authors, abstracts and other metadata (mode=searchWorks).

## `queryAuthor` (type: `string`):

Boost or constrain relevance-search results toward an author name (mode=searchWorks).

## `queryTitle` (type: `string`):

Boost or constrain relevance-search results toward titles containing these words (mode=searchWorks).

## `queryContainerTitle` (type: `string`):

Query the journal, book or proceedings title in relevance search (mode=searchWorks).

## `queryBibliographic` (type: `string`):

Search as if matching a citation: title, authors, journal, volume and year together (mode=searchWorks).

## `queryPublisher` (type: `string`):

Query the publisher name in relevance search (mode=searchWorks).

## `queryFunderName` (type: `string`):

Query the funding body name as deposited in the record (mode=searchWorks).

## `queryAffiliation` (type: `string`):

Query author affiliation names, e.g. `University of Washington` (mode=searchWorks).

## `dois` (type: `array`):

Crossref DOIs to fetch directly. Accepts bare `10.1145/...` or full `https://doi.org/...` form.

## `memberId` (type: `string`):

Numeric Crossref member ID. Examples: `78` (Springer), `301` (IEEE), `297` (Elsevier).

## `journalIssn` (type: `string`):

ISSN of a journal, e.g. `0028-0836` (Nature) or `0036-8075` (Science).

## `funderDoi` (type: `string`):

Crossref Funder Registry DOI. Examples: `10.13039/100000001` (NSF), `10.13039/100000002` (NIH), `10.13039/501100000780` (European Commission).

## `orcid` (type: `string`):

Contributor ORCID, bare or as a full `https://orcid.org/...` URL.

## `awardNumber` (type: `string`):

Award number as deposited in funding metadata.

## `awardFunder` (type: `string`):

Funder Registry DOI that issued the award.

## `prefix` (type: `string`):

DOI owner prefix, e.g. `10.1145` for ACM or `10.1038` for Nature Portfolio.

## `isbn` (type: `string`):

ISBN of a book or book chapter.

## `rorId` (type: `string`):

Research Organization Registry ID present in contributor affiliation or funding metadata, e.g. `https://ror.org/00hj8s172`.

## `alternativeId` (type: `string`):

Member-specific or third-party identifier stored as an alternative ID.

## `exactContainerTitle` (type: `string`):

Journal, book or proceedings title that must match exactly, e.g. `Nature`.

## `clinicalTrialNumber` (type: `string`):

Clinical trial registration number present in the record, e.g. `NCT01234567`.

## `licenseUrl` (type: `string`):

Exact license URL, e.g. `https://creativecommons.org/licenses/by/4.0/`.

## `licenseVersion` (type: `string`):

License version filter.

## `relationType` (type: `string`):

Relationship type, e.g. `is-preprint-of`, `has-preprint`, `is-retraction-of`, `is-referenced-by`.

## `relationObject` (type: `string`):

Identifier of the related item, e.g. a DOI.

## `relationObjectType` (type: `string`):

Type of the related identifier, e.g. `doi` or `issn`.

## `updateType` (type: `string`):

Post-publication update type, e.g. `correction`, `retraction`, `erratum`, `expression_of_concern`.

## `archive` (type: `string`):

Archive partner named in the record, e.g. `CLOCKSS`, `Portico` or `LOCKSS`.

## `fromPubDate` (type: `string`):

ISO date bound: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`.

## `untilPubDate` (type: `string`):

ISO date bound: `YYYY`, `YYYY-MM` or `YYYY-MM-DD`.

## `fromOnlinePubDate` (type: `string`):

ISO date bound for the online publication date.

## `untilOnlinePubDate` (type: `string`):

ISO date bound for the online publication date.

## `fromPrintPubDate` (type: `string`):

ISO date bound for the print publication date.

## `untilPrintPubDate` (type: `string`):

ISO date bound for the print publication date.

## `fromCreatedDate` (type: `string`):

ISO date or timestamp, e.g. `2024-01-01` or `2024-01-01T12:00:00`.

## `untilCreatedDate` (type: `string`):

ISO date or timestamp.

## `fromDepositDate` (type: `string`):

ISO date or timestamp for the latest deposit or update.

## `untilDepositDate` (type: `string`):

ISO date or timestamp for the latest deposit or update.

## `fromIndexDate` (type: `string`):

ISO date or timestamp for Crossref index updates.

## `untilIndexDate` (type: `string`):

ISO date or timestamp for Crossref index updates.

## `fromUpdateDate` (type: `string`):

ISO date or timestamp for deposits or redeposits.

## `untilUpdateDate` (type: `string`):

ISO date or timestamp for deposits or redeposits.

## `fromAcceptedDate` (type: `string`):

ISO date bound for the acceptance date.

## `untilAcceptedDate` (type: `string`):

ISO date bound for the acceptance date.

## `fromPostedDate` (type: `string`):

ISO date bound for posted-content records, e.g. preprints.

## `untilPostedDate` (type: `string`):

ISO date bound for posted-content records, e.g. preprints.

## `workType` (type: `string`):

Crossref work type. `any` leaves the type open.

## `minCitationCount` (type: `integer`):

Drop works cited fewer times than this. Uses Crossref's cited-by count.

## `minReferencesCount` (type: `integer`):

Drop works with fewer deposited references than this.

## `hasAbstract` (type: `boolean`):

Keep records that include an abstract.

## `hasFullText` (type: `boolean`):

Keep records that include at least one full-text link.

## `hasReferences` (type: `boolean`):

Keep records that include a deposited reference list.

## `hasOrcid` (type: `boolean`):

Keep records where at least one contributor has an ORCID.

## `hasLicense` (type: `boolean`):

Keep records that include at least one license.

## `hasFunder` (type: `boolean`):

Keep records that include funder metadata.

## `hasAward` (type: `boolean`):

Keep records with at least one award or grant number.

## `hasRelation` (type: `boolean`):

Keep records with at least one relationship to another item.

## `hasUpdatePolicy` (type: `boolean`):

Keep records that link to an update policy.

## `hasRorId` (type: `boolean`):

Keep records with a ROR ID in affiliation or funding metadata.

## `hasAffiliationRorId` (type: `boolean`):

Keep records where a contributor affiliation has a ROR ID.

## `isUpdate` (type: `boolean`):

Keep corrections, retractions and other update records.

## `hasUpdate` (type: `boolean`):

Keep records that have a correction, retraction or other update.

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

Field used to order results. Date sorts use offset pagination, which Crossref caps at 10,000 results.

## `sortOrder` (type: `string`):

Ascending or descending order for the chosen sort field.

## `includeReferences` (type: `boolean`):

Include each work's cited-reference list. This can make records much larger.

## `userAgentEmail` (type: `string`):

Email placed in the User-Agent for Crossref's polite pool. A default is used when empty.

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

Hard cap on emitted records. Date sorts stop at Crossref's 10,000 offset limit; relevance and other cursor-safe sorts can reach the full cap.

## Actor input object example

```json
{
  "mode": "searchWorks",
  "searchQuery": "large language models",
  "dois": [],
  "workType": "any",
  "hasAbstract": false,
  "hasFullText": false,
  "hasReferences": false,
  "hasOrcid": false,
  "hasLicense": false,
  "hasFunder": false,
  "hasAward": false,
  "hasRelation": false,
  "hasUpdatePolicy": false,
  "hasRorId": false,
  "hasAffiliationRorId": false,
  "isUpdate": false,
  "hasUpdate": false,
  "sortBy": "relevance",
  "sortOrder": "desc",
  "includeReferences": false,
  "userAgentEmail": "apify-actor@noreply.apify.com",
  "maxItems": 2
}
```

# Actor output Schema

## `works` (type: `string`):

Dataset containing all scraped Crossref works.

# 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 = {
    "mode": "searchWorks",
    "searchQuery": "large language models",
    "workType": "any",
    "hasAbstract": false,
    "hasFullText": false,
    "hasReferences": false,
    "hasOrcid": false,
    "hasLicense": false,
    "hasFunder": false,
    "hasAward": false,
    "hasRelation": false,
    "hasUpdatePolicy": false,
    "hasRorId": false,
    "hasAffiliationRorId": false,
    "isUpdate": false,
    "hasUpdate": false,
    "sortBy": "relevance",
    "sortOrder": "desc",
    "includeReferences": false,
    "userAgentEmail": "apify-actor@noreply.apify.com",
    "maxItems": 2
};

// Run the Actor and wait for it to finish
const run = await client.actor("dataspryva/crossref-doi-metadata-and-citation-count-search").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 = {
    "mode": "searchWorks",
    "searchQuery": "large language models",
    "workType": "any",
    "hasAbstract": False,
    "hasFullText": False,
    "hasReferences": False,
    "hasOrcid": False,
    "hasLicense": False,
    "hasFunder": False,
    "hasAward": False,
    "hasRelation": False,
    "hasUpdatePolicy": False,
    "hasRorId": False,
    "hasAffiliationRorId": False,
    "isUpdate": False,
    "hasUpdate": False,
    "sortBy": "relevance",
    "sortOrder": "desc",
    "includeReferences": False,
    "userAgentEmail": "apify-actor@noreply.apify.com",
    "maxItems": 2,
}

# Run the Actor and wait for it to finish
run = client.actor("dataspryva/crossref-doi-metadata-and-citation-count-search").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 '{
  "mode": "searchWorks",
  "searchQuery": "large language models",
  "workType": "any",
  "hasAbstract": false,
  "hasFullText": false,
  "hasReferences": false,
  "hasOrcid": false,
  "hasLicense": false,
  "hasFunder": false,
  "hasAward": false,
  "hasRelation": false,
  "hasUpdatePolicy": false,
  "hasRorId": false,
  "hasAffiliationRorId": false,
  "isUpdate": false,
  "hasUpdate": false,
  "sortBy": "relevance",
  "sortOrder": "desc",
  "includeReferences": false,
  "userAgentEmail": "apify-actor@noreply.apify.com",
  "maxItems": 2
}' |
apify call dataspryva/crossref-doi-metadata-and-citation-count-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dataspryva/crossref-doi-metadata-and-citation-count-search"
        }
    }
}
```

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/9lB1hbG4tWOP1mWeB/builds/c3qPQtzNUq82iDsQi/openapi.json
