# NIST NVLAP Accredited Testing & Calibration Labs (`eclat-data/nist-nvlap-accredited-labs`) Actor

Fast, lightweight, HTTP-only B2B data extractor and change-monitor for the official US NIST NVLAP directory of ISO/IEC 17025 accredited testing and calibration laboratories (~560+ US and international labs).

- **URL**: https://apify.com/eclat-data/nist-nvlap-accredited-labs.md
- **Developed by:** [Siddharth Gupta](https://apify.com/eclat-data) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 accredited lab 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

## NIST NVLAP Accredited Testing & Calibration Laboratories Directory

Fast, lightweight, **HTTP-only** B2B data extractor and change-monitor for the official **US National Institute of Standards and Technology (NIST) NVLAP** directory of ISO/IEC 17025 accredited testing and calibration laboratories (~560+ US and international labs).

No headless browsers. Polite concurrency (`maxConcurrency: 5`), low memory footprint (`256 MB–1024 MB`). Built for metrology & calibration instrument vendors, EMC/hardware compliance teams, aerospace/defense QA procurement, and AI agents via Apify MCP.

***

### Key Features

- **Official Live NIST NVLAP Directory (HTTP-Only):** Queries NIST's live NVLAP directory over plain HTTP + `cheerio`, extracting every lab's accreditation fields, ISO/IEC 17025 expiration dates, commercial testing availability, contact name, phone, email, website, and official PDF scope/certificate links.
- **Polite Pre-Filtering:** Filters by state, country, and search query on the directory index first so detail requests are minimized and NIST's server is never hammered.
- **Change-Monitor Mode (`onlyNewSinceLastRun`):** Persists seen `nvlapLabCode`s in `nist-nvlap-monitor-state` so scheduled runs surface only newly accredited laboratories.
- **Pay-Per-Event Ready:** Deduplicates by `nvlapLabCode` and honors both `maxItems` and Apify's `maxTotalChargeUsd` budget limit.

***

### Sample Output

```json
{
  "nvlapLabCode": "200033-0",
  "laboratoryName": "3M Company, Hardgoods Regulatory Engineering Laboratory",
  "accreditationFields": ["Electromagnetic Compatibility & Telecommunications"],
  "accreditationStatus": "Accredited",
  "commercialAvailability": "Not Available for Commercial Testing",
  "effectiveDate": null,
  "expirationDate": "2027-06-30",
  "contactName": "Yuriy Litvinov",
  "phone": "+1-651-778-6336",
  "fax": null,
  "email": "ylitvinov@mmm.com",
  "website": "http://www.3M.com",
  "streetAddress": "410 Fillmore Avenue East, Building 76",
  "city": "St. Paul",
  "state": "MN",
  "postalCode": "55107-1208",
  "country": "United States",
  "scopeDocumentUrl": "https://niws.nist.gov/customer/index.cfm?event=directory.retrieveDocument&...",
  "certificateDocumentUrl": "https://niws.nist.gov/customer/index.cfm?event=directory.retrieveDocument&...",
  "detailPageUrl": "https://niws.nist.gov/customer/index.cfm?event=directory.detail&labid=258&programId=0",
  "scrapedAt": "2026-11-22T08:00:00.000Z"
}
```

***

### Using with Apify MCP (AI Agents)

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--actors",
        "<YOUR_USERNAME>/nist-nvlap-accredited-labs"
      ],
      "env": {
        "APIFY_TOKEN": "<YOUR_APIFY_TOKEN>"
      }
    }
  }
}
```

### License

MIT

# Actor input Schema

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

Case-insensitive substring match against laboratory name, NVLAP lab code, or accreditation field/scope keywords.

## `accreditationField` (type: `string`):

Case-insensitive filter by NVLAP program/field (e.g., "Calibration", "Electromagnetic Compatibility", "Cryptographic", "Energy Efficient Lighting", "Biometric", "Construction Testing").

## `states` (type: `array`):

Filter by 2-letter US state codes (e.g., CA, TX, MA, MI). Leave empty for all states and international labs.

## `countries` (type: `array`):

Filter by country name or ISO code (e.g., "United States", "US", "Canada", "Japan", "Germany"). Leave empty for all domestic and international NVLAP labs.

## `onlyNewSinceLastRun` (type: `boolean`):

When enabled, persists seen NVLAP lab codes in the named Apify Key-Value Store (nist-nvlap-monitor-state) and outputs ONLY newly accredited laboratories since the prior run.

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

Maximum number of accredited laboratory records to return. Use this to cap dataset size and control run spend.

## Actor input object example

```json
{
  "searchQuery": "",
  "accreditationField": "",
  "states": [],
  "countries": [],
  "onlyNewSinceLastRun": false,
  "maxItems": 100
}
```

# Actor output Schema

## `laboratories` (type: `string`):

Default dataset containing one flat JSON object per NVLAP-accredited laboratory.

## `summary` (type: `string`):

Execution summary including directory count, detail pages fetched, and monitor-mode stats.

# 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 = {
    "searchQuery": "",
    "accreditationField": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("eclat-data/nist-nvlap-accredited-labs").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 = {
    "searchQuery": "",
    "accreditationField": "",
}

# Run the Actor and wait for it to finish
run = client.actor("eclat-data/nist-nvlap-accredited-labs").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 '{
  "searchQuery": "",
  "accreditationField": ""
}' |
apify call eclat-data/nist-nvlap-accredited-labs --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,eclat-data/nist-nvlap-accredited-labs"
        }
    }
}
```

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/3sFi0JtThdgJ4NhP6/builds/UmAkC5IyHRhW9PXhb/openapi.json
