# Japan X Prize Giveaways (懸賞) — Scraper & Stats API (`fruitful_quintessence/japan-prize-giveaway-scraper`) Actor

Scrapes active X/Twitter prize giveaways from kenshou.club + cp.meikan.org. Returns xUrl/prize/deadline/winnerCount, plus statsMode aggregate summaries.

- **URL**: https://apify.com/fruitful\_quintessence/japan-prize-giveaway-scraper.md
- **Developed by:** [atushi ino](https://apify.com/fruitful_quintessence) (community)
- **Categories:** E-commerce
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per usage

This Actor is paid per platform usage. The Actor is free to use, and you only pay for the Apify platform usage, which gets cheaper the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-usage

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — 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

## Japan X Prize Giveaways (懸賞) Scraper & Stats API

Apify Actor that scrapes **active X/Twitter prize giveaways (懸賞)** aggregated from
public Japanese giveaway aggregators — **kenshou.club** and **cp.meikan.org**.
Returns a clean, structured dataset: X URL, title, prize, deadline, winner count, source.

Designed for AI agents and data buyers who track Japan's social-media prize/campaign market
(e.g. brand campaign monitoring, prize-market research, marketing lead feed).

### Output row

```json
{
  "xUrl": "https://x.com/hitachi_sol_SX/status/2092431876422344810",
  "title": "日立ソリューションズ SX情報局 コラボキャンペーン",
  "prize": "LFCコンポスト&ガーデニングセット（3名様） / Amazonギフトカード500円分（100名様）",
  "deadline": "2026-09-10",
  "winnerCount": 103,
  "source": "kenshou.club",
  "detailUrl": "https://kenshou.club/archives/945986",
  "scrapedAt": "2026-09-09T08:00:00.000Z"
}
```

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `keyword` | string | "" | Filter by prize/title keyword (e.g. "Amazonギフトカード") |
| `sources` | string | "kenshouclub,cpmeikan" | Comma-separated source list |
| `statsMode` | boolean | false | Return only an aggregate summary row |
| `statsKeyword` | string | "" | Filter keyword for `statsMode` |
| `maxItems` | integer | 50 | Max items to collect |
| `maxPages` | integer | 2 | Max pages to crawl per source |

### Stats aggregate (statsMode)

```json
{
  "statsType": "japan-prize-giveaway",
  "keyword": "",
  "count": 87,
  "activeCount": 62,
  "totalWinnerCount": 18530,
  "sources": {"kenshou.club": 70, "cp.meikan.org": 17},
  "collectedAt": "2026-09-09T08:00:00.000Z"
}
```

### Run

```bash
python -m src.main   # reads input JSON from stdin (no Apify container)
## or on Apify: supply the input in the Actor console
```

### Sources

- **kenshou.club** — WordPress giveaway tag listing; each article carries the X status URL, prize, deadline, and winner count.
- **cp.meikan.org/xcp** — X campaign index; X status URLs with deadline / winner context.

Both are public aggregate listings. Only factual, non-personal data (URL, title, prize, deadline, winner count) is harvested.

### License

MIT

# Actor input Schema

## `keyword` (type: `string`):

賞品やタイトルのフィルタ（例: Amazonギフトカード, QUOカード）。空欄で全件

## `sources` (type: `string`):

カンマ区切り: kenshouclub, cpmeikan

## `statsMode` (type: `boolean`):

trueで統計サマリ（件数・実施中・当選者総数・元別）のみ返す

## `statsKeyword` (type: `string`):

statsMode時に絞り込むキーワード

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

取得する最大件数

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

巡回する最大ページ数

## Actor input object example

```json
{
  "sources": "kenshouclub,cpmeikan",
  "statsMode": false,
  "maxItems": 50,
  "maxPages": 2
}
```

# Actor output Schema

## `xUrl` (type: `string`):

Twitter/X giveaway status URL

## `title` (type: `string`):

Giveaway / campaign title

## `prize` (type: `string`):

Prize items offered

## `deadline` (type: `string`):

Entry deadline (YYYY-MM-DD)

## `winnerCount` (type: `string`):

Number of winners stated

## `source` (type: `string`):

kenshou.club or cp.meikan.org

## `detailUrl` (type: `string`):

Source article/listing page

## `scrapedAt` (type: `string`):

Scrape timestamp

# 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 = {
    "keyword": "",
    "sources": "kenshouclub,cpmeikan",
    "statsKeyword": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("fruitful_quintessence/japan-prize-giveaway-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 = {
    "keyword": "",
    "sources": "kenshouclub,cpmeikan",
    "statsKeyword": "",
}

# Run the Actor and wait for it to finish
run = client.actor("fruitful_quintessence/japan-prize-giveaway-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 '{
  "keyword": "",
  "sources": "kenshouclub,cpmeikan",
  "statsKeyword": ""
}' |
apify call fruitful_quintessence/japan-prize-giveaway-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,fruitful_quintessence/japan-prize-giveaway-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/FPlcw4CWMAKooZNe6/builds/o7n19aJ3NfbF9zr0v/openapi.json
