# Thehealthlab Test Detail Hp Extractor (`getdataforme/thehealthlab-test-detail-hp-extractor`) Actor

Thehealthlab Test Detail Hp Extractor efficiently scrapes detailed cholesterol testing information from specified URLs, delivering structured outputs for market research, competitive analysis, and business automation....

- **URL**: https://apify.com/getdataforme/thehealthlab-test-detail-hp-extractor.md
- **Developed by:** [GetDataForMe](https://apify.com/getdataforme) (community)
- **Categories:** AI, Automation, E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $9.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

***

## Thehealthlab Test Detail Hp Extractor

### Introduction

Thehealthlab Test Detail Hp Extractor is a powerful Apify Actor designed to efficiently scrape and extract detailed health test information from specified URLs. It provides reliable data extraction for cholesterol testing services, ensuring high-quality results with minimal effort.

### Features

- **Automated Data Extraction**: Seamlessly scrapes detailed health test information.
- **Customizable URL Input**: Allows specification of multiple target URLs.
- **Flexible Item Limiting**: Set maximum items to scrape per run or opt for unlimited extraction.
- **High-Quality Output**: Delivers structured and comprehensive data outputs.
- **User-Friendly Configuration**: Simple setup with intuitive input parameters.

### Input Parameters

| Parameter  | Type     | Required | Description                                                                                   | Example                                  |
|------------|----------|----------|-----------------------------------------------------------------------------------------------|------------------------------------------|
| `Urls`     | array    | Yes      | The URLs for the spider to scrape. Must be valid HTTP/HTTPS links.                            | `["https://www.thehealthlab.ie/service-page/cholesterol-testing"]` |
| `item_limit` | integer | No       | Maximum items to scrape per actor run. Set to 0 for no limit.                                 | `10`                                     |

### Example Usage

#### Input JSON

```json
{
  "Urls": [
    "https://www.thehealthlab.ie/service-page/cholesterol-testing"
  ],
  "item_limit": 10
}
```

#### Output JSON

```json
[
  {
    "test_title": "Lipid Profile (Cholesterol Test)",
    "price": "50",
    "currency": "EUR",
    "time": "15 min15 min",
    "service_description": "A Lipid Profile (Cholesterol Test) is a hugely important blood test used to monitor and screen for cardiovascular disease risk. The profile measures the amount of cholesterol and triglycerides in your blood. \n\nToo much bad cholesterol and triglycerides can lead to deposits (plaques) in arteries. These can block and narrow blood vessels, potentially leading to heart attacks, strokes or clots. High cholesterol and triglyceride levels are a significant risk factor for cardiovascular disease, the leading cause of death globally. \n\nOur Lipid Profile (Cholesterol Test) tests for: \n- Total Cholesterol\n- LDL Cholesterol (the bad cholesterol)\n- HDL Cholesterol (the good cholesterol)\n- A Total Cholesterol to LDL Cholesterol Ratio\n- Triglycerides\n\nIt is impossible to know your cholesterol levels and evaluate your true cardiovascular disease risk without a Cholesterol test. \n\nRegular cholesterol tests are recommended for those taking cholesterol medication, and those at a higher risk of cardiovascular disease: \n- a family history of high cholesterol or heart disease\n- overweight or obese\n- physically inactive\n- have diabetes\n- eat unhealthily\n- smoke cigarettes\n\nTurnaround Time: Most results are back in 1-2 working days.\n\nPLEASE NOTE: You are required to fast for at least 10 hours before your cholesterol test. You may still consume water. In fact, it's better for blood draws if you are well hydrated! \n\nDon't delay in arranging your Lipid Profile (Cholesterol Test) with us today.",
    "images": [
      "https://static.wixstatic.com/media/36e939_7621641c3fcd46f9af088a1751a41779~mv2.jpg/v1/fill/w_354,h_354,al_c,q_80,usm_0.66_1.00_0.01/36e939_7621641c3fcd46f9af088a1751a41779~mv2.jpg"
    ],
    "turn_around_time": "Most results are back in 1-2 working days. PLEASE NOTE: You are required to fast for at least 10 hours before your cholesterol test. You may still consume water. In fact, it's better for blood draws if you are well hydrated! Don't delay in arranging your Lipid Profile (Cholesterol Test) with us today.",
    "actor_id": "bOzZbXDhvwV9eIQJ4",
    "run_id": "sv3baJXcYREnSh1dT"
  }
]
```

### Use Cases

- **Market Research and Analysis**: Gather detailed health service data for competitive analysis.
- **Competitive Intelligence**: Monitor competitor offerings and pricing strategies.
- **Price Monitoring**: Track changes in test prices over time.
- **Content Aggregation**: Compile comprehensive information on health services.
- **Academic Research**: Support studies related to healthcare services and trends.
- **Business Automation**: Automate data collection for business intelligence.

### Installation and Usage

1. Search for "Thehealthlab Test Detail Hp Extractor" in the Apify Store.
2. Click "Try for free" or "Run".
3. Configure input parameters as needed.
4. Click "Start" to begin extraction.
5. Monitor progress in the log.
6. Export results in your preferred format (JSON, CSV, Excel).

### Output Format

The output is a JSON array containing objects with fields such as `test_title`, `price`, `currency`, `time`, `service_description`, `images`, and `turn_around_time`. Each object represents a detailed health test entry extracted from the specified URLs.

### Error Handling Information

- **Invalid URL**: If an invalid URL is provided, the Actor will log an error message specifying the issue.
- **Exceeding Item Limit**: The Actor will stop processing once the item limit is reached and notify via logs.
- **Network Issues**: Network-related errors are logged with details for troubleshooting.

### Rate Limiting and Best Practices

- Ensure URLs are valid and accessible to avoid unnecessary rate limiting.
- Use a reasonable `item_limit` to prevent overloading the target server.
- Monitor logs for any rate-limiting warnings or errors.

### Limitations and Considerations

- The Actor is designed specifically for scraping health test details from Thehealthlab website.
- Ensure compliance with legal and ethical guidelines when using web scraping tools.
- Be aware of potential changes in website structure that may affect data extraction.

# Actor input Schema

## `Urls` (type: `array`):

The urls for the spider.

## `item_limit` (type: `integer`):

Maximum items to scrape per actor run. Set to 0 for no limit.

## Actor input object example

```json
{
  "Urls": [
    "https://www.thehealthlab.ie/service-page/cholesterol-testing"
  ],
  "item_limit": 10
}
```

# Actor output Schema

## `results` (type: `string`):

Scraped data items from dataset

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("getdataforme/thehealthlab-test-detail-hp-extractor").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("getdataforme/thehealthlab-test-detail-hp-extractor").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 '{}' |
apify call getdataforme/thehealthlab-test-detail-hp-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=getdataforme/thehealthlab-test-detail-hp-extractor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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