# MA-Shops Numismatic Marketplace Scraper (`lulzasaur/ma-shops-scraper`) Actor

Scrape coins, banknotes, stamps, medals & antiquities for sale on MA-Shops.com, the big international dealer marketplace. Get title, price, currency, dealer, dealer country, item country, year, image and listing URL. Search any keyword for price comps and market research.

- **URL**: https://apify.com/lulzasaur/ma-shops-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 listing scrapeds

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

## MySlabs Graded Card Marketplace Scraper

Scrape graded (slabbed) trading card listings from [MySlabs.com](https://myslabs.com), the peer-to-peer marketplace for PSA / BGS / SGC / CGC slabbed cards. Get **real asking-price comps** for sports cards, Pokémon, comics, and more — ideal for card arbitrage, price tracking, and market research.

### What it does

- Searches MySlabs by keyword (player, set, card, grade) — one search per query.
- Extracts per-listing: **title, grader, grade, year, price, availability, image, and listing URL**.
- Prices come from the page's structured JSON-LD (precise to the cent).
- Paginates automatically up to your result limit.

### Input

| Field | Type | Description |
|-------|------|-------------|
| `searchQueries` | array | Keywords to search (e.g. `"michael jordan"`, `"1986 fleer"`, `"charizard psa 10"`). Empty = browse newest listings. |
| `publishType` | select | `all`, `bin` (Buy It Now), `auction`, or `private-deals`. |
| `maxResults` | integer | Max listings to scrape across all queries. |
| `proxyConfiguration` | proxy | Optional. MySlabs is publicly accessible; no proxy needed by default. |

#### Example input

```json
{
  "searchQueries": ["michael jordan", "1986 fleer"],
  "publishType": "all",
  "maxResults": 100
}
```

### Output

Each dataset item looks like:

```json
{
  "id": "1653619",
  "title": "1992 Michael Jordan beam team stadium bgs 8.5",
  "grader": "BGS",
  "grade": "8.5",
  "year": "1992",
  "price": 2000,
  "currency": "USD",
  "availability": "OutOfStock",
  "condition": "UsedCondition",
  "image": "https://cdn.myslabs.com/.../KXCFFDH_1783638815_1.png",
  "url": "https://myslabs.com/slab/view/1653619/",
  "listingType": "all",
  "source": "myslabs.com",
  "scrapedAt": "2026-07-10T00:01:06.654Z"
}
```

**Notes**

- `grader`/`grade`/`year` are parsed from the listing title and may be `null` when the seller omits them.
- `availability` is `OutOfStock` for MySlabs' single-item P2P listings; these are **active asking listings**, not sold records.
- Seller names on MySlabs require login and are therefore not included.

### Use cases

- **Card arbitrage** — compare MySlabs asking prices against eBay sold comps and PriceCharting.
- **Price tracking** — monitor asking prices for specific players, sets, or grades over time.
- **Market research** — analyze supply and pricing across graders and grade tiers.

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search MA-Shops for (e.g. "morgan dollar", "roman denarius", "1 euro germany"). Each query runs a separate search.

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

Maximum number of listings to scrape (across all queries).

## `scrapeDetails` (type: `boolean`):

Visit each item page for extra detail (slower, more requests). Off by default — the search results already carry title, price, dealer, country, year and image.

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

Proxy settings. MA-Shops is publicly accessible and returns results with no proxy, so proxy is OFF by default. Enable one only if you scrape at high volume and hit rate limits.

## Actor input object example

```json
{
  "searchQueries": [
    "morgan dollar"
  ],
  "maxResults": 40,
  "scrapeDetails": 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 = {
    "searchQueries": [
        "morgan dollar"
    ],
    "maxResults": 40
};

// Run the Actor and wait for it to finish
const run = await client.actor("lulzasaur/ma-shops-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 = {
    "searchQueries": ["morgan dollar"],
    "maxResults": 40,
}

# Run the Actor and wait for it to finish
run = client.actor("lulzasaur/ma-shops-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 '{
  "searchQueries": [
    "morgan dollar"
  ],
  "maxResults": 40
}' |
apify call lulzasaur/ma-shops-scraper --silent --output-dataset

```

## MCP server setup

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