# Kinguin Key Search (`apt_marble/kinguin-key-search`) Actor

Collect Kinguin Key Search data with images, nested commerce fields and automatic pagination.

- **URL**: https://apify.com/apt_marble/kinguin-key-search.md
- **Developed by:** [Hamza](https://apify.com/apt_marble) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$1.50 / 1,000 saved 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

## Kinguin Key Search

Collect public kinguin key search data into a clean dataset for price research, catalog analysis and reporting. No browser session or cookies are needed.

### What you get

- One row per unique product or result, with an image first when available.
- Readable summary fields plus `sourceData` with all nonempty commerce fields returned for that result.
- Available image arrays, nested attributes and price blocks are kept without extra per-item enrichment requests.
- Automatic pagination until the requested result count or the available results are exhausted.
- JSON, CSV and Excel export through Apify datasets. Nested data is most complete in JSON.

### Start a run

Use the prefilled example, change the search or identifiers, then set **Maximum results**.

```json
{
  "query": "witcher",
  "maxItems": 30
}
```

### Inputs

- **Search phrase**: Search words. For example witcher.
- **Maximum results**: Stop after this many unique results. Pagination is automatic.

### Output

`image`, `id`, `title` and the available price/rating fields give a compact view. `sourceData` keeps the full commerce details rather than flattening away arrays. Missing fields are omitted instead of filled with empty columns. Dates are formatted DD-MM-YYYY; any time suffix is retained.

### Important details

Includes activation regions, platforms, product attributes and raw price fields. Raw price units/currency are not normalized or guaranteed, and large sentinel values may mean no offer. Do not treat these fields as a final checkout quote. Account/access offers may be mixed with keys; inspect product names and attributes.

Rows contain public commerce data only. Reviewer profiles, seller personal data and backend service links are removed. Product descriptions and review text are returned as text, not rendered HTML. Respect the source site's terms, content rights and applicable law. This actor is independent and is not endorsed by the source marketplace.

### Results and billing

One `result` event is charged per saved unique row, using the rate shown on this listing. Duplicate rows are not charged again within the same run. No charge event is emitted for invalid input or empty results.

### Empty results and errors

Invalid input or unavailable identifiers finish successfully with an explanation and a working example in **Run status**. The same record tells you how many pages and results were saved. A partial run keeps its results and reports a warning. A complete service outage can fail the run so it is not mistaken for an empty search. Public sources can change or limit access; no speed or long-term availability guarantee is made.

# Actor input Schema

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

Search words. For example witcher.

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

Stop after this many unique results. Pagination is automatic.

## Actor input object example

```json
{
  "query": "witcher",
  "maxItems": 30
}
```

# Actor output Schema

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

No description

## `status` (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 = {
    "query": "witcher",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("apt_marble/kinguin-key-search").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": "witcher",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("apt_marble/kinguin-key-search").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": "witcher",
  "maxItems": 30
}' |
apify call apt_marble/kinguin-key-search --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,apt_marble/kinguin-key-search"
        }
    }
}
```

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/ehEham1amvqOWwRDM/builds/I61jVHCeZI0vyuzl0/openapi.json
