# LigaPokemon Scraper - Pokemon Card Prices & Seller Offers (`bovi/ligapokemon-scraper`) Actor

Scrape LigaPokemon (Brazil) Pokemon TCG card and product prices in BRL: every seller offer with store, city, rating, condition, language and price, or aggregated min/avg/max per product. No login.

- **URL**: https://apify.com/bovi/ligapokemon-scraper.md
- **Developed by:** [Vitalii Bondarev](https://apify.com/bovi) (community)
- **Categories:** E-commerce
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.20 / 1,000 ligapokemon scraper - pokemon card prices & seller offers

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

## LigaPokemon Scraper - Pokemon Card Prices & Seller Offers

Scrape [LigaPokemon](https://www.ligapokemon.com.br) - Brazil's largest Pokemon TCG marketplace - and get
real prices in Brazilian reais (BRL). The actor returns **every seller offer** on a card or product page
(store, city, rating, condition, language, exact price, discount) or **one aggregated record per product**
with the current minimum / average / maximum marketplace price and the last-sales summary. No login needed.

### What it collects

**Seller-offer mode** (`includeOffers: true`, default) - one record per store listing:

- product name, product id, product URL, language tag from the title (`(PT-BR)`, `(ING)`, `(JAP)` ...)
- store name, store id, city, state, overall rating, shipping / packaging / delivery ratings, review count,
  physical-store flag, store showcase URL
- condition (e.g. *Lacrado* = sealed, NM, SP) and offer language
- exact offer price in BRL, original price when the store runs a discount, rank in the cheapest-first list
- the product's current min / avg / max price for context

**Aggregated mode** (`includeOffers: false`) - one record per product: min / avg / max price, number of offers,
image URL and the last-sales summary (date, units, min / avg / max sale price).

### Input

| Field | Type | Description |
|-------|------|-------------|
| `query` | string | Card or product name to search, e.g. `Charizard ex` |
| `startUrls` | array | Direct product/card URLs, e.g. `https://www.ligapokemon.com.br/?view=prod/view&pcode=132673` |
| `includeOffers` | boolean | Seller offers (ON, default) or aggregated product prices (OFF) |
| `language` | select | Keep only one language (`any` by default) |
| `condition` | string | Keep only one condition code or label, e.g. `NM`, `L` |
| `maxProducts` | integer | Product pages opened from the search results (default 10) |
| `maxResults` | integer | Maximum number of records returned (default 50) |
| `proxyConfiguration` | object | Proxy settings; Brazilian residential is recommended (Cloudflare) |

```json
{
  "startUrls": [{ "url": "https://www.ligapokemon.com.br/?view=prod/view&pcode=132673" }],
  "includeOffers": true,
  "maxResults": 50
}
```

### Example output

```json
{
  "productName": "(PT-BR) Baralho Pré Construído - Baralho Batalha de Liga - Charizard ex",
  "productId": 132673,
  "url": "https://www.ligapokemon.com.br/?view=prod/view&pcode=132673",
  "language": "portuguese",
  "offerId": 499142,
  "rank": 1,
  "seller": "Miragem Hobby",
  "sellerId": 62881,
  "sellerCity": "Guarapuava",
  "sellerState": "PR",
  "sellerRating": 5.0,
  "sellerReviewCount": 5,
  "physicalStore": true,
  "sellerUrl": "https://www.ligapokemon.com.br/?view=mp/showcase/home&id=62881",
  "condition": "Lacrado",
  "conditionCode": "L",
  "offerLanguage": "Português",
  "offerLanguageCode": "PT",
  "price": 74.75,
  "originalPrice": null,
  "currency": "BRL",
  "priceMin": 74.75,
  "priceAvg": 109.07,
  "priceMax": 199.0,
  "source": "ligapokemon.com.br"
}
```

### How it works

LigaPokemon sits behind Cloudflare, so the actor opens pages in a real browser (Camoufox) through the proxy
from your input and reads the marketplace data the page itself embeds. Most offer prices are drawn as image
digits instead of text; the actor reconstructs them from the facts printed on the same page (cheapest and
most expensive price, the cheapest-first order and the plain-text promo prices) and only outputs a price
when the reconstruction is unambiguous - it never guesses.

### Pricing

Pay per result: you are billed a small fixed amount for each record (offer or product) stored in the
dataset, plus the usual Apify platform usage. With `maxResults` you always control the maximum cost of a run.

### Notes

- Unit quantities per offer are drawn as images with no text anchor on the page, so they are not returned.
- Not affiliated with or endorsed by LigaPokemon. Collects publicly visible marketplace data only.

# Actor input Schema

## `query` (type: `string`):

Pokemon card or product to search for on LigaPokemon (e.g. "Charizard ex"). The actor opens the matched product/card pages from the search results.

## `startUrls` (type: `array`):

Direct LigaPokemon product or card page URLs (e.g. https://www.ligapokemon.com.br/?view=prod/view\&pcode=132673). Processed before the search query.

## `includeOffers` (type: `boolean`):

ON: one record per seller listing (seller, city, rating, condition, language, price). OFF: one aggregated record per product with min/avg/max price and last-sales summary.

## `language` (type: `string`):

Keep only offers in this language (offer mode) or products whose title carries this language tag, e.g. (PT-BR), (ING) (aggregated mode).

## `condition` (type: `string`):

Keep only offers with this LigaPokemon condition code or label, e.g. NM, SP, M for cards or L (Lacrado = sealed) for products. Empty = any condition.

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

How many matched product/card pages to open from the search results.

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

Maximum number of records (offers or products) to return.

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

LigaPokemon is behind Cloudflare and serves Brazilian visitors best; a Brazilian residential proxy is recommended.

## Actor input object example

```json
{
  "query": "Charizard ex",
  "startUrls": [
    {
      "url": "https://www.ligapokemon.com.br/?view=prod/view&pcode=132673&prod=%28PT-BR%29+League+Battle+Deck+-+Charizard+ex"
    }
  ],
  "includeOffers": true,
  "language": "any",
  "maxProducts": 10,
  "maxResults": 50,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": [
      "RESIDENTIAL"
    ],
    "apifyProxyCountry": "BR"
  }
}
```

# Actor output Schema

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

Dataset with the scraped records.

# 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 = {
    "query": "Charizard ex",
    "startUrls": [
        {
            "url": "https://www.ligapokemon.com.br/?view=prod/view&pcode=132673&prod=%28PT-BR%29+League+Battle+Deck+-+Charizard+ex"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("bovi/ligapokemon-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 = {
    "query": "Charizard ex",
    "startUrls": [{ "url": "https://www.ligapokemon.com.br/?view=prod/view&pcode=132673&prod=%28PT-BR%29+League+Battle+Deck+-+Charizard+ex" }],
}

# Run the Actor and wait for it to finish
run = client.actor("bovi/ligapokemon-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 '{
  "query": "Charizard ex",
  "startUrls": [
    {
      "url": "https://www.ligapokemon.com.br/?view=prod/view&pcode=132673&prod=%28PT-BR%29+League+Battle+Deck+-+Charizard+ex"
    }
  ]
}' |
apify call bovi/ligapokemon-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,bovi/ligapokemon-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/1996LCPswvmNVNybH/builds/0j9yATxCiKhzzTRAx/openapi.json
