# US Drug Safety Database - Medicine Monitoring (`ntriqpro/fda-drug-safety-monitor`) Actor

Track drug safety alerts, recalls, and side effects from the US Food and Drug Administration.

- **URL**: https://apify.com/ntriqpro/fda-drug-safety-monitor.md
- **Developed by:** [daehwan kim](https://apify.com/ntriqpro) (community)
- **Categories:** AI, Business, Lead generation
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

$150.00 / 1,000 charged when analysis is successfully completeds

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 a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## Trustpilot Review Scraper

Extract Trustpilot reviews, ratings, business profiles, and competitor data at scale. Four scraping modes in one actor: bulk review collection, business search, profile extraction, and category browsing.

**Works without a proxy.** No Cloudflare blocking on Trustpilot — this actor uses direct HTTP with browser-fingerprint spoofing, making it fast and reliable.

---

### What you can do

- **Collect all reviews for any business** — paginated, up to thousands of reviews
- **Search businesses by keyword** — find competitors, suppliers, or services on Trustpilot
- **Extract full business profiles** — TrustScore, review count, category, response rates
- **Browse businesses in a category** — e-commerce, SaaS, finance, travel, etc.

---

### Use cases

#### Competitor analysis
Pull all reviews for your top 5 competitors. Find what customers love or hate. Feed it into ChatGPT or Claude to generate product improvement reports.

```json
{ "mode": "business_reviews", "businessUrl": "competitor.com", "maxReviews": 500 }
````

#### Brand monitoring

Track your own Trustpilot reviews daily. Alert on new 1-star reviews. Monitor review volume trends over time.

```json
{ "mode": "business_reviews", "businessUrl": "yourcompany.com", "maxReviews": 50 }
```

#### Market research

Find all SaaS tools in a category with their ratings and review counts. Rank them by TrustScore to identify market leaders and gaps.

```json
{ "mode": "category_browse", "category": "software", "maxResults": 100 }
```

#### Lead generation

Search Trustpilot for businesses in your target vertical. Get company names, domains, and contact signals. Export directly to Google Sheets or Airtable via Apify integrations.

```json
{ "mode": "business_search", "searchTerm": "cloud hosting", "maxResults": 50 }
```

#### Sentiment analysis pipeline

Scrape → push to dataset → connect to Make.com or n8n → run through LLM → generate weekly sentiment report. Full automation with no code beyond the input config.

***

### Input

| Field | Type | Description | Default |
|-------|------|-------------|---------|
| `mode` | string | Scraping mode (see below) | `business_reviews` |
| `businessUrl` | string | Business domain or Trustpilot slug (e.g. `apple.com`, `amazon.com`) | `apify.com` |
| `searchTerm` | string | Keyword for `business_search` mode | — |
| `category` | string | Category slug for `category_browse` mode (e.g. `software`, `ecommerce`) | — |
| `maxReviews` | integer | Max reviews to collect in `business_reviews` mode | `100` |
| `maxResults` | integer | Max items for `business_search` and `category_browse` modes | `20` |

#### Modes

**`business_reviews`** — Collect paginated reviews for a specific business. Returns reviewer name, rating (1–5), title, body, date, and verified purchase flag.

**`business_search`** — Find businesses on Trustpilot by keyword. Returns business name, domain, TrustScore, review count, and category.

**`business_profile`** — Get the full profile of a specific business: TrustScore, rating breakdown (1–5 star distribution), total reviews, categories, and response rate.

**`category_browse`** — List businesses in a Trustpilot category sorted by rating or review count. Useful for building prospect lists or market maps.

***

### Output

#### `business_reviews` output

```json
{
  "source": "trustpilot-review-scraper",
  "mode": "business_reviews",
  "totalRecords": 150,
  "business": "Apple",
  "slug": "apple.com",
  "overallRating": 1.5,
  "reviews": [
    {
      "rating": 5,
      "title": "Best laptop I've ever owned",
      "text": "Switched from Windows three years ago and never looked back...",
      "date": "2024-11-20T00:00:00.000Z",
      "author": "Sarah M.",
      "verified": true
    }
  ]
}
```

#### `business_profile` output

```json
{
  "business": "Shopify",
  "slug": "shopify.com",
  "trustScore": 2.7,
  "totalReviews": 8420,
  "ratingBreakdown": { "5": 34, "4": 8, "3": 5, "2": 4, "1": 49 },
  "categories": ["E-commerce Platform"]
}
```

***

### Performance

- **Speed**: 25 reviews in ~2 seconds (no Playwright, pure HTTP)
- **Reliability**: Three-layer extraction — `__NEXT_DATA__` JSON → JSON-LD → HTML fallback
- **Pagination**: Automatic — scrapes all pages up to `maxReviews`
- **No bot detection**: Trustpilot does not block standard HTTP with proper headers

***

### Pricing

This actor uses **Pay Per Event** pricing: **$0.05 per successful run**.

One run = one complete scraping job (regardless of how many reviews you collect). Scraping 500 reviews costs the same as scraping 10.

***

### Integrations

Connect this actor to your existing stack with zero code:

- **Google Sheets** — Export reviews directly to a spreadsheet via Apify's Google Sheets integration
- **Make.com / n8n** — Trigger on new reviews, route data to Slack, Notion, Airtable
- **OpenAI / Claude API** — Feed reviews into an LLM for sentiment analysis or summary generation
- **Webhooks** — POST results to any endpoint when the actor finishes

***

### FAQ

**Does this require a proxy?**
No. Trustpilot is accessible without proxies. The actor works out of the box.

**How many reviews can I collect?**
There is no hard cap. Set `maxReviews` to any number. The actor will paginate automatically until it hits your limit or runs out of reviews.

**Can I scrape multiple businesses in one run?**
Currently one business per run. To scrape multiple, use Apify's scheduler or connect multiple tasks in a pipeline.

**How fresh is the data?**
Live — every run fetches directly from Trustpilot at the time of execution.

**What if a business has no reviews?**
The actor returns an empty reviews array with the business profile metadata.

***

### Related actors

Looking for more review data sources?

- [G2 Review Scraper](https://apify.com/ntriqpro/g2-review-scraper) — Software reviews from G2
- [Capterra Review Scraper](https://apify.com/ntriqpro/capterra-review-scraper) — Software reviews from Capterra

***

### 🔗 Related Actors by ntriqpro

Extend this actor with the ntriqpro intelligence network:

- [**drug-safety-intelligence**](https://apify.com/ntriqpro/drug-safety-intelligence) — FDA FAERS drug adverse event analysis
- [**fda-food-facility-inspector**](https://apify.com/ntriqpro/fda-food-facility-inspector) — FDA food facility inspection records
- [**healthcare-provider-intelligence**](https://apify.com/ntriqpro/healthcare-provider-intelligence) — US healthcare provider quality & performance

### ⭐ Love it? Leave a Review

Your rating helps professionals discover this actor. [Rate it here](https://apify.com/ntriqpro/fda-drug-safety-monitor/reviews).

# Actor input Schema

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

Select the type of Trustpilot data to scrape

## `businessUrl` (type: `string`):

Trustpilot business slug/domain (e.g., apify.com, amazon.com). Used for business\_reviews and business\_profile modes.

## `searchTerm` (type: `string`):

Search keyword for business\_search mode (e.g., web scraping, cloud hosting).

## `category` (type: `string`):

Trustpilot category slug for category\_browse mode (e.g., software, ecommerce).

## `maxResults` (type: `integer`):

Maximum number of results to return for business\_search and category\_browse modes.

## `maxReviews` (type: `integer`):

Maximum number of reviews to collect for business\_reviews mode.

## Actor input object example

```json
{
  "mode": "business_reviews",
  "businessUrl": "apify.com",
  "maxResults": 20,
  "maxReviews": 100
}
```

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

// Run the Actor and wait for it to finish
const run = await client.actor("ntriqpro/fda-drug-safety-monitor").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("ntriqpro/fda-drug-safety-monitor").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 ntriqpro/fda-drug-safety-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=ntriqpro/fda-drug-safety-monitor",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "US Drug Safety Database - Medicine Monitoring",
        "description": "Track drug safety alerts, recalls, and side effects from the US Food and Drug Administration.",
        "version": "1.0",
        "x-build-id": "pJAuKytWpJwZTt5Bl"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/ntriqpro~fda-drug-safety-monitor/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-ntriqpro-fda-drug-safety-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/ntriqpro~fda-drug-safety-monitor/runs": {
            "post": {
                "operationId": "runs-sync-ntriqpro-fda-drug-safety-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/ntriqpro~fda-drug-safety-monitor/run-sync": {
            "post": {
                "operationId": "run-sync-ntriqpro-fda-drug-safety-monitor",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "mode"
                ],
                "properties": {
                    "mode": {
                        "title": "Scraping Mode",
                        "enum": [
                            "business_reviews",
                            "business_search",
                            "business_profile",
                            "category_browse"
                        ],
                        "type": "string",
                        "description": "Select the type of Trustpilot data to scrape",
                        "default": "business_reviews"
                    },
                    "businessUrl": {
                        "title": "Business URL or Slug",
                        "type": "string",
                        "description": "Trustpilot business slug/domain (e.g., apify.com, amazon.com). Used for business_reviews and business_profile modes.",
                        "default": "apify.com"
                    },
                    "searchTerm": {
                        "title": "Search Term",
                        "type": "string",
                        "description": "Search keyword for business_search mode (e.g., web scraping, cloud hosting)."
                    },
                    "category": {
                        "title": "Category",
                        "type": "string",
                        "description": "Trustpilot category slug for category_browse mode (e.g., software, ecommerce)."
                    },
                    "maxResults": {
                        "title": "Max Results",
                        "type": "integer",
                        "description": "Maximum number of results to return for business_search and category_browse modes.",
                        "default": 20
                    },
                    "maxReviews": {
                        "title": "Max Reviews",
                        "type": "integer",
                        "description": "Maximum number of reviews to collect for business_reviews mode.",
                        "default": 100
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
