# Healthline Scraper: Medical Articles & Data Extractor 🔥 $2/1K (`azzouzana/healthline-scraper`) Actor

Healthline Scraper: Export medical articles, health content & search results to CSV/JSON via Search URL or keywords. Extract titles, text content, authors, medical reviewers & descriptions. Built for healthcare AI training, wellness research & medical content analysis. 🚀 Fast & optimized!

- **URL**: https://apify.com/azzouzana/healthline-scraper.md
- **Developed by:** [Azzouzana](https://apify.com/azzouzana) (community)
- **Categories:** Other
- **Stats:** 20 total users, 2 monthly users, 100.0% runs succeeded, 2 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.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/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

## 🔍Healthline.com Scraper 🔍

This Apify actor scrapes search results from [Healthline.com](https://www.healthline.com/). It extracts data such as article titles, URLs, content, authors, reviewers, descriptions, and many other properties. 🚀

### Available Features ✅

The actor scrapes search results from Healthline.com. It extracts the following data:

- Article titles
- Article URL
- Content
- Article's authors, editors & reviewers details
- Article's dates (created at, updated at, reviewed at, etc.)
- Article's descriptions
- Article's lengths
- Article's images
- Headers
- Keywords
  & many others attributes

It also supports limiting the total number of search results

### Input

The actor takes either a searchQuery or searchUrl parameters. Note that you can either use searchQuery or searchUrl but not both in the same run

- `searchQuery` (string, optional): The search terms or keywords that you want to use to perform a search on Healthline.com
- `searchUrl` (string, required): The specific URL to start the search from on Healthline.com. This can be useful if you have a predefined search URL
- `maxResultsCount` (number, optional): The maximum number of search results that the actor should scrape. The default value is 5.

#### Example Input

```json
{
  "searchQuery": "mental health",
  "searchUrl": "https://www.healthline.com/search?q1=women%20sleep",
  "maxResultsCount": 7
}
```

#### Example Output

![](https://i.ibb.co/wNVcBhDv/image.png)

### 🆓 Free tier limitations

We want you to see how this actor works before you commit. To keep things fair for everyone, the **free tier** usually includes these trial limits:

- **Sample data:** up to **5 listings** per run—enough to check data quality.
- **Daily cap:** **5 runs** per calendar day (UTC).
- **Between runs:** at least **1 minute** before you can start another run.

> Limits can change with platform load depending on system load and your intended scraping to prevent what we might interpret as free users abuse.

#### Upgrade when you're ready!

Use the free tier to decide if this actor fits your project. Paid Apify plans remove these wait times and caps so you can run at full volume—[**upgrade to a paid plan**](https://apify.com/pricing?fpr=cbgdsf).

# Actor input Schema

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

The query you want to search

## `searchUrl` (type: `string`):

The full search URL

## `maxResultsCount` (type: `integer`):

Number of search results to get

## Actor input object example

```json
{
  "searchUrl": "https://www.healthline.com/search?q1=children%20stress",
  "maxResultsCount": 1000
}
```

# 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 = {
    "searchUrl": "https://www.healthline.com/search?q1=children%20stress",
    "maxResultsCount": 1000
};

// Run the Actor and wait for it to finish
const run = await client.actor("azzouzana/healthline-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 = {
    "searchUrl": "https://www.healthline.com/search?q1=children%20stress",
    "maxResultsCount": 1000,
}

# Run the Actor and wait for it to finish
run = client.actor("azzouzana/healthline-scraper").call(run_input=run_input)

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

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

```

## CLI example

```bash
echo '{
  "searchUrl": "https://www.healthline.com/search?q1=children%20stress",
  "maxResultsCount": 1000
}' |
apify call azzouzana/healthline-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=azzouzana/healthline-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/acts/tLMp1UP2TlO11txAr/builds/tMIlvhuINccgElwYP/openapi.json
