# Card Kingdom MTG Price & Stock Alert (`mrdoe/cardkingdom-mtg-deal-alert`) Actor

Card Kingdom deal alert and listings scraper for United States: search any item, get price, location, photos, seller and posting time, with new-listing and price-drop alerts. Filter by price. No login.

- **URL**: https://apify.com/mrdoe/cardkingdom-mtg-deal-alert.md
- **Developed by:** [MrDoe](https://apify.com/mrdoe) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.50 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
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

![Card Kingdom MTG Price & Stock Alert - marketplace listings with price, location and new-listing alerts](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/cardkingdom-mtg-deal-alert--hero.png)

### What does Card Kingdom MTG Price & Stock Alert do?

Card Kingdom MTG Price & Stock Alert searches Card Kingdom, the United States marketplace, for any item and collects the matching listings. Each row has the title, price, currency, description, location, category, condition, seller name, photos, posting time and the listing link. Add several search terms, filter by minimum and maximum price, and turn on monitor mode so a scheduled run returns only listings that are new or whose price dropped since the previous run.

### Why use Card Kingdom MTG Price & Stock Alert?

- Find deals on Card Kingdom the moment they are listed instead of refreshing the site.
- Track several searches at once with separate limits and a shared price range.
- Price-drop alerts show when an already-seen listing becomes cheaper.
- Clean structured rows for resellers, price trackers, spreadsheets and Telegram or Discord bots.
- No account or login needed.

### What makes this different

Built for hunting deals rather than one-off exports: it searches many terms in one run, keeps a baseline per search between runs, and reports only new listings and real price drops in monitor mode. Prices are normalised to numbers in USD.

### How it works

![Card Kingdom MTG Price & Stock Alert workflow: your input, collection, output](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/cardkingdom-mtg-deal-alert--how-it-works.png)

1. **Your input** — type one or more search terms and optional price filters.
2. **The Actor collects it** — the Actor searches Card Kingdom for each term, newest first, and applies your filters.
3. **Your output** — you get one clean row per listing, or only new listings and price drops in monitor mode.

### What data can you extract?

The dataset has 20 fields per row:

| Field              | Type    | Description                                                   |
| ------------------ | ------- | ------------------------------------------------------------- |
| `id`               | string  | Card Kingdom listing ID.                                      |
| `title`            | string  | Listing title.                                                |
| `url`              | string  | Listing page.                                                 |
| `price`            | number  | Asking price in USD.                                          |
| `currency`         | string  | ISO currency code.                                            |
| `description`      | string  | Listing description.                                          |
| `location`         | string  | Location shown on the listing.                                |
| `city`             | string  | City of the listing.                                          |
| `category`         | string  | Listing category.                                             |
| `condition`        | string  | Item condition, when the seller states one.                   |
| `sellerName`       | string  | Seller display name.                                          |
| `isShippable`      | boolean | True when the seller offers shipping.                         |
| `postedAt`         | string  | When the listing was posted or last refreshed (ISO 8601 UTC). |
| `imageUrl`         | string  | Main image URL.                                               |
| `imageUrls`        | array   | Up to 10 image URLs.                                          |
| `attributes`       | array   | Extra Card Kingdom attributes as name/value pairs.            |
| `searchTerm`       | string  | The search term that found the listing.                       |
| `priceDropAmount`  | number  | How much cheaper than the previous run; null if not cheaper.  |
| `priceDropPercent` | number  | Percent cheaper than the previous run.                        |
| `isNewToWatch`     | boolean | True the first time this listing appears in this search.      |

### How to use Card Kingdom MTG Price & Stock Alert

![Card Kingdom MTG Price & Stock Alert input form](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/cardkingdom-mtg-deal-alert--input.png)

1. Open the Actor and go to the **Input** tab.
2. Enter one or more **Search terms**, for example `lightning bolt`.
3. Optionally set filters and a **Max results** limit.
4. Click **Start**. A default run finishes in under a minute.
5. Open the **Output** tab, then download the dataset or connect it to your tools.

### Input Parameters

| Parameter            | Type    | Required | Default                   | Description                                                                                                                                                                                                 |
| -------------------- | ------- | -------- | ------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `searchTerms`        | array   | No       | `["lightning bolt"]`      | One or more things to search Card Kingdom for, in English (a Magic: The Gathering card name), e.g. "lightning bolt", "sol ring", "lotus". Max results applies to each term separately.                      |
| `minPrice`           | number  | No       | —                         | Only return listings priced at or above this amount in USD. Listings without a price are skipped when a price filter is set.                                                                                |
| `maxPrice`           | number  | No       | —                         | Only return listings priced at or below this amount in USD. Listings without a price are skipped when a price filter is set.                                                                                |
| `inStockOnly`        | boolean | No       | `true`                    | Skip cards that are out of stock in every condition.                                                                                                                                                        |
| `foil`               | string  | No       | `"any"`                   | Only foil printings, only non-foil printings, or both.                                                                                                                                                      |
| `sortBy`             | string  | No       | `"relevance"`             | Order of the results.                                                                                                                                                                                       |
| `maxItems`           | integer | No       | `20`                      | Stop once this many listings have been written to the dataset for each search term.                                                                                                                         |
| `monitorMode`        | boolean | No       | `false`                   | When on, the run compares against the previous monitored run of the same search and returns only listings that are new or whose price fell by at least the drop threshold. Turn this on for scheduled runs. |
| `minDropPercent`     | number  | No       | `5`                       | In monitor mode, report a price drop on an already-seen listing only when it is at least this many percent.                                                                                                 |
| `proxyConfiguration` | object  | No       | `{"useApifyProxy":false}` | Optional. Card Kingdom works without a proxy at normal volumes.                                                                                                                                             |

### Output Data

![Card Kingdom MTG Price & Stock Alert dataset table](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/cardkingdom-mtg-deal-alert--output.png)

Prices are numbers in USD. `postedAt` is ISO 8601 UTC when the marketplace provides a timestamp. Fields the listing does not have, such as `condition` or `isShippable`, are `null`.

![Card Kingdom MTG Price & Stock Alert field map of one record](https://api.apify.com/v2/key-value-stores/kE36venAoVchGsE6b/records/cardkingdom-mtg-deal-alert--fields.png)

A real dataset item:

```json
{
    "id": "53145",
    "title": "Lightning Bolt",
    "url": "https://www.cardkingdom.com/mtg/beta/lightning-bolt",
    "price": 319.99,
    "currency": "USD",
    "description": "Lightning Bolt deals 3 damage to any target.",
    "location": null,
    "city": null,
    "category": "Instant",
    "condition": "EX",
    "sellerName": "Card Kingdom",
    "isShippable": null,
    "postedAt": null,
    "imageUrl": "https://www.cardkingdom.com/images/magic-the-gathering/beta/lightning-bolt-45708-large.jpg",
    "imageUrls": ["https://www.cardkingdom.com/images/magic-the-gathering/beta/lightning-bolt-45708-large.jpg"],
    "attributes": [
        {
            "name": "set",
            "value": "Beta"
        },
        {
            "name": "rarity",
            "value": "C"
        },
        {
            "name": "collectorNumber",
            "value": "162"
        },
        {
            "name": "nmPrice",
            "value": 399.99
        }
    ],
    "searchTerm": "lightning bolt",
    "priceDropAmount": null,
    "priceDropPercent": null,
    "isNewToWatch": true
}
```

### Usage Examples

#### Latest "lightning bolt" listings

```json
{
    "searchTerms": ["lightning bolt"]
}
```

#### "sol ring" under 30 USD

```json
{
    "searchTerms": ["sol ring"],
    "maxPrice": 30,
    "sortBy": "price_asc"
}
```

#### Hourly alert for new listings and price drops

```json
{
    "searchTerms": ["lightning bolt", "sol ring", "lotus"],
    "monitorMode": true,
    "maxItems": 50
}
```

### Tips for Best Results

- Schedule monitor mode every 10 to 60 minutes and send new rows to Telegram, Discord or Slack.
- Use specific terms (brand and model) to keep the results relevant.
- Keep the same search terms and price range between scheduled runs - the baseline is kept per search.
- Search in English (a Magic: The Gathering card name), the language listings are written in.

### Known Limitations

- Only listings that Card Kingdom shows in its public search are returned.
- Prices are in US dollars and are the store's selling prices.
- The price field is the lowest price among the conditions in stock; every condition's price and stock are in the attributes.
- Search results carry no seller or location, so those fields are null.
- Monitor mode re-reads the whole search on every run.
- Some listings have no price or condition; those fields are null.
- Prices are in USD and are not converted.
- Sold and removed listings disappear from search, so they are not reported.

### Integrations

Run it from the Apify API, on a schedule, or from a webhook. Send results straight to Google Sheets, Make, Zapier, Slack or your own database with Apify's built-in integrations.

### Export Formats

Download the dataset as JSON, CSV, Excel, XML, HTML table or RSS from the **Output** tab or the API.

### Frequently Asked Questions

#### How do I scrape Card Kingdom listings?

Enter one or more search terms and run the Actor. Each matching listing is returned with price, location, photos and seller.

#### How do I get alerts for new listings?

Turn on Monitor mode and schedule the run. Each run returns only listings that earlier runs of the same search did not report.

#### Can I get price-drop alerts?

Yes. In monitor mode a listing you have seen before is returned again when its price falls by at least your threshold.

#### Can I filter by price?

Yes. Set a minimum and maximum price in the marketplace currency.

#### How many results can I get?

The default is 20 listings per search term. Raise Max results to collect more; the marketplace itself limits how deep a search goes.

#### How fresh is the data?

It is read live from Card Kingdom on every run.

#### Does it remove duplicates?

Yes. Each listing appears once per run.

#### Do I need an account or login?

No. The Actor collects public Card Kingdom search results and needs no account, cookies or API key.

#### Am I charged for failed runs or empty results?

You are only charged for results that are actually written to the dataset.

#### Can I run it on a schedule?

Yes. Create a Task with your input and add a schedule in Apify Console. With monitor mode on, each scheduled run returns only what changed since the previous one.

### Support

Questions or a missing field? Open an issue from the **Issues** tab on this Actor's page and it will be looked at.

### Legal / Responsible Use

You are responsible for using the collected data in line with Card Kingdom's terms and applicable law. Listings can include sellers' names and locations, which may be personal data; you are responsible for applicable privacy law such as GDPR for anything you store or contact. The Actor is not affiliated with Card Kingdom.

# Actor input Schema

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

One or more things to search Card Kingdom for, in English (a Magic: The Gathering card name), e.g. "lightning bolt", "sol ring", "lotus". Max results applies to each term separately.

## `minPrice` (type: `number`):

Only return listings priced at or above this amount in USD. Listings without a price are skipped when a price filter is set.

## `maxPrice` (type: `number`):

Only return listings priced at or below this amount in USD. Listings without a price are skipped when a price filter is set.

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

Skip cards that are out of stock in every condition.

## `foil` (type: `string`):

Only foil printings, only non-foil printings, or both.

## `sortBy` (type: `string`):

Order of the results.

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

Stop once this many listings have been written to the dataset for each search term.

## `monitorMode` (type: `boolean`):

When on, the run compares against the previous monitored run of the same search and returns only listings that are new or whose price fell by at least the drop threshold. Turn this on for scheduled runs.

## `minDropPercent` (type: `number`):

In monitor mode, report a price drop on an already-seen listing only when it is at least this many percent.

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

Optional. Card Kingdom works without a proxy at normal volumes.

## Actor input object example

```json
{
  "searchTerms": [
    "lightning bolt"
  ],
  "inStockOnly": true,
  "foil": "any",
  "sortBy": "relevance",
  "maxItems": 20,
  "monitorMode": false,
  "minDropPercent": 5,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `results` (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 = {
    "searchTerms": [
        "lightning bolt"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("mrdoe/cardkingdom-mtg-deal-alert").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": ["lightning bolt"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("mrdoe/cardkingdom-mtg-deal-alert").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": [
    "lightning bolt"
  ],
  "maxItems": 20
}' |
apify call mrdoe/cardkingdom-mtg-deal-alert --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mrdoe/cardkingdom-mtg-deal-alert"
        }
    }
}
```

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/ydC7ZVOhqKyd8QZ1K/builds/H7xFGY00BmShXbba0/openapi.json
