# Vietnam Drug Registrations (`duytrinh98/vietnam-drug-registrations`) Actor

Extracts whitelisted registration metadata from the public Drug Administration of Vietnam API.

- **URL**: https://apify.com/duytrinh98/vietnam-drug-registrations.md
- **Developed by:** [Anh Duy Trịnh](https://apify.com/duytrinh98) (community)
- **Categories:** Business, Other
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$3.00 / 1,000 drug registration records

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

## Vietnam Drug Registrations

Search Vietnam drug registration records from the Drug Administration of Vietnam (DAV), Ministry of Health. This Actor retrieves pharma data through the public DAV API and saves structured registration, drug and company metadata to an Apify dataset for research and data integration.

### Input

All search filters are optional strings. Filters are passed to the source API, which determines matching behavior.

| Field | Default | Purpose |
| --- | --- | --- |
| query | Empty string | General search text (filterText). |
| drugName | Empty | Drug name (TenThuoc). |
| activeIngredient | Empty | Active ingredient (HoatChatChinh). |
| registrationNumber | Empty | Registration identifier (SoDangKy). |
| registrant | Empty | Registering company (TenCongTyDangKy). |
| manufacturer | Empty | Manufacturing company (TenCongTySanXuat). |
| maxItems | 50 | Maximum saved records; integer from 1 to 5000. |

The default input requests up to 50 records without search text or company/product filters:

```json
{"query":"","maxItems":50}
```

To search by ingredient:

```json
{"activeIngredient":"Paracetamol","maxItems":50}
```

### Dataset fields

Each item contains the fields below. Missing, blank or suppressed values are null. Dates use YYYY-MM-DD from the source calendar date, without timezone conversion. Company fields are nested objects.

| Field | JSON type | Meaning |
| --- | --- | --- |
| `registrationNumber` | string / null | Current registration identifier, kept as text. |
| `oldRegistrationNumber` | string / null | Previous registration identifier. |
| `drugName` | string / null | Registered product name. |
| `activeIngredient` | string / null | Active ingredient(s) as published. |
| `strength` | string / null | Published strength or concentration. |
| `dosageForm` | string / null | Published dosage form. |
| `packaging` | string / null | Published pack description. |
| `qualityStandard` | string / null | Published quality standard. |
| `shelfLife` | string / null | Published shelf-life text. |
| `shelfLifeMonths` | integer / null | Positive month count when the source text can be parsed. |
| `issueDate` | string / null | Registration issue date. |
| `expiryDate` | string / null | Published registration expiry date. |
| `renewalDate` | string / null | Published renewal date. |
| `decisionNumber` | string / null | Registration decision identifier. |
| `batch` | string / null | Published registration batch. |
| `registrant` | object / null | Company object with name, country and address (each string or null). |
| `manufacturer` | object / null | Company object with name, country and address (each string or null). |
| `isExpired` | boolean / null | Source expired flag; not calculated by this Actor. |
| `isWithdrawn` | boolean / null | Source withdrawal flag; not calculated by this Actor. |
| `sourceUpdatedAt` | string / null | Source modification calendar date. |
| `source` | string / null | Source agency name. |
| `sourceUrl` | string / null | Public registration portal URL. |
| `attribution` | string / null | Source credit. |

#### Real output example

The following record is copied from a previous local run against the public API:

```json
{
  "registrationNumber": "539110203326",
  "oldRegistrationNumber": null,
  "drugName": "Venclexta",
  "activeIngredient": "Venetoclax",
  "strength": "10mg",
  "dosageForm": "Viên nén bao phim",
  "packaging": "Hộp 1 Túi x 1 vỉ x 14 viên",
  "qualityStandard": "NSX",
  "shelfLife": "24",
  "shelfLifeMonths": 24,
  "issueDate": "2026-09-18",
  "expiryDate": "2029-09-18",
  "renewalDate": null,
  "decisionNumber": "798/QĐ-QLD",
  "batch": "130",
  "registrant": {
    "name": "Zuellig Pharma Pte. Ltd.",
    "country": "Singapore",
    "address": "15 Changi North Way, #01-01, Singapore (498770)"
  },
  "manufacturer": {
    "name": "AbbVie Ireland NL B.V (Cơ sở đóng gói và xuất xưởng: AbbVie Inc. (Địa chỉ: 1 N Waukegan Road, North Chicago, IL 60064, United States))",
    "country": "Ireland",
    "address": "Manorhamilton Road Sligo"
  },
  "isExpired": false,
  "isWithdrawn": null,
  "sourceUpdatedAt": "2026-11-11",
  "source": "Cục Quản lý Dược, Bộ Y tế Việt Nam",
  "sourceUrl": "https://dichvucong.dav.gov.vn/congbothuoc/index",
  "attribution": "Source: Drug Administration of Vietnam (Cục Quản lý Dược), Ministry of Health."
}
```

### Pricing

Billing uses the pay-per-event event `drug-record`. The Actor saves a registration to the dataset and then requests one charge for that event. It stops when the charging response indicates the event spending limit has been reached. The current event price is configured and displayed in Apify Console.

### Data source and attribution

Data is provided by the [Drug Administration of Vietnam public registration portal](https://dichvucong.dav.gov.vn/congbothuoc/index), Ministry of Health, Vietnam (Cục Quản lý Dược, Bộ Y tế Việt Nam). The Actor calls its public registration search endpoint using POST:

`https://dichvucong.dav.gov.vn/api/services/app/soDangKy/GetAllPublicServerPaging`

No source login or cookies are used. Each dataset item includes the source URL and attribution. This is an independent data extraction tool; publication of source data does not imply DAV endorsement.

### Behavior and limitations

- Results are requested sequentially in pages of 50 and deduplicated by source ID within a run. Rows without a source ID cannot be deduplicated by that ID. The Actor saves at most maxItems records.
- Requests after the first are separated by at least two seconds, including retries. Each fetch has a 30-second timeout. Network and HTTP 5xx failures allow three retries; HTTP 4xx responses, including 403 and 429, stop the run without retrying.
- API availability, matching rules, coverage and ordering are controlled by DAV. Narrow searches can return no records. Daily check timing and nonempty results depend on the source being available.
- Registration metadata and source flags do not independently establish current authorization or incorporate every later regulatory change. Verify current status with DAV for regulatory decisions. This tool provides no medical advice.
- No labels, package inserts or instructions-for-use documents are downloaded. Only explicitly whitelisted metadata is saved; full source objects and internal identifiers are excluded.
- Whitespace is normalized. Values containing email addresses are suppressed; company values containing detected phone numbers are also suppressed. Unparseable dates and shelf-life month counts become null. A null flag means unknown, not false.

### Runtime

The Actor runs with Node.js 20 or newer using npm start and the supplied Dockerfile. The Apify SDK handles dataset storage and event charging. Offline fixture checks can be run from the source checkout with:

```sh
node --test test/core.test.js test/local.test.js
```

# Actor input Schema

## `query` (type: `string`):

General search text sent as filterText to the public API.

## `drugName` (type: `string`):

Drug name filter (TenThuoc).

## `activeIngredient` (type: `string`):

Active ingredient filter (HoatChatChinh).

## `registrationNumber` (type: `string`):

Registration number filter (SoDangKy).

## `registrant` (type: `string`):

Registering company name filter (TenCongTyDangKy).

## `manufacturer` (type: `string`):

Manufacturing company name filter (TenCongTySanXuat).

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

Maximum number of unique registrations to save.

## Actor input object example

```json
{
  "query": "",
  "maxItems": 50
}
```

# Actor output Schema

## `registrations` (type: `string`):

Whitelisted drug registration and company metadata.

# 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("duytrinh98/vietnam-drug-registrations").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("duytrinh98/vietnam-drug-registrations").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 '{}' |
apify call duytrinh98/vietnam-drug-registrations --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,duytrinh98/vietnam-drug-registrations"
        }
    }
}
```

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/ne3Cby2krzDHsn6fn/builds/nL0wpKz1MgY2uqip9/openapi.json
