# G2G.com Offer & Price Scraper (`fayoussef/g2g-offer-scraper`) Actor

Scrape G2G.com marketplace offers (price, seller, stock, delivery) from any category URL with pagination, sorting, currency and country controls.

- **URL**: https://apify.com/fayoussef/g2g-offer-scraper.md
- **Developed by:** [youssef farhan](https://apify.com/fayoussef) (community)
- **Categories:** E-commerce, Automation, Developer tools
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, NaN bookmarks
- **User rating**: No ratings yet

## Pricing

from $1.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/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).


# README

## G2G Scraper – Prices, Offers & Sellers from G2G.com

**Scrape G2G.com offers in seconds.** This G2G scraper extracts live **prices, sellers, stock, delivery speed and ratings** from any G2G category page and returns clean, structured JSON, CSV or Excel. Perfect for **price monitoring, market research, repricing, and competitor tracking** across game accounts, top-up, in-game items, currency and boosting services.

> Built on G2G's public offer-search API — **no login, no token, no cookies needed.** Fast, reliable, and ready for scheduling.

---

### 🎯 What this G2G scraper does

- ✅ **Scrape G2G prices** from any category URL (e.g. game accounts, items, top-up, currency)
- ✅ **Full pagination** — fetch every offer or cap it with `maxPages`
- ✅ **Sort** by lowest price, highest price, recommended, or most recent
- ✅ **Any currency & country** for accurate regional pricing
- ✅ **Multiple URLs in one run** — scrape several games/categories at once
- ✅ **Seller intelligence** — username, level, ranking, satisfaction rate, completed orders
- ✅ **Migration-safe & resumable** — never loses progress on the Apify platform
- ✅ Export to **JSON, CSV, Excel, HTML or via API / MCP**

---

### 🔍 Popular use cases

| Use case | How this G2G scraper helps |
|----------|----------------------------|
| **Price monitoring** | Track the lowest G2G price for a game account or item over time |
| **Repricing / arbitrage** | Compare seller prices to set competitive listings |
| **Market research** | Analyze supply, stock levels and delivery speeds per category |
| **Competitor tracking** | Watch specific sellers' offers, ratings and order volume |
| **Dataset building** | Feed clean G2G data into dashboards, sheets, or AI agents |

---

### 🚀 Quick start

1. Open the category you want on **G2G.com** (e.g. `https://www.g2g.com/categories/the-last-of-us-part-ii-account`).
2. Paste that URL into the **`urls`** field.
3. Pick your **sort**, **currency**, **country** and **max pages**.
4. Click **Start** — results stream into the dataset, ready to export.

#### Example input

