# NCBI Gene Summary Scraper (`parseforge/ncbi-eutils-gene-summary-scraper`) Actor

Fetches NCBI Gene summary records for a provided list of Gene UIDs and returns each gene's name, description, synonyms, organism, and full summary text in one flat row.

- **URL**: https://apify.com/parseforge/ncbi-eutils-gene-summary-scraper.md
- **Developed by:** [ParseForge](https://apify.com/parseforge) (community)
- **Categories:** Automation, Integrations, Education
- **Stats:** 2 total users, 1 monthly users, 89.7% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $7.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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?

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

[![ParseForge](https://raw.githubusercontent.com/ParseForge/apify-assets/main/banner.jpg)](https://apify.com/parseforge?fpr=vmoqkp)

### NCBI Gene Summary Scraper

**Scrape official NCBI Gene summaries in bulk from a list of Gene IDs, up to a million per run.** Every record returns the gene name, description, synonyms, organism, and full Entrez Gene summary text. No API key required. Export to CSV, JSON, Excel, or XML.

NCBI's EUtilities API requires building HTTP requests, handling XML responses, and managing rate limits which slows down any large-scale genomics project. This Actor reads the official gene summaries directly from the NCBI database for any list of Gene UIDs and returns each one in a clean, flat row. No API key, no XML parsing, and no manual request throttling.

Keep your gene research moving by getting plain-text summaries for thousands of genes at once.

| Who uses it | What they scrape NCBI Gene for |
|---|---|
| Bioinformaticians | Building up-to-date gene reference tables for analysis pipelines |
| Genomics researchers | Annotating a gene list of interest with official NCBI functional summaries |
| Pharma R\&D teams | Reviewing curated gene function data for target identification and prioritization |
| Clinical data curators | Cross-checking gene-disease associations against the authoritative NCBI Gene resource |

### What it does

This Actor collects NCBI Gene summary records from a user-provided list of Gene UIDs and returns each one as a flat row with its name, description, synonyms, organism, and full summary text.

- 🧬 **Batch gene retrieval:** Provide any list of NCBI Gene UIDs and fetch every summary in one run.
- 📋 **Structured flat output:** Each gene becomes one row with the name, full description, synonyms, organism, and summary text as separate columns.
- ⏸️ **Built-in rate limiting:** Requests are automatically throttled to comply with NCBI usage policies without configuration.
- 📦 **Multiple export formats:** Save your dataset as CSV, JSON, Excel, XML, or RSS feed.

Results export to CSV, JSON, Excel, or XML, or straight from the API.

### What you can do with NCBI Gene data

**📊 Annotate a gene panel for clinical reporting.**

A bioinformatician runs a list of 500 cancer panel Gene IDs through the Actor to pull the official full-text summaries, ensuring the lab report annotations are sourced from NCBI.

**🧪 Update a target database for drug discovery.**

A computational biologist feeds an internal pipeline with fresh Gene summaries for thousands of potential drug targets to monitor functional annotation changes between NCBI releases.

**📚 Reconcile gene nomenclature and synonyms.**

A data curator scrapes synonyms and the official full name for a set of genes to de-duplicate conflicting identifiers across multiple datasets.

**🎓 Build a teaching dataset for a bioinformatics course.**

A lecturer generates a spreadsheet of gene summaries for model organisms by providing the relevant Gene IDs, giving students a curated foundation for function prediction exercises.

### Why choose this scraper

| | What you get |
|---|---|
| **No API key** | Skip the NCBI API key registration and supply the Gene IDs you need. |
| **Plain text, not XML** | Receive human-readable summary text instead of having to parse nested XML. |
| **One row per gene** | Every gene comes back in a fixed schema so you can join it directly to your own data. |

### How it compares

This Actor focuses on fetching curated gene summaries, while the PubMed Scraper retrieves journal article abstracts from a different NCBI database.

| Feature | ParseForge | PubMed Scraper |
|---|---|---|
| Scrapes NCBI Gene summaries | Yes | Not listed |
| Scrapes PubMed abstracts | No | Yes |
| Input by PMIDs or keywords | Not listed | Yes |
| Returns gene name and synonyms | Yes | Not listed |
| Returns MeSH terms | Not listed | Yes |

### Configure the run

Drive the Actor from a list of NCBI Gene UIDs and set a cap on how many records are returned. The Input tab lists every parameter.

A first run with the defaults:

```json
{
 "geneIds": [
 "672",
 "7157",
 "1956",
 "4609",
 "3845"
 ],
 "maxItems": 10
}
```

A larger pull:

```json
{
 "geneIds": [
 "672",
 "7157",
 "1956",
 "4609",
 "3845"
 ],
 "maxItems": 200
}
```

### Pricing

Pay-per-result: **$0.0085 per result** collected. You pay only for the results written to your dataset.

| Results collected | Approximate cost |
|---|---|
| 100 results | $0.85 |
| 1,000 results | $8.50 |
| 10,000 results | $85.00 |

New Apify accounts start with $5 in free credit.

### Free users

Free-plan runs return up to 10 results as a preview. [Upgrade your Apify plan](https://console.apify.com/sign-up?fpr=vmoqkp) to collect up to 1,000,000 results per run.

### Run it

1. [Create a free Apify account with $5 in credit](https://console.apify.com/sign-up?fpr=vmoqkp).
2. Open the [NCBI Gene Summary Scraper](https://apify.com/parseforge/ncbi-eutils-gene-summary-scraper?fpr=vmoqkp).
3. Set your inputs and any filters, then click **Start**.
4. Export the results as CSV, Excel, JSON, or XML from the **Dataset** tab.

Run it programmatically through the [Apify API](https://docs.apify.com/api/v2) (`run-sync-get-dataset-items`) or the [ApifyClient](https://docs.apify.com/api/client/js) for JavaScript and Python.

### Use with AI agents (MCP)

Give an AI agent live access to NCBI Gene through the Model Context Protocol. Add the Actor to Claude, Cursor, or any MCP client:

```bash
claude mcp add --transport http apify "https://mcp.apify.com/?tools=parseforge/ncbi-eutils-gene-summary-scraper"
```

Then prompt it in plain language to run the scraper and read back the results.

### Troubleshooting

**Why am I getting no results?**

Check that your Gene IDs are valid NCBI UIDs. An incorrect or discontinued UID will return no summary text. Try looking up one of your IDs directly on the NCBI Gene website to confirm it exists.

**Why did my run fail or give a time-out error?**

This usually means NCBI's servers temporarily rejected a request. The built-in rate limiting prevents most issues, but very large runs can be affected by NCBI maintenance. Retrying the run with the same list typically resolves this.

**The 'Maximum genes' field is set, but I still only got a few results.**

The 'Maximum genes' field acts as a cap on how many records to collect from your input list. If your list contains fewer IDs than this cap, the Actor will only return results for the supplied IDs.

**Why are some synonym fields empty?**

Some genes in NCBI have no listed synonyms. An empty field means NCBI's record for that gene does not include any alternative symbols or names.

**Is it possible to get data for genes from multiple organisms in one run?**

Absolutely. include the Gene UIDs for all your organisms of interest in the Gene IDs list. The output will contain the correct organism scientific and common name for each row.

### FAQ

| Question | Answer |
|---|---|
| Do I need an NCBI API key to use this Actor? | No. The Actor is designed to work without an NCBI API key, though it adheres to EUtilities usage guidelines by automatically spacing out requests. |
| What is an NCBI Gene UID? | It is the unique numeric identifier NCBI assigns to each gene record. You can find it at the end of a Gene database URL, such as the '7157' in ncbi.nlm.nih.gov/gene/7157 for the human TP53 gene. |
| How many genes can I scrape in one run? | The input schema accepts up to one million Gene IDs. The 'Maximum genes' field lets you limit the number of records collected per run. |
| What organism data is returned? | The record includes both the scientific name and the common name of the organism associated with the gene, as provided by NCBI. |
| Does this Actor return gene sequences or variant data? | No. This Actor retrieves only the gene summary information, which includes the official name, description, synonyms, organism, and the curated summary text. For sequences, you would need a different NCBI tool. |
| Is the summary text returned as a single field? | Yes. The complete Entrez Gene summary paragraph is returned in a single 'Summary' field, ready for text mining or direct display. |
| How does the Actor avoid getting blocked by NCBI? | It includes built-in request throttling that respects NCBI's rate limit guidelines, making it safe for large batch runs without manual timing. |
| Can I resume a run if it gets interrupted? | Yes. The Actor processes Gene IDs from your provided list. If a run is interrupted, you can initiate a new run with the remaining IDs. |
| What is the difference between this Actor and scraping PubMed? | PubMed returns journal article abstracts and metadata. This Actor returns the NCBI Gene database summary, which is a curated description of a gene's function, not a research paper. |

### Related actors

Browse the full [ParseForge collection](https://apify.com/parseforge?fpr=vmoqkp) for more scrapers.

🆘 **Need help?** Email parseforge@protonmail.com with your run ID, your input, and what you expected.

⚠️ **Disclaimer.** This Actor is unofficial and is not affiliated with, endorsed by, or sponsored by National Center for Biotechnology Information, U.S. National Library of Medicine. It collects only publicly available data. You are responsible for using the collected data in compliance with the source's terms of service and applicable data-protection laws, including GDPR, CCPA, and PIPL. Do not use it to collect personal data unlawfully.

# Actor input Schema

## `geneIds` (type: `array`):

NCBI Gene UIDs to fetch.

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

How many genes to collect per run.

## Actor input object example

```json
{
  "geneIds": [
    "672",
    "7157",
    "1956",
    "4609",
    "3845"
  ],
  "maxItems": 10
}
```

# Actor output Schema

## `results` (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 = {
    "geneIds": [
        "672",
        "7157",
        "1956",
        "4609",
        "3845"
    ],
    "maxItems": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("parseforge/ncbi-eutils-gene-summary-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 = {
    "geneIds": [
        "672",
        "7157",
        "1956",
        "4609",
        "3845",
    ],
    "maxItems": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("parseforge/ncbi-eutils-gene-summary-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 '{
  "geneIds": [
    "672",
    "7157",
    "1956",
    "4609",
    "3845"
  ],
  "maxItems": 10
}' |
apify call parseforge/ncbi-eutils-gene-summary-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,parseforge/ncbi-eutils-gene-summary-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/UcHIa7hUnWDI4cNke/builds/qdjczDhXULg9ntxs6/openapi.json
