# Thomasnet Scraper (`datahamster/thomasnet-scraper`) Actor

Thomasnet scraper for US and Canadian industrial suppliers: name, website, company phone, city and state, supplier type, annual sales and employee bands as numbers, year founded, category and products. Type and size filters, every-region search, de-duplication, new-supplier monitor. No login.

- **URL**: https://apify.com/datahamster/thomasnet-scraper.md
- **Developed by:** [Viktor Dubnytskiy](https://apify.com/datahamster) (community)
- **Categories:** Lead generation, Business
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.80 / 1,000 result items

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## Thomasnet Scraper

Find US and Canadian industrial suppliers on Thomasnet by product or service and get one clean row per company: name, website, the company's main phone number, city and state, supplier type, annual sales and employee bands as numbers, year founded, Thomasnet category and product lines. No Thomasnet account and no login.

**Try it:** the prefilled example returns 20 rows in about 20 seconds and costs about $0.07. Results cost $3.50 per 1,000.

Coverage: Thomasnet shows a logged-out visitor the first 25-35 suppliers of each search, and page 2 onward needs a Thomasnet login. This actor never logs in. To go deeper it reads the same keyword for each of Thomasnet's 73 "Locations Served" regions (`searchEveryRegion`) and merges the results without duplicates. Measured on 12 November 2026: `valves` with `searchEveryRegion` returned 661 unique suppliers from 72 pages in about 4 minutes, for about $2.43 in total ($2.31 in results plus $0.12 of platform usage).

### Why this one

- **Filter by supplier type and company size.** Keep only distributors, manufacturers, service or finishing companies (`supplierTypes`), and set `minEmployees`, `maxEmployees` or `minAnnualSalesMillionUsd`. Bands come back as numbers too (`employeesMin`/`employeesMax`, `annualSalesMinUsd`/`annualSalesMaxUsd`), so you can sort and filter in a spreadsheet. The leader's input has no type or size filter.
- **Regions served and company location, separately.** `regions` reads Thomasnet's "Locations Served" pages (suppliers that serve a region, wherever they are based; type `TX`, `Ohio` or `ON`, split states map to both Thomasnet regions). `states` keeps only suppliers whose own address is in the states you list, using the `state` field. `searchEveryRegion` reads all 73 regions for a keyword in one run.
- **New-supplier monitor.** Save the task with `mode: monitor`: later runs return only suppliers that were not on the watched pages before, with a webhook or Telegram summary. The leader has no monitor mode.
- **Several keywords, one list.** Pass many keywords and Thomasnet URLs at once; a supplier found by two keywords or two regions is returned and charged once.
- **Price.** $0.0035 per supplier and no start fee (the leader charges $0.00499 per supplier). Platform usage is paid by you, see Pricing.

### What you get

Real rows from the prefilled run (keyword `cnc machining`, 12 November 2026):

| Field | Row 1 | Row 2 |
|---|---|---|
| `name` | `J & D Machine` | `H&S Manufacturing Co.` |
| `supplierType` | `Custom Manufacturer` | `Custom Manufacturer` |
| `city`, `state` | `Manchester`, `NH` | `Rowlett`, `TX` |
| `employees` (`employeesMin`-`employeesMax`) | `1-9` (1-9) | `50-99` (50-99) |
| `annualSales` (`annualSalesMinUsd`-`annualSalesMaxUsd`) | `Under $1 Mil` (0-1000000) | `$10 - 24.9 Mil` (10000000-24900000) |
| `yearFounded` | `1983` | `1968` |
| `website` | `https://janddmachine.com/` | `https://www.hsmfg.com/` |
| `phone` | `(603) 624-9717` | `(972) 475-4747` |
| `category` | `CNC Machining` | `CNC Machining` |

Fields: `id` (Thomasnet company id), `url` (Thomasnet profile), `name`, `website`, `phone`, `city`, `state`, `stateName`, `zip`, `country`, `supplierType`, `supplierTypeCode`, `additionalActivities`, `supplierTypeCodes`, `annualSales`, `annualSalesMinUsd`, `annualSalesMaxUsd`, `employees`, `employeesMin`, `employeesMax`, `yearFounded`, `tier`, `isAdvertiser`, `isClaimed`, `xometryPartner`, `isMultiLocation`, `category`, `categoryId`, `products`, `description`, `logoUrl`, `query`, `region`, `regionName`, `position`, `sourceUrl`, `scrapedAt`.

### Use cases

- Build a sourcing shortlist: CNC shops located in Texas with 50+ employees (`states: ["TX"]`, `regions: ["TX"]`), or valve distributors that serve Ohio (`regions: ["Ohio"]`).
- Prospect industrial companies by category, size band and state for B2B sales, using company-level data only.
- Watch a category and get only the suppliers that appeared since last week.

### Input

| Field | Meaning | Default |
|---|---|---|
| `queries` | Products or services, one search each (the form prefills `cnc machining`) | empty |
| `startUrls` | Thomasnet search or category URLs (page 1 is read) | empty |
| `regions` | Regions served ("Locations Served"): codes, postal codes or names (`TX`, `Ohio`, `ON`) | all regions |
| `searchEveryRegion` | Read each keyword nationally and in all 73 regions | `false` |
| `states` | Company location: keep suppliers whose address is in these states or provinces | any |
| `supplierTypes` | manufacturer, custom_manufacturer, distributor, service, finishing, manufacturers_rep, integrator, remanufacturer | all |
| `primaryTypeOnly` | Match the primary type only | `false` |
| `minEmployees` / `maxEmployees` | Employee band filter | none |
| `minAnnualSalesMillionUsd` | Annual sales band filter | none |
| `maxItems` | Stop after this many suppliers | `100` |
| `mode`, `monitorStateId`, `webhookUrl`, `telegramBotToken`, `telegramChatId` | Monitor mode and alerts | `scrape` |

### Monitor mode

Save a task with `"mode": "monitor"` and put it on a schedule. The first run records the suppliers it sees and returns nothing (baseline). Each later run returns only suppliers that are new on the watched pages, each charged as one `change` event ($0.0035), plus one `monitor-check` event ($0.005) per run. A run with nothing new charges only the check. If a monitor run crashes, the next run of the same task waits for the crashed run's timeout before it reads again (it ends as `overlapping_run` without charging); a new `monitorStateId` starts over.

### Pricing

| Event | Price |
|---|---|
| result | $0.0035 per supplier ($3.50 per 1,000) |
| monitor-check | $0.005 per monitor run |
| change | $0.0035 per new supplier in monitor mode |

Result events are charged only for suppliers actually returned: duplicates, filtered-out suppliers and empty searches add no result events. Apify platform usage is paid by you on top of the events, at Apify's rates, for every page read, including pages whose suppliers were all duplicates or filtered out. Most of it is the Web Unblocker proxy, about $0.0015 per page; one page holds up to 35 suppliers. Measured: $0.002-0.004 per run for one or two keywords, about $0.12 for a full `searchEveryRegion` sweep of one keyword.

**Found it useful?** A short review on the Store page helps other people find this actor. If a row looks wrong, open an issue on the actor page.

### Related actors

- [Exhibitor List Scraper](https://apify.com/datahamster/exhibitor-list-scraper): companies exhibiting at trade shows.
- [LinkedIn Company Scraper](https://apify.com/datahamster/linkedin-company-scraper): company pages with size, industry and headquarters.
- [Alibaba Products Scraper](https://apify.com/datahamster/alibaba-products): products and suppliers from Alibaba.

### Limits

- US and Canada only (Thomasnet's coverage). Page 1 per search, category or region; deeper pages need a Thomasnet login and are never requested.
- Certifications are not returned: Thomasnet does not show them to logged-out visitors in search results.
- Size filters work on Thomasnet's bands; suppliers without a band are dropped while a size filter is set.
- A region is where a supplier says it serves, not where it is located: a run for Ohio - North also returns companies based in other states. Use `states` to filter on the company's own address.
- No contact persons, emails or personal phone numbers. `phone` is the company's main number as listed on its Thomasnet card.

### FAQ

**Does it need a Thomasnet login?** No. Every request is made as a logged-out visitor through Apify's Web Unblocker proxy.

**Why do I get about 30 suppliers per keyword?** That is what Thomasnet shows without a login. Turn on `searchEveryRegion`, add `regions` or add more specific keywords to get more.

**What happens when a keyword has no suppliers?** Nothing is pushed or charged and the `RUN_SUMMARY` record says `no_matches`. A blocked page is reported as `blocked`, never as an empty result.

### Changelog

- 0.1: first release. Keyword and URL search, region fan-out, type and size filters, de-duplication, new-supplier monitor.

# Actor input Schema

## `queries` (type: `array`):

What the suppliers make or do, one per line, e.g. "cnc machining", "valves", "injection molding". Each keyword is one Thomasnet supplier search.

## `startUrls` (type: `array`):

Optional. Thomasnet search URLs (thomasnet.com/suppliers/search?searchterm=...) or category pages (thomasnet.com/suppliers/usa/cnc-machining-45330503, thomasnet.com/suppliers/northern-texas/cnc-machining-45330503). Page 1 of each is read; page numbers and Thomasnet's own filter parameters need a Thomasnet login and are ignored.

## `regions` (type: `array`):

Thomasnet 'Locations Served' regions: suppliers that SERVE these regions, wherever they are located (to filter on where a company is, use Company location states). Thomasnet region codes, US postal codes or names, one per line, e.g. "TX" (both Texas regions), "Ohio", "ON" (Ontario), "CS" (California - South). Thomasnet splits TX, CA, OH, MA, NJ, NY and PA into two regions each; a postal code reads both. Leave empty to search all regions at once.

## `searchEveryRegion` (type: `boolean`):

Read each keyword nationally and in all 73 Thomasnet regions (74 pages per keyword) and merge the results without duplicates. Thomasnet shows a logged-out visitor about 25-35 suppliers per search page, so this is how you get hundreds of suppliers per keyword. Overrides Regions.

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

Keep only suppliers whose own address is in these states or provinces, e.g. "TX", "Ohio", "ON". This filters the returned cards; combine it with Regions served to read the matching pages. Leave empty for any location.

## `supplierTypes` (type: `array`):

Keep only suppliers of these types, e.g. Distributor. A supplier matches on its primary type or any additional activity Thomasnet lists. Leave empty for all types.

## `primaryTypeOnly` (type: `boolean`):

Match Supplier types against the supplier's primary type only, not its additional activities.

## `minEmployees` (type: `integer`):

Keep suppliers whose employee band reaches at least this number, e.g. 50 keeps "50-99" and up. Suppliers without a band are dropped while this is set.

## `maxEmployees` (type: `integer`):

Keep suppliers whose employee band starts at or below this number, e.g. 49 for small shops ("1-9", "10-49"). Suppliers without a band are dropped while this is set.

## `minAnnualSalesMillionUsd` (type: `number`):

Keep suppliers whose annual sales band reaches at least this many million USD, e.g. 10 keeps "$10 - 24.9 Mil" and up. Suppliers without a band are dropped while this is set.

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

Stop after this many suppliers (you pay only for returned rows).

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

scrape = full results; monitor = only new/changed items since the previous run of this task

## `monitorStateId` (type: `string`):

Optional state id when not running as a saved task (monitor mode)

## `webhookUrl` (type: `string`):

POST a change summary here in monitor mode

## `telegramBotToken` (type: `string`):

Optional: bot token for monitor-mode change summaries

## `telegramChatId` (type: `string`):

Optional: chat id that receives monitor-mode summaries

## Actor input object example

```json
{
  "queries": [
    "cnc machining"
  ],
  "searchEveryRegion": false,
  "primaryTypeOnly": false,
  "maxItems": 20,
  "mode": "scrape"
}
```

# Actor output Schema

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

All pushed rows (dataset, JSON)

## `resultsTable` (type: `string`):

Dataset in the Console viewer

## `runSummary` (type: `string`):

RUN_SUMMARY record

# 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 = {
    "queries": [
        "cnc machining"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("datahamster/thomasnet-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 = {
    "queries": ["cnc machining"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("datahamster/thomasnet-scraper").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 '{
  "queries": [
    "cnc machining"
  ],
  "maxItems": 20
}' |
apify call datahamster/thomasnet-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,datahamster/thomasnet-scraper"
        }
    }
}
```

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/CnAE5PHqZH1voxutM/builds/I6PqMNSKhJfehLb9L/openapi.json
