# OpenEvidence Medical Answer Scraper (`lexis-solutions/openevidence-scraper`) Actor

Ask OpenEvidence a medical question and save the cited answer, references, follow-up questions, and figure links. No account or login. One dataset row per prompt, ready to export as JSON, CSV, or Excel.

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

## Pricing

from $99.00 / 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.

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

Ask a medical question on [OpenEvidence](https://www.openevidence.com/) and save the cited answer. Paste one or more prompts. Each prompt comes back as its own dataset row: the answer, the references OpenEvidence showed, suggested follow-up questions, and any figure image.

No OpenEvidence account, NPI, or login. The Actor uses the public site the same way a visitor does.

**Do not paste patient names, medical record numbers, or other identifying details.** Treat every answer as a starting point for a clinician, not as medical advice.

### What can this OpenEvidence scraper do?

- Submit a medical prompt and save the finished answer
- Keep the references attached to that answer (title, journal, authors, DOI, and link)
- Save follow-up questions OpenEvidence suggests under the answer
- Save figure image URLs when the answer includes one
- Run several prompts in one go, each in its own question
- Export the dataset as JSON, CSV, Excel, or XML, or call the run from the Apify API

OpenEvidence is built for clinical questions grounded in the medical literature. This Actor is the way to collect those public answers in bulk for research workflows, content review, and monitoring how a question is answered over time.

### What data can you extract from OpenEvidence?

| Field               | What it is                                           |
| ------------------- | ---------------------------------------------------- |
| `prompt`            | The question that was asked                          |
| `answer`            | The answer text                                      |
| `title`             | Short title OpenEvidence assigned, when present      |
| `references`        | Citations with title, journal, authors, DOI, and URL |
| `followUpQuestions` | Suggested next questions                             |
| `imageUrl`          | First figure image, when the answer has one          |
| `url`               | Link to the answer on OpenEvidence                   |
| `status`            | `success` or `error`                                 |

### How to scrape OpenEvidence answers

1. Open **OpenEvidence Medical Answer Scraper** on Apify and click **Try for free**.
2. Paste your questions into **Prompts**, one per line.
3. Leave the proxy on **US residential**. Visitors in the EU and the UK are asked to log in, and this Actor does not log in.
4. Click **Start** and open the dataset when the run finishes.

A single question is enough to confirm the run. Raise **Maximum answers** when you want more than the first prompt.

### How much does it cost to scrape OpenEvidence?

You pay for the compute the run uses. Each question waits until OpenEvidence finishes writing the answer, which is often about a minute, so a handful of prompts stays a small run. There is no OpenEvidence subscription to buy and no account to connect.

The free Apify plan is enough to try one or two questions and inspect the dataset. Schedule the Actor when you want the same prompts refreshed on a cadence, and download the results from the dataset API.

### Input

| Field               | Required | What to enter                                           |
| ------------------- | -------- | ------------------------------------------------------- |
| Prompts             | Yes      | Medical questions, one per line                         |
| Maximum answers     | No       | How many of those prompts to answer. Default is 1       |
| Proxy configuration | No       | Residential proxy. Default country is the United States |

```json
{
  "prompts": [
    "What is the first-line treatment for essential hypertension in adults?"
  ],
  "maxItems": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": ["RESIDENTIAL"],
    "apifyProxyCountry": "US"
  }
}
```

### Output

You can download the dataset extracted by OpenEvidence Medical Answer Scraper in JSON, CSV, Excel, or XML.

```json
{
  "prompt": "What is the first-line treatment for essential hypertension in adults?",
  "answer": "First-line options for adults with essential hypertension include thiazide diuretics, ACE inhibitors, ARBs, and dihydropyridine calcium channel blockers.",
  "title": "First-line treatment for essential hypertension",
  "status": "success",
  "error": null,
  "articleId": "00000000-0000-0000-0000-000000000000",
  "url": "https://www.openevidence.com/ask/00000000-0000-0000-0000-000000000000",
  "referenceCount": 1,
  "references": [
    {
      "index": 1,
      "citation": "2024 hypertension guideline.",
      "title": "Guideline title",
      "url": "https://example.org/guideline",
      "doi": "10.1000/example",
      "journal": "Journal name",
      "authors": "Guideline panel"
    }
  ],
  "followUpQuestions": ["What is the starting dose of lisinopril?"],
  "imageUrl": null,
  "imageUrls": []
}
```

Rows with `"status": "error"` did not get an answer. The `error` field says why. The usual cause is a blocked session or a proxy country where OpenEvidence shows a login button.

### Tips

- Write the question the way you would type it into the OpenEvidence box. Name the condition, the population, and the decision you care about.
- Keep **Maximum answers** small while you test. Each prompt is a full answer, not a one-line listing.
- Use a **US** residential proxy. Datacenter addresses are blocked, and EU or UK exit countries are asked to log in.
- Run prompts as separate questions. A later prompt does not continue the previous conversation.
- Schedule a run when you want to see whether the cited answer for a fixed question changes.

### FAQ

#### Do I need an OpenEvidence account?

No. Do not add a username, password, or session cookie. If the site shows **Log in to ask**, the proxy country is one where OpenEvidence requires an account (the EU and the UK). Switch the proxy country to the United States and run again.

#### Is this medical advice?

No. Answers are copied from the public OpenEvidence site for research and review. They are not a diagnosis, a prescription, or a substitute for a clinician.

#### Can I ask about a specific patient?

Do not include names, dates of birth, record numbers, addresses, or other details that identify a person. Ask the clinical question without the identifiers.

#### Is it legal to scrape OpenEvidence?

This Actor collects answers that OpenEvidence shows to visitors who are not logged in. It does not extract private accounts, inboxes, or patient records. Answers can still quote the medical literature and may be subject to the publisher's rights. Use the dataset for a purpose you are allowed to pursue, and get legal advice if you are unsure.

#### The run finished with an error row

Check the `error` text. A blocked page is retried on a fresh session. If every row says the visitor was asked to log in, change the proxy country to US. If a question times out, run that prompt on its own.

### Related Scrapers by Lexis Solutions

Need a different public-data Actor, or a change to this one?

Lexis Solutions is a [certified Apify Partner](https://apify.com/partners/find). Contact us over [Email](mailto:scraping@lexis.solutions) or [LinkedIn](https://www.linkedin.com/company/lexis-solutions).

# Actor input Schema

## `prompts` (type: `array`):

Medical questions, one per line, written the way you would type them into OpenEvidence. Do not include patient names, record numbers, or other identifying details.

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

Maximum number of prompts to answer in this run. Extra prompts are skipped.

## `proxyConfiguration` (type: `object`):

OpenEvidence blocks datacenter IPs. Use a residential proxy in a non-EU country. US is the right default: visitors in the EU and UK are asked to log in, and this Actor does not log in.

## Actor input object example

```json
{
  "prompts": [
    "What is the first-line treatment for essential hypertension in adults?"
  ],
  "maxItems": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}
```

# Actor output Schema

## `overview` (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 = {
    "prompts": [
        "What is the first-line treatment for essential hypertension in adults?"
    ],
    "maxItems": 1,
    "proxyConfiguration": {
        "useApifyProxy": true,
        "apifyProxyGroups": [
            "RESIDENTIAL"
        ],
        "apifyProxyCountry": "US"
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("lexis-solutions/openevidence-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 = {
    "prompts": ["What is the first-line treatment for essential hypertension in adults?"],
    "maxItems": 1,
    "proxyConfiguration": {
        "useApifyProxy": True,
        "apifyProxyGroups": ["RESIDENTIAL"],
        "apifyProxyCountry": "US",
    },
}

# Run the Actor and wait for it to finish
run = client.actor("lexis-solutions/openevidence-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 '{
  "prompts": [
    "What is the first-line treatment for essential hypertension in adults?"
  ],
  "maxItems": 1,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "US"
  }
}' |
apify call lexis-solutions/openevidence-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lexis-solutions/openevidence-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/ZulylhK1roP49dPXV/builds/NrJP3cbaV8DpKfONg/openapi.json
