g2a.com APIg2a.com ↗
Access G2A marketplace data: search game keys, get seller offers with ratings, and browse category trees. Real-time pricing, stock status, and seller reputation data.
curl -X GET 'https://api.parse.bot/scraper/e5220466-1443-45c1-ae07-fa5af85274ff/search_products?query=elden+ring' \ -H 'X-API-Key: $PARSE_API_KEY'
Search for products on G2A by keyword. Returns a paginated list of products with price, platform, region, and stock information. Results are extracted from the search page and return up to 18 items per page.
| Param | Type | Description |
|---|---|---|
| page | integer | Page number for pagination |
| queryrequired | string | Search keyword (e.g., 'elden ring') |
{
"type": "object",
"fields": {
"products": "array of product objects with name, id, slug, price, currency, platform, region, type, sellers_count, stock_status",
"pagination": "object with page, total_results, has_next, items_per_page"
},
"sample": {
"data": {
"products": [
{
"id": "10000273674023",
"name": "Elden Ring PC",
"slug": "elden-ring-pc-steam-account-account-global-i10000273674023",
"type": "Account",
"price": "24.21",
"region": "GLOBAL",
"currency": "USD",
"platform": "Steam",
"stock_status": "AVAILABLE",
"sellers_count": 13
}
],
"pagination": {
"page": 1,
"has_next": true,
"total_results": 237,
"items_per_page": 18
}
},
"status": "success"
}
}About the g2a.com API
The G2A API exposes 3 endpoints covering product search, full product details, and category navigation across G2A's digital game key marketplace. The get_product_details endpoint returns per-offer pricing alongside seller reputation fields like seller_rating_percent, seller_positives, and seller_negatives, giving you the data needed to compare offers from multiple sellers on a single product page.
Search and Browse
The search_products endpoint accepts a query string and an optional page integer for pagination. Each response returns up to 18 product objects per page, with fields covering name, slug, price, currency, platform, region, type, sellers_count, and stock_status. The pagination object includes total_results, has_next, and items_per_page, so you can walk through multi-page result sets programmatically.
Product Details and Seller Offers
Passing a product slug from search results to get_product_details returns two top-level objects. The product object includes name, rating, reviews_count, image, base_title, and description. The offers array lists every available seller offer for that product, with each entry carrying price, currency, seller_name, seller_rating_percent, seller_positives, seller_negatives, and seller_or (the overall rating metric). This makes it straightforward to identify the lowest-price offer from sellers above a given reputation threshold.
Category Tree
The get_categories endpoint takes no inputs and returns the full G2A navigation category tree. Each category object includes a name, a slug, and a subcategories array, each subcategory also carrying name and slug. This is useful for building category-browsing interfaces or scoping searches to a specific game platform or product type.
- Track real-time price changes for specific game keys across multiple G2A sellers using
search_productsandget_product_details - Compare seller reputation metrics (
seller_rating_percent,seller_positives) to surface the most trusted offers for a given product - Build a price alert tool that monitors
stock_statusandpricefields for a wishlist of game slugs - Aggregate
sellers_countdata from search results to identify which titles have the most marketplace competition - Populate a category-browsing UI using the
get_categoriescategory tree withnameandslugfields - Cross-reference
platformandregionfields from search results to filter region-locked key availability - Analyze
reviews_countandratingfromget_product_detailsto rank popular titles by community reception
| Tier | Price | Credits/month | Rate limit |
|---|---|---|---|
| Free | $0/mo | 100 | 5 req/min |
| Hobby | $30/mo | 1,000 | 20 req/min |
| Developer | $100/mo | 5,000 | 250 req/min |
One credit = one API call regardless of which marketplace API you call. Exceeding the rate limit returns a 429 response. Authenticate with the X-API-Key header.
Does G2A have an official public developer API?+
What seller data does `get_product_details` return, and can I filter offers by seller rating?+
offers array includes seller_name, seller_rating_percent, seller_positives, seller_negatives, and seller_or for each offer on a product. The endpoint returns all available offers without server-side filtering, so rating-based filtering needs to be applied client-side after you receive the full list.Does `search_products` return more than 18 results per request?+
items_per_page). The pagination object includes has_next and total_results, so you can iterate through additional pages by incrementing the page parameter.Does the API return individual user reviews for products?+
get_product_details returns aggregate review data — reviews_count and rating — but not the text or metadata of individual user reviews. You can fork this API on Parse and revise it to add an endpoint that retrieves per-review content.