# PIMBEX Scraper - Gold, Silver & Platinum Bullion Prices (`lulzasaur/pimbex-scraper`) Actor

Scrape PIMBEX.com gold, silver & platinum bullion: coins, bars & rounds. Get product name, metal, weight, purity, live price, premium over spot, ask/bid, stock & URL. Browse by metal or search. Fast, no proxy. Structured JSON output.

- **URL**: https://apify.com/lulzasaur/pimbex-scraper.md
- **Developed by:** [lulz bot](https://apify.com/lulzasaur) (community)
- **Categories:** E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $10.00 / 1,000 product 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/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

## PIMBEX Bullion Scraper

Scrape live precious-metal bullion listings from **[PIMBEX.com](https://www.pimbex.com)** — a US gold, silver and platinum bullion dealer. Get product name, metal, weight, purity, live price, premium over spot, dealer ask/bid, stock status and product URL as clean structured data.

### What it does

- Browses PIMBEX's shop feed by **metal** (gold / silver / platinum) and/or an optional **search keyword**
- Pulls every product card with its full attributes (metal type, weight, purity, mint, family, country, bullion type)
- Reports the **"as low as" price**, the dealer **ask** and **bid**, and computes **premium over spot** using the site's live spot prices
- Reports **stock status** and available quantity
- Fast and cheap — reads the site's open shop feed endpoint directly, **no proxy required**

### Input

| Field | Type | Description |
|-------|------|-------------|
| `metals` | array | Metal categories to scrape: `gold`, `silver`, `platinum`. Default: all three. |
| `searchQuery` | string | Optional keyword to filter products (e.g. `eagle`, `maple`, `bar`). |
| `maxProducts` | integer | Max products to return in total. Default `200`. |
| `inStockOnly` | boolean | Only return in-stock products. Default `false`. |
| `proxyConfiguration` | object | Optional proxy. Not needed — the site works direct. |

#### Example input

```json
{
  "metals": ["gold", "silver"],
  "searchQuery": "eagle",
  "maxProducts": 100,
  "inStockOnly": true
}
```

### Output

Each dataset item looks like:

```json
{
  "productCode": "1B",
  "title": "1 oz American Gold Buffalo Coin (Random Year)",
  "metal": "Gold",
  "bullionType": "Bullion Coins",
  "family": "American Gold Buffalo",
  "mint": "US Mint",
  "country": "American",
  "weight": "1 oz",
  "weightOz": 1,
  "purity": ".9999 FINE GOLD",
  "price": 4239.91,
  "currency": "USD",
  "askPrice": 4180.91,
  "bidPrice": 4122.44,
  "spotPriceUsed": 4006.55,
  "premiumOverSpotUsd": 233.36,
  "premiumOverSpotPercent": 5.8,
  "stockStatus": "In Stock",
  "inStock": true,
  "sellQuantity": 267,
  "availability": "Live",
  "image": "https://assets.pimbex.com/images/product-images/...jpg",
  "url": "https://www.pimbex.com/purchase-bullion/1-oz-american-gold-buffalo-coin/",
  "metalCategory": "gold",
  "scrapedAt": "2026-11-11T00:00:00.000Z"
}
```

### Use cases

- Track bullion dealer pricing and premiums over spot
- Build a price-comparison tool across dealers
- Monitor stock/availability of specific coins and bars
- Feed precious-metals datasets into dashboards or alerts

### Notes

- `premiumOverSpotUsd` / `premiumOverSpotPercent` are computed from the site's live spot prices and the product's troy-ounce weight; they are omitted when the weight cannot be resolved to ounces (e.g. junk-silver bags).
- Prices are the dealer's lowest-tier wire/ACH price.

# Actor input Schema

## `metals` (type: `array`):

Which bullion metal categories to scrape on PIMBEX. Options: gold, silver, platinum.

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

Optional keyword to filter products (e.g. 'eagle', 'maple', 'bar'). Applied within the selected metals.

## `maxProducts` (type: `integer`):

Maximum number of products to scrape in total across all selected metals.

## `inStockOnly` (type: `boolean`):

Only return products that are currently in stock.

## `proxyConfiguration` (type: `object`):

Proxy settings. PIMBEX works without proxies (its shop feed endpoint returns data directly).

## Actor input object example

```json
{
  "metals": [
    "gold"
  ],
  "maxProducts": 10,
  "inStockOnly": false,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (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 = {
    "metals": [
        "gold"
    ],
    "maxProducts": 10
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/pimbex-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 = {
    "metals": ["gold"],
    "maxProducts": 10,
}

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/pimbex-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 '{
  "metals": [
    "gold"
  ],
  "maxProducts": 10
}' |
apify call lulzasaur/pimbex-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,lulzasaur/pimbex-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/yfvkXFbuFMyh7Ir9n/builds/b4rGkb1NBEtsde0yT/openapi.json