```json
{
  "urls": [
    "https://www.g2g.com/categories/the-last-of-us-part-ii-account",
    "https://www.g2g.com/categories/elden-ring-account"
  ],
  "maxPages": 5,
  "sort": "lowest_price",
  "currency": "EUR",
  "country": "DE"
}
````

> 💡 You can paste the **full G2G page URL** — the scraper extracts the search term automatically. A raw term (`the-last-of-us-part-ii-account`) also works.

***

### ⚙️ Input parameters

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `urls` | array **(required)** | — | One or more G2G category URLs to scrape. |
| `maxPages` | integer | `3` | Pages per URL (up to 48 offers each). Set high to fetch everything. |
| `sort` | enum | `lowest_price` | `lowest_price`, `highest_price`, `recommended_v2`, `most_recent`. |
| `currency` | enum | `USD` | Display currency (USD, EUR, GBP, AUD, CAD, …). |
| `country` | string | `US` | ISO-2 country code for regional pricing/availability. |
| `pageSize` | integer | `48` | Offers per page (max 48). |

***

### 📦 Output

Each offer is returned as a clean, organized record grouped by section:

| Group | Fields |
|-------|--------|
| **Identity / link** | `title`, `offer_id`, `offer_url` |
| **Pricing** | `price`, `currency`, `display_price`, `price_in_usd`, `converted_unit_price`, `unit_name`, `qty_metric` |
| **Stock** | `available_qty`, `reserved_qty`, `min_qty`, `total_offer` |
| **Delivery** | `delivery_speed`, `delivery_mode`, `delivery_eta` |
| **Seller** | `seller_username`, `seller_id`, `seller_level`, `seller_ranking`, `satisfaction_rate`, `total_rating`, `total_completed_orders`, `total_success_order`, `is_official`, `is_online`, `seller_avatar` |
| **Meta** | `description`, `status`, `brand_id`, `region_id`, `created_at`, `updated_at` |
| **Source** | `seo_term`, `source_url`, `page` |

#### Example output record

```json
{
  "title": "The Last of Us 2 remastered (Steam)",
  "offer_id": "G1779929720237GO",
  "offer_url": "https://www.g2g.com/offer/G1779929720237GO",
  "price": 7.5,
  "currency": "USD",
  "price_in_usd": 7.5,
  "available_qty": 4,
  "delivery_speed": "instant",
  "seller_username": "Twinlox",
  "seller_level": 16,
  "satisfaction_rate": 1,
  "seo_term": "the-last-of-us-part-ii-account",
  "page": 1
}
```

***

### 💸 Pricing & free plan

This Actor runs on the **Apify Free plan**, which is limited to **20 results per run**.

🔓 **Unlock unlimited results, full pagination and all categories** by upgrading:
👉 **[Subscribe to a paid Apify plan](https://apify.com/pricing?fpr=youssef)**

Paid users get uncapped scraping across every URL, page and category.

***

### 🤖 Use with AI agents (MCP)

This Actor is **MCP-ready**, so AI assistants (Claude, ChatGPT, agents) can call it directly to answer questions like *"What's the cheapest G2G offer for Elden Ring accounts right now?"* Add it to your Apify MCP server and let your agent fetch live G2G market data on demand.

***

### ⏰ Automate it

Use **[Apify Schedules](https://docs.apify.com/platform/schedules)** to run this G2G scraper every hour or day and build a price-history dataset automatically. Combine with integrations (Google Sheets, webhooks, Make, Zapier) to get alerts when prices drop.

***

### 🛡️ Reliability

- **Migration-safe:** progress is persisted continuously; if the Apify platform migrates the run to another server, the Actor **resumes exactly where it left off** with no duplicate work.
- **Public endpoint:** no auth tokens to expire or maintain.
- **Graceful error handling:** failed pages are logged and the run continues.

***

### ❓ FAQ

**Do I need a G2G account or token?**
No. The scraper uses G2G's public offer-search endpoint.

**Can I scrape multiple games at once?**
Yes — add as many category URLs as you want to the `urls` array.

**Which currencies/countries are supported?**
Any currency and ISO-2 country code G2G supports (USD, EUR, GBP, and more).

**How do I get more than 20 results?**
Upgrade to a [paid Apify plan](https://apify.com/pricing?fpr=youssef) to remove the free-plan cap.

**Is scraping G2G legal?**
This Actor only collects publicly available listing data. You are responsible for complying with G2G's terms and applicable laws.

***

#### Keywords

g2g scraper, g2g.com scraper, scrape g2g, g2g price tracker, g2g api, game account prices, g2g offers, g2g sellers, marketplace price monitoring, game item scraper, g2g data extractor.

# Actor input Schema

## `urls` (type: `array`):

One or more G2G category URLs to scrape, e.g. https://www.g2g.com/categories/the-last-of-us-part-ii-account . You can paste the full page URL — the actor extracts the SEO term automatically. A raw seo\_term (e.g. the-last-of-us-part-ii-account) also works.

## `maxPages` (type: `integer`):

How many result pages to fetch for each URL. Each page has up to 48 offers. Use a high number to fetch everything until results run out.

## `sort` (type: `string`):

How offers are sorted.

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

Display currency for prices (ISO 4217 code, e.g. USD, EUR, GBP).

## `country` (type: `string`):

Two-letter country code used for regional pricing/availability (ISO 3166-1 alpha-2, e.g. US, GB, DE).

## `pageSize` (type: `integer`):

Number of offers requested per page (G2G max is 48).

## Actor input object example

```json
{
  "urls": [
    "https://www.g2g.com/categories/the-last-of-us-part-ii-account"
  ],
  "maxPages": 3,
  "sort": "lowest_price",
  "currency": "USD",
  "country": "US",
  "pageSize": 48
}
```

# Actor output Schema

## `offers` (type: `string`):

All scraped offers (price, stock, delivery, seller). Use the table view selector to switch between the 'Overview' and 'All fields' views.

# 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 = {
    "urls": [
        "https://www.g2g.com/categories/the-last-of-us-part-ii-account"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("fayoussef/g2g-offer-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 = { "urls": ["https://www.g2g.com/categories/the-last-of-us-part-ii-account"] }

# Run the Actor and wait for it to finish
run = client.actor("fayoussef/g2g-offer-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    "https://www.g2g.com/categories/the-last-of-us-part-ii-account"
  ]
}' |
apify call fayoussef/g2g-offer-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=fayoussef/g2g-offer-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "G2G.com Offer & Price Scraper",
        "description": "Scrape G2G.com marketplace offers (price, seller, stock, delivery) from any category URL with pagination, sorting, currency and country controls.",
        "version": "1.0",
        "x-build-id": "6gBiPffh7qSZdLjJ8"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/fayoussef~g2g-offer-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-fayoussef-g2g-offer-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/fayoussef~g2g-offer-scraper/runs": {
            "post": {
                "operationId": "runs-sync-fayoussef-g2g-offer-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/fayoussef~g2g-offer-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-fayoussef-g2g-offer-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "G2G category / search URLs",
                        "minItems": 1,
                        "type": "array",
                        "description": "One or more G2G category URLs to scrape, e.g. https://www.g2g.com/categories/the-last-of-us-part-ii-account . You can paste the full page URL — the actor extracts the SEO term automatically. A raw seo_term (e.g. the-last-of-us-part-ii-account) also works.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "maxPages": {
                        "title": "Max pages per URL",
                        "minimum": 1,
                        "maximum": 500,
                        "type": "integer",
                        "description": "How many result pages to fetch for each URL. Each page has up to 48 offers. Use a high number to fetch everything until results run out.",
                        "default": 3
                    },
                    "sort": {
                        "title": "Sort order",
                        "enum": [
                            "lowest_price",
                            "highest_price",
                            "recommended_v2",
                            "most_recent"
                        ],
                        "type": "string",
                        "description": "How offers are sorted.",
                        "default": "lowest_price"
                    },
                    "currency": {
                        "title": "Currency",
                        "enum": [
                            "USD",
                            "EUR",
                            "GBP",
                            "AUD",
                            "CAD",
                            "SGD",
                            "MYR",
                            "PHP",
                            "IDR",
                            "BRL",
                            "INR",
                            "JPY"
                        ],
                        "type": "string",
                        "description": "Display currency for prices (ISO 4217 code, e.g. USD, EUR, GBP).",
                        "default": "USD"
                    },
                    "country": {
                        "title": "Country",
                        "type": "string",
                        "description": "Two-letter country code used for regional pricing/availability (ISO 3166-1 alpha-2, e.g. US, GB, DE).",
                        "default": "US"
                    },
                    "pageSize": {
                        "title": "Offers per page",
                        "minimum": 1,
                        "maximum": 48,
                        "type": "integer",
                        "description": "Number of offers requested per page (G2G max is 48).",
                        "default": 48
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
