# TCGplayer Pokemon Scraper (`scraped/tcgplayer-pokemon-scraper`) Actor

Scrape TCGplayer pokemon section by keyword

- **URL**: https://apify.com/scraped/tcgplayer-pokemon-scraper.md
- **Developed by:** [scraped](https://apify.com/scraped) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Security:** Full permissions
- **Stats:** 31 total users, 0 monthly users, 96.7% runs succeeded, 1 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.00 / 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.

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

## TCGplayer Pokemon Keyword Scraper

This scraper collects Pokemon listings from [TCGplayer.com](https://www.tcgplayer.com/)

### Sample Output

Here's an example of the data the scraper will output:

```json
customData: {
customListingId: null,
images: [ ]
},
directProduct: false,
goldSeller: true,
listingId: 338502049,
channelId: 0,
conditionId: 1,
verifiedSeller: false,
directInventory: 0,
rankedShippingPrice: 1.31,
productId: 478787,
printing: "Normal",
languageAbbreviation: "EN",
sellerName: "ArkoGames",
sellerPrograms: [ ],
forwardFreight: false,
sellerShippingPrice: 0,
language: "English",
shippingPrice: 1.31,
condition: "Near Mint",
languageId: 1,
score: 0.019999999552965164,
directSeller: false,
productConditionId: 6944775,
sellerId: "323002",
listingType: "standard",
sellerRating: 100,
sellerSales: "385",
quantity: 5,
sellerKey: "72d8a7f2",
price: 0.02
}
],
shippingCategoryId: 1,
duplicate: false,
productLineUrlName: "Pokemon",
productUrlName: "Code Card Crown Zenith Booster Pack",
productTypeId: 0,
rarityName: "Code Card",
sealed: false,
marketPrice: 0.03,
customAttributes: {
description: "This listing is <strong>not</strong> a physical item. Please keep in mind that this <strong>Code Card</strong> listing represents a digital copy of the stated item for the Pokémon TCG Online <strong>and/or</strong> the Pokémon TCG Live games. You may receive the physical <strong>Code Card</strong>. Upon purchase, please work with your specific Seller by sending them a message using the <strong>Contact Seller</strong> button on the order details in your <a href=https://store.tcgplayer.com/myaccount/orderhistory>Order History</a> to opt in to having your <strong>Code Card</strong> code delivered digitally due to the nature of the product.",
attack2: null,
stage: null,
detailNote: "This product is a Presale item with an estimated shipping date of 4/14/2023. Please keep in mind card details, including rarity and card name, may change up until release date as information is updated.",
energyType: null,
releaseDate: "2023-01-20T00:00:00Z",
number: "",
cardType: [
"Pokemon"
],
cardTypeB: null,
resistance: null,
rarityDbName: "Code Card",
weakness: null,
flavorText: "",
attack1: null,
attack3: null,
attack4: null
},
lowestPriceWithShipping: 0.01,
productName: "Code Card - Crown Zenith Booster Pack",
setId: 17688,
productId: 478787,
medianPrice: 0.05,
score: 5.2311125,
setName: "Crown Zenith",
foilOnly: false,
setUrlName: "Crown Zenith",
sellerListable: false,
totalListings: 254,
productLineId: 3,
productStatusId: 1,
productLineName: "Pokemon",
maxFulfillableQuantity: 0,
lowestPrice: 0.01
}

,
```

### Support

Please email scraperhelp@gmail.com if you need any additional support.

# Actor input Schema

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

The keyword you want to get data for.

## Actor input object example

```json
{
  "searchQuery": "charizard"
}
```

# 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 = {
    "searchQuery": "charizard"
};

// Run the Actor and wait for it to finish
const run = await client.actor("scraped/tcgplayer-pokemon-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 = { "searchQuery": "charizard" }

# Run the Actor and wait for it to finish
run = client.actor("scraped/tcgplayer-pokemon-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 '{
  "searchQuery": "charizard"
}' |
apify call scraped/tcgplayer-pokemon-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,scraped/tcgplayer-pokemon-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/B9zqiszFttYRWHPrd/builds/rMTwPgRn8OOqxcd2Y/openapi.json
