# Collectr Scraper – Pokémon, TCG & Sealed Prices (`ozer-studio/collectr-scraper`) Actor

Scrape Collectr prices for Pokémon and other supported games. Find cards and sealed boxes by keyword, card number, or set link. Export prices, variants, set details, and images to JSON or CSV, with optional currency conversion. Supports MCP and scheduled price snapshots. Up to 30 results per search.

- **URL**: https://apify.com/ozer-studio/collectr-scraper.md
- **Developed by:** [Ozer Studio](https://apify.com/ozer-studio) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 1,000 priced product variants

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

## Collectr Public Card Catalog & Price Scraper

Extract public Collectr cards and sealed products by keyword, search link, or set link, with current prices, game, set, card number, rarity, variant, image, and product URL. The default is **20 priced card variants per search**, across all supported games. Timestamped results can feed scheduled price watchlists.

No Collectr login, browser installation, or API key is needed for the public-page extraction path. The actor reads the structured catalog data included in Collectr's public search HTML. It does not call the protected catalog API or access private portfolios.

### Connect this repository to Apify

1. Create an Actor and connect this GitHub repository as its source. Select the `main` branch.
2. Keep the repository root as the source directory. The Dockerfile is at `Dockerfile`; actor configuration and input/output schemas are in `.actor/`.
3. Build the Actor. Start with 512 MB memory and a 120-second timeout, then measure actual usage before adjusting these settings.
4. Run the keyword or link example below. Open the dataset for structured rows and the key-value store for the CSV and run summary.

The GitHub Actions workflow validates the source, runs regression tests, builds the Linux container, and executes real USD and CAD searches inside that container as a non-root user. This is a cloud-container smoke test; it is separate from testing your connected Actor on Apify.

### Quick start

Search using your Collectr link:

```json
{
  "searchUrls": ["https://app.getcollectr.com/?query=mew"],
  "maxItemsPerSearch": 20,
  "currency": "USD"
}
```

Or use keywords:

```json
{
  "searchTerms": ["mew", "Blue-Eyes White Dragon"],
  "maxItemsPerSearch": 20,
  "currency": "CAD",
  "priceMode": "current",
  "saveCsvFile": true
}
```

Keywords and links are combined. If using links alone in the Apify form, clear the example keyword first. With neither input supplied, the actor uses `mew` so the example/default run can produce results.

### How to search for the card you want

These examples were checked against Collectr's public search on November 2, 2026. Results and rankings can change.

| What you want | Search example | Observed behavior |
| --- | --- | --- |
| A card or character name | `mew` or `Pikachu` | Broad matches across printings, variants, and sets. |
| A collector number | `157/128` | Returned Mewtwo ex from 30th Celebration and Lumineon V from Brave Stars (Courage). A collector number alone is not a unique set identifier. |
| A more precise card lookup | `Mewtwo 157/128` | Returned the Mewtwo ex card numbered 157/128 in 30th Celebration. |
| Cards related to a set name | `30th Celebration` | Returned related main-set, Classic Collection, and promotional products; a set-name keyword is not an exact set filter. |
| Cards with a shared number suffix | `/128` | The first page matched cards numbered out of 128 in this test. This does not guarantee one unique set or every card in it. |
| Another supported game | `Blue-Eyes White Dragon`, category `YuGiOh` | Returned both the named card and other cards in a similarly named structure deck. Search text can match set names too. |

For a specific physical card, combine its name and full collector number, select the game, then check `card_number`, `set_name`, and `variant` in the output. A normal, reverse-holo, or different-edition card can have a separate price. Collectr's own [search guide](https://getcollectr.notion.site/Searching-for-Products-cb5a7502d46e465b844f585598ff7c08) explains its filters and the fields shown in results.

Example for the numbered Pokémon card:

```json
{
  "searchTerms": ["Mewtwo 157/128"],
  "category": "3",
  "maxItemsPerSearch": 20,
  "currency": "USD"
}
```

The equivalent public link is [Mewtwo 157/128 on Collectr](https://app.getcollectr.com/?query=Mewtwo%20157%2F128\&cardType=cards\&category=3). Paste it into `searchUrls` instead of `searchTerms` if preferred.

**Searching a card number does not retrieve an entire set.** For an exact set, paste its `/sets/category/ID/SLUG?groupId=ID` link. The actor verifies the returned set and category before exporting products. It reads up to the first 30 public results per link; complete set enumeration is not supported. Root-page `?groupId=...` links are not a replacement for the dedicated set-page URL.

### Set pages and sealed boxes

The [30th Celebration set page](https://app.getcollectr.com/sets/category/3/30th-celebration?groupId=24722\&cardType=cards) is supported directly. Its `cardType=cards` filter returns individual cards. For sealed boxes, packs, and bundles, change it to `cardType=sealed`:

```json
{
  "searchUrls": [
    "https://app.getcollectr.com/sets/category/3/30th-celebration?groupId=24722&cardType=sealed"
  ],
  "maxItemsPerSearch": 20,
  "currency": "USD"
}
```

An explicit `cardType` in a link takes precedence over `productType`. To use the Actor's type dropdown, remove `cardType` from the link. Select `productType: "all"` on a link without `cardType` for both cards and sealed products. The set path selects the game; it takes precedence over the Actor's category dropdown. Set links require their numeric `groupId`.

Keyword searches also support boxes: use `searchTerms: ["booster box"]`, `category: "3"`, and `productType: "sealed"`. A broad keyword can match several sets; the dedicated set URL restricts results to its specified set. `is_card: false` identifies sealed merchandise, which includes products beyond boxes. This version returns catalog prices, rather than seller inventory or availability.

### Monitor a card price watchlist

Use the [watchlist input example](examples/watchlist.json) to search for named and numbered cards within an exact set. The example tracks Mewtwo 157/128 and Mewtwo 063/128 in 30th Celebration. Each run returns the current priced variants, with `product_id`, `variant`, `price_usd`, and `scraped_at` for comparison over time.

Save the input as an [Apify task](https://docs.apify.com/actors/running/tasks) and attach it to an [Apify Schedule](https://docs.apify.com/actors/running/schedules) at your chosen frequency. Preserve or append each run's dataset to a spreadsheet or database for a price history. Default run datasets have a retention period; choose suitable retention or export them, as described in [Apify's dataset documentation](https://docs.apify.com/storage/dataset).

Match observations using **`product_id` + `variant`**, keep the currency consistent, and verify `set_id` and `card_number` before following a card. Use `price_usd` for a source-price trend that is unaffected by currency conversion. A missing card in an incomplete or failed run is not a zero price or a deletion. Check `RUN_SUMMARY.json` and preserve timestamps when combining runs.

The optional `current_and_change` fields are Collectr's own comparison values with an unspecified comparison period; they do not compare against your previous Actor run. The Actor collects snapshots and does not itself retain a cross-run history or send threshold alerts. Apify schedules and an external spreadsheet or workflow can use those snapshots for monitoring.

### Inputs

| Field | Default | Behavior |
| --- | --- | --- |
| `searchTerms` | Example: `mew` | One query per entry. |
| `searchUrls` | Empty | Public search links or `/sets/category/ID/SLUG?groupId=ID` links, with an optional query within a set. |
| `maxItemsPerSearch` | `20` | Between 1 and 30 priced variants for each distinct search. |
| `category` | `all` | All supported categories, or a category selected in the input dropdown. |
| `productType` | `cards` | Cards, sealed products, or both. |
| `currency` | `USD` | Output currency; the dropdown includes 166 supported currency codes. |
| `priceMode` | `current` | Current prices, or `current_and_change` for source comparison values. |
| `saveCsvFile` | `true` | Save a named CSV when products are returned. |
| `failOnNoResults` | `true` | Fail an empty run after saving its summary and diagnostics. |
| `proxyConfiguration` | Not set | Optional Apify/custom proxies. Direct requests are the default. |

At most **20 distinct searches** are accepted per run. Product type, category, and sort filters in a pasted link take precedence over the corresponding actor options. Tracking parameters are removed. Private profile, portfolio, and arbitrary external URLs are rejected. On set pages, the requested set, category, and cards/sealed scope are verified; products from another set or category cause a failure.

The actor supports the **first public search or set page**, containing up to 30 source results. Collectr's public search HTML ignores pagination offsets, and its separate catalog API rejected unauthenticated requests during development. Nonzero offsets in input links are rejected. This actor makes no claim to paginate or exhaust the entire catalog or set. Use more specific card-number/name queries within a set or category when the first page is insufficient. Some source records may be missing prices, so a page can yield fewer priced variants than the requested limit.

### Price and currency behavior

- `price` is the price in the selected output currency. `price_usd` retains the original Collectr USD amount.
- USD output needs no currency-conversion request. Other currencies use one daily-rate response per run from [ExchangeRate-API](https://www.exchangerate-api.com), with the provider's update timestamp and the conversion rate in each row. [Rates By Exchange Rate API](https://www.exchangerate-api.com).
- Converted prices may differ from Collectr's own currency display because its exchange rates may differ. This is actual conversion, not replacement of the currency label. Values retain up to four decimal places.
- If conversion fails or the currency is unsupported, the run fails without exporting mislabeled prices.
- `current_and_change` adds `comparison_price`, `comparison_price_usd`, `price_change`, and `price_change_percent` from the public catalog response. The source does not name the comparison period, so `comparison_period` is `null`.
- This version does not provide historical time series or independent graded-card valuations. It preserves the product variant visible in the public catalog.

### Output

One row represents one **product ID + variant**. Normal and reverse-holo versions remain separate. Matches shared across queries are returned once, with all matching queries and links preserved.

Important fields:

| Fields | Meaning |
| --- | --- |
| `product_id`, `name`, `game`, `category_id` | Product identity and category. |
| `set_name`, `set_id`, `card_number`, `rarity`, `variant`, `is_card` | Catalog details. |
| `price`, `currency`, `price_usd` | Converted and original current price. |
| `exchange_rate`, `exchange_rate_as_of`, `exchange_rate_source` | Conversion provenance; USD uses rate `1`. |
| `image_url`, `source_url` | Public image and product links. Images are linked, not downloaded. |
| `matched_search_terms`, `search_urls` | All search inputs that matched the product variant. |
| `scraped_at` | UTC collection time, not a claimed market-price update time. |

Files in the run's key-value store:

- `collectr_results.csv`: nonempty results, when CSV saving is enabled. Array fields are JSON encoded within CSV cells.
- `RUN_SUMMARY.json`: status, per-search counts, skipped records, errors, currency rate, and first-page limit.
- `search_N_debug.html`: diagnostic response when a search fails or the catalog data cannot be verified.

The default dataset also supports Apify's standard JSON, CSV, and Excel exports. Missing or invalid prices are skipped; valid zero prices are retained.

### Reliability

Requests have bounded retries and timeouts. HTTP failures, challenge pages, and HTML without catalog data for the requested query are treated as failures, rather than silently converted into valid empty searches. A genuine zero-match catalog response is recorded as `no_results`.

When one search fails and others succeed, successful results are preserved and the summary is `partial`. With `failOnNoResults: false`, an empty run may exit normally, but the summary still says `failed` or `no_results`; no result file or dataset row is fabricated.

If you enable Apify's built-in per-dataset-item pricing, the actor respects its spending limit for both dataset and CSV output. Only the delivered subset is exported. The summary records `budget_limited`, the extracted count, and the delivered count when the budget reduces output. This reads the platform's existing pricing; it does not set a price or introduce a custom charge.

The optional proxy configuration is passed to Apify's SDK. The actor never selects a paid group automatically or silently changes a configured proxy to direct traffic. Site changes, rate limits, and differences between local, GitHub, and Apify network access can still affect results. Verify the first real Apify run before publishing the actor.

### Use with MCP and AI assistants

Use the [hosted Apify MCP server](https://docs.apify.com/mcp) with a remote MCP client. After connecting this repository to your Actor and rebuilding it, copy [the client configuration](examples/apify-mcp.json) into your client's MCP settings and authorize your Apify account through OAuth. The connection URL is:

```text
https://mcp.apify.com?tools=fetch-actor-details,call-actor
```

This uses Apify's managed server and the Actor's input/output schemas. Keep the Actor on limited permissions. Private testing requires an account with access; publish it before offering it to other customers.

Ask your assistant:

> Use Apify Actor 8nghlQ7aS7WiKkiuX to find Mewtwo 157/128 in Pokémon. Return current USD prices with set and variant, at most 20 results. Use 512 MB, a 120-second timeout, and a maximum charge of $0.10. Read the run summary and explain incomplete or ambiguous results.

The [example call arguments](examples/mcp-call.json) target the Actor ID supplied for this repository. Replace that ID if you deploy elsewhere. Inspect the Actor with `fetch-actor-details`, run it with `call-actor`, then read its dataset with `get-dataset-items`. If still running, check `get-actor-run`; read `RUN_SUMMARY.json` through `get-key-value-store-record`. Apify adds these helper tools automatically. See the [official MCP server guide](https://github.com/apify/apify-mcp-server#readme).

Put `maxTotalChargeUsd`, `memory`, and `timeout` in `callOptions`, outside `input`; `maxItemsPerSearch` belongs inside `input`. The charge cap applies after pay-per-event pricing is configured. MCP calls use the Actor's normal output and pricing. The same 30-result public-page limit applies. A live authenticated MCP run against your deployed Actor remains a required launch check; local and container scraper checks do not validate that connection.

### Local development

```shell
python -m pip install -r requirements.txt
python -m unittest discover -s tests -v
python scripts/live_smoke.py
docker build -t collectr-scraper .
```

The live smoke test runs the real Actor with isolated SDK storage: keyword searches in USD and CAD, YuGiOh filtering, the exact 30th Celebration set link, sealed products in that set, and a precise numbered-card query within it. It validates the CSV, summary, and requested scope, and uses no Apify account credentials. CI also runs these checks inside the Linux container with a 512 MB limit.

For a custom local SDK 3.x input, put JSON in `storage/key_value_stores/default/INPUT.json` before running `python src/main.py`, or use the Apify CLI. Environment variables and local storage are excluded from the repository and container build.

### Scope

This is an independent tool for Collectr's public catalog. It is not affiliated with Collectr, does not log in or access private collections, and does not include subscription-only data. Source data and currency conversions can change; every row includes its source and collection time.

### Monetization setup recommendation

The following is a launch recommendation, not a configured price or a promise of earnings. Monetization is managed in Apify Console. No custom billing code or fees are configured in this repository.

For this public-page version, start with simple per-result pricing:

| Setting | Suggested launch value |
| --- | --- |
| Model | Pay per event |
| Result event | Built-in `apify-default-dataset-item` |
| Result event title | Priced product variant |
| Price per result | **$0.003** = **$3 per 1,000 dataset rows** |
| Primary event | The result event |
| Startup event | Keep built-in `apify-actor-start` at Apify's default **$0.00005** |
| Extra custom events | None |
| Pay per event + usage | Off for a simple advertised total price; measure costs before launching |
| Minimum user-selectable maximum spend | **$0.10**; this is a spending-limit floor, not a mandatory $0.10 charge |
| Starting memory | 512 MB; repository configuration permits 512-1024 MB to bound compute costs |

If tiered pricing is optional, use the same initial per-row price and adjust discounts after measuring real usage. Do not charge extra for CSV export or currency conversion. Each unique product/variant written to the dataset is one result; duplicate matches across queries are merged before output.

Apify [automatically charges the built-in dataset event](https://docs.apify.com/actors/monetize/pay-per-event#use-apify-default-dataset-item) when rows are written to the default dataset, so this setup does not require adding a custom charge call. Keep the synthetic startup event at its default price; Apify documents that it covers the first five seconds of compute. The [monetization wizard](https://docs.apify.com/actors/monetize/set-up-monetization) has Actor pricing, Primary event, and Review steps. Review the final prices, billing eligibility, and spending-limit behavior in a real Apify run before making the actor public.

The $3 per 1,000 starting price is a test price, informed by a nearby [TCGplayer scraper listing](https://apify.com/solidcode/tcgplayer-scraper) advertising the same entry price at the research date. That actor includes other data and broader crawling, so it is not an identical product or proof of demand for this one. This actor's useful differences are Collectr-specific records, collector-number queries, preserved variants, and explicit currency-conversion provenance. Advertise the first-page limit and current-price scope accurately.

Apify's documented [profit calculation](https://docs.apify.com/actors/monetize/pricing-and-costs) is `0.8 × revenue − platform costs`, and free-plan usage does not generate creator revenue. For example, **10,000 billable rows at $3/1,000 generate $30 in revenue and $24 after commission, before platform costs**. At 20 rows, the result fee is $0.06, plus the tiny startup fee. Profit depends on paid-user demand and actual compute, transfer, storage, and optional proxy costs.

To attract paying users, show working examples for collector-number lookups, a multi-card price sheet, and keyword watchlists that users can run on their own schedules. Include a sample CSV and a precise output-field description in the Store listing. Target collectors' tools, card shops, and spreadsheet/data integrations that need repeated structured exports. Do not market this version as an exhaustive catalog, complete-set downloader, history API, or graded-price API.

Before receiving payouts, complete Apify's billing/payment information and identity verification yourself. The current [payout documentation](https://docs.apify.com/actors/monetize/monthly-payouts) lists minimums of $20 for PayPal/Wise and $100 for other methods; these can change. No payout details, legal acceptance, or live publication settings are changed by this repository.

# Changelog

This Actor's version history is a separate document: https://apify.com/ozer-studio/collectr-scraper/changelog.md

# Actor input Schema

## `searchTerms` (type: `array`):

One query per line: a name (mew), collector number (157/128), or combined name and number (Mewtwo 157/128). Numbers can match different sets; use category and inspect set_name and variant. A set-name keyword can return related products and does not download the complete set. Clear this field when using only links. Empty input uses mew.

## `searchUrls` (type: `array`):

Paste public search or /sets/category/ID/SLUG?groupId=ID links. Set links may omit query; add query to monitor a specific card within that set. cardType=cards selects cards; cardType=sealed selects boxes, packs, and bundles. Explicit link filters override Actor options. First 30 source records only; no complete-set guarantee. Clear the example keyword when using only links.

## `maxItemsPerSearch` (type: `integer`):

Default: 20 priced product variants per keyword or link. Up to 30 source records on the first public search or set page; missing prices are skipped. No complete-set or pagination claim.

## `category` (type: `string`):

All supported games by default. A category filter already present in a pasted search link takes precedence.

## `productType` (type: `string`):

Cards, sealed products (including booster boxes, packs, and bundles), or both. An explicit cardType in a pasted URL takes precedence; remove or change cardType=cards to request sealed products.

## `currency` (type: `string`):

USD by default. Other currencies are converted with daily ExchangeRate-API rates. Source USD prices and the rate timestamp remain in every row; converted amounts can differ from Collectr’s own currency display.

## `priceMode` (type: `string`):

Current prices by default. The optional comparison mode adds the older price and change values exposed by the public search page. These are not historical time series or separate graded-card valuations; the source does not identify the comparison period.

## `saveCsvFile` (type: `boolean`):

Save collectr_results.csv in the run’s key-value store when rows are available. Structured dataset output is always written.

## `failOnNoResults` (type: `boolean`):

Enabled by default so blocked or empty runs do not appear to have produced data. Disable for batch workflows that accept an empty dataset; RUN_SUMMARY.json still records the outcome.

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

Optional Apify or custom proxies. Omit to use direct requests. The actor never selects a paid proxy group automatically.

## Actor input object example

```json
{
  "searchTerms": [
    "mew"
  ],
  "searchUrls": [],
  "maxItemsPerSearch": 20,
  "category": "all",
  "productType": "cards",
  "currency": "USD",
  "priceMode": "current",
  "saveCsvFile": true,
  "failOnNoResults": true
}
```

# Actor output Schema

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

Default dataset. Each row is one priced product ID plus variant; inspect game, set_name, card_number, and variant for ambiguous matches. price is in currency; price_usd retains the source value. This is not an exhaustive set or catalog.

## `csv` (type: `string`):

CSV of the delivered dataset rows. Exists only when saveCsvFile is enabled and at least one result is delivered.

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

Read status, per-search errors and counts, extracted_products, unique_products, and spending_limit_reached. partial, failed, no_results, and budget_limited require qualification when reporting results.

# 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 = {
    "searchTerms": [
        "mew"
    ],
    "searchUrls": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("ozer-studio/collectr-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 = {
    "searchTerms": ["mew"],
    "searchUrls": [],
}

# Run the Actor and wait for it to finish
run = client.actor("ozer-studio/collectr-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 '{
  "searchTerms": [
    "mew"
  ],
  "searchUrls": []
}' |
apify call ozer-studio/collectr-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,ozer-studio/collectr-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/8nghlQ7aS7WiKkiuX/builds/YidCuNcbA8S5xgoG4/openapi.json
